@ai-matrx/desktop-protocol 0.3.0 → 0.4.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/CHANGELOG.md +14 -0
- package/dist/client.cjs +17 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +17 -1
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -2
- package/dist/index.d.ts +36 -2
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/react.d.cts +13 -0
- package/dist/react.d.ts +13 -0
- package/dist/{registry-DQ5_mP_5.d.cts → registry-CI-NpQ6L.d.cts} +78 -1
- package/dist/{registry-DQ5_mP_5.d.ts → registry-CI-NpQ6L.d.ts} +78 -1
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, C as ClientType } from './registry-
|
|
5
|
-
export { i as isDesktopProtocolError } from './registry-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, C as ClientType } from './registry-CI-NpQ6L.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './registry-CI-NpQ6L.cjs';
|
|
6
6
|
import { FrameHeader } from './frame.cjs';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, C as ClientType } from './registry-
|
|
5
|
-
export { i as isDesktopProtocolError } from './registry-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, C as ClientType } from './registry-CI-NpQ6L.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './registry-CI-NpQ6L.js';
|
|
6
6
|
import { FrameHeader } from './frame.js';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.js
CHANGED
|
@@ -154,6 +154,7 @@ var ErrorReason = z2.enum([
|
|
|
154
154
|
// another client of the same user took control
|
|
155
155
|
"window_exhausted"
|
|
156
156
|
]);
|
|
157
|
+
var FsPatchEditFailure = z2.strictObject({ edit_index: nonNegInt, reason: z2.string().max(300) });
|
|
157
158
|
var ProtocolErrorBody = z2.strictObject({
|
|
158
159
|
code: ErrorCode,
|
|
159
160
|
message: z2.string().max(300),
|
|
@@ -168,6 +169,8 @@ var ProtocolErrorBody = z2.strictObject({
|
|
|
168
169
|
// PERMISSION_DENIED_OS deep link
|
|
169
170
|
retry_after_ms: nonNegInt.optional(),
|
|
170
171
|
limit_bytes: nonNegInt.optional(),
|
|
172
|
+
/** fs.patch when every edit failed (CONFLICT, patch_no_match / patch_ambiguous): the daemon's 422 `failures`. */
|
|
173
|
+
edits_failed: z2.array(FsPatchEditFailure).max(256).optional(),
|
|
171
174
|
upgrade: z2.strictObject({
|
|
172
175
|
min_version: ProtocolVersion,
|
|
173
176
|
max_version: ProtocolVersion,
|
|
@@ -459,7 +462,20 @@ var FsPatchParams = z6.strictObject({
|
|
|
459
462
|
).min(1).max(256),
|
|
460
463
|
create_if_missing: z6.boolean().default(false)
|
|
461
464
|
});
|
|
462
|
-
var
|
|
465
|
+
var FsPatchEditApplied = z6.strictObject({
|
|
466
|
+
edit_index: nonNegInt,
|
|
467
|
+
mode: z6.enum(["create", "replace", "replace_all"]),
|
|
468
|
+
/** Present for replace_all only, as the daemon sends it. */
|
|
469
|
+
matches_replaced: nonNegInt.optional()
|
|
470
|
+
});
|
|
471
|
+
var FsPatchResult = z6.strictObject({
|
|
472
|
+
path: AbsPath,
|
|
473
|
+
applied: nonNegInt,
|
|
474
|
+
size: nonNegInt,
|
|
475
|
+
mtime_ms: epochMs,
|
|
476
|
+
edits_applied: z6.array(FsPatchEditApplied).max(256),
|
|
477
|
+
edits_failed: z6.array(FsPatchEditFailure).max(256)
|
|
478
|
+
});
|
|
463
479
|
var FsSearchPathsParams = z6.strictObject({
|
|
464
480
|
pattern: z6.string().min(1).max(512),
|
|
465
481
|
cwd: AbsPath,
|