Skip to content

docs(examples): migrate agentspan CLI references to the conductor CLI - #171

Merged
ling-senpeng13 merged 1 commit into
mainfrom
chore/migrate-examples-to-conductor-cli
Aug 20, 2026
Merged

docs(examples): migrate agentspan CLI references to the conductor CLI#171
ling-senpeng13 merged 1 commit into
mainfrom
chore/migrate-examples-to-conductor-cli

Conversation

@ling-senpeng13

@ling-senpeng13 ling-senpeng13 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

The agentspan CLI was folded into the conductor CLI in conductor-oss/conductor-cli#89. The examples still documented the retired binary, and their --package paths pointed at the pre-port monorepo layout (sdk/typescript/examples) — so none of the commented deploy commands worked as written.

Mapping, verified against conductor-cli origin/main:

agentspan conductor n
deploy --package sdk/typescript/examples[/<fw>] deploy --package examples/agents[/<fw>] 196
credentials set <k> <v> secret put <k> <v> 31
login config save 3
run <name> "prompt" agent run --name <name> "prompt" 1

Also: Run on agentspanRun on Conductor (96, padding unchanged — both 9 chars); CONDUCTOR_SERVER_URL for [the] agentspan path → the house-style line (45, the qualifier implied a non-Conductor path that no example offers); and two stale sdk/typescript paths.

tsc --noEmit: 285 errors, unchanged from baseline.

@ling-senpeng13
ling-senpeng13 force-pushed the chore/migrate-examples-to-conductor-cli branch from 6669685 to 796a2d9 Compare August 20, 2026 00:53
@ling-senpeng13
ling-senpeng13 marked this pull request as ready for review August 20, 2026 01:17

@ambiorix2099 ambiorix2099 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is red, but it's pre-existing, and this branch only touches comments under examples/.

Since we don't merge on red, would it make sense to land a CI fix separately and rebase this on top?

Comment thread examples/agents/kitchen-sink.ts Outdated
@ling-senpeng13
ling-senpeng13 force-pushed the chore/migrate-examples-to-conductor-cli branch from 796a2d9 to 87353bf Compare August 20, 2026 22:25
The agentspan CLI was folded into the conductor CLI (conductor-oss/conductor-cli
"Combine agentspan cli to conductor", 2026-06-30). The examples still documented
the retired binary, and their --package paths pointed at the pre-port monorepo
layout (sdk/typescript/examples), so none of the commented deploy commands would
have worked as written.

Command mapping, verified against conductor-cli origin/main:

  agentspan deploy --package sdk/typescript/examples[/<fw>]
    -> conductor deploy --package examples/agents[/<fw>]      (196)
  agentspan credentials set <k> <v> -> conductor secret put <k> <v>  (31)
  agentspan login                   -> conductor config save          (3)
  agentspan run <name> "prompt" -> conductor agent run --name <name>  (1)

deploy keeps its -p/-a/-l/--json flags; credentials became secret and uses put,
not set; login has no direct successor, so config save (interactive server+auth
setup) replaces it.

Also drops two stale monorepo paths and two naming leftovers:

  - kitchen-sink.ts called discoverAgents('sdk/typescript/examples'), a live path
    to a directory that does not exist; its try/catch swallowed the failure.
  - dump-agent-configs.ts documented "cd sdk/typescript && npx tsx examples/...".
  - "Run on agentspan" section headers -> "Run on Conductor" (96). Conductor is
    also 9 characters, so the box-drawing padding is unchanged.
  - "CONDUCTOR_SERVER_URL for [the] agentspan path" (45) -> the house-style line.
    That qualifier implied an alternative non-Conductor path, but all 36 ADK and
    all 10 OpenAI examples carrying it construct AgentRuntime, so the variable is
    required unconditionally.

Left as-is: agentspan.default-context-window (a real server property), the
'agentspan' GitHub-org search literals, and prose describing the agentspan
module itself. Wire-protocol identifiers (__agentspan_ctx__, _agentspan,
AgentspanMetadata) are untouched.

One behavioral line: 16b-credentials-non-isolated.ts emits the new
"conductor secret put" hint in a runtime error string, not a comment.

Prerequisite comment lines also drop the redundant " as environment variable"
suffix (203 lines, 125 files) -- the "NAME=value" form already reads as an env
var, and the shorter line matches the rest of the block.

tsc --noEmit reports 285 errors, unchanged from the pre-change baseline.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ling-senpeng13
ling-senpeng13 force-pushed the chore/migrate-examples-to-conductor-cli branch from 87353bf to 5a4436a Compare August 20, 2026 23:05
@ling-senpeng13
ling-senpeng13 merged commit 816e5f5 into main Aug 20, 2026
23 of 27 checks passed
@ling-senpeng13
ling-senpeng13 deleted the chore/migrate-examples-to-conductor-cli branch August 20, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants