@rudderhq/cli 0.3.6-canary.1 → 0.3.6-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +160 -39
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8423,7 +8423,7 @@ function formatAgentCliCapabilitiesHumanReadable(capabilities = getAgentCliCapab
|
|
|
8423
8423
|
function formatExamplesAndCautions(notes) {
|
|
8424
8424
|
const sections = [];
|
|
8425
8425
|
if (notes.examples?.length) {
|
|
8426
|
-
sections.push(["Examples:", ...notes.examples.map(
|
|
8426
|
+
sections.push(["Examples:", ...notes.examples.map(formatHelpExample)].join("\n"));
|
|
8427
8427
|
}
|
|
8428
8428
|
if (notes.cautions?.length) {
|
|
8429
8429
|
sections.push(["Cautions:", ...notes.cautions.map((caution) => ` - ${caution}`)].join("\n"));
|
|
@@ -8431,6 +8431,13 @@ function formatExamplesAndCautions(notes) {
|
|
|
8431
8431
|
return sections.length > 0 ? `
|
|
8432
8432
|
${sections.join("\n\n")}` : "";
|
|
8433
8433
|
}
|
|
8434
|
+
function formatHelpExample(example) {
|
|
8435
|
+
if (typeof example === "string") {
|
|
8436
|
+
return ` ${example}`;
|
|
8437
|
+
}
|
|
8438
|
+
return ` ${example.description}
|
|
8439
|
+
${example.command}`;
|
|
8440
|
+
}
|
|
8434
8441
|
|
|
8435
8442
|
// src/commands/client/agent.ts
|
|
8436
8443
|
var __moduleDir = path10.dirname(fileURLToPath3(import.meta.url));
|
|
@@ -8750,8 +8757,14 @@ function registerAgentCommands(program) {
|
|
|
8750
8757
|
addCommonClientOptions(
|
|
8751
8758
|
skills.command("enable").description(getAgentCliCapabilityById("agent.skills.enable").description).argument("<agentId>", "Agent ID").argument("<selectionRefs...>", "Skill selection refs to enable").addHelpText("after", formatExamplesAndCautions({
|
|
8752
8759
|
examples: [
|
|
8753
|
-
|
|
8754
|
-
|
|
8760
|
+
{
|
|
8761
|
+
description: "Add skills while preserving the agent's existing enabled set:",
|
|
8762
|
+
command: "rudder agent skills enable <agent-id> rudder/rudder local/abc123/custom-skill"
|
|
8763
|
+
},
|
|
8764
|
+
{
|
|
8765
|
+
description: "Enable one newly created private skill and inspect the resulting snapshot:",
|
|
8766
|
+
command: "rudder agent skills enable <agent-id> <selection-ref> --json"
|
|
8767
|
+
}
|
|
8755
8768
|
],
|
|
8756
8769
|
cautions: [
|
|
8757
8770
|
"This is additive and preserves existing enabled optional skills.",
|
|
@@ -8775,8 +8788,14 @@ function registerAgentCommands(program) {
|
|
|
8775
8788
|
"Comma-separated desired skill refs (for example rudder/rudder)"
|
|
8776
8789
|
).addHelpText("after", formatExamplesAndCautions({
|
|
8777
8790
|
examples: [
|
|
8778
|
-
|
|
8779
|
-
|
|
8791
|
+
{
|
|
8792
|
+
description: "Replace the optional enabled set with an explicitly preserved CSV:",
|
|
8793
|
+
command: 'rudder agent skills sync <agent-id> --desired-skills "rudder/rudder,local/abc123/custom-skill"'
|
|
8794
|
+
},
|
|
8795
|
+
{
|
|
8796
|
+
description: "Clear optional skills only when that is the intended final state:",
|
|
8797
|
+
command: 'rudder agent skills sync <agent-id> --desired-skills "" --json'
|
|
8798
|
+
}
|
|
8780
8799
|
],
|
|
8781
8800
|
cautions: [
|
|
8782
8801
|
"Sync replaces the full optional enabled-skill set; use enable for additive changes.",
|
|
@@ -9073,8 +9092,14 @@ function registerApprovalCommands(program) {
|
|
|
9073
9092
|
addCommonClientOptions(
|
|
9074
9093
|
approval.command("approve").description("Approve an approval request").argument("<approvalId>", "Approval ID").option("--decision-note <text>", "Decision note").option("--decided-by-user-id <id>", "Decision actor user ID").addHelpText("after", formatExamplesAndCautions({
|
|
9075
9094
|
examples: [
|
|
9076
|
-
|
|
9077
|
-
|
|
9095
|
+
{
|
|
9096
|
+
description: "Read the approval payload before deciding:",
|
|
9097
|
+
command: "rudder approval get <approval-id> --json"
|
|
9098
|
+
},
|
|
9099
|
+
{
|
|
9100
|
+
description: "Record the durable approval decision with concise context:",
|
|
9101
|
+
command: 'rudder approval approve <approval-id> --decision-note "Approved after reviewing linked issues" --json'
|
|
9102
|
+
}
|
|
9078
9103
|
],
|
|
9079
9104
|
cautions: [
|
|
9080
9105
|
"Read the approval and linked issues before approving; this is a governed mutation.",
|
|
@@ -9141,8 +9166,14 @@ function registerApprovalCommands(program) {
|
|
|
9141
9166
|
addCommonClientOptions(
|
|
9142
9167
|
approval.command("comment").description(getAgentCliCapabilityById("approval.comment").description).argument("<approvalId>", "Approval ID").option("--body-file <path>", "Read comment body from a file, or '-' for stdin").addHelpText("after", formatExamplesAndCautions({
|
|
9143
9168
|
examples: [
|
|
9144
|
-
|
|
9145
|
-
|
|
9169
|
+
{
|
|
9170
|
+
description: "Add a longer Markdown discussion note without deciding:",
|
|
9171
|
+
command: "rudder approval comment <approval-id> --body-file ./approval-note.md --json"
|
|
9172
|
+
},
|
|
9173
|
+
{
|
|
9174
|
+
description: "Ask a short follow-up from stdin:",
|
|
9175
|
+
command: "printf '%s\\n' 'Need one more linked issue checked.' | rudder approval comment <approval-id> --body-file -"
|
|
9176
|
+
}
|
|
9146
9177
|
],
|
|
9147
9178
|
cautions: [
|
|
9148
9179
|
"Comments do not approve or reject; use approve/reject/request-revision for the durable decision.",
|
|
@@ -9442,8 +9473,14 @@ function registerAutomationCommands(program) {
|
|
|
9442
9473
|
addCommonClientOptions(
|
|
9443
9474
|
automation.command("run").description(getAgentCliCapabilityById("automation.run").description).argument("<automationId>", "Automation ID").option("--trigger-id <id>", "Trigger ID").option("--payload <json>", "Manual run payload JSON").option("--idempotency-key <key>", "Idempotency key").option("--source <source>", "Run source", "manual").addHelpText("after", formatExamplesAndCautions({
|
|
9444
9475
|
examples: [
|
|
9445
|
-
|
|
9446
|
-
|
|
9476
|
+
{
|
|
9477
|
+
description: "Run a verified automation manually with an explicit payload:",
|
|
9478
|
+
command: `rudder automation run <automation-id> --payload '{"manual":true}' --json`
|
|
9479
|
+
},
|
|
9480
|
+
{
|
|
9481
|
+
description: "Retry a trigger-specific smoke run with duplicate protection:",
|
|
9482
|
+
command: "rudder automation run <automation-id> --trigger-id <trigger-id> --idempotency-key zst-123-smoke"
|
|
9483
|
+
}
|
|
9447
9484
|
],
|
|
9448
9485
|
cautions: [
|
|
9449
9486
|
"Confirm the automation and trigger target before running; manual runs can create tracked issues or chats.",
|
|
@@ -9641,8 +9678,14 @@ function registerChatCommands(program) {
|
|
|
9641
9678
|
addCommonClientOptions(
|
|
9642
9679
|
chat.command("read").description(getAgentCliCapabilityById("chat.read").description).argument("<chatId>", "Chat conversation ID").option("--include-transcript", "Include assistant transcript entries").option("--include-output", "Alias for --include-transcript").option("--include-outputs", "Alias for --include-transcript").option("--limit <n>", "Maximum recent messages", "20").option("--turn-limit <n>", "Alias for --limit for chat turn snapshots").option("--cursor <cursor>", "Stable message cursor returned in page.nextCursor").option("--max-output-chars <n>", "Maximum transcript output chars for human output", "1200").addHelpText("after", formatExamplesAndCautions({
|
|
9643
9680
|
examples: [
|
|
9644
|
-
|
|
9645
|
-
|
|
9681
|
+
{
|
|
9682
|
+
description: "Read a bounded conversation page with transcript output when needed:",
|
|
9683
|
+
command: "rudder chat read <chat-id> --turn-limit 20 --include-output"
|
|
9684
|
+
},
|
|
9685
|
+
{
|
|
9686
|
+
description: "Continue from a stable cursor in scripts:",
|
|
9687
|
+
command: "rudder chat read <chat-id> --cursor <nextCursor> --json"
|
|
9688
|
+
}
|
|
9646
9689
|
],
|
|
9647
9690
|
cautions: [
|
|
9648
9691
|
"Read bounded pages first; long chats can include large transcript payloads.",
|
|
@@ -9698,8 +9741,14 @@ function registerChatCommands(program) {
|
|
|
9698
9741
|
addCommonClientOptions(
|
|
9699
9742
|
chat.command("send").description(getAgentCliCapabilityById("chat.send").description).argument("<chatId>", "Chat conversation ID").option("--body <text>", "Message body").option("--edit-user-message-id <id>", "Regenerate/edit from a prior user message").addHelpText("after", formatExamplesAndCautions({
|
|
9700
9743
|
examples: [
|
|
9701
|
-
|
|
9702
|
-
|
|
9744
|
+
{
|
|
9745
|
+
description: "Append a short agent-authored status note:",
|
|
9746
|
+
command: 'rudder chat send <chat-id> --body "Status: validation is running"'
|
|
9747
|
+
},
|
|
9748
|
+
{
|
|
9749
|
+
description: "Send a longer or multiline note through stdin:",
|
|
9750
|
+
command: "printf '%s\\n' 'Multiline note' | rudder chat send <chat-id>"
|
|
9751
|
+
}
|
|
9703
9752
|
],
|
|
9704
9753
|
cautions: [
|
|
9705
9754
|
"chat send accepts --body or stdin; it does not support --body-file.",
|
|
@@ -11301,8 +11350,14 @@ function registerIssueCommands(program) {
|
|
|
11301
11350
|
addCommonClientOptions(
|
|
11302
11351
|
issue.command("comment").description(getAgentCliCapabilityById("issue.comment").description).argument("<issueId>", "Issue ID").option("--body-file <path>", "Read comment body from a file, or '-' for stdin").option("--image <path>", "Image file to upload and append to the comment; may be repeated", collectImagePath, []).option("--reopen", "Reopen if issue is done/cancelled").addHelpText("after", formatExamplesAndCautions({
|
|
11303
11352
|
examples: [
|
|
11304
|
-
|
|
11305
|
-
|
|
11353
|
+
{
|
|
11354
|
+
description: "Progress update with attached screenshot evidence:",
|
|
11355
|
+
command: "rudder issue comment ZST-123 --body-file ./progress.md --image ./screenshot.png --json"
|
|
11356
|
+
},
|
|
11357
|
+
{
|
|
11358
|
+
description: "Short stdin status when a separate file is unnecessary:",
|
|
11359
|
+
command: "printf '%s\\n' 'Short status' | rudder issue comment ZST-123 --body-file -"
|
|
11360
|
+
}
|
|
11306
11361
|
],
|
|
11307
11362
|
cautions: [
|
|
11308
11363
|
"Use --body-file for multiline Markdown; the old --body option is intentionally rejected.",
|
|
@@ -11338,8 +11393,14 @@ function registerIssueCommands(program) {
|
|
|
11338
11393
|
"Review decision: approve, request_changes, needs_followup, or blocked"
|
|
11339
11394
|
).option("--comment-file <path>", "Read required review comment from a file, or '-' for stdin").addHelpText("after", formatExamplesAndCautions({
|
|
11340
11395
|
examples: [
|
|
11341
|
-
|
|
11342
|
-
|
|
11396
|
+
{
|
|
11397
|
+
description: "Return implementation work with durable review feedback:",
|
|
11398
|
+
command: "rudder issue review ZST-123 --decision request_changes --comment-file ./review.md --json"
|
|
11399
|
+
},
|
|
11400
|
+
{
|
|
11401
|
+
description: "Approve after reading the issue evidence and validation:",
|
|
11402
|
+
command: "rudder issue review ZST-123 --decision approve --comment-file ./review.md"
|
|
11403
|
+
}
|
|
11343
11404
|
],
|
|
11344
11405
|
cautions: [
|
|
11345
11406
|
"Free-form comments are not durable review decisions; use this command for approve/request_changes/etc.",
|
|
@@ -11387,8 +11448,14 @@ function registerIssueCommands(program) {
|
|
|
11387
11448
|
addCommonClientOptions(
|
|
11388
11449
|
issue.command("done").description(getAgentCliCapabilityById("issue.done").description).argument("<issueId>", "Issue ID").option("--comment-file <path>", "Read required completion comment from a file, or '-' for stdin").option("--image <path>", "Image file to upload and append to the completion comment; may be repeated", collectImagePath, []).addHelpText("after", formatExamplesAndCautions({
|
|
11389
11450
|
examples: [
|
|
11390
|
-
|
|
11391
|
-
|
|
11451
|
+
{
|
|
11452
|
+
description: "Close out with validation summary and visual evidence:",
|
|
11453
|
+
command: "rudder issue done ZST-123 --comment-file ./done.md --image ./screenshot.png --json"
|
|
11454
|
+
},
|
|
11455
|
+
{
|
|
11456
|
+
description: "Read the completion note from stdin in scripts:",
|
|
11457
|
+
command: "rudder issue done ZST-123 --comment-file - < ./done.md"
|
|
11458
|
+
}
|
|
11392
11459
|
],
|
|
11393
11460
|
cautions: [
|
|
11394
11461
|
"Include validation evidence and commit/push status in the completion comment.",
|
|
@@ -11775,8 +11842,14 @@ function registerLibraryCommands(program) {
|
|
|
11775
11842
|
addCommonClientOptions(
|
|
11776
11843
|
file.command("ref").description(getAgentCliCapabilityById("library.file.ref").description).argument("<filePath>", "Library file path").addHelpText("after", formatExamplesAndCautions({
|
|
11777
11844
|
examples: [
|
|
11778
|
-
|
|
11779
|
-
|
|
11845
|
+
{
|
|
11846
|
+
description: "Return the renderable Markdown link for a known Library file:",
|
|
11847
|
+
command: "rudder library file ref projects/rudder/proposals/plan.md --json"
|
|
11848
|
+
},
|
|
11849
|
+
{
|
|
11850
|
+
description: "Reference a file under the current project Library path:",
|
|
11851
|
+
command: 'rudder library file ref "$RUDDER_PROJECT_LIBRARY_PATH/proposals/plan.md" --json'
|
|
11852
|
+
}
|
|
11780
11853
|
],
|
|
11781
11854
|
cautions: [
|
|
11782
11855
|
"Pass the Library-relative path, not an absolute filesystem path.",
|
|
@@ -11794,8 +11867,14 @@ function registerLibraryCommands(program) {
|
|
|
11794
11867
|
addCommonClientOptions(
|
|
11795
11868
|
file.command("put").description(getAgentCliCapabilityById("library.file.put").description).argument("<filePath>", "Library file path").option("--body-file <path>", "Read file content from a file, or '-' for stdin").addHelpText("after", formatExamplesAndCautions({
|
|
11796
11869
|
examples: [
|
|
11797
|
-
|
|
11798
|
-
|
|
11870
|
+
{
|
|
11871
|
+
description: "Upload a durable Markdown artifact from a local file:",
|
|
11872
|
+
command: "rudder library file put projects/rudder/proposals/plan.md --body-file ./plan.md --json"
|
|
11873
|
+
},
|
|
11874
|
+
{
|
|
11875
|
+
description: "Write a small generated artifact from stdin:",
|
|
11876
|
+
command: "printf '%s\\n' '# Plan' | rudder library file put projects/rudder/proposals/plan.md --body-file -"
|
|
11877
|
+
}
|
|
11799
11878
|
],
|
|
11800
11879
|
cautions: [
|
|
11801
11880
|
"Use --body-file for content; the old --body option is intentionally rejected.",
|
|
@@ -12090,8 +12169,14 @@ function registerProjectCommands(program) {
|
|
|
12090
12169
|
addCommonClientOptions(
|
|
12091
12170
|
project.command("create").description(getAgentCliCapabilityById("project.create").description).option("-O, --org-id <id>", "Organization ID").requiredOption("--name <name>", "Project name").option("--description <text>", "Project description").option("--status <status>", "Project status").option("--goal-id <id>", "Primary goal ID").option("--goal-ids <csv>", "Comma-separated goal IDs").option("--lead-agent-id <id>", "Lead agent ID").option("--target-date <date>", "Target date").option("--color <value>", "Project color or supported gradient token").addHelpText("after", formatExamplesAndCautions({
|
|
12092
12171
|
examples: [
|
|
12093
|
-
|
|
12094
|
-
|
|
12172
|
+
{
|
|
12173
|
+
description: "Create a new active workstream after confirming it does not already exist:",
|
|
12174
|
+
command: 'rudder project create --org-id <org-id> --name "Rudder dev" --status in_progress --json'
|
|
12175
|
+
},
|
|
12176
|
+
{
|
|
12177
|
+
description: "Create a project tied to a goal and responsible agent:",
|
|
12178
|
+
command: 'rudder project create --org-id <org-id> --name "Release" --goal-id <goal-id> --lead-agent-id <agent-id>'
|
|
12179
|
+
}
|
|
12095
12180
|
],
|
|
12096
12181
|
cautions: [
|
|
12097
12182
|
"Project mutations are organization-scoped; pass --org-id when context might be ambiguous.",
|
|
@@ -12121,8 +12206,14 @@ function registerProjectCommands(program) {
|
|
|
12121
12206
|
addCommonClientOptions(
|
|
12122
12207
|
project.command("update").description(getAgentCliCapabilityById("project.update").description).argument("<projectIdOrShortname>", "Project ID or shortname").option("-O, --org-id <id>", "Organization ID for shortname resolution").option("--name <name>", "Project name").option("--description <text>", "Project description").option("--status <status>", "Project status").option("--goal-id <id>", "Primary goal ID").option("--goal-ids <csv>", "Comma-separated goal IDs").option("--lead-agent-id <id>", "Lead agent ID").option("--target-date <date>", "Target date").option("--color <value>", "Project color or supported gradient token").option("--archived-at <iso8601|null>", "Set archivedAt timestamp or literal 'null'").addHelpText("after", formatExamplesAndCautions({
|
|
12123
12208
|
examples: [
|
|
12124
|
-
|
|
12125
|
-
|
|
12209
|
+
{
|
|
12210
|
+
description: "Move a known project shortname under the intended org:",
|
|
12211
|
+
command: "rudder project update rudder-dev --org-id <org-id> --status in_progress --json"
|
|
12212
|
+
},
|
|
12213
|
+
{
|
|
12214
|
+
description: "Unarchive a verified project id:",
|
|
12215
|
+
command: "rudder project update <project-id> --archived-at null"
|
|
12216
|
+
}
|
|
12126
12217
|
],
|
|
12127
12218
|
cautions: [
|
|
12128
12219
|
"Shortname resolution needs the intended organization; include --org-id for cross-org local contexts.",
|
|
@@ -12173,8 +12264,14 @@ function registerRunsCommands(program) {
|
|
|
12173
12264
|
addCommonClientOptions(
|
|
12174
12265
|
runs.command("list").description(getAgentCliCapabilityById("runs.list").description).option("-O, --org-id <id>", "Organization ID").option("--updated-after <iso>", "Only runs updated after this timestamp").option("--run-id-prefix <prefix>", "Filter by run ID prefix").option("--agent-id <id>", "Filter by agent ID").option("--status <status>", "Filter by run status").option("--runtime <type>", "Filter by runtime type").option("--issue-id <id>", "Filter by linked issue ID").option("--used-skill <key-or-name>", "Filter by skill actually used during the run").option("--loaded-skill <key-or-name>", "Filter by skill loaded for the run").option("--created-before <iso>", "Only runs created before this timestamp").option("--limit <n>", "Maximum rows", "200").addHelpText("after", formatExamplesAndCautions({
|
|
12175
12266
|
examples: [
|
|
12176
|
-
|
|
12177
|
-
|
|
12267
|
+
{
|
|
12268
|
+
description: "Find recent failures for one agent before opening transcripts:",
|
|
12269
|
+
command: "rudder runs list --org-id <org-id> --agent-id <agent-id> --status failed --limit 20"
|
|
12270
|
+
},
|
|
12271
|
+
{
|
|
12272
|
+
description: "Collect skill-specific evidence for a linked issue:",
|
|
12273
|
+
command: "rudder runs list --org-id <org-id> --issue-id ZST-123 --used-skill release-maintainer --json"
|
|
12274
|
+
}
|
|
12178
12275
|
],
|
|
12179
12276
|
cautions: [
|
|
12180
12277
|
"Filter first by org, agent, issue, status, skill, or time; do not start by dumping broad run history.",
|
|
@@ -12247,8 +12344,14 @@ function registerRunsCommands(program) {
|
|
|
12247
12344
|
addCommonClientOptions(
|
|
12248
12345
|
runs.command("transcript").description(getAgentCliCapabilityById("runs.transcript").description).argument("<runId>", "Run ID or short run ID").option("--errors-only", "Show only error transcript rows").option("--around-error <id>", "Show context around a run error id such as step-12").option("--context-turns <n>", "Turns around --around-error", "1").option("--cursor <cursor>", "Stable transcript cursor returned in page.nextCursor").option("--turn-limit <n>", "Maximum turns to return", "20").option("--chronological", "Show oldest-first instead of default newest-first").option("--narrative", "Use a narrative human layout").option("--max-chars <n>", "Maximum output characters per row", "1200").option("--max-output-chars <n>", "Alias for --max-chars").option("--include-output", "Include row output in compact human transcript rows").option("--include-outputs", "Alias for --include-output").addHelpText("after", formatExamplesAndCautions({
|
|
12249
12346
|
examples: [
|
|
12250
|
-
|
|
12251
|
-
|
|
12347
|
+
{
|
|
12348
|
+
description: "Inspect the neighborhood around a failing step:",
|
|
12349
|
+
command: "rudder runs transcript <run-id> --around-error step-12 --context-turns 2"
|
|
12350
|
+
},
|
|
12351
|
+
{
|
|
12352
|
+
description: "Reconstruct a bounded chronological decision trail:",
|
|
12353
|
+
command: "rudder runs transcript <run-id> --chronological --turn-limit 30 --include-output"
|
|
12354
|
+
}
|
|
12252
12355
|
],
|
|
12253
12356
|
cautions: [
|
|
12254
12357
|
"Human output is compact and clipped by default; use --json only when a script needs the full payload.",
|
|
@@ -12275,8 +12378,14 @@ function registerRunsCommands(program) {
|
|
|
12275
12378
|
addCommonClientOptions(
|
|
12276
12379
|
runs.command("errors").description(getAgentCliCapabilityById("runs.errors").description).argument("<runId>", "Run ID or short run ID").option("--max-chars <n>", "Maximum output characters per error", "1200").addHelpText("after", formatExamplesAndCautions({
|
|
12277
12380
|
examples: [
|
|
12278
|
-
|
|
12279
|
-
|
|
12381
|
+
{
|
|
12382
|
+
description: "Start failed-run investigation with error summaries:",
|
|
12383
|
+
command: "rudder runs errors <run-id>"
|
|
12384
|
+
},
|
|
12385
|
+
{
|
|
12386
|
+
description: "Increase clipped error output for scripts or reports:",
|
|
12387
|
+
command: "rudder runs errors <run-id> --max-chars 4000 --json"
|
|
12388
|
+
}
|
|
12280
12389
|
],
|
|
12281
12390
|
cautions: [
|
|
12282
12391
|
"Start here for failed runs, then follow the transcript context command returned for the relevant step.",
|
|
@@ -12579,8 +12688,14 @@ function registerSkillCommands(program) {
|
|
|
12579
12688
|
addCommonClientOptions(
|
|
12580
12689
|
skill.command("file").description(getAgentCliCapabilityById("skill.file").description).argument("<skillId>", "Skill ID").option("-O, --org-id <id>", "Organization ID").option("--path <path>", "Skill package file path", "SKILL.md").addHelpText("after", formatExamplesAndCautions({
|
|
12581
12690
|
examples: [
|
|
12582
|
-
|
|
12583
|
-
|
|
12691
|
+
{
|
|
12692
|
+
description: "Read the main skill trigger and workflow instructions:",
|
|
12693
|
+
command: "rudder skill file <skill-uuid> --path SKILL.md --org-id <org-id>"
|
|
12694
|
+
},
|
|
12695
|
+
{
|
|
12696
|
+
description: "Inspect a specific reference file in the skill package:",
|
|
12697
|
+
command: "rudder skill file <skill-uuid> --path references/usage.md --json"
|
|
12698
|
+
}
|
|
12584
12699
|
],
|
|
12585
12700
|
cautions: [
|
|
12586
12701
|
"Prefer the skill UUID for slashful keys such as local/<hash>/<slug>.",
|
|
@@ -12603,8 +12718,14 @@ function registerSkillCommands(program) {
|
|
|
12603
12718
|
addCommonClientOptions(
|
|
12604
12719
|
skill.command("import").description(getAgentCliCapabilityById("skill.import").description).option("-O, --org-id <id>", "Organization ID").requiredOption("--source <source>", "Skill source (local path, URL, or repo ref)").addHelpText("after", formatExamplesAndCautions({
|
|
12605
12720
|
examples: [
|
|
12606
|
-
|
|
12607
|
-
|
|
12721
|
+
{
|
|
12722
|
+
description: "Import a durable organization-shared skill package:",
|
|
12723
|
+
command: "rudder skill import --org-id <org-id> --source /abs/path/to/skill --json"
|
|
12724
|
+
},
|
|
12725
|
+
{
|
|
12726
|
+
description: "List imported skills afterward to get stable ids:",
|
|
12727
|
+
command: "rudder skill list --org-id <org-id> --json"
|
|
12728
|
+
}
|
|
12608
12729
|
],
|
|
12609
12730
|
cautions: [
|
|
12610
12731
|
"Import organization-shared skills from durable shared paths, not disposable agent-private work directories.",
|