@nyte-ai/schema 0.0.24 → 0.0.25-nightly.20261025.2
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/THIRD-PARTY-NOTICES.md +13 -5
- package/dist/chunks/{browser-bg1esaw0.js → browser-33tkdpyt.js} +3 -1
- package/dist/chunks/{browser-fnanbp6m.js → browser-5d4b93z0.js} +13 -5
- package/dist/chunks/{browser-8ancsy4m.js → browser-687z1792.js} +1 -1
- package/dist/chunks/{browser-t5xqtqzh.js → browser-772jascc.js} +1 -1
- package/dist/chunks/{browser-0chm3654.js → browser-82qzgxz4.js} +13 -2
- package/dist/chunks/{browser-xensz05x.js → browser-a2fneqk0.js} +4 -4
- package/dist/chunks/{browser-qncc807c.js → browser-b1pzvhs6.js} +1 -1
- package/dist/chunks/{browser-ay8k1s1m.js → browser-bc2qzchx.js} +5 -5
- package/dist/chunks/{browser-h5k4hqfq.js → browser-c3qng9c0.js} +4 -4
- package/dist/chunks/{browser-xk4psyrx.js → browser-g63zm094.js} +1 -1
- package/dist/chunks/{browser-gzn951k8.js → browser-gvr7sjqk.js} +41 -6
- package/dist/chunks/{browser-40enyw9r.js → browser-jyrqtmaz.js} +2 -1
- package/dist/chunks/{browser-hq5q56sf.js → browser-wqkhghw2.js} +15 -7
- package/dist/chunks/{browser-etfrcxhb.js → browser-y40pk6zb.js} +3 -3
- package/dist/chunks/{browser-fe66aj8v.js → browser-ytzehszf.js} +30 -12
- package/dist/chunks/{browser-s2xe7c21.js → browser-zn6g4y57.js} +3 -3
- package/dist/src/connection.js +7 -7
- package/dist/src/events.d.ts +110 -110
- package/dist/src/events.js +7 -7
- package/dist/src/heads.d.ts +20 -0
- package/dist/src/heads.js +8 -2
- package/dist/src/hooks.js +2 -2
- package/dist/src/ids.d.ts +1 -2
- package/dist/src/index.js +28 -16
- package/dist/src/jobs.d.ts +8 -0
- package/dist/src/jobs.js +1 -1
- package/dist/src/mcp.d.ts +12 -10
- package/dist/src/messages.d.ts +8 -0
- package/dist/src/messages.js +4 -2
- package/dist/src/parts.d.ts +40 -40
- package/dist/src/parts.js +3 -3
- package/dist/src/runs.d.ts +12 -12
- package/dist/src/runs.js +2 -2
- package/dist/src/sessions.d.ts +10 -10
- package/dist/src/sessions.js +5 -5
- package/dist/src/store.d.ts +53 -53
- package/dist/src/store.js +8 -8
- package/dist/src/views.d.ts +505 -173
- package/dist/src/views.js +7 -7
- package/dist/src/wire/operations/browser.d.ts +119 -119
- package/dist/src/wire/operations/fields.d.ts +6 -6
- package/dist/src/wire/operations/files.d.ts +52 -52
- package/dist/src/wire/operations/git.d.ts +121 -121
- package/dist/src/wire/operations/github.d.ts +34 -34
- package/dist/src/wire/operations/host.d.ts +306 -296
- package/dist/src/wire/operations/host.js +10 -10
- package/dist/src/wire/operations/index.d.ts +4781 -4358
- package/dist/src/wire/operations/index.js +13 -13
- package/dist/src/wire/operations/session.d.ts +2511 -2103
- package/dist/src/wire/operations/session.js +9 -9
- package/dist/src/wire/operations/workspace.d.ts +249 -244
- package/dist/src/wire/operations/workspace.js +6 -6
- package/dist/src/workspaces.d.ts +5 -0
- package/dist/src/workspaces.js +5 -1
- package/package.json +2 -3
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -55,6 +55,11 @@ SOFTWARE.
|
|
|
55
55
|
`@earendil-works/pi-codemode` 1.0.0 supply the MCP client and QuickJS
|
|
56
56
|
executor. Tool discovery and code-mode integration are adapted from commit
|
|
57
57
|
`86dfceec402ad77e563bf4feab5f26c42d5f5db6`.
|
|
58
|
+
- BM25 tool search (`tool_search`, `searchTools()`), tool namespaces with
|
|
59
|
+
`describeNamespace()`, the budgeted codemode listing and the one-line MCP
|
|
60
|
+
server summary (`packages/plugin/src/tool-search.ts`,
|
|
61
|
+
`packages/plugin/src/codemode.ts`, `packages/core/src/builtins/mcp.ts`) are
|
|
62
|
+
ported from commit `d5b3de22d0e24a3e9c38a9410d3329b099717283`.
|
|
58
63
|
- Transcript reconciliation, checkpoint instruction snapshots, provider system
|
|
59
64
|
updates, and cache warming are ported from the 1.0.0 release commit
|
|
60
65
|
`a13d35a742c6ef8462812a28fbe1d8c8b7431c32`.
|
|
@@ -312,11 +317,14 @@ Copyright 2025 OpenAI
|
|
|
312
317
|
front of the queue (`packages/tui/src/model/interactions.ts`) is its
|
|
313
318
|
`onEmptySubmit`. The rename
|
|
314
319
|
plugin's context construction, prompt, model fallback, and output cleanup
|
|
315
|
-
(`packages/plugin/src/rename.ts`) port OpenCode v2. The web
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
+
(`packages/plugin/src/rename.ts`) port OpenCode v2. The web plugin
|
|
321
|
+
(`packages/plugin/src/web/`) ports OpenCode v2's web search and fetch tools:
|
|
322
|
+
the search provider registry any plugin can add to (`searchProviders` in
|
|
323
|
+
`packages/core/src/contract/plugin.ts`), its Exa, Firecrawl, Parallel, and
|
|
324
|
+
Tavily adapters, their stateless MCP `tools/call` transport and response
|
|
325
|
+
bounds, the result and error vocabulary, `web_fetch`'s Accept headers,
|
|
326
|
+
Cloudflare-challenge retry and size limits, and the streaming HTML-to-Markdown
|
|
327
|
+
and HTML-to-text converters (`packages/plugin/src/web/html-markdown.ts`).
|
|
320
328
|
- Core's ripgrep resolver and search adapter (`packages/core/src/ripgrep.ts`,
|
|
321
329
|
`packages/core/src/ripgrep/binary.ts`) and filename search
|
|
322
330
|
(`packages/core/src/file-search.ts`) adapt OpenCode v2's core implementation.
|
|
@@ -44,6 +44,7 @@ var ForgetOutcomeType2 = Type.Union([
|
|
|
44
44
|
Type.Object({ kind: Type.Literal("busy"), sessions: Type.Array(idSchema2()) }),
|
|
45
45
|
Type.Object({ kind: Type.Literal("missing") })
|
|
46
46
|
]);
|
|
47
|
+
var WorktreeCleanupType2 = Type.Object({ cleaned: Type.Number() });
|
|
47
48
|
var WorkspaceInspectionType2 = Type.Object({
|
|
48
49
|
target: WorkspaceTargetType2,
|
|
49
50
|
identity: idSchema2(),
|
|
@@ -76,7 +77,8 @@ var WorkspaceTargetSchema2 = standard2(withJson2(WorkspaceTargetType2));
|
|
|
76
77
|
var ActivationSchema2 = standard2(ActivationType2);
|
|
77
78
|
var AddOutcomeSchema2 = standard2(AddOutcomeType2);
|
|
78
79
|
var ForgetOutcomeSchema2 = standard2(ForgetOutcomeType2);
|
|
80
|
+
var WorktreeCleanupSchema2 = standard2(WorktreeCleanupType2);
|
|
79
81
|
var WorkspaceInspectionSchema2 = standard2(withJson2(WorkspaceInspectionType2));
|
|
80
82
|
var WorkspaceInfoSchema2 = standard2(withJson2(WorkspaceInfoType2));
|
|
81
83
|
|
|
82
|
-
export { AvailabilityType2, WorkspaceTargetType2, ActivationType2, AddOutcomeType2, ForgetOutcomeType2, WorkspaceInspectionType2, WorktreeIsolationType2, WorkspaceInfoType2, AvailabilitySchema2, WorkspaceTargetSchema2, ActivationSchema2, AddOutcomeSchema2, ForgetOutcomeSchema2, WorkspaceInspectionSchema2, WorkspaceInfoSchema2 };
|
|
84
|
+
export { AvailabilityType2, WorkspaceTargetType2, ActivationType2, AddOutcomeType2, ForgetOutcomeType2, WorktreeCleanupType2, WorkspaceInspectionType2, WorktreeIsolationType2, WorkspaceInfoType2, AvailabilitySchema2, WorkspaceTargetSchema2, ActivationSchema2, AddOutcomeSchema2, ForgetOutcomeSchema2, WorktreeCleanupSchema2, WorkspaceInspectionSchema2, WorkspaceInfoSchema2 };
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./browser-ynj8v9ad.js";
|
|
19
19
|
import {
|
|
20
20
|
UserContentType2
|
|
21
|
-
} from "./browser-
|
|
21
|
+
} from "./browser-wqkhghw2.js";
|
|
22
22
|
import {
|
|
23
23
|
AuthorityType2,
|
|
24
24
|
PrincipalViewWireType2,
|
|
@@ -30,15 +30,16 @@ import {
|
|
|
30
30
|
WorkspaceInfoType2,
|
|
31
31
|
AddOutcomeSchema2,
|
|
32
32
|
ForgetOutcomeSchema2,
|
|
33
|
+
WorktreeCleanupSchema2,
|
|
33
34
|
WorkspaceInspectionSchema2
|
|
34
|
-
} from "./browser-
|
|
35
|
+
} from "./browser-33tkdpyt.js";
|
|
35
36
|
import {
|
|
36
37
|
SessionInfoType2
|
|
37
|
-
} from "./browser-
|
|
38
|
+
} from "./browser-a2fneqk0.js";
|
|
38
39
|
import {
|
|
39
40
|
HostViewWireSchema2,
|
|
40
41
|
SettingOutcomeSchema2
|
|
41
|
-
} from "./browser-
|
|
42
|
+
} from "./browser-zn6g4y57.js";
|
|
42
43
|
import {
|
|
43
44
|
PromptOverrideType2
|
|
44
45
|
} from "./browser-j629a6wa.js";
|
|
@@ -48,7 +49,7 @@ import {
|
|
|
48
49
|
} from "./browser-0byq2fja.js";
|
|
49
50
|
import {
|
|
50
51
|
SessionsFrameType2
|
|
51
|
-
} from "./browser-
|
|
52
|
+
} from "./browser-ytzehszf.js";
|
|
52
53
|
import {
|
|
53
54
|
wireSchema2,
|
|
54
55
|
wireObject2,
|
|
@@ -211,6 +212,12 @@ var HOST_OPERATIONS2 = {
|
|
|
211
212
|
input: wireObject2({ id: idSchema2() }),
|
|
212
213
|
output: ForgetOutcomeSchema2
|
|
213
214
|
},
|
|
215
|
+
"workspaces.cleanWorktrees": {
|
|
216
|
+
...OWNER,
|
|
217
|
+
kind: "command",
|
|
218
|
+
input: NO_INPUT,
|
|
219
|
+
output: WorktreeCleanupSchema2
|
|
220
|
+
},
|
|
214
221
|
"sessions.watch": {
|
|
215
222
|
...PARTICIPANT,
|
|
216
223
|
kind: "watch",
|
|
@@ -232,6 +239,7 @@ var HOST_OPERATIONS2 = {
|
|
|
232
239
|
configuration: Type.Optional(Type.Union([ConfigurationType2, ConfigurationPatchType2])),
|
|
233
240
|
prompt: Type.Optional(PromptOverrideType2),
|
|
234
241
|
isolation: Type.Optional(Type.Literal("worktree")),
|
|
242
|
+
contextFiles: Type.Optional(Type.Literal(false)),
|
|
235
243
|
content: UserContentType2
|
|
236
244
|
}),
|
|
237
245
|
output: wireObject2({
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
UserContentType2,
|
|
26
26
|
PositionType2,
|
|
27
27
|
MessageSourceType2
|
|
28
|
-
} from "./browser-
|
|
28
|
+
} from "./browser-wqkhghw2.js";
|
|
29
29
|
|
|
30
30
|
// src/heads.ts
|
|
31
31
|
import { Type } from "typebox";
|
|
@@ -83,6 +83,17 @@ var MoveOutcomeType2 = Type.Union([
|
|
|
83
83
|
Type.Object({ kind: Type.Literal("missing-target") }),
|
|
84
84
|
Type.Object({ kind: Type.Literal("summary-failed"), reason: Type.String() })
|
|
85
85
|
]);
|
|
86
|
+
var HoldLeaseType2 = Type.Union([
|
|
87
|
+
Type.Object({ kind: Type.Literal("held") }),
|
|
88
|
+
Type.Object({ kind: Type.Literal("sent") }),
|
|
89
|
+
Type.Object({ kind: Type.Literal("missing") })
|
|
90
|
+
]);
|
|
91
|
+
var ReviseOptionsType2 = Type.Object({ delivery: Type.Optional(DeliveryType2) });
|
|
92
|
+
var ReviseOutcomeType2 = Type.Union([
|
|
93
|
+
Type.Object({ kind: Type.Literal("revised") }),
|
|
94
|
+
Type.Object({ kind: Type.Literal("sent") }),
|
|
95
|
+
Type.Object({ kind: Type.Literal("missing") })
|
|
96
|
+
]);
|
|
86
97
|
var MoveOptionsType2 = Type.Object({
|
|
87
98
|
running: Type.Optional(Type.Enum(["refuse", "stop"])),
|
|
88
99
|
abandoned: Type.Optional(ABANDONED),
|
|
@@ -122,4 +133,4 @@ var MoveOptionsSchema2 = standard2(MoveOptionsType2);
|
|
|
122
133
|
var SendOptionsSchema2 = standard2(withJson2(SendOptionsType2));
|
|
123
134
|
var ConfigureOutcomeSchema2 = standard2(withJson2(ConfigureOutcomeType2));
|
|
124
135
|
|
|
125
|
-
export { TreeNodeType2, TreeViewType2, CreateHeadOutcomeType2, MergeOutcomeType2, RemoveHeadOutcomeType2, MoveOutcomeType2, MoveOptionsType2, SendOptionsType2, ConfigureOutcomeType2, TreeNodeSchema2, TreeViewSchema2, CreateHeadOutcomeSchema2, MergeOutcomeSchema2, RemoveHeadOutcomeSchema2, MoveOutcomeSchema2, MoveOptionsSchema2, SendOptionsSchema2, ConfigureOutcomeSchema2 };
|
|
136
|
+
export { TreeNodeType2, TreeViewType2, CreateHeadOutcomeType2, MergeOutcomeType2, RemoveHeadOutcomeType2, MoveOutcomeType2, HoldLeaseType2, ReviseOptionsType2, ReviseOutcomeType2, MoveOptionsType2, SendOptionsType2, ConfigureOutcomeType2, TreeNodeSchema2, TreeViewSchema2, CreateHeadOutcomeSchema2, MergeOutcomeSchema2, RemoveHeadOutcomeSchema2, MoveOutcomeSchema2, MoveOptionsSchema2, SendOptionsSchema2, ConfigureOutcomeSchema2 };
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
UserContentType2,
|
|
14
14
|
PositionType2
|
|
15
|
-
} from "./browser-
|
|
15
|
+
} from "./browser-wqkhghw2.js";
|
|
16
16
|
import {
|
|
17
17
|
nullable2
|
|
18
18
|
} from "./browser-4et7qtz3.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
} from "./browser-0sbkxgkx.js";
|
|
22
22
|
import {
|
|
23
23
|
ExecutionType2
|
|
24
|
-
} from "./browser-
|
|
24
|
+
} from "./browser-687z1792.js";
|
|
25
25
|
import {
|
|
26
26
|
ActivationType2
|
|
27
|
-
} from "./browser-
|
|
27
|
+
} from "./browser-33tkdpyt.js";
|
|
28
28
|
|
|
29
29
|
// src/sessions.ts
|
|
30
30
|
import { Type } from "typebox";
|
|
@@ -120,7 +120,7 @@ var ToolInfoType2 = Type.Object({
|
|
|
120
120
|
description: Type.String(),
|
|
121
121
|
parameters: JsonObjectType2,
|
|
122
122
|
output: nullable2(JsonObjectType2),
|
|
123
|
-
exposure: Type.Enum(["model", "deferred", "code", "hidden"])
|
|
123
|
+
exposure: Type.Enum(["model", "model-only", "deferred", "code", "hidden"])
|
|
124
124
|
});
|
|
125
125
|
var SessionCatalogViewType2 = Type.Object({
|
|
126
126
|
commands: Type.Array(CommandInfoType2),
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
UserContentType2,
|
|
31
31
|
MessageSourceType2,
|
|
32
32
|
ScheduleType2
|
|
33
|
-
} from "./browser-
|
|
33
|
+
} from "./browser-wqkhghw2.js";
|
|
34
34
|
import {
|
|
35
35
|
RunViewType2,
|
|
36
36
|
RunEndType2,
|
|
37
37
|
WaitTargetType2,
|
|
38
38
|
BackgroundItemType2
|
|
39
|
-
} from "./browser-
|
|
39
|
+
} from "./browser-687z1792.js";
|
|
40
40
|
import {
|
|
41
41
|
ToolOutcomeType2,
|
|
42
42
|
ToolProgressType2
|
|
@@ -44,14 +44,14 @@ import {
|
|
|
44
44
|
import {
|
|
45
45
|
PlacementType2,
|
|
46
46
|
ToolChangesType2
|
|
47
|
-
} from "./browser-
|
|
47
|
+
} from "./browser-772jascc.js";
|
|
48
48
|
import {
|
|
49
49
|
ActivationType2
|
|
50
|
-
} from "./browser-
|
|
50
|
+
} from "./browser-33tkdpyt.js";
|
|
51
51
|
import {
|
|
52
52
|
SessionInfoType2,
|
|
53
53
|
SessionCatalogViewType2
|
|
54
|
-
} from "./browser-
|
|
54
|
+
} from "./browser-a2fneqk0.js";
|
|
55
55
|
|
|
56
56
|
// src/events.ts
|
|
57
57
|
import { Type } from "typebox";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
JobsChangeType2,
|
|
17
17
|
JobEndSchema2,
|
|
18
18
|
OutputFrameSchema2
|
|
19
|
-
} from "./browser-
|
|
19
|
+
} from "./browser-jyrqtmaz.js";
|
|
20
20
|
import {
|
|
21
21
|
McpServerConfigType2,
|
|
22
22
|
McpViewSchema2,
|
|
@@ -27,15 +27,15 @@ import {
|
|
|
27
27
|
} from "./browser-0byq2fja.js";
|
|
28
28
|
import {
|
|
29
29
|
stopOutcomeSchema2
|
|
30
|
-
} from "./browser-
|
|
30
|
+
} from "./browser-687z1792.js";
|
|
31
31
|
import {
|
|
32
32
|
WorkspaceInfoSchema2
|
|
33
|
-
} from "./browser-
|
|
33
|
+
} from "./browser-33tkdpyt.js";
|
|
34
34
|
import {
|
|
35
35
|
WorkspaceCatalogViewType2,
|
|
36
36
|
CommandCompletionsSchema2,
|
|
37
37
|
WorkspaceCommandOutcomeSchema2
|
|
38
|
-
} from "./browser-
|
|
38
|
+
} from "./browser-a2fneqk0.js";
|
|
39
39
|
import {
|
|
40
40
|
wireSchema2,
|
|
41
41
|
wireObject2,
|
|
@@ -17,9 +17,12 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
UserContentType2,
|
|
19
19
|
PositionType2
|
|
20
|
-
} from "./browser-
|
|
20
|
+
} from "./browser-wqkhghw2.js";
|
|
21
21
|
import {
|
|
22
22
|
MoveOutcomeType2,
|
|
23
|
+
HoldLeaseType2,
|
|
24
|
+
ReviseOptionsType2,
|
|
25
|
+
ReviseOutcomeType2,
|
|
23
26
|
MoveOptionsType2,
|
|
24
27
|
SendOptionsType2,
|
|
25
28
|
TreeViewSchema2,
|
|
@@ -27,30 +30,31 @@ import {
|
|
|
27
30
|
MergeOutcomeSchema2,
|
|
28
31
|
RemoveHeadOutcomeSchema2,
|
|
29
32
|
ConfigureOutcomeSchema2
|
|
30
|
-
} from "./browser-
|
|
33
|
+
} from "./browser-82qzgxz4.js";
|
|
31
34
|
import {
|
|
32
35
|
RunEndType2,
|
|
33
36
|
stopOutcomeSchema2,
|
|
34
37
|
RunEndSchema2
|
|
35
|
-
} from "./browser-
|
|
38
|
+
} from "./browser-687z1792.js";
|
|
36
39
|
import {
|
|
37
40
|
PlacementType2,
|
|
41
|
+
PartViewType2,
|
|
38
42
|
actOutcomeSchema2
|
|
39
|
-
} from "./browser-
|
|
43
|
+
} from "./browser-772jascc.js";
|
|
40
44
|
import {
|
|
41
45
|
SessionInfoSchema2,
|
|
42
46
|
CommandOutcomeSchema2,
|
|
43
47
|
CommandCompletionsSchema2,
|
|
44
48
|
UpdateOutcomeSchema2,
|
|
45
49
|
RemoveSessionOutcomeSchema2
|
|
46
|
-
} from "./browser-
|
|
50
|
+
} from "./browser-a2fneqk0.js";
|
|
47
51
|
import {
|
|
48
52
|
ViewOptionsType2,
|
|
49
53
|
UserStatusType2,
|
|
50
54
|
HistoryPageType2,
|
|
51
55
|
SessionViewSchema2,
|
|
52
56
|
ViewFrameSchema2
|
|
53
|
-
} from "./browser-
|
|
57
|
+
} from "./browser-ytzehszf.js";
|
|
54
58
|
import {
|
|
55
59
|
wireSchema2,
|
|
56
60
|
wireObject2,
|
|
@@ -68,6 +72,7 @@ var [, ...MOVE_FAILURES] = MoveOutcomeType2.anyOf;
|
|
|
68
72
|
var HEAD = { ...SESSION2, head: idSchema2() };
|
|
69
73
|
var PART = { ...SESSION2, part: idSchema2() };
|
|
70
74
|
var NAMED_HEAD = { ...SESSION2, name: idSchema2() };
|
|
75
|
+
var ON_MESSAGE = wireObject2({ ...HEAD, message: idSchema2() });
|
|
71
76
|
var ON_RUN = wireObject2({ ...SESSION2, run: idSchema2() });
|
|
72
77
|
var ON_RECEIPT = wireObject2({
|
|
73
78
|
session: nullable2(idSchema2()),
|
|
@@ -157,6 +162,12 @@ var SESSION_OPERATIONS2 = {
|
|
|
157
162
|
input: wireObject2({ ...HEAD, options: Type.Optional(ViewOptionsType2) }),
|
|
158
163
|
output: ViewFrameSchema2
|
|
159
164
|
},
|
|
165
|
+
"head.see": {
|
|
166
|
+
...PARTICIPANT,
|
|
167
|
+
kind: "command",
|
|
168
|
+
input: wireObject2({ ...HEAD, commit: idSchema2() }),
|
|
169
|
+
output: NOTHING2
|
|
170
|
+
},
|
|
160
171
|
"head.history": {
|
|
161
172
|
...PARTICIPANT,
|
|
162
173
|
kind: "query",
|
|
@@ -193,6 +204,24 @@ var SESSION_OPERATIONS2 = {
|
|
|
193
204
|
Type.Object({ kind: Type.Literal("nothing-to-compact") })
|
|
194
205
|
]))
|
|
195
206
|
},
|
|
207
|
+
"head.revise": {
|
|
208
|
+
...PARTICIPANT,
|
|
209
|
+
kind: "command",
|
|
210
|
+
input: wireObject2({
|
|
211
|
+
...HEAD,
|
|
212
|
+
message: idSchema2(),
|
|
213
|
+
content: UserContentType2,
|
|
214
|
+
options: Type.Optional(ReviseOptionsType2)
|
|
215
|
+
}),
|
|
216
|
+
output: wireSchema2(ReviseOutcomeType2)
|
|
217
|
+
},
|
|
218
|
+
"head.hold": {
|
|
219
|
+
...PARTICIPANT,
|
|
220
|
+
kind: "command",
|
|
221
|
+
input: ON_MESSAGE,
|
|
222
|
+
output: wireSchema2(HoldLeaseType2)
|
|
223
|
+
},
|
|
224
|
+
"head.release": { ...PARTICIPANT, kind: "command", input: ON_MESSAGE, output: NOTHING2 },
|
|
196
225
|
"heads.create": {
|
|
197
226
|
...PARTICIPANT,
|
|
198
227
|
kind: "command",
|
|
@@ -295,6 +324,12 @@ var SESSION_OPERATIONS2 = {
|
|
|
295
324
|
input: ON_PART,
|
|
296
325
|
output: wireSchema2(nullable2(Type.Object({ action: Type.String(), input: JsonType2 })))
|
|
297
326
|
},
|
|
327
|
+
"part.watch": {
|
|
328
|
+
...PARTICIPANT,
|
|
329
|
+
kind: "watch",
|
|
330
|
+
input: ON_PART,
|
|
331
|
+
output: wireSchema2(nullable2(PartViewType2))
|
|
332
|
+
},
|
|
298
333
|
"part.close": { ...PARTICIPANT, kind: "command", input: ON_PART, output: NOTHING2 }
|
|
299
334
|
};
|
|
300
335
|
|
|
@@ -35,7 +35,8 @@ var JobViewType2 = Type.Object({
|
|
|
35
35
|
state: JobStateType2,
|
|
36
36
|
startedAt: Type.Number(),
|
|
37
37
|
endedAt: nullable2(Type.Number()),
|
|
38
|
-
tail: Type.String()
|
|
38
|
+
tail: Type.String(),
|
|
39
|
+
foreground: Type.Boolean()
|
|
39
40
|
});
|
|
40
41
|
var JobMovedType = Type.Object({ kind: Type.Literal("job"), job: JobViewType2 });
|
|
41
42
|
var JobForgottenType = Type.Object({ kind: Type.Literal("forgotten"), id: idSchema2() });
|
|
@@ -61,14 +61,22 @@ var MessageSourceType2 = Type.Union([
|
|
|
61
61
|
command: Type.Optional(Type.String())
|
|
62
62
|
})
|
|
63
63
|
]);
|
|
64
|
+
var NextTurnScheduleType = Type.Object({
|
|
65
|
+
kind: Type.Literal("next-turn"),
|
|
66
|
+
reason: Type.Enum(["requested", "idle", "run-ended", "configuration"])
|
|
67
|
+
});
|
|
68
|
+
var AttachedScheduleType = Type.Object({ kind: Type.Literal("attached") });
|
|
69
|
+
var DecidingScheduleType = Type.Object({ kind: Type.Literal("deciding") });
|
|
64
70
|
var ScheduleType2 = Type.Union([
|
|
65
71
|
Type.Object({ kind: Type.Literal("joined"), run: idSchema2() }),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
NextTurnScheduleType,
|
|
73
|
+
AttachedScheduleType,
|
|
74
|
+
DecidingScheduleType
|
|
75
|
+
]);
|
|
76
|
+
var WaitingScheduleType2 = Type.Union([
|
|
77
|
+
NextTurnScheduleType,
|
|
78
|
+
AttachedScheduleType,
|
|
79
|
+
DecidingScheduleType
|
|
72
80
|
]);
|
|
73
81
|
var DeliverySchema2 = standard2(DeliveryType2);
|
|
74
82
|
var UserContentSchema2 = standard2(UserContentType2);
|
|
@@ -76,4 +84,4 @@ var PositionSchema2 = standard2(PositionType2);
|
|
|
76
84
|
var MessageSourceSchema2 = standard2(MessageSourceType2);
|
|
77
85
|
var ScheduleSchema2 = standard2(ScheduleType2);
|
|
78
86
|
|
|
79
|
-
export { DeliveryType2, ExcerptSourceType2, UserContentType2, PositionType2, MessageSourceType2, ScheduleType2, DeliverySchema2, UserContentSchema2, PositionSchema2, MessageSourceSchema2, ScheduleSchema2 };
|
|
87
|
+
export { DeliveryType2, ExcerptSourceType2, UserContentType2, PositionType2, MessageSourceType2, ScheduleType2, WaitingScheduleType2, DeliverySchema2, UserContentSchema2, PositionSchema2, MessageSourceSchema2, ScheduleSchema2 };
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
HOST_OPERATIONS2,
|
|
15
15
|
MAINTENANCE_OPERATIONS2
|
|
16
|
-
} from "./browser-
|
|
16
|
+
} from "./browser-5d4b93z0.js";
|
|
17
17
|
import {
|
|
18
18
|
SESSION_OPERATIONS2
|
|
19
|
-
} from "./browser-
|
|
19
|
+
} from "./browser-gvr7sjqk.js";
|
|
20
20
|
import {
|
|
21
21
|
WORKSPACE_OPERATIONS2
|
|
22
|
-
} from "./browser-
|
|
22
|
+
} from "./browser-c3qng9c0.js";
|
|
23
23
|
|
|
24
24
|
// src/wire/operations/index.ts
|
|
25
25
|
var OPERATIONS2 = {
|
|
@@ -25,39 +25,46 @@ import {
|
|
|
25
25
|
DeliveryType2,
|
|
26
26
|
UserContentType2,
|
|
27
27
|
MessageSourceType2,
|
|
28
|
-
ScheduleType2
|
|
29
|
-
|
|
28
|
+
ScheduleType2,
|
|
29
|
+
WaitingScheduleType2
|
|
30
|
+
} from "./browser-wqkhghw2.js";
|
|
30
31
|
import {
|
|
31
32
|
RunEndType2,
|
|
32
33
|
WaitTargetType2,
|
|
33
34
|
ExecutionType2,
|
|
34
35
|
BackgroundItemType2
|
|
35
|
-
} from "./browser-
|
|
36
|
+
} from "./browser-687z1792.js";
|
|
36
37
|
import {
|
|
37
38
|
PartStatusType2,
|
|
38
39
|
PartViewType2
|
|
39
|
-
} from "./browser-
|
|
40
|
+
} from "./browser-772jascc.js";
|
|
40
41
|
import {
|
|
41
42
|
ActivationType2
|
|
42
|
-
} from "./browser-
|
|
43
|
+
} from "./browser-33tkdpyt.js";
|
|
43
44
|
import {
|
|
44
45
|
HeadInfoType2,
|
|
45
46
|
SessionInfoType2,
|
|
46
47
|
SessionCatalogViewType2
|
|
47
|
-
} from "./browser-
|
|
48
|
+
} from "./browser-a2fneqk0.js";
|
|
48
49
|
|
|
49
50
|
// src/views.ts
|
|
50
51
|
import { Type } from "typebox";
|
|
51
52
|
var CLASS_SUMMARY = Type.Object({ count: Type.Number(), paths: Type.Array(Type.String()) });
|
|
52
53
|
var MESSAGE = { id: idSchema2(), turn: idSchema2(), at: Type.Number() };
|
|
53
54
|
var ViewOptionsType2 = Type.Object({ tail: Type.Optional(Type.Number()) });
|
|
55
|
+
var UnsentStatusType = Type.Object({
|
|
56
|
+
kind: Type.Literal("unsent"),
|
|
57
|
+
attempts: Type.Number(),
|
|
58
|
+
retrying: nullable2(Type.Object({ at: Type.Number(), reason: Type.String() }))
|
|
59
|
+
});
|
|
60
|
+
var PendingStatusType = Type.Object({
|
|
61
|
+
kind: Type.Literal("pending"),
|
|
62
|
+
schedule: ScheduleType2,
|
|
63
|
+
covered: Type.Boolean()
|
|
64
|
+
});
|
|
54
65
|
var UserStatusType2 = Type.Union([
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
attempts: Type.Number(),
|
|
58
|
-
retrying: nullable2(Type.Object({ at: Type.Number(), reason: Type.String() }))
|
|
59
|
-
}),
|
|
60
|
-
Type.Object({ kind: Type.Literal("pending"), schedule: ScheduleType2, covered: Type.Boolean() }),
|
|
66
|
+
UnsentStatusType,
|
|
67
|
+
PendingStatusType,
|
|
61
68
|
Type.Object({
|
|
62
69
|
kind: Type.Literal("landed"),
|
|
63
70
|
commit: idSchema2(),
|
|
@@ -78,6 +85,13 @@ var UserMessageType = Type.Object({
|
|
|
78
85
|
ids: Type.Array(idSchema2())
|
|
79
86
|
})
|
|
80
87
|
});
|
|
88
|
+
var QueuedMessageType = Type.Object({
|
|
89
|
+
...UserMessageType.properties,
|
|
90
|
+
status: Type.Union([
|
|
91
|
+
UnsentStatusType,
|
|
92
|
+
Type.Object({ ...PendingStatusType.properties, schedule: WaitingScheduleType2 })
|
|
93
|
+
])
|
|
94
|
+
});
|
|
81
95
|
var MessageType2 = Type.Union([
|
|
82
96
|
UserMessageType,
|
|
83
97
|
Type.Object({
|
|
@@ -124,11 +138,13 @@ var SessionViewType2 = Type.Object({
|
|
|
124
138
|
seq: SeqType2,
|
|
125
139
|
activation: ActivationType2,
|
|
126
140
|
messages: Type.Array(MessageType2),
|
|
141
|
+
queue: Type.Array(QueuedMessageType),
|
|
127
142
|
leadingPrompt: nullable2(UserMessageType),
|
|
128
143
|
parts: Type.Array(PartViewType2),
|
|
129
144
|
turns: Type.Array(TurnInfoType2),
|
|
130
145
|
usage: UsageType2,
|
|
131
146
|
execution: ExecutionType2,
|
|
147
|
+
reportsHeld: Type.Boolean(),
|
|
132
148
|
background: Type.Array(BackgroundItemType2),
|
|
133
149
|
configuration: Type.Object({
|
|
134
150
|
selected: nullable2(ConfigurationType2),
|
|
@@ -161,12 +177,14 @@ var ViewFrameType2 = Type.Union([
|
|
|
161
177
|
revision: Type.Optional(VIEW.revision),
|
|
162
178
|
activation: Type.Optional(VIEW.activation),
|
|
163
179
|
messages: Type.Optional(viewSplice(MessageType2)),
|
|
180
|
+
queue: Type.Optional(viewSplice(QueuedMessageType)),
|
|
164
181
|
appends: Type.Optional(Type.Array(ViewAppendType2)),
|
|
165
182
|
leadingPrompt: Type.Optional(VIEW.leadingPrompt),
|
|
166
183
|
parts: Type.Optional(viewSplice(PartViewType2)),
|
|
167
184
|
turns: Type.Optional(viewSplice(TurnInfoType2)),
|
|
168
185
|
usage: Type.Optional(VIEW.usage),
|
|
169
186
|
execution: Type.Optional(VIEW.execution),
|
|
187
|
+
reportsHeld: Type.Optional(VIEW.reportsHeld),
|
|
170
188
|
background: Type.Optional(viewSplice(BackgroundItemType2)),
|
|
171
189
|
configuration: Type.Optional(VIEW.configuration),
|
|
172
190
|
context: Type.Optional(VIEW.context),
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
} from "./browser-sgwxbek9.js";
|
|
16
16
|
import {
|
|
17
17
|
UserContentType2
|
|
18
|
-
} from "./browser-
|
|
18
|
+
} from "./browser-wqkhghw2.js";
|
|
19
19
|
import {
|
|
20
20
|
SendOptionsType2
|
|
21
|
-
} from "./browser-
|
|
21
|
+
} from "./browser-82qzgxz4.js";
|
|
22
22
|
import {
|
|
23
23
|
AuthorityType2
|
|
24
24
|
} from "./browser-6e1madxa.js";
|
|
25
25
|
import {
|
|
26
26
|
SettingInfoType2
|
|
27
|
-
} from "./browser-
|
|
27
|
+
} from "./browser-a2fneqk0.js";
|
|
28
28
|
|
|
29
29
|
// src/connection.ts
|
|
30
30
|
import { Type } from "typebox";
|
package/dist/src/connection.js
CHANGED
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
CredentialSourceWireSchema2,
|
|
8
8
|
JournalEntrySchema2,
|
|
9
9
|
SettingOutcomeSchema2
|
|
10
|
-
} from "../chunks/browser-
|
|
11
|
-
import"../chunks/browser-
|
|
10
|
+
} from "../chunks/browser-zn6g4y57.js";
|
|
11
|
+
import"../chunks/browser-82qzgxz4.js";
|
|
12
12
|
import"../chunks/browser-6e1madxa.js";
|
|
13
|
-
import"../chunks/browser-
|
|
14
|
-
import"../chunks/browser-
|
|
15
|
-
import"../chunks/browser-
|
|
16
|
-
import"../chunks/browser-
|
|
17
|
-
import"../chunks/browser-
|
|
13
|
+
import"../chunks/browser-a2fneqk0.js";
|
|
14
|
+
import"../chunks/browser-33tkdpyt.js";
|
|
15
|
+
import"../chunks/browser-687z1792.js";
|
|
16
|
+
import"../chunks/browser-wqkhghw2.js";
|
|
17
|
+
import"../chunks/browser-jyrqtmaz.js";
|
|
18
18
|
import"../chunks/browser-m0wzr0g8.js";
|
|
19
19
|
import"../chunks/browser-ynj8v9ad.js";
|
|
20
20
|
import"../chunks/browser-0sbkxgkx.js";
|