@idapt/cli 1.12.0 → 1.14.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/bin.cjs +23949 -20232
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +222 -79
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-GISKSK4V.js → chunk-OE6HNBY2.js} +23755 -20180
- package/dist/chunk-OE6HNBY2.js.map +1 -0
- package/dist/index.cjs +23753 -20178
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-GISKSK4V.js.map +0 -1
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
|
/**
|
|
@@ -366,6 +385,21 @@ interface ExecuteOptions {
|
|
|
366
385
|
* {@link executeCommand} seam (in-chat dispatcher / MCP) never sets it.
|
|
367
386
|
*/
|
|
368
387
|
readonly defaultWorkspaceRef?: string;
|
|
388
|
+
/**
|
|
389
|
+
* CLI ambient acting AGENT (resourceId | name) from `idapt agent use` or a
|
|
390
|
+
* per-call `--agent`. Injected as `agent_id` on `chat create` ONLY (that verb
|
|
391
|
+
* binds the acting agent; blanket `agent_id` injection would mis-scope
|
|
392
|
+
* `chat send`'s `sender_agent_id`, agent-CRUD filters, etc.), and only on the
|
|
393
|
+
* CLI-string path. An explicit `--agent-id`/positional still wins.
|
|
394
|
+
*/
|
|
395
|
+
readonly defaultAgentRef?: string;
|
|
396
|
+
/**
|
|
397
|
+
* The selected agent's Memory box resourceId (from `idapt agent use`). Injected
|
|
398
|
+
* as the `:id` of `memory` verbs that address a box, when the call didn't name
|
|
399
|
+
* one — the client-side twin of the in-run dispatcher's box auto-injection, so
|
|
400
|
+
* `idapt memory …` reads/writes the selected agent's Memory.
|
|
401
|
+
*/
|
|
402
|
+
readonly defaultAgentMemoryBoxId?: string;
|
|
369
403
|
}
|
|
370
404
|
interface ExecuteResult {
|
|
371
405
|
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
|
/**
|
|
@@ -366,6 +385,21 @@ interface ExecuteOptions {
|
|
|
366
385
|
* {@link executeCommand} seam (in-chat dispatcher / MCP) never sets it.
|
|
367
386
|
*/
|
|
368
387
|
readonly defaultWorkspaceRef?: string;
|
|
388
|
+
/**
|
|
389
|
+
* CLI ambient acting AGENT (resourceId | name) from `idapt agent use` or a
|
|
390
|
+
* per-call `--agent`. Injected as `agent_id` on `chat create` ONLY (that verb
|
|
391
|
+
* binds the acting agent; blanket `agent_id` injection would mis-scope
|
|
392
|
+
* `chat send`'s `sender_agent_id`, agent-CRUD filters, etc.), and only on the
|
|
393
|
+
* CLI-string path. An explicit `--agent-id`/positional still wins.
|
|
394
|
+
*/
|
|
395
|
+
readonly defaultAgentRef?: string;
|
|
396
|
+
/**
|
|
397
|
+
* The selected agent's Memory box resourceId (from `idapt agent use`). Injected
|
|
398
|
+
* as the `:id` of `memory` verbs that address a box, when the call didn't name
|
|
399
|
+
* one — the client-side twin of the in-run dispatcher's box auto-injection, so
|
|
400
|
+
* `idapt memory …` reads/writes the selected agent's Memory.
|
|
401
|
+
*/
|
|
402
|
+
readonly defaultAgentMemoryBoxId?: string;
|
|
369
403
|
}
|
|
370
404
|
interface ExecuteResult {
|
|
371
405
|
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-
|
|
1
|
+
export { VERB_OVERRIDES, autoMode, commandsForResource, createFetchTransport, execute, executeCommand, findCommand, getResourcePlaybook, listCommands, listResources, mapArgsToV1, parseInvocation, reconcileToV1, render, renderHelp, renderInstructions, resolveCommand, toSnakeKey } from './chunk-OE6HNBY2.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.
|
|
3
|
+
"version": "1.14.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",
|