@openllmsh/sdk 2.10.16-alpha.2 → 2.10.16
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/protocol/agent.d.ts +25 -0
- package/dist/protocol/agent.js +10 -0
- package/package.json +1 -1
package/dist/protocol/agent.d.ts
CHANGED
|
@@ -219,6 +219,11 @@ export declare const AgentSendCommand: S.Struct<{
|
|
|
219
219
|
/** Absolute path on the device, admitted on any transport. */
|
|
220
220
|
readonly path: S.optional<S.String>;
|
|
221
221
|
}>>>;
|
|
222
|
+
/**
|
|
223
|
+
* Mid-turn: queue this prompt and send now (Claude's ctrl+enter), as one
|
|
224
|
+
* command — so a refused send never interrupts for an older queued one.
|
|
225
|
+
*/
|
|
226
|
+
readonly send_now: S.optional<S.Boolean>;
|
|
222
227
|
}>;
|
|
223
228
|
export type TAgentSendCommand = S.Schema.Type<typeof AgentSendCommand>;
|
|
224
229
|
/**
|
|
@@ -404,6 +409,11 @@ export declare const AgentCommand: S.Union<readonly [S.Struct<{
|
|
|
404
409
|
/** Absolute path on the device, admitted on any transport. */
|
|
405
410
|
readonly path: S.optional<S.String>;
|
|
406
411
|
}>>>;
|
|
412
|
+
/**
|
|
413
|
+
* Mid-turn: queue this prompt and send now (Claude's ctrl+enter), as one
|
|
414
|
+
* command — so a refused send never interrupts for an older queued one.
|
|
415
|
+
*/
|
|
416
|
+
readonly send_now: S.optional<S.Boolean>;
|
|
407
417
|
}>, S.Struct<{
|
|
408
418
|
readonly type: S.Literal<"attachment_put">;
|
|
409
419
|
readonly id: S.optional<S.String>;
|
|
@@ -581,6 +591,11 @@ export declare const AgentQueuedPrompt: S.Struct<{
|
|
|
581
591
|
/** Clipped preview, never the complete prompt. */
|
|
582
592
|
readonly prompt: S.String;
|
|
583
593
|
readonly attachment_count: S.Number;
|
|
594
|
+
/**
|
|
595
|
+
* Handed to the engine's own queue (Claude folds it in at the next tool
|
|
596
|
+
* boundary): no longer cancellable, but Send now still applies to it.
|
|
597
|
+
*/
|
|
598
|
+
readonly in_engine: S.optional<S.Boolean>;
|
|
584
599
|
}>;
|
|
585
600
|
export type TAgentQueuedPrompt = S.Schema.Type<typeof AgentQueuedPrompt>;
|
|
586
601
|
export declare const AgentQueueUpdatedEvent: S.Struct<{
|
|
@@ -603,6 +618,11 @@ export declare const AgentQueueUpdatedEvent: S.Struct<{
|
|
|
603
618
|
/** Clipped preview, never the complete prompt. */
|
|
604
619
|
readonly prompt: S.String;
|
|
605
620
|
readonly attachment_count: S.Number;
|
|
621
|
+
/**
|
|
622
|
+
* Handed to the engine's own queue (Claude folds it in at the next tool
|
|
623
|
+
* boundary): no longer cancellable, but Send now still applies to it.
|
|
624
|
+
*/
|
|
625
|
+
readonly in_engine: S.optional<S.Boolean>;
|
|
606
626
|
}>, S.String]>>;
|
|
607
627
|
/** An interrupt pauses automatic draining until `resume_queue`. */
|
|
608
628
|
readonly held: S.optional<S.Boolean>;
|
|
@@ -1185,6 +1205,11 @@ export declare const AgentEvent: S.Union<readonly [S.Struct<{
|
|
|
1185
1205
|
/** Clipped preview, never the complete prompt. */
|
|
1186
1206
|
readonly prompt: S.String;
|
|
1187
1207
|
readonly attachment_count: S.Number;
|
|
1208
|
+
/**
|
|
1209
|
+
* Handed to the engine's own queue (Claude folds it in at the next tool
|
|
1210
|
+
* boundary): no longer cancellable, but Send now still applies to it.
|
|
1211
|
+
*/
|
|
1212
|
+
readonly in_engine: S.optional<S.Boolean>;
|
|
1188
1213
|
}>, S.String]>>;
|
|
1189
1214
|
/** An interrupt pauses automatic draining until `resume_queue`. */
|
|
1190
1215
|
readonly held: S.optional<S.Boolean>;
|
package/dist/protocol/agent.js
CHANGED
|
@@ -247,6 +247,11 @@ export const AgentSendCommand = S.Struct({
|
|
|
247
247
|
id: S.optional(AgentCommandId),
|
|
248
248
|
prompt: S.String.check(S.isMaxLength(AGENT_MAX_PROMPT_LENGTH)),
|
|
249
249
|
attachments: S.optional(S.Array(AgentAttachment).check(S.isMaxLength(AGENT_MAX_ATTACHMENTS))),
|
|
250
|
+
/**
|
|
251
|
+
* Mid-turn: queue this prompt and send now (Claude's ctrl+enter), as one
|
|
252
|
+
* command — so a refused send never interrupts for an older queued one.
|
|
253
|
+
*/
|
|
254
|
+
send_now: S.optional(S.Boolean),
|
|
250
255
|
}).check(S.makeFilter((command) => lineEncoder.encode(`${JSON.stringify(command)}\n`).byteLength <=
|
|
251
256
|
AGENT_MAX_LINE_BYTES, { message: "send command exceeds the agent line size bound" }));
|
|
252
257
|
/**
|
|
@@ -497,6 +502,11 @@ export const AgentQueuedPrompt = S.Struct({
|
|
|
497
502
|
/** Clipped preview, never the complete prompt. */
|
|
498
503
|
prompt: ShortText,
|
|
499
504
|
attachment_count: S.Number.check(S.isInt(), S.isGreaterThanOrEqualTo(0), S.isLessThanOrEqualTo(AGENT_MAX_ATTACHMENTS)),
|
|
505
|
+
/**
|
|
506
|
+
* Handed to the engine's own queue (Claude folds it in at the next tool
|
|
507
|
+
* boundary): no longer cancellable, but Send now still applies to it.
|
|
508
|
+
*/
|
|
509
|
+
in_engine: S.optional(S.Boolean),
|
|
500
510
|
});
|
|
501
511
|
export const AgentQueueUpdatedEvent = S.Struct({
|
|
502
512
|
...eventBase,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openllmsh/sdk",
|
|
3
|
-
"version": "2.10.16
|
|
3
|
+
"version": "2.10.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The OpenLLM SDK: typed API contracts, wire-format adapters, the device tunnel, client-side vault crypto, the OpenAPI spec and MCP tools.",
|
|
6
6
|
"keywords": [
|