sim 2.1.28 → 2.2.0-preview.172.1

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/program.d.ts CHANGED
@@ -1,7 +1,15 @@
1
1
  import { Command } from 'commander';
2
2
  /** Root program description, shared by `--help` and the generated docs. */
3
3
  export declare const PROGRAM_DESCRIPTION = "Talk to the Sim API from your terminal";
4
- export declare const HELP_EPILOGUE = "\nProfiles work like the AWS CLI: settings live in ~/.sim/config, keys in\n~/.sim/credentials (0600), or under SIM_CONFIG_DIR when it is set. Select one\nwith -P, --profile, or SIM_PROFILE.\n\nWorkflow, knowledge-base and workspace IDs are bare UUIDs. Table IDs carry a\ntbl_ prefix and file IDs a wf_ one, so wf_ never names a workflow. An audit-log\nor custom-tool ID can open with a dash, which reads as a flag; put -- in front\nof it, as in sim audit-logs get -- -HlDcD1z76nK6R4crsUp0.\n\nExamples:\n $ sim login Authorize the default profile\n $ sim login --profile dev --endpoint http://localhost:3000\n $ sim profile add acme --workspace 7e2d9c14-6b83-4a55-8f01-c4d3e9a76b28\n $ sim workflows list\n $ sim logs list --level error --limit 20\n $ sim configure --set-output json Save a profile output default\n $ sim --output json tables get tbl_9f3c1a05d4b7426e8c2f0917ab35de64\n $ sim knowledge search --query \"refund policy\" --kb 4c1b7f60-2d55-4a3e-9c18-70b6ea2f9d31\n $ sim workflows export 3a9e21d8-5f47-4c0b-b2ea-91d7c6034ef8 > wf.json\n $ sim workflows import --workflow @wf.json\n $ sim knowledge export 4c1b7f60-2d55-4a3e-9c18-70b6ea2f9d31 -o ./kb.simkb.zip\n $ sim whoami --profile dev\n";
4
+ export declare const HELP_EPILOGUE = "\nProfiles work like the AWS CLI: settings live in ~/.sim/config, keys in\n~/.sim/credentials (0600), or under SIM_CONFIG_DIR when it is set. Select one\nwith -P, --profile, or SIM_PROFILE.\n\nWorkflow, knowledge-base and workspace IDs are bare UUIDs. Table IDs carry a\ntbl_ prefix and file IDs a wf_ one, so wf_ never names a workflow. An audit-log\nor custom-tool ID can open with a dash, which reads as a flag; put -- in front\nof it, as in sim audit-logs get -- -HlDcD1z76nK6R4crsUp0.\n\nExamples:\n $ sim cli search \"cancel a workflow run\" Find the command for a task\n $ sim login Authorize the default profile\n $ sim login --profile dev --endpoint http://localhost:3000\n $ sim profile add acme --workspace 7e2d9c14-6b83-4a55-8f01-c4d3e9a76b28\n $ sim workflows list\n $ sim logs list --level error --limit 20\n $ sim configure --set-output table Prefer tables over the JSON default\n $ sim --output table tables get tbl_9f3c1a05d4b7426e8c2f0917ab35de64\n $ sim knowledge search --query \"refund policy\" --kb 4c1b7f60-2d55-4a3e-9c18-70b6ea2f9d31\n $ sim workflows export 3a9e21d8-5f47-4c0b-b2ea-91d7c6034ef8 > wf.json\n $ sim workflows import --workflow @wf.json\n $ sim knowledge export 4c1b7f60-2d55-4a3e-9c18-70b6ea2f9d31 -o ./kb.simkb.zip\n $ sim whoami --profile dev\n";
5
+ /**
6
+ * Printed above group-level help when a coding agent runs the CLI.
7
+ *
8
+ * Agents otherwise map the surface by walking `--help` down every group, which
9
+ * costs a call and a screenful of context per level. Leaf help is left alone:
10
+ * an agent reading it has already found its command.
11
+ */
12
+ export declare const AGENT_DISCOVERY_NOTE = "=== AGENT COMMAND DISCOVERY ===\nDo not explore commands by chaining nested --help calls. Instead run:\n sim cli search \"<describe the task you want to accomplish>\"\nIt returns the 5 best-matching commands, each with a one-line summary. Pick the\nbest match rather than repeating similar searches, then run\n`<command> --help` for its flags.\n=== END AGENT COMMAND DISCOVERY ===\n";
5
13
  /**
6
14
  * Assemble the complete command tree.
7
15
  *
@@ -18,4 +26,5 @@ export declare function buildProgram(options?: {
18
26
  version?: boolean;
19
27
  helpText?: string;
20
28
  program?: Command;
29
+ env?: NodeJS.ProcessEnv;
21
30
  }): Command;