@openllmsh/sdk 2.10.15-alpha.7 → 2.10.15-alpha.8

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.
@@ -107,8 +107,9 @@ export declare const AgentStreamOpenPayload: S.Struct<{
107
107
  export type TAgentStreamOpenPayload = S.Schema.Type<typeof AgentStreamOpenPayload>;
108
108
  /**
109
109
  * One attachment on `send`. Exactly one of `data` (base64, any transport) or
110
- * `path` (absolute local file, loopback agent socket only — the daemon rejects
111
- * `path` on mux/RTC). Both together are refused (same XOR pattern as
110
+ * `path` (an absolute file on the device, sent as a prompt mention on any
111
+ * transport; only the loopback socket reads its bytes back). Both together
112
+ * are refused (same XOR pattern as
112
113
  * {@link AgentRespondCommand}).
113
114
  */
114
115
  export declare const AgentAttachment: S.Struct<{
@@ -117,7 +118,7 @@ export declare const AgentAttachment: S.Struct<{
117
118
  readonly media_type: S.String;
118
119
  /** Base64 bytes. Mutually exclusive with {@link path}. */
119
120
  readonly data: S.optional<S.String>;
120
- /** Absolute local path; admitted only on the desktop loopback agent socket. */
121
+ /** Absolute path on the device: a prompt mention, admitted on any transport. */
121
122
  readonly path: S.optional<S.String>;
122
123
  }>;
123
124
  export type TAgentAttachment = S.Schema.Type<typeof AgentAttachment>;
@@ -209,7 +210,7 @@ export declare const AgentSendCommand: S.Struct<{
209
210
  readonly media_type: S.String;
210
211
  /** Base64 bytes. Mutually exclusive with {@link path}. */
211
212
  readonly data: S.optional<S.String>;
212
- /** Absolute local path; admitted only on the desktop loopback agent socket. */
213
+ /** Absolute path on the device: a prompt mention, admitted on any transport. */
213
214
  readonly path: S.optional<S.String>;
214
215
  }>>>;
215
216
  }>;
@@ -371,7 +372,7 @@ export declare const AgentCommand: S.Union<readonly [S.Struct<{
371
372
  readonly media_type: S.String;
372
373
  /** Base64 bytes. Mutually exclusive with {@link path}. */
373
374
  readonly data: S.optional<S.String>;
374
- /** Absolute local path; admitted only on the desktop loopback agent socket. */
375
+ /** Absolute path on the device: a prompt mention, admitted on any transport. */
375
376
  readonly path: S.optional<S.String>;
376
377
  }>>>;
377
378
  }>, S.Struct<{
@@ -127,8 +127,9 @@ export const AgentStreamOpenPayload = S.Struct({
127
127
  // ---------------------------------------------------------------------------
128
128
  /**
129
129
  * One attachment on `send`. Exactly one of `data` (base64, any transport) or
130
- * `path` (absolute local file, loopback agent socket only — the daemon rejects
131
- * `path` on mux/RTC). Both together are refused (same XOR pattern as
130
+ * `path` (an absolute file on the device, sent as a prompt mention on any
131
+ * transport; only the loopback socket reads its bytes back). Both together
132
+ * are refused (same XOR pattern as
132
133
  * {@link AgentRespondCommand}).
133
134
  */
134
135
  export const AgentAttachment = S.Struct({
@@ -137,7 +138,7 @@ export const AgentAttachment = S.Struct({
137
138
  media_type: S.String.check(S.isMinLength(1), S.isMaxLength(128)),
138
139
  /** Base64 bytes. Mutually exclusive with {@link path}. */
139
140
  data: S.optional(S.String.check(S.isMaxLength(AGENT_MAX_ATTACHMENT_BASE64_LENGTH))),
140
- /** Absolute local path; admitted only on the desktop loopback agent socket. */
141
+ /** Absolute path on the device: a prompt mention, admitted on any transport. */
141
142
  path: S.optional(S.String.check(S.isMinLength(1), S.isMaxLength(AGENT_MAX_ATTACHMENT_PATH_LENGTH))),
142
143
  }).check(S.makeFilter((attachment) => (attachment.data === undefined) !== (attachment.path === undefined), {
143
144
  message: "attachment carries exactly one of data / path",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openllmsh/sdk",
3
- "version": "2.10.15-alpha.7",
3
+ "version": "2.10.15-alpha.8",
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": [