@idapt/cli 1.11.0 → 1.13.0

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.d.cts CHANGED
@@ -178,6 +178,25 @@ interface V1CommandSpec extends V1CommandDocFields {
178
178
  readonly workspaceScope?: "scope" | "target";
179
179
  /** Long-running → goes through the async-operation layer. */
180
180
  readonly async: boolean;
181
+ /**
182
+ * Client polling parameters for `async` verbs whose operations outlive the
183
+ * executor's defaults (120 × 1500 ms ≈ 3 min). The SDK/CLI auto-poller
184
+ * (`awaitOperation`) reads these off the generated binding — e.g. video
185
+ * generation ships `{ intervalMs: 5000, maxAttempts: 240 }` (a 20-min
186
+ * ceiling). Omit for seconds-long verbs; per-call options still win.
187
+ */
188
+ readonly pollHint?: {
189
+ readonly intervalMs: number;
190
+ readonly maxAttempts: number;
191
+ };
192
+ /**
193
+ * Async verbs that ALWAYS answer with the operation handle, even for a
194
+ * foreground in-chat tool call. The dispatcher's catalog-REST seam reads
195
+ * this to never block-poll the verb inside the agent loop (a minutes-long
196
+ * render would pin the run job); the model reconciles via `operation get`.
197
+ * SDK/CLI callers are unaffected — their `wait` semantics still apply.
198
+ */
199
+ readonly handleOnly?: boolean;
181
200
  /** Tier-1 one-line decision hint (≤200 chars). */
182
201
  readonly summary: string;
183
202
  /**
@@ -358,6 +377,14 @@ interface ExecuteOptions {
358
377
  readonly maxPollAttempts?: number;
359
378
  /** Injectable delay (tests pass a no-op); defaults to real setTimeout. */
360
379
  readonly sleep?: (ms: number) => Promise<void>;
380
+ /**
381
+ * CLI ambient workspace (resourceId | UUID) from `idapt workspace use`.
382
+ * Injected as `workspace_id` ONLY on the CLI-string path ({@link execute}),
383
+ * only for verbs whose request declares `workspace_id`, and only when the
384
+ * call didn't already name a workspace. The programmatic
385
+ * {@link executeCommand} seam (in-chat dispatcher / MCP) never sets it.
386
+ */
387
+ readonly defaultWorkspaceRef?: string;
361
388
  }
362
389
  interface ExecuteResult {
363
390
  readonly ok: boolean;
package/dist/index.d.ts CHANGED
@@ -178,6 +178,25 @@ interface V1CommandSpec extends V1CommandDocFields {
178
178
  readonly workspaceScope?: "scope" | "target";
179
179
  /** Long-running → goes through the async-operation layer. */
180
180
  readonly async: boolean;
181
+ /**
182
+ * Client polling parameters for `async` verbs whose operations outlive the
183
+ * executor's defaults (120 × 1500 ms ≈ 3 min). The SDK/CLI auto-poller
184
+ * (`awaitOperation`) reads these off the generated binding — e.g. video
185
+ * generation ships `{ intervalMs: 5000, maxAttempts: 240 }` (a 20-min
186
+ * ceiling). Omit for seconds-long verbs; per-call options still win.
187
+ */
188
+ readonly pollHint?: {
189
+ readonly intervalMs: number;
190
+ readonly maxAttempts: number;
191
+ };
192
+ /**
193
+ * Async verbs that ALWAYS answer with the operation handle, even for a
194
+ * foreground in-chat tool call. The dispatcher's catalog-REST seam reads
195
+ * this to never block-poll the verb inside the agent loop (a minutes-long
196
+ * render would pin the run job); the model reconciles via `operation get`.
197
+ * SDK/CLI callers are unaffected — their `wait` semantics still apply.
198
+ */
199
+ readonly handleOnly?: boolean;
181
200
  /** Tier-1 one-line decision hint (≤200 chars). */
182
201
  readonly summary: string;
183
202
  /**
@@ -358,6 +377,14 @@ interface ExecuteOptions {
358
377
  readonly maxPollAttempts?: number;
359
378
  /** Injectable delay (tests pass a no-op); defaults to real setTimeout. */
360
379
  readonly sleep?: (ms: number) => Promise<void>;
380
+ /**
381
+ * CLI ambient workspace (resourceId | UUID) from `idapt workspace use`.
382
+ * Injected as `workspace_id` ONLY on the CLI-string path ({@link execute}),
383
+ * only for verbs whose request declares `workspace_id`, and only when the
384
+ * call didn't already name a workspace. The programmatic
385
+ * {@link executeCommand} seam (in-chat dispatcher / MCP) never sets it.
386
+ */
387
+ readonly defaultWorkspaceRef?: string;
361
388
  }
362
389
  interface ExecuteResult {
363
390
  readonly ok: boolean;
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { VERB_OVERRIDES, autoMode, commandsForResource, createFetchTransport, execute, executeCommand, findCommand, getResourcePlaybook, listCommands, listResources, mapArgsToV1, parseInvocation, reconcileToV1, render, renderHelp, renderInstructions, resolveCommand, toSnakeKey } from './chunk-3CWHRMLZ.js';
1
+ export { VERB_OVERRIDES, autoMode, commandsForResource, createFetchTransport, execute, executeCommand, findCommand, getResourcePlaybook, listCommands, listResources, mapArgsToV1, parseInvocation, reconcileToV1, render, renderHelp, renderInstructions, resolveCommand, toSnakeKey } from './chunk-CZEBGFAQ.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idapt/cli",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "The idapt CLI — the `idapt <resource> <verb>` grammar, command→REST translation, help/instructions, output formatting, SOTA auth (OAuth 2.1 + PKCE / device-code / API-key) and self-update, over the public v1 API. One implementation shared by the in-chat dispatcher, MCP, and the `idapt` CLI binary.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://idapt.app/cli",