@unieai/rabi-api-session-controller 0.0.0-stage → 0.2.2-rc.5
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/LICENSE +21 -0
- package/README.md +7 -2
- package/lib/client.js +4 -0
- package/lib/index.js +4300 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +5013 -0
- package/lib/typert.remote-client.d.ts +115 -0
- package/lib/typert.remote-client.js +2714 -0
- package/lib/types/agent.d.ts +164 -0
- package/lib/types/agent.js +484 -0
- package/lib/types/archived-session-gate.d.ts +33 -0
- package/lib/types/archived-session-gate.js +54 -0
- package/lib/types/assistant-stream.d.ts +26 -0
- package/lib/types/assistant-stream.js +82 -0
- package/lib/types/catalog.d.ts +24 -0
- package/lib/types/catalog.js +107 -0
- package/lib/types/client/contract/events.d.ts +102 -0
- package/lib/types/client/contract/events.js +111 -0
- package/lib/types/client/contract/session.d.ts +178 -0
- package/lib/types/client/contract/session.js +1 -0
- package/lib/types/client/contract/sessions.d.ts +162 -0
- package/lib/types/client/contract/sessions.js +1 -0
- package/lib/types/client/contract/snapshot.d.ts +84 -0
- package/lib/types/client/contract/snapshot.js +1 -0
- package/lib/types/client/index.d.ts +39 -0
- package/lib/types/client/index.js +60 -0
- package/lib/types/client/ordered-baseline.d.ts +12 -0
- package/lib/types/client/ordered-baseline.js +40 -0
- package/lib/types/client/scope.d.ts +46 -0
- package/lib/types/client/scope.js +46 -0
- package/lib/types/client/session-wire-event.d.ts +11 -0
- package/lib/types/client/session-wire-event.js +42 -0
- package/lib/types/client/sessions/assistant-stream.d.ts +56 -0
- package/lib/types/client/sessions/assistant-stream.js +182 -0
- package/lib/types/client/sessions/history-records.d.ts +22 -0
- package/lib/types/client/sessions/history-records.js +25 -0
- package/lib/types/client/sessions/lineage.d.ts +48 -0
- package/lib/types/client/sessions/lineage.js +55 -0
- package/lib/types/client/sessions/manager.d.ts +272 -0
- package/lib/types/client/sessions/manager.js +774 -0
- package/lib/types/client/sessions/notifier.d.ts +39 -0
- package/lib/types/client/sessions/notifier.js +97 -0
- package/lib/types/client/sessions/projection-store.d.ts +128 -0
- package/lib/types/client/sessions/projection-store.js +161 -0
- package/lib/types/client/sessions/remotes.d.ts +29 -0
- package/lib/types/client/sessions/remotes.js +7 -0
- package/lib/types/client/sessions/service.d.ts +263 -0
- package/lib/types/client/sessions/service.js +597 -0
- package/lib/types/client/sessions/session.d.ts +303 -0
- package/lib/types/client/sessions/session.js +991 -0
- package/lib/types/client/time-zone.d.ts +8 -0
- package/lib/types/client/time-zone.js +13 -0
- package/lib/types/client/transport.d.ts +77 -0
- package/lib/types/client/transport.js +130 -0
- package/lib/types/commands.d.ts +92 -0
- package/lib/types/commands.js +575 -0
- package/lib/types/continuation.d.ts +35 -0
- package/lib/types/continuation.js +47 -0
- package/lib/types/control.d.ts +20 -0
- package/lib/types/control.js +106 -0
- package/lib/types/file-references.d.ts +27 -0
- package/lib/types/file-references.js +68 -0
- package/lib/types/history/assistant-stream.d.ts +43 -0
- package/lib/types/history/assistant-stream.js +79 -0
- package/lib/types/history/controller.d.ts +104 -0
- package/lib/types/history/controller.js +293 -0
- package/lib/types/history/listener.d.ts +105 -0
- package/lib/types/history/listener.js +296 -0
- package/lib/types/history.d.ts +58 -0
- package/lib/types/history.js +152 -0
- package/lib/types/index.d.ts +262 -0
- package/lib/types/index.js +693 -0
- package/lib/types/list.d.ts +62 -0
- package/lib/types/list.js +343 -0
- package/lib/types/media-references.d.ts +18 -0
- package/lib/types/media-references.js +84 -0
- package/lib/types/remote-events.d.ts +8 -0
- package/lib/types/remote-events.js +1 -0
- package/lib/types/skill-catalog.d.ts +28 -0
- package/lib/types/skill-catalog.js +203 -0
- package/lib/types/state/controller.d.ts +45 -0
- package/lib/types/state/controller.js +288 -0
- package/lib/types/state/listener.d.ts +40 -0
- package/lib/types/state/listener.js +111 -0
- package/lib/types/types.d.ts +687 -0
- package/lib/types/types.js +5 -0
- package/lib/types/web/controller.d.ts +25 -0
- package/lib/types/web/controller.js +138 -0
- package/locale/de.json +6 -0
- package/locale/en.json +5 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +119 -4
- package/src/agent.ts +474 -0
- package/src/archived-session-gate.ts +59 -0
- package/src/assistant-stream.ts +102 -0
- package/src/catalog.ts +117 -0
- package/src/client/contract/events.ts +205 -0
- package/src/client/contract/session.ts +174 -0
- package/src/client/contract/sessions.ts +169 -0
- package/src/client/contract/snapshot.ts +94 -0
- package/src/client/index.ts +149 -0
- package/src/client/ordered-baseline.ts +43 -0
- package/src/client/scope.ts +76 -0
- package/src/client/session-wire-event.ts +46 -0
- package/src/client/sessions/assistant-stream.ts +229 -0
- package/src/client/sessions/history-records.ts +35 -0
- package/src/client/sessions/lineage.ts +96 -0
- package/src/client/sessions/manager.ts +857 -0
- package/src/client/sessions/notifier.ts +97 -0
- package/src/client/sessions/projection-store.ts +244 -0
- package/src/client/sessions/remotes.ts +44 -0
- package/src/client/sessions/service.ts +741 -0
- package/src/client/sessions/session.ts +1055 -0
- package/src/client/time-zone.ts +14 -0
- package/src/client/transport.ts +247 -0
- package/src/commands.ts +602 -0
- package/src/continuation.ts +58 -0
- package/src/control.ts +121 -0
- package/src/file-references.ts +42 -0
- package/src/history/assistant-stream.ts +102 -0
- package/src/history/controller.ts +256 -0
- package/src/history/listener.ts +302 -0
- package/src/history.ts +189 -0
- package/src/index.ts +651 -0
- package/src/list.ts +382 -0
- package/src/media-references.ts +84 -0
- package/src/remote-events.ts +14 -0
- package/src/skill-catalog.ts +108 -0
- package/src/state/controller.ts +221 -0
- package/src/state/listener.ts +116 -0
- package/src/types.ts +720 -0
- package/src/web/controller.ts +78 -0
|
@@ -0,0 +1,2714 @@
|
|
|
1
|
+
/* Generated by @unieai/rabi-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
import { createTypertRemoteInfo } from '@unieai/rabi-typert-protocol/remote-info'
|
|
5
|
+
|
|
6
|
+
let _unieai_rabi_api_session_controller_fileReferences_list_parameter_0$schema$value
|
|
7
|
+
const _unieai_rabi_api_session_controller_fileReferences_list_parameter_0$schema = () => (_unieai_rabi_api_session_controller_fileReferences_list_parameter_0$schema$value ??= z.string())
|
|
8
|
+
let _unieai_rabi_api_session_controller_fileReferences_list_parameter_1$schema$value
|
|
9
|
+
const _unieai_rabi_api_session_controller_fileReferences_list_parameter_1$schema = () => (_unieai_rabi_api_session_controller_fileReferences_list_parameter_1$schema$value ??= z.string())
|
|
10
|
+
let _unieai_rabi_api_session_controller_fileReferences_list_result$schema$value
|
|
11
|
+
const _unieai_rabi_api_session_controller_fileReferences_list_result$schema = () => (_unieai_rabi_api_session_controller_fileReferences_list_result$schema$value ??= z.array(z.object({
|
|
12
|
+
'path': z.string().describe('User-facing path accepted by normal prompts and filesystem tools.'),
|
|
13
|
+
'kind': z.union([z.literal("file"), z.literal("directory")]).describe('Directories keep completion open; files finish the mention.'),
|
|
14
|
+
})))
|
|
15
|
+
let _unieai_rabi_api_session_controller_session_attachment_parameter_0$schema$value
|
|
16
|
+
const _unieai_rabi_api_session_controller_session_attachment_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_attachment_parameter_0$schema$value ??= z.object({
|
|
17
|
+
'sessionId': z.string().readonly().describe('Gateway permission scope only; neither Session existence nor its image references are checked.'),
|
|
18
|
+
'attachment': z.object({
|
|
19
|
+
'attachmentId': z.string().describe('Opaque storage identifier; never a filesystem path or bearer URL.'),
|
|
20
|
+
'mediaType': z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")]).describe('Media type verified from the stored bytes.'),
|
|
21
|
+
'bytes': z.number().describe('Exact encoded byte length.'),
|
|
22
|
+
'width': z.number().describe('Intrinsic encoded width in pixels.'),
|
|
23
|
+
'height': z.number().describe('Intrinsic encoded height in pixels.'),
|
|
24
|
+
'name': z.string().optional().describe('Optional display name stripped of local path information.'),
|
|
25
|
+
'originalDimensions': z.object({
|
|
26
|
+
'width': z.number(),
|
|
27
|
+
'height': z.number(),
|
|
28
|
+
}).optional().describe('Input dimensions after applying EXIF orientation and before normalization scaling. Present only when normalization reduced the image.'),
|
|
29
|
+
}).readonly(),
|
|
30
|
+
}))
|
|
31
|
+
let _unieai_rabi_api_session_controller_session_attachment_result$schema$value
|
|
32
|
+
const _unieai_rabi_api_session_controller_session_attachment_result$schema = () => (_unieai_rabi_api_session_controller_session_attachment_result$schema$value ??= z.object({
|
|
33
|
+
'attachment': z.object({
|
|
34
|
+
'attachmentId': z.string().describe('Opaque storage identifier; never a filesystem path or bearer URL.'),
|
|
35
|
+
'mediaType': z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")]).describe('Media type verified from the stored bytes.'),
|
|
36
|
+
'bytes': z.number().describe('Exact encoded byte length.'),
|
|
37
|
+
'width': z.number().describe('Intrinsic encoded width in pixels.'),
|
|
38
|
+
'height': z.number().describe('Intrinsic encoded height in pixels.'),
|
|
39
|
+
'name': z.string().optional().describe('Optional display name stripped of local path information.'),
|
|
40
|
+
'originalDimensions': z.object({
|
|
41
|
+
'width': z.number(),
|
|
42
|
+
'height': z.number(),
|
|
43
|
+
}).optional().describe('Input dimensions after applying EXIF orientation and before normalization scaling. Present only when normalization reduced the image.'),
|
|
44
|
+
}).readonly().describe('Supplied reference after ID, format, byte length, and dimensions verification; display fields are preserved.'),
|
|
45
|
+
'data': z.string().readonly(),
|
|
46
|
+
}))
|
|
47
|
+
let _unieai_rabi_api_session_controller_session_cancel_parameter_0$schema$value
|
|
48
|
+
const _unieai_rabi_api_session_controller_session_cancel_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_cancel_parameter_0$schema$value ??= z.object({
|
|
49
|
+
'sessionId': z.string().readonly(),
|
|
50
|
+
}))
|
|
51
|
+
let _unieai_rabi_api_session_controller_session_cancel_result$schema$value
|
|
52
|
+
const _unieai_rabi_api_session_controller_session_cancel_result$schema = () => (_unieai_rabi_api_session_controller_session_cancel_result$schema$value ??= z.object({
|
|
53
|
+
'accepted': z.literal(true).readonly(),
|
|
54
|
+
}))
|
|
55
|
+
let _unieai_rabi_api_session_controller_session_canOpenWorkspacePath_result$schema$value
|
|
56
|
+
const _unieai_rabi_api_session_controller_session_canOpenWorkspacePath_result$schema = () => (_unieai_rabi_api_session_controller_session_canOpenWorkspacePath_result$schema$value ??= z.boolean())
|
|
57
|
+
let _unieai_rabi_api_session_controller_session_control_result$schema$value
|
|
58
|
+
const _unieai_rabi_api_session_controller_session_control_result$schema = () => (_unieai_rabi_api_session_controller_session_control_result$schema$value ??= z.union([z.object({
|
|
59
|
+
'type': z.literal("baseline").readonly(),
|
|
60
|
+
'value': z.object({
|
|
61
|
+
'projections': z.record(z.string(), z.object({
|
|
62
|
+
'asOfSeq': z.number().readonly(),
|
|
63
|
+
'values': z.intersection(z.object({
|
|
64
|
+
'inbox': z.object({
|
|
65
|
+
'next-turn': z.array(z.json()).readonly(),
|
|
66
|
+
'next-step': z.array(z.json()).readonly(),
|
|
67
|
+
}).optional().describe('Pending agent input reconstructed from durable inbox splices.'),
|
|
68
|
+
'modelSelection': z.object({
|
|
69
|
+
'lastUsed': z.union([z.literal(null), z.object({
|
|
70
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
71
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
72
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
73
|
+
})]).readonly().describe('Selection used by the latest recorded model request.'),
|
|
74
|
+
'next': z.union([z.literal(null), z.object({
|
|
75
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
76
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
77
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
78
|
+
})]).readonly().describe('Selection the next model step uses; null while the Agent\'s initial options supply the route.'),
|
|
79
|
+
}).optional().describe('Recorded model selection for the next model step and the latest request.'),
|
|
80
|
+
'actionCards': z.object({
|
|
81
|
+
'proposals': z.record(z.string(), z.object({
|
|
82
|
+
'callId': z.string().readonly().describe('Id of the logged tool call.'),
|
|
83
|
+
'turn': z.number().readonly().describe('Turn whose answer the card follows.'),
|
|
84
|
+
'action': z.string().readonly().describe('Registered action kind named by the call.'),
|
|
85
|
+
'title': z.string().readonly(),
|
|
86
|
+
'brief': z.string().readonly().describe('What the action does, in the user\'s language.'),
|
|
87
|
+
'details': z.record(z.string(), z.json()).readonly().readonly().describe('Fields the kind\'s skill asks for.'),
|
|
88
|
+
})).readonly().readonly(),
|
|
89
|
+
'decisions': z.record(z.string(), z.object({
|
|
90
|
+
'callId': z.string().readonly(),
|
|
91
|
+
'action': z.string().readonly(),
|
|
92
|
+
'phase': z.string().readonly(),
|
|
93
|
+
'data': z.union([z.undefined(), z.record(z.string(), z.json()).readonly()]).readonly().optional().describe('Kind-defined fields such as a chosen location or a created package.'),
|
|
94
|
+
})).readonly().readonly(),
|
|
95
|
+
}).optional().describe('Action card proposals and decisions for the currently open Session.'),
|
|
96
|
+
'agentPreset': z.union([z.literal(null), z.string()]).optional().describe('Preset the Session runs, or null when the deployment composes none.'),
|
|
97
|
+
'agentTeam': z.object({
|
|
98
|
+
'enabled': z.boolean().readonly(),
|
|
99
|
+
'tasks': z.array(z.object({
|
|
100
|
+
'id': z.string().readonly(),
|
|
101
|
+
'revision': z.number().readonly(),
|
|
102
|
+
'subject': z.string().readonly(),
|
|
103
|
+
'description': z.string().readonly(),
|
|
104
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
105
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
106
|
+
'writeScopes': z.array(z.string()).readonly(),
|
|
107
|
+
'ownerId': z.string().readonly().optional(),
|
|
108
|
+
'ownerName': z.string().readonly().optional().describe('Immutable agent path captured at assignment; absent on unnamed historical owners.'),
|
|
109
|
+
'ready': z.boolean().readonly(),
|
|
110
|
+
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
111
|
+
})).readonly(),
|
|
112
|
+
'failure': z.string().readonly().optional(),
|
|
113
|
+
}).optional().describe('Saved selection and non-deleted task board of the Team rooted at the projected Session.'),
|
|
114
|
+
'workingDirectory': z.union([z.literal(null), z.string()]).optional().describe('Recorded current directory for Session observations, or null when none is recorded.'),
|
|
115
|
+
'subagentCatalog': z.array(z.union([z.object({
|
|
116
|
+
'id': z.string().readonly(),
|
|
117
|
+
'createdAt': z.number().readonly(),
|
|
118
|
+
'mode': z.literal("one-shot").readonly().describe('A terminal one-shot child.'),
|
|
119
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
120
|
+
}), z.object({
|
|
121
|
+
'id': z.string().readonly(),
|
|
122
|
+
'createdAt': z.number().readonly(),
|
|
123
|
+
'mode': z.literal("external").readonly().describe('An external execution without a local child Session.'),
|
|
124
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
125
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
126
|
+
}), z.object({
|
|
127
|
+
'id': z.string().readonly(),
|
|
128
|
+
'createdAt': z.number().readonly(),
|
|
129
|
+
'mode': z.literal("continuable").readonly().describe('A resumable conversation.'),
|
|
130
|
+
'label': z.string().readonly().describe('Durable creation label from the parent catalog.'),
|
|
131
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
132
|
+
}), z.object({
|
|
133
|
+
'id': z.string().readonly(),
|
|
134
|
+
'createdAt': z.number().readonly(),
|
|
135
|
+
'mode': z.literal("unknown").readonly(),
|
|
136
|
+
'label': z.string().readonly().optional(),
|
|
137
|
+
})])).optional().describe('Direct children in parent catalog event order, excluding fork-inherited facts.'),
|
|
138
|
+
'subagentTiming': z.object({
|
|
139
|
+
'settledMs': z.number().describe('Milliseconds accumulated across completed turns after the child\'s own descriptor.'),
|
|
140
|
+
'active': z.object({
|
|
141
|
+
'since': z.number().describe('Start of the open turn.'),
|
|
142
|
+
'through': z.number().describe('Latest event time folded into this projection cut.'),
|
|
143
|
+
}).optional().describe('Same-cut bounds of the currently open turn, when one has not reached `turn/end`.'),
|
|
144
|
+
'lastTurnCompleted': z.boolean().optional().describe('Whether the latest closed turn after the child\'s own descriptor completed normally; absent while a turn is open or before one closes.'),
|
|
145
|
+
}).optional().describe('Active-turn duration and latest closed-turn completion for a descriptor-backed subagent session.'),
|
|
146
|
+
'subagent': z.union([z.literal(null), z.object({
|
|
147
|
+
'mode': z.literal("one-shot").describe('A terminal one-shot child.'),
|
|
148
|
+
'label': z.string().optional().describe('Optional durable creation label from the child\'s descriptor.'),
|
|
149
|
+
'seq': z.number().describe('Seq of the `subagent/descriptor` event this identity was folded from. `session.isOwnSeq(seq)` proves the identity comes from the child\'s OWN log suffix — where a descriptor is immutable once appended — and not from a fork seed\'s replayed ancestor descriptor.'),
|
|
150
|
+
}), z.object({
|
|
151
|
+
'mode': z.literal("continuable").describe('A resumable conversation.'),
|
|
152
|
+
'label': z.string().describe('Durable creation label from the child\'s descriptor.'),
|
|
153
|
+
'seq': z.number().describe('Seq of the folded descriptor event; see the one-shot arm for the own-suffix proof.'),
|
|
154
|
+
})]).optional().describe('Identity of a descriptor-backed subagent session. `null` ⟺ no valid descriptor (missing, malformed, or unrecognized-version — deliberately undistinguished). The sentinel is deliberately serializable: a value pushed over JSON transports must survive `JSON.stringify` losslessly, where an `undefined` field would be dropped and a stale identity would survive on the receiving side. The entry itself stays non-optional.'),
|
|
155
|
+
'title': z.union([z.literal(null), z.string()]).optional().describe('The session\'s current normalized title — the latest `session/title` event\'s text (last-wins), or `null` before the first title lands. A plain string: the shape the client list rows consume.'),
|
|
156
|
+
'todos': z.union([z.literal(null), z.array(z.object({
|
|
157
|
+
'content': z.string().describe('What this task is — a short imperative line shown in the UI.'),
|
|
158
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress")]).describe('Lifecycle state. `in_progress` marks a task being worked now; parallel work may mark several.'),
|
|
159
|
+
}))]).optional().describe('The agent\'s current whole todo list (the latest `todo/write` snapshot), or `null` before the first write. Whole-value rule: every `todo/write` carries the complete replacement list, so the fold is last-wins. Excluded from Session summary payloads, with `null` kept outside the exclusion mark so the pre-first-write value stays expressible.'),
|
|
160
|
+
'permissions': z.object({
|
|
161
|
+
'currentValue': z.string().describe('The effective current value: a configured preset key, `auto`, or `custom`.'),
|
|
162
|
+
}).optional().describe('The session\'s current permission, folded from the three whole-value knob events (`permission/preset`, `sandbox/mode`, `approval/policy`) over the composition defaults. Selectable options come from the process-level catalog Remote. Key absence means no permission service is composed — clients hide the control.'),
|
|
163
|
+
'conversationContinuation': z.union([z.literal(null), z.number()]).optional().describe('Eligible latest failed turn/end for an empty prompt, or null.'),
|
|
164
|
+
'sessionListMetadata': z.object({
|
|
165
|
+
'blank': z.boolean().readonly().describe('Whether the folded prefix contains no turn.'),
|
|
166
|
+
'lastPromptAt': z.union([z.literal(null), z.number()]).readonly().describe('Latest human-authored prompt time in the folded prefix.'),
|
|
167
|
+
}).optional().describe('Persisted facts used to summarize a Session without activating it.'),
|
|
168
|
+
'imageLimits': z.object({
|
|
169
|
+
'maxImageBytes': z.number(),
|
|
170
|
+
'maxImagesPerMessage': z.number(),
|
|
171
|
+
'maxMessageImageBytes': z.number(),
|
|
172
|
+
'maxImagePixels': z.number(),
|
|
173
|
+
'maxImageDimension': z.number().describe('Maximum intrinsic width and maximum intrinsic height in pixels for one image.'),
|
|
174
|
+
'mediaTypes': z.array(z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")])),
|
|
175
|
+
}).optional().describe('Image-intake limits enforced by the Session prompt endpoint. Boot constant, excluded from Session summary payloads: every Session shares it, so a list row would repeat one host-wide fact.'),
|
|
176
|
+
'tokenUsage': z.object({
|
|
177
|
+
'uncachedInputTokens': z.number(),
|
|
178
|
+
'outputTokens': z.number(),
|
|
179
|
+
'cacheReadTokens': z.number(),
|
|
180
|
+
'cacheWriteTokens': z.number(),
|
|
181
|
+
}).optional().describe('Provider-reported usage accumulated across the complete durable log.'),
|
|
182
|
+
'contextPressure': z.object({
|
|
183
|
+
'pressureTokens': z.number().optional().describe('Provider-reported prompt size of the most recent request: uncached input plus cache reads and writes. Response output is excluded, so this does not grow as the current turn streams. Absent until a provider reports usage.'),
|
|
184
|
+
'projectedTokens': z.number().optional().describe('What the NEXT request\'s prompt would cost: {@link pressureTokens} plus the heuristic repricing of everything the surface gained or lost since that sample. Only the delta is estimated, so the figure stays anchored to the provider while still reacting the moment a compaction shadows a span — which `pressureTokens` alone cannot do, since compaction reports no usage of its own. Absent until a provider reports usage.'),
|
|
185
|
+
'contextWindow': z.number().optional().describe('Newest recorded route capacity; absent when no adapter advertised one.'),
|
|
186
|
+
}).optional().describe('Newest request pressure paired with the newest known route capacity.'),
|
|
187
|
+
'contextBreakdown': z.object({
|
|
188
|
+
'systemTokens': z.number().describe('Heuristic tokens of the last nonempty surviving system prompt in surface order; 0 when none exists.'),
|
|
189
|
+
'toolsTokens': z.number().describe('Heuristic tokens of the newest request envelope\'s tool schemas; 0 before any request.'),
|
|
190
|
+
'messageTokens': z.number().describe('Heuristic tokens of every other visible surface node, including superseded system prompts.'),
|
|
191
|
+
}).optional().describe('Heuristic system/tools/message composition of the next request.'),
|
|
192
|
+
'userQuestions': z.object({
|
|
193
|
+
'active': z.array(z.object({
|
|
194
|
+
'callId': z.string().readonly(),
|
|
195
|
+
'questions': z.array(z.object({
|
|
196
|
+
'id': z.string().describe('Stable caller-provided question id, echoed in the answer.'),
|
|
197
|
+
'question': z.string().describe('The question to display.'),
|
|
198
|
+
'detail': z.string().optional().describe('Optional supporting detail rendered with the question but kept out of option labels.'),
|
|
199
|
+
'header': z.string().optional().describe('Optional short heading/group label.'),
|
|
200
|
+
'options': z.array(z.object({
|
|
201
|
+
'label': z.string().describe('User-facing label.'),
|
|
202
|
+
'description': z.string().optional().describe('Optional extra context rendered by capable UIs.'),
|
|
203
|
+
})).optional().describe('Optional choices the UI can render as a menu.'),
|
|
204
|
+
'multiSelect': z.boolean().optional().describe('Whether more than one option may be selected. Defaults to single-select.'),
|
|
205
|
+
'intent': z.union([z.object({
|
|
206
|
+
'kind': z.literal("plan-review").describe('A plan submitted for review: `detail` is the plan markdown `ask()` requires, and the decision approves or declines it.'),
|
|
207
|
+
'approve': z.string().describe('The option label that approves the plan; every other option declines it. Named rather than positional so no UI infers the verdict from option order. An `approve` naming no option of its own question is rejected at `ask()`.'),
|
|
208
|
+
'callId': z.string().optional().describe('Logged tool invocation whose arguments contain the reviewed plan.'),
|
|
209
|
+
}), z.object({
|
|
210
|
+
'kind': z.literal("approval").describe('A blocking permission decision with fixed actions and no free-text answer.'),
|
|
211
|
+
'approve': z.string().describe('Option label granting the scope described by the caller.'),
|
|
212
|
+
'reject': z.string().describe('Option label refusing the requested access.'),
|
|
213
|
+
'always': z.string().optional().describe('Optional persistent grant offered only when the caller supports it.'),
|
|
214
|
+
'subject': z.object({
|
|
215
|
+
'name': z.string(),
|
|
216
|
+
'icon': z.string().optional(),
|
|
217
|
+
}).optional().describe('Metadata for human recognition; the caller admits icon sources, which the UI may load as URLs. Never an authorization identity.'),
|
|
218
|
+
'display': z.object({
|
|
219
|
+
'question': z.intersection(z.object({
|
|
220
|
+
'en': z.string(),
|
|
221
|
+
}), z.record(z.string(), z.string())),
|
|
222
|
+
'detail': z.intersection(z.object({
|
|
223
|
+
'en': z.string(),
|
|
224
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
225
|
+
'approve': z.intersection(z.object({
|
|
226
|
+
'en': z.string(),
|
|
227
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
228
|
+
}).optional().describe('Localized question and limited-grant label; fixed cards own reject/always wording. Option labels remain answer values.'),
|
|
229
|
+
})]).optional().describe('Optional presentation intent for capable UIs; absent asks for the generic option list.'),
|
|
230
|
+
})).readonly(),
|
|
231
|
+
'state': z.union([z.literal("open"), z.literal("continued")]).readonly(),
|
|
232
|
+
})).readonly().describe('Calls that can still take an answer, in ask order.'),
|
|
233
|
+
'settled': z.array(z.object({
|
|
234
|
+
'callId': z.string().readonly().describe('The settled call.'),
|
|
235
|
+
'answers': z.array(z.object({
|
|
236
|
+
'id': z.string().describe('The answered question id.'),
|
|
237
|
+
'selected': z.array(z.string()).describe('Selected option labels. May accompany custom text for a multi-select question.'),
|
|
238
|
+
'custom': z.string().optional().describe('Optional free-text "Other" answer.'),
|
|
239
|
+
})).readonly().describe('The recorded batch, one entry per question; empty when the late reply carried none.'),
|
|
240
|
+
})).readonly().describe('Calls an answer settled, in settlement order.'),
|
|
241
|
+
}).optional().describe('Timed questions that remain answerable in this Session, and the ones a late reply settled.'),
|
|
242
|
+
'forgeChangeRequests': z.array(z.object({
|
|
243
|
+
'url': z.string().readonly().describe('Web URL as first recorded.'),
|
|
244
|
+
'origin': z.union([z.literal("created"), z.literal("referenced"), z.literal("discovered"), z.literal("tracked")]).readonly().describe('How the change request became bound.'),
|
|
245
|
+
'dismissed': z.boolean().readonly().describe('Whether a dismissal hides the binding.'),
|
|
246
|
+
})).optional().describe('Every change request bound to the Session, hidden ones included, in binding order.'),
|
|
247
|
+
'forgeWorktree': z.union([z.literal(null), z.object({
|
|
248
|
+
'path': z.string().readonly().describe('Canonical checkout directory.'),
|
|
249
|
+
'branch': z.string().readonly().describe('Branch created for the checkout.'),
|
|
250
|
+
'from': z.union([z.literal(null), z.string()]).readonly().describe('Requested base branch, or null when the checkout started from HEAD of the source checkout.'),
|
|
251
|
+
'baseCommit': z.string().readonly().describe('Commit object name the branch started from.'),
|
|
252
|
+
'repositoryRoot': z.string().readonly().describe('Canonical root of the source checkout.'),
|
|
253
|
+
})]).optional().describe('The worktree the panel created for the Session while the Session works in it, else null.'),
|
|
254
|
+
'worktree': z.array(z.object({
|
|
255
|
+
'worktree': z.object({
|
|
256
|
+
'path': z.string().describe('Canonical absolute checkout directory in the filesystem provider\'s execution world.'),
|
|
257
|
+
'branch': z.string().describe('Newly created branch name.'),
|
|
258
|
+
'baseCommit': z.string().describe('Resolved commit object name; repository-local replacement refs can change its checked-out content.'),
|
|
259
|
+
'repositoryRoot': z.string().describe('Canonical root of the source checkout.'),
|
|
260
|
+
}).readonly(),
|
|
261
|
+
'owned': z.boolean().readonly().describe('False for a creation inside the fork-inherited prefix.'),
|
|
262
|
+
})).optional().describe('Checkouts recorded in the Session\'s log, in creation order.'),
|
|
263
|
+
'forkLineage': z.object({
|
|
264
|
+
'origin': z.literal("fork").readonly().describe('How the Session came to exist; only `fork` is published under this key.'),
|
|
265
|
+
'sourceSessionId': z.string().readonly().describe('Session the branch was cut from.'),
|
|
266
|
+
'authoredByViewer': z.boolean().readonly().describe('True when the reader created the branch it is reading.'),
|
|
267
|
+
'workspaceReadOnly': z.boolean().readonly().describe('True when the branch\'s workspace stays read-only for its reader.'),
|
|
268
|
+
}).optional().describe('Branch facts one reader was given for a branch of a shared Session.'),
|
|
269
|
+
'goal': z.union([z.literal(null), z.object({
|
|
270
|
+
'goal': z.object({
|
|
271
|
+
'objective': z.string().readonly().describe('Human-requested completion objective.'),
|
|
272
|
+
'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
|
|
273
|
+
'blockedReason': z.object({
|
|
274
|
+
'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
|
|
275
|
+
'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
|
|
276
|
+
}).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
|
|
277
|
+
'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
|
|
278
|
+
'id': z.string().readonly().describe('Stable goal identity.'),
|
|
279
|
+
'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
|
|
280
|
+
}).readonly().describe('Current durable goal snapshot (the CAS ref for mutations rides on it).'),
|
|
281
|
+
'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
|
|
282
|
+
'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
|
|
283
|
+
'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
|
|
284
|
+
})]).optional().describe('The session\'s current goal and admitted-round count, or `null` before the first create and after a clear tombstone. `goal/change` supplies the whole lifecycle value; matching admitted `user/message` events advance `roundsStarted`.'),
|
|
285
|
+
'plan': z.object({
|
|
286
|
+
'active': z.boolean(),
|
|
287
|
+
'pending': z.boolean(),
|
|
288
|
+
}).optional().describe('Plan collaboration state folded from the plan command lifecycle and `plan/mode` events.'),
|
|
289
|
+
}), z.record(z.string(), z.json()).readonly()).readonly().describe('Provider-validated values; omitted keys are absent capabilities at this cut.'),
|
|
290
|
+
})).readonly().readonly(),
|
|
291
|
+
}).readonly(),
|
|
292
|
+
}), z.object({
|
|
293
|
+
'type': z.literal("projection").readonly(),
|
|
294
|
+
'sessionId': z.string().readonly(),
|
|
295
|
+
'seq': z.number().readonly().describe('Seq of the committed event that caused every listed change.'),
|
|
296
|
+
'changes': z.array(z.object({
|
|
297
|
+
'key': z.string().readonly(),
|
|
298
|
+
'val': z.json().readonly(),
|
|
299
|
+
})).readonly().describe('One entry per client-visible key whose view the event changed, in registration order without duplicate keys, with the key\'s new value as `val`. A key absent from `changes` is unchanged; unlike a baseline, absence does not mean an absent capability.'),
|
|
300
|
+
})]))
|
|
301
|
+
let _unieai_rabi_api_session_controller_session_create_parameter_0$schema$value
|
|
302
|
+
const _unieai_rabi_api_session_controller_session_create_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_create_parameter_0$schema$value ??= z.object({
|
|
303
|
+
'workspaceId': z.string().readonly().optional().describe('Workspace the Session joins; exclusive with `cwd`.'),
|
|
304
|
+
'cwd': z.string().readonly().optional().describe('Directory the Session owns when no Workspace is named.'),
|
|
305
|
+
'sessionId': z.string().readonly().optional().describe('Blank Session to reuse while it is reusable, or the identity of a new Session when none is stored under it.'),
|
|
306
|
+
'agentPreset': z.string().readonly().optional().describe('Preset the Session runs, replacing a reused Session\'s recorded preset; the configured default when omitted.'),
|
|
307
|
+
}))
|
|
308
|
+
let _unieai_rabi_api_session_controller_session_create_result$schema$value
|
|
309
|
+
const _unieai_rabi_api_session_controller_session_create_result$schema = () => (_unieai_rabi_api_session_controller_session_create_result$schema$value ??= z.object({
|
|
310
|
+
'sessionId': z.string().readonly().describe('The created or reused Session, which may differ from the requested `sessionId`.'),
|
|
311
|
+
'agentPreset': z.string().readonly().optional().describe('Preset the Session runs, when the deployment composes a preset roster.'),
|
|
312
|
+
}))
|
|
313
|
+
let _unieai_rabi_api_session_controller_session_events_parameter_0$schema$value
|
|
314
|
+
const _unieai_rabi_api_session_controller_session_events_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_events_parameter_0$schema$value ??= z.object({
|
|
315
|
+
'address': z.union([z.object({
|
|
316
|
+
'kind': z.literal("session").readonly(),
|
|
317
|
+
'sessionId': z.string().readonly(),
|
|
318
|
+
}), z.object({
|
|
319
|
+
'kind': z.literal("subagent").readonly(),
|
|
320
|
+
'parentSessionId': z.string().readonly(),
|
|
321
|
+
'childSessionId': z.string().readonly(),
|
|
322
|
+
'mode': z.union([z.literal("one-shot"), z.literal("continuable"), z.literal("unknown")]).readonly(),
|
|
323
|
+
})]).readonly(),
|
|
324
|
+
'throughSeq': z.number().readonly().optional().describe('Inclusive log cut; omission selects the observed log end. A follow opening reports the cut it covered so a caller can pin the same point.'),
|
|
325
|
+
'beforeSeq': z.number().readonly().optional(),
|
|
326
|
+
'maxMessages': z.number().readonly().optional(),
|
|
327
|
+
'turnWindow': z.object({
|
|
328
|
+
'minMessages': z.number().readonly().describe('Minimum append-origin user/assistant messages; must not exceed maxMessages.'),
|
|
329
|
+
'minTurns': z.number().readonly().describe('Minimum Turn starts crossed, including the partial Turn at beforeSeq.'),
|
|
330
|
+
}).readonly().optional().describe('Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins.'),
|
|
331
|
+
}))
|
|
332
|
+
let _unieai_rabi_api_session_controller_session_events_result$schema$value
|
|
333
|
+
const _unieai_rabi_api_session_controller_session_events_result$schema = () => (_unieai_rabi_api_session_controller_session_events_result$schema$value ??= z.object({
|
|
334
|
+
'cursor': z.number().readonly(),
|
|
335
|
+
'records': z.array(z.object({
|
|
336
|
+
'type': z.literal("event").readonly(),
|
|
337
|
+
'event': z.object({
|
|
338
|
+
'type': z.string().readonly(),
|
|
339
|
+
'seq': z.number().readonly(),
|
|
340
|
+
'time': z.number().readonly(),
|
|
341
|
+
'data': z.json().readonly(),
|
|
342
|
+
'ignorable': z.literal(true).readonly().optional(),
|
|
343
|
+
'sourceEventSeqs': z.json().readonly().optional().describe('Earlier sources on current surface events; opaque JSON on unknown ignorable events.'),
|
|
344
|
+
'surfaceOp': z.json().readonly().optional().describe('Canonical placement on current surface events; opaque JSON on unknown ignorable events.'),
|
|
345
|
+
}).readonly(),
|
|
346
|
+
})).readonly(),
|
|
347
|
+
'hasMore': z.boolean().readonly(),
|
|
348
|
+
}))
|
|
349
|
+
let _unieai_rabi_api_session_controller_session_follow_parameter_0$schema$value
|
|
350
|
+
const _unieai_rabi_api_session_controller_session_follow_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_follow_parameter_0$schema$value ??= z.object({
|
|
351
|
+
'address': z.union([z.object({
|
|
352
|
+
'kind': z.literal("session").readonly(),
|
|
353
|
+
'sessionId': z.string().readonly(),
|
|
354
|
+
}), z.object({
|
|
355
|
+
'kind': z.literal("subagent").readonly(),
|
|
356
|
+
'parentSessionId': z.string().readonly(),
|
|
357
|
+
'childSessionId': z.string().readonly(),
|
|
358
|
+
'mode': z.union([z.literal("one-shot"), z.literal("continuable"), z.literal("unknown")]).readonly(),
|
|
359
|
+
})]).readonly(),
|
|
360
|
+
'activate': z.boolean().readonly().optional().describe('Request background activation; omission leaves the read passive.'),
|
|
361
|
+
'assistantStream': z.literal(true).readonly().optional().describe('Include process-local assistant presentation frames for the Web client.'),
|
|
362
|
+
'maxMessages': z.number().readonly().optional(),
|
|
363
|
+
'turnWindow': z.object({
|
|
364
|
+
'minMessages': z.number().readonly().describe('Minimum append-origin user/assistant messages; must not exceed maxMessages.'),
|
|
365
|
+
'minTurns': z.number().readonly().describe('Minimum Turn starts crossed, including the partial Turn at beforeSeq.'),
|
|
366
|
+
}).readonly().optional().describe('Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins.'),
|
|
367
|
+
}))
|
|
368
|
+
let _unieai_rabi_api_session_controller_session_follow_result$schema$value
|
|
369
|
+
const _unieai_rabi_api_session_controller_session_follow_result$schema = () => (_unieai_rabi_api_session_controller_session_follow_result$schema$value ??= z.union([z.object({
|
|
370
|
+
'type': z.literal("event").readonly(),
|
|
371
|
+
'event': z.object({
|
|
372
|
+
'type': z.string().readonly(),
|
|
373
|
+
'seq': z.number().readonly(),
|
|
374
|
+
'time': z.number().readonly(),
|
|
375
|
+
'data': z.json().readonly(),
|
|
376
|
+
'ignorable': z.literal(true).readonly().optional(),
|
|
377
|
+
'sourceEventSeqs': z.json().readonly().optional().describe('Earlier sources on current surface events; opaque JSON on unknown ignorable events.'),
|
|
378
|
+
'surfaceOp': z.json().readonly().optional().describe('Canonical placement on current surface events; opaque JSON on unknown ignorable events.'),
|
|
379
|
+
}).readonly(),
|
|
380
|
+
}), z.object({
|
|
381
|
+
'type': z.literal("snapshot").readonly(),
|
|
382
|
+
'header': z.object({
|
|
383
|
+
'version': z.number().readonly(),
|
|
384
|
+
'id': z.string().readonly(),
|
|
385
|
+
'createdAt': z.number().readonly(),
|
|
386
|
+
'cwd': z.string().readonly().optional(),
|
|
387
|
+
'parentSession': z.string().readonly().optional(),
|
|
388
|
+
'isSeeded': z.boolean().readonly().describe('Whether the Session contains a fork-inherited prefix.'),
|
|
389
|
+
'origin': z.literal("subagent").readonly().optional(),
|
|
390
|
+
'delegationDepth': z.number().readonly().optional(),
|
|
391
|
+
'agentPreset': z.string().readonly().optional(),
|
|
392
|
+
}).readonly(),
|
|
393
|
+
'cursor': z.number().readonly(),
|
|
394
|
+
'records': z.array(z.object({
|
|
395
|
+
'type': z.literal("event").readonly(),
|
|
396
|
+
'event': z.object({
|
|
397
|
+
'type': z.string().readonly(),
|
|
398
|
+
'seq': z.number().readonly(),
|
|
399
|
+
'time': z.number().readonly(),
|
|
400
|
+
'data': z.json().readonly(),
|
|
401
|
+
'ignorable': z.literal(true).readonly().optional(),
|
|
402
|
+
'sourceEventSeqs': z.json().readonly().optional().describe('Earlier sources on current surface events; opaque JSON on unknown ignorable events.'),
|
|
403
|
+
'surfaceOp': z.json().readonly().optional().describe('Canonical placement on current surface events; opaque JSON on unknown ignorable events.'),
|
|
404
|
+
}).readonly(),
|
|
405
|
+
})).readonly(),
|
|
406
|
+
'hasMore': z.boolean().readonly(),
|
|
407
|
+
'projections': z.object({
|
|
408
|
+
'asOfSeq': z.number().readonly(),
|
|
409
|
+
'values': z.intersection(z.object({
|
|
410
|
+
'inbox': z.object({
|
|
411
|
+
'next-turn': z.array(z.json()).readonly(),
|
|
412
|
+
'next-step': z.array(z.json()).readonly(),
|
|
413
|
+
}).optional().describe('Pending agent input reconstructed from durable inbox splices.'),
|
|
414
|
+
'modelSelection': z.object({
|
|
415
|
+
'lastUsed': z.union([z.literal(null), z.object({
|
|
416
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
417
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
418
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
419
|
+
})]).readonly().describe('Selection used by the latest recorded model request.'),
|
|
420
|
+
'next': z.union([z.literal(null), z.object({
|
|
421
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
422
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
423
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
424
|
+
})]).readonly().describe('Selection the next model step uses; null while the Agent\'s initial options supply the route.'),
|
|
425
|
+
}).optional().describe('Recorded model selection for the next model step and the latest request.'),
|
|
426
|
+
'actionCards': z.object({
|
|
427
|
+
'proposals': z.record(z.string(), z.object({
|
|
428
|
+
'callId': z.string().readonly().describe('Id of the logged tool call.'),
|
|
429
|
+
'turn': z.number().readonly().describe('Turn whose answer the card follows.'),
|
|
430
|
+
'action': z.string().readonly().describe('Registered action kind named by the call.'),
|
|
431
|
+
'title': z.string().readonly(),
|
|
432
|
+
'brief': z.string().readonly().describe('What the action does, in the user\'s language.'),
|
|
433
|
+
'details': z.record(z.string(), z.json()).readonly().readonly().describe('Fields the kind\'s skill asks for.'),
|
|
434
|
+
})).readonly().readonly(),
|
|
435
|
+
'decisions': z.record(z.string(), z.object({
|
|
436
|
+
'callId': z.string().readonly(),
|
|
437
|
+
'action': z.string().readonly(),
|
|
438
|
+
'phase': z.string().readonly(),
|
|
439
|
+
'data': z.union([z.undefined(), z.record(z.string(), z.json()).readonly()]).readonly().optional().describe('Kind-defined fields such as a chosen location or a created package.'),
|
|
440
|
+
})).readonly().readonly(),
|
|
441
|
+
}).optional().describe('Action card proposals and decisions for the currently open Session.'),
|
|
442
|
+
'agentPreset': z.union([z.literal(null), z.string()]).optional().describe('Preset the Session runs, or null when the deployment composes none.'),
|
|
443
|
+
'agentTeam': z.object({
|
|
444
|
+
'enabled': z.boolean().readonly(),
|
|
445
|
+
'tasks': z.array(z.object({
|
|
446
|
+
'id': z.string().readonly(),
|
|
447
|
+
'revision': z.number().readonly(),
|
|
448
|
+
'subject': z.string().readonly(),
|
|
449
|
+
'description': z.string().readonly(),
|
|
450
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
451
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
452
|
+
'writeScopes': z.array(z.string()).readonly(),
|
|
453
|
+
'ownerId': z.string().readonly().optional(),
|
|
454
|
+
'ownerName': z.string().readonly().optional().describe('Immutable agent path captured at assignment; absent on unnamed historical owners.'),
|
|
455
|
+
'ready': z.boolean().readonly(),
|
|
456
|
+
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
457
|
+
})).readonly(),
|
|
458
|
+
'failure': z.string().readonly().optional(),
|
|
459
|
+
}).optional().describe('Saved selection and non-deleted task board of the Team rooted at the projected Session.'),
|
|
460
|
+
'workingDirectory': z.union([z.literal(null), z.string()]).optional().describe('Recorded current directory for Session observations, or null when none is recorded.'),
|
|
461
|
+
'subagentCatalog': z.array(z.union([z.object({
|
|
462
|
+
'id': z.string().readonly(),
|
|
463
|
+
'createdAt': z.number().readonly(),
|
|
464
|
+
'mode': z.literal("one-shot").readonly().describe('A terminal one-shot child.'),
|
|
465
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
466
|
+
}), z.object({
|
|
467
|
+
'id': z.string().readonly(),
|
|
468
|
+
'createdAt': z.number().readonly(),
|
|
469
|
+
'mode': z.literal("external").readonly().describe('An external execution without a local child Session.'),
|
|
470
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
471
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
472
|
+
}), z.object({
|
|
473
|
+
'id': z.string().readonly(),
|
|
474
|
+
'createdAt': z.number().readonly(),
|
|
475
|
+
'mode': z.literal("continuable").readonly().describe('A resumable conversation.'),
|
|
476
|
+
'label': z.string().readonly().describe('Durable creation label from the parent catalog.'),
|
|
477
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
478
|
+
}), z.object({
|
|
479
|
+
'id': z.string().readonly(),
|
|
480
|
+
'createdAt': z.number().readonly(),
|
|
481
|
+
'mode': z.literal("unknown").readonly(),
|
|
482
|
+
'label': z.string().readonly().optional(),
|
|
483
|
+
})])).optional().describe('Direct children in parent catalog event order, excluding fork-inherited facts.'),
|
|
484
|
+
'subagentTiming': z.object({
|
|
485
|
+
'settledMs': z.number().describe('Milliseconds accumulated across completed turns after the child\'s own descriptor.'),
|
|
486
|
+
'active': z.object({
|
|
487
|
+
'since': z.number().describe('Start of the open turn.'),
|
|
488
|
+
'through': z.number().describe('Latest event time folded into this projection cut.'),
|
|
489
|
+
}).optional().describe('Same-cut bounds of the currently open turn, when one has not reached `turn/end`.'),
|
|
490
|
+
'lastTurnCompleted': z.boolean().optional().describe('Whether the latest closed turn after the child\'s own descriptor completed normally; absent while a turn is open or before one closes.'),
|
|
491
|
+
}).optional().describe('Active-turn duration and latest closed-turn completion for a descriptor-backed subagent session.'),
|
|
492
|
+
'subagent': z.union([z.literal(null), z.object({
|
|
493
|
+
'mode': z.literal("one-shot").describe('A terminal one-shot child.'),
|
|
494
|
+
'label': z.string().optional().describe('Optional durable creation label from the child\'s descriptor.'),
|
|
495
|
+
'seq': z.number().describe('Seq of the `subagent/descriptor` event this identity was folded from. `session.isOwnSeq(seq)` proves the identity comes from the child\'s OWN log suffix — where a descriptor is immutable once appended — and not from a fork seed\'s replayed ancestor descriptor.'),
|
|
496
|
+
}), z.object({
|
|
497
|
+
'mode': z.literal("continuable").describe('A resumable conversation.'),
|
|
498
|
+
'label': z.string().describe('Durable creation label from the child\'s descriptor.'),
|
|
499
|
+
'seq': z.number().describe('Seq of the folded descriptor event; see the one-shot arm for the own-suffix proof.'),
|
|
500
|
+
})]).optional().describe('Identity of a descriptor-backed subagent session. `null` ⟺ no valid descriptor (missing, malformed, or unrecognized-version — deliberately undistinguished). The sentinel is deliberately serializable: a value pushed over JSON transports must survive `JSON.stringify` losslessly, where an `undefined` field would be dropped and a stale identity would survive on the receiving side. The entry itself stays non-optional.'),
|
|
501
|
+
'title': z.union([z.literal(null), z.string()]).optional().describe('The session\'s current normalized title — the latest `session/title` event\'s text (last-wins), or `null` before the first title lands. A plain string: the shape the client list rows consume.'),
|
|
502
|
+
'todos': z.union([z.literal(null), z.array(z.object({
|
|
503
|
+
'content': z.string().describe('What this task is — a short imperative line shown in the UI.'),
|
|
504
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress")]).describe('Lifecycle state. `in_progress` marks a task being worked now; parallel work may mark several.'),
|
|
505
|
+
}))]).optional().describe('The agent\'s current whole todo list (the latest `todo/write` snapshot), or `null` before the first write. Whole-value rule: every `todo/write` carries the complete replacement list, so the fold is last-wins. Excluded from Session summary payloads, with `null` kept outside the exclusion mark so the pre-first-write value stays expressible.'),
|
|
506
|
+
'permissions': z.object({
|
|
507
|
+
'currentValue': z.string().describe('The effective current value: a configured preset key, `auto`, or `custom`.'),
|
|
508
|
+
}).optional().describe('The session\'s current permission, folded from the three whole-value knob events (`permission/preset`, `sandbox/mode`, `approval/policy`) over the composition defaults. Selectable options come from the process-level catalog Remote. Key absence means no permission service is composed — clients hide the control.'),
|
|
509
|
+
'conversationContinuation': z.union([z.literal(null), z.number()]).optional().describe('Eligible latest failed turn/end for an empty prompt, or null.'),
|
|
510
|
+
'sessionListMetadata': z.object({
|
|
511
|
+
'blank': z.boolean().readonly().describe('Whether the folded prefix contains no turn.'),
|
|
512
|
+
'lastPromptAt': z.union([z.literal(null), z.number()]).readonly().describe('Latest human-authored prompt time in the folded prefix.'),
|
|
513
|
+
}).optional().describe('Persisted facts used to summarize a Session without activating it.'),
|
|
514
|
+
'imageLimits': z.object({
|
|
515
|
+
'maxImageBytes': z.number(),
|
|
516
|
+
'maxImagesPerMessage': z.number(),
|
|
517
|
+
'maxMessageImageBytes': z.number(),
|
|
518
|
+
'maxImagePixels': z.number(),
|
|
519
|
+
'maxImageDimension': z.number().describe('Maximum intrinsic width and maximum intrinsic height in pixels for one image.'),
|
|
520
|
+
'mediaTypes': z.array(z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")])),
|
|
521
|
+
}).optional().describe('Image-intake limits enforced by the Session prompt endpoint. Boot constant, excluded from Session summary payloads: every Session shares it, so a list row would repeat one host-wide fact.'),
|
|
522
|
+
'tokenUsage': z.object({
|
|
523
|
+
'uncachedInputTokens': z.number(),
|
|
524
|
+
'outputTokens': z.number(),
|
|
525
|
+
'cacheReadTokens': z.number(),
|
|
526
|
+
'cacheWriteTokens': z.number(),
|
|
527
|
+
}).optional().describe('Provider-reported usage accumulated across the complete durable log.'),
|
|
528
|
+
'contextPressure': z.object({
|
|
529
|
+
'pressureTokens': z.number().optional().describe('Provider-reported prompt size of the most recent request: uncached input plus cache reads and writes. Response output is excluded, so this does not grow as the current turn streams. Absent until a provider reports usage.'),
|
|
530
|
+
'projectedTokens': z.number().optional().describe('What the NEXT request\'s prompt would cost: {@link pressureTokens} plus the heuristic repricing of everything the surface gained or lost since that sample. Only the delta is estimated, so the figure stays anchored to the provider while still reacting the moment a compaction shadows a span — which `pressureTokens` alone cannot do, since compaction reports no usage of its own. Absent until a provider reports usage.'),
|
|
531
|
+
'contextWindow': z.number().optional().describe('Newest recorded route capacity; absent when no adapter advertised one.'),
|
|
532
|
+
}).optional().describe('Newest request pressure paired with the newest known route capacity.'),
|
|
533
|
+
'contextBreakdown': z.object({
|
|
534
|
+
'systemTokens': z.number().describe('Heuristic tokens of the last nonempty surviving system prompt in surface order; 0 when none exists.'),
|
|
535
|
+
'toolsTokens': z.number().describe('Heuristic tokens of the newest request envelope\'s tool schemas; 0 before any request.'),
|
|
536
|
+
'messageTokens': z.number().describe('Heuristic tokens of every other visible surface node, including superseded system prompts.'),
|
|
537
|
+
}).optional().describe('Heuristic system/tools/message composition of the next request.'),
|
|
538
|
+
'userQuestions': z.object({
|
|
539
|
+
'active': z.array(z.object({
|
|
540
|
+
'callId': z.string().readonly(),
|
|
541
|
+
'questions': z.array(z.object({
|
|
542
|
+
'id': z.string().describe('Stable caller-provided question id, echoed in the answer.'),
|
|
543
|
+
'question': z.string().describe('The question to display.'),
|
|
544
|
+
'detail': z.string().optional().describe('Optional supporting detail rendered with the question but kept out of option labels.'),
|
|
545
|
+
'header': z.string().optional().describe('Optional short heading/group label.'),
|
|
546
|
+
'options': z.array(z.object({
|
|
547
|
+
'label': z.string().describe('User-facing label.'),
|
|
548
|
+
'description': z.string().optional().describe('Optional extra context rendered by capable UIs.'),
|
|
549
|
+
})).optional().describe('Optional choices the UI can render as a menu.'),
|
|
550
|
+
'multiSelect': z.boolean().optional().describe('Whether more than one option may be selected. Defaults to single-select.'),
|
|
551
|
+
'intent': z.union([z.object({
|
|
552
|
+
'kind': z.literal("plan-review").describe('A plan submitted for review: `detail` is the plan markdown `ask()` requires, and the decision approves or declines it.'),
|
|
553
|
+
'approve': z.string().describe('The option label that approves the plan; every other option declines it. Named rather than positional so no UI infers the verdict from option order. An `approve` naming no option of its own question is rejected at `ask()`.'),
|
|
554
|
+
'callId': z.string().optional().describe('Logged tool invocation whose arguments contain the reviewed plan.'),
|
|
555
|
+
}), z.object({
|
|
556
|
+
'kind': z.literal("approval").describe('A blocking permission decision with fixed actions and no free-text answer.'),
|
|
557
|
+
'approve': z.string().describe('Option label granting the scope described by the caller.'),
|
|
558
|
+
'reject': z.string().describe('Option label refusing the requested access.'),
|
|
559
|
+
'always': z.string().optional().describe('Optional persistent grant offered only when the caller supports it.'),
|
|
560
|
+
'subject': z.object({
|
|
561
|
+
'name': z.string(),
|
|
562
|
+
'icon': z.string().optional(),
|
|
563
|
+
}).optional().describe('Metadata for human recognition; the caller admits icon sources, which the UI may load as URLs. Never an authorization identity.'),
|
|
564
|
+
'display': z.object({
|
|
565
|
+
'question': z.intersection(z.object({
|
|
566
|
+
'en': z.string(),
|
|
567
|
+
}), z.record(z.string(), z.string())),
|
|
568
|
+
'detail': z.intersection(z.object({
|
|
569
|
+
'en': z.string(),
|
|
570
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
571
|
+
'approve': z.intersection(z.object({
|
|
572
|
+
'en': z.string(),
|
|
573
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
574
|
+
}).optional().describe('Localized question and limited-grant label; fixed cards own reject/always wording. Option labels remain answer values.'),
|
|
575
|
+
})]).optional().describe('Optional presentation intent for capable UIs; absent asks for the generic option list.'),
|
|
576
|
+
})).readonly(),
|
|
577
|
+
'state': z.union([z.literal("open"), z.literal("continued")]).readonly(),
|
|
578
|
+
})).readonly().describe('Calls that can still take an answer, in ask order.'),
|
|
579
|
+
'settled': z.array(z.object({
|
|
580
|
+
'callId': z.string().readonly().describe('The settled call.'),
|
|
581
|
+
'answers': z.array(z.object({
|
|
582
|
+
'id': z.string().describe('The answered question id.'),
|
|
583
|
+
'selected': z.array(z.string()).describe('Selected option labels. May accompany custom text for a multi-select question.'),
|
|
584
|
+
'custom': z.string().optional().describe('Optional free-text "Other" answer.'),
|
|
585
|
+
})).readonly().describe('The recorded batch, one entry per question; empty when the late reply carried none.'),
|
|
586
|
+
})).readonly().describe('Calls an answer settled, in settlement order.'),
|
|
587
|
+
}).optional().describe('Timed questions that remain answerable in this Session, and the ones a late reply settled.'),
|
|
588
|
+
'forgeChangeRequests': z.array(z.object({
|
|
589
|
+
'url': z.string().readonly().describe('Web URL as first recorded.'),
|
|
590
|
+
'origin': z.union([z.literal("created"), z.literal("referenced"), z.literal("discovered"), z.literal("tracked")]).readonly().describe('How the change request became bound.'),
|
|
591
|
+
'dismissed': z.boolean().readonly().describe('Whether a dismissal hides the binding.'),
|
|
592
|
+
})).optional().describe('Every change request bound to the Session, hidden ones included, in binding order.'),
|
|
593
|
+
'forgeWorktree': z.union([z.literal(null), z.object({
|
|
594
|
+
'path': z.string().readonly().describe('Canonical checkout directory.'),
|
|
595
|
+
'branch': z.string().readonly().describe('Branch created for the checkout.'),
|
|
596
|
+
'from': z.union([z.literal(null), z.string()]).readonly().describe('Requested base branch, or null when the checkout started from HEAD of the source checkout.'),
|
|
597
|
+
'baseCommit': z.string().readonly().describe('Commit object name the branch started from.'),
|
|
598
|
+
'repositoryRoot': z.string().readonly().describe('Canonical root of the source checkout.'),
|
|
599
|
+
})]).optional().describe('The worktree the panel created for the Session while the Session works in it, else null.'),
|
|
600
|
+
'worktree': z.array(z.object({
|
|
601
|
+
'worktree': z.object({
|
|
602
|
+
'path': z.string().describe('Canonical absolute checkout directory in the filesystem provider\'s execution world.'),
|
|
603
|
+
'branch': z.string().describe('Newly created branch name.'),
|
|
604
|
+
'baseCommit': z.string().describe('Resolved commit object name; repository-local replacement refs can change its checked-out content.'),
|
|
605
|
+
'repositoryRoot': z.string().describe('Canonical root of the source checkout.'),
|
|
606
|
+
}).readonly(),
|
|
607
|
+
'owned': z.boolean().readonly().describe('False for a creation inside the fork-inherited prefix.'),
|
|
608
|
+
})).optional().describe('Checkouts recorded in the Session\'s log, in creation order.'),
|
|
609
|
+
'forkLineage': z.object({
|
|
610
|
+
'origin': z.literal("fork").readonly().describe('How the Session came to exist; only `fork` is published under this key.'),
|
|
611
|
+
'sourceSessionId': z.string().readonly().describe('Session the branch was cut from.'),
|
|
612
|
+
'authoredByViewer': z.boolean().readonly().describe('True when the reader created the branch it is reading.'),
|
|
613
|
+
'workspaceReadOnly': z.boolean().readonly().describe('True when the branch\'s workspace stays read-only for its reader.'),
|
|
614
|
+
}).optional().describe('Branch facts one reader was given for a branch of a shared Session.'),
|
|
615
|
+
'goal': z.union([z.literal(null), z.object({
|
|
616
|
+
'goal': z.object({
|
|
617
|
+
'objective': z.string().readonly().describe('Human-requested completion objective.'),
|
|
618
|
+
'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
|
|
619
|
+
'blockedReason': z.object({
|
|
620
|
+
'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
|
|
621
|
+
'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
|
|
622
|
+
}).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
|
|
623
|
+
'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
|
|
624
|
+
'id': z.string().readonly().describe('Stable goal identity.'),
|
|
625
|
+
'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
|
|
626
|
+
}).readonly().describe('Current durable goal snapshot (the CAS ref for mutations rides on it).'),
|
|
627
|
+
'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
|
|
628
|
+
'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
|
|
629
|
+
'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
|
|
630
|
+
})]).optional().describe('The session\'s current goal and admitted-round count, or `null` before the first create and after a clear tombstone. `goal/change` supplies the whole lifecycle value; matching admitted `user/message` events advance `roundsStarted`.'),
|
|
631
|
+
'plan': z.object({
|
|
632
|
+
'active': z.boolean(),
|
|
633
|
+
'pending': z.boolean(),
|
|
634
|
+
}).optional().describe('Plan collaboration state folded from the plan command lifecycle and `plan/mode` events.'),
|
|
635
|
+
}), z.record(z.string(), z.json()).readonly()).readonly().describe('Provider-validated values; omitted keys are absent capabilities at this cut.'),
|
|
636
|
+
}).readonly(),
|
|
637
|
+
'assistantStream': z.object({
|
|
638
|
+
'revision': z.number().readonly(),
|
|
639
|
+
'activeAttempt': z.object({
|
|
640
|
+
'attemptId': z.string().readonly(),
|
|
641
|
+
'startedAfterSeq': z.union([z.number(), z.literal(-1)]).readonly().describe('Last durable Session seq observed when this attempt started.'),
|
|
642
|
+
'turn': z.number().readonly(),
|
|
643
|
+
'step': z.number().readonly(),
|
|
644
|
+
'nextIndex': z.number().readonly().describe('Dense position expected for the next live chunk frame.'),
|
|
645
|
+
'stream': z.array(z.json()).readonly().describe('Compact detached stream accumulated at this opening revision.'),
|
|
646
|
+
}).readonly().optional(),
|
|
647
|
+
}).readonly().optional(),
|
|
648
|
+
}), z.object({
|
|
649
|
+
'type': z.literal("assistant-stream").readonly(),
|
|
650
|
+
'frame': z.union([z.object({
|
|
651
|
+
'type': z.literal("start").readonly(),
|
|
652
|
+
'attemptId': z.string().readonly(),
|
|
653
|
+
'revision': z.number().readonly(),
|
|
654
|
+
'startedAfterSeq': z.union([z.number(), z.literal(-1)]).readonly(),
|
|
655
|
+
'turn': z.number().readonly(),
|
|
656
|
+
'step': z.number().readonly(),
|
|
657
|
+
}), z.object({
|
|
658
|
+
'type': z.literal("chunk").readonly(),
|
|
659
|
+
'attemptId': z.string().readonly(),
|
|
660
|
+
'revision': z.number().readonly(),
|
|
661
|
+
'index': z.number().readonly(),
|
|
662
|
+
'time': z.number().readonly(),
|
|
663
|
+
'chunk': z.json().readonly(),
|
|
664
|
+
}), z.object({
|
|
665
|
+
'type': z.literal("end").readonly(),
|
|
666
|
+
'attemptId': z.string().readonly(),
|
|
667
|
+
'revision': z.number().readonly(),
|
|
668
|
+
'index': z.number().readonly().describe('Number of chunk frames represented by this terminal marker.'),
|
|
669
|
+
'outcome': z.union([z.object({
|
|
670
|
+
'kind': z.literal("committed").readonly(),
|
|
671
|
+
'eventType': z.union([z.literal("assistant/message"), z.literal("assistant/attempt")]).readonly(),
|
|
672
|
+
'seq': z.number().readonly(),
|
|
673
|
+
}), z.object({
|
|
674
|
+
'kind': z.literal("abandoned").readonly(),
|
|
675
|
+
})]).readonly(),
|
|
676
|
+
})]).readonly(),
|
|
677
|
+
})]))
|
|
678
|
+
let _unieai_rabi_api_session_controller_session_fork_parameter_0$schema$value
|
|
679
|
+
const _unieai_rabi_api_session_controller_session_fork_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_fork_parameter_0$schema$value ??= z.object({
|
|
680
|
+
'sessionId': z.string().readonly(),
|
|
681
|
+
'atSeq': z.number().readonly().optional().describe('Exact inclusive source event seq; omission selects the latest completed-turn prefix.'),
|
|
682
|
+
'allowMigration': z.boolean().readonly().optional().describe('False asks the Host to check for required migration before forking. Defaults to true.'),
|
|
683
|
+
}))
|
|
684
|
+
let _unieai_rabi_api_session_controller_session_fork_result$schema$value
|
|
685
|
+
const _unieai_rabi_api_session_controller_session_fork_result$schema = () => (_unieai_rabi_api_session_controller_session_fork_result$schema$value ??= z.object({
|
|
686
|
+
'sessionId': z.string().readonly(),
|
|
687
|
+
}))
|
|
688
|
+
let _unieai_rabi_api_session_controller_session_initializeDefaultModel_result$schema$value
|
|
689
|
+
const _unieai_rabi_api_session_controller_session_initializeDefaultModel_result$schema = () => (_unieai_rabi_api_session_controller_session_initializeDefaultModel_result$schema$value ??= z.void())
|
|
690
|
+
let _unieai_rabi_api_session_controller_session_list_parameter_0$schema$value
|
|
691
|
+
const _unieai_rabi_api_session_controller_session_list_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_list_parameter_0$schema$value ??= z.object({
|
|
692
|
+
'cursor': z.string().readonly().optional(),
|
|
693
|
+
}))
|
|
694
|
+
let _unieai_rabi_api_session_controller_session_list_result$schema$value
|
|
695
|
+
const _unieai_rabi_api_session_controller_session_list_result$schema = () => (_unieai_rabi_api_session_controller_session_list_result$schema$value ??= z.object({
|
|
696
|
+
'items': z.array(z.object({
|
|
697
|
+
'agentAvailable': z.boolean().readonly().describe('Whether this Session currently owns a live Agent.'),
|
|
698
|
+
'formatStatus': z.union([z.literal("current"), z.literal("migration-required")]).readonly().optional().describe('Current for attached Sessions; otherwise the persistence format status when reported.'),
|
|
699
|
+
'sessionId': z.string().readonly(),
|
|
700
|
+
'updatedAt': z.number().readonly(),
|
|
701
|
+
'running': z.boolean().readonly(),
|
|
702
|
+
'blank': z.boolean().readonly(),
|
|
703
|
+
'parentSessionId': z.string().readonly().optional(),
|
|
704
|
+
'origin': z.literal("subagent").readonly().optional(),
|
|
705
|
+
'cwd': z.string().readonly().optional(),
|
|
706
|
+
'projections': z.object({
|
|
707
|
+
'kind': z.union([z.literal("cached"), z.literal("sequenced")]).readonly().describe('`sequenced`: the Host\'s live registry produced the block for an attached Session, so `asOfSeq` is comparable with baselines and frames of the same connection. `cached`: a header-only listing viewed the block from the persisted projection cache, so `asOfSeq` is the stored record\'s own watermark and must not be compared with the connected Session\'s values.'),
|
|
708
|
+
'asOfSeq': z.number().readonly().describe('Watermark of the block in the sequence space named by `kind`.'),
|
|
709
|
+
'values': z.object({
|
|
710
|
+
'subagent': z.union([z.literal(null), z.object({
|
|
711
|
+
'mode': z.literal("one-shot").describe('A terminal one-shot child.'),
|
|
712
|
+
'label': z.string().optional().describe('Optional durable creation label from the child\'s descriptor.'),
|
|
713
|
+
'seq': z.number().describe('Seq of the `subagent/descriptor` event this identity was folded from. `session.isOwnSeq(seq)` proves the identity comes from the child\'s OWN log suffix — where a descriptor is immutable once appended — and not from a fork seed\'s replayed ancestor descriptor.'),
|
|
714
|
+
}), z.object({
|
|
715
|
+
'mode': z.literal("continuable").describe('A resumable conversation.'),
|
|
716
|
+
'label': z.string().describe('Durable creation label from the child\'s descriptor.'),
|
|
717
|
+
'seq': z.number().describe('Seq of the folded descriptor event; see the one-shot arm for the own-suffix proof.'),
|
|
718
|
+
})]).optional().describe('Identity of a descriptor-backed subagent session. `null` ⟺ no valid descriptor (missing, malformed, or unrecognized-version — deliberately undistinguished). The sentinel is deliberately serializable: a value pushed over JSON transports must survive `JSON.stringify` losslessly, where an `undefined` field would be dropped and a stale identity would survive on the receiving side. The entry itself stays non-optional.'),
|
|
719
|
+
'inbox': z.object({
|
|
720
|
+
'next-turn': z.array(z.json()).readonly(),
|
|
721
|
+
'next-step': z.array(z.json()).readonly(),
|
|
722
|
+
}).optional().describe('Pending agent input reconstructed from durable inbox splices.'),
|
|
723
|
+
'modelSelection': z.object({
|
|
724
|
+
'lastUsed': z.union([z.literal(null), z.object({
|
|
725
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
726
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
727
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
728
|
+
})]).readonly().describe('Selection used by the latest recorded model request.'),
|
|
729
|
+
'next': z.union([z.literal(null), z.object({
|
|
730
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
731
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
732
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
733
|
+
})]).readonly().describe('Selection the next model step uses; null while the Agent\'s initial options supply the route.'),
|
|
734
|
+
}).optional().describe('Recorded model selection for the next model step and the latest request.'),
|
|
735
|
+
'agentPreset': z.union([z.literal(null), z.string()]).optional().describe('Preset the Session runs, or null when the deployment composes none.'),
|
|
736
|
+
'agentTeam': z.object({
|
|
737
|
+
'enabled': z.boolean().readonly(),
|
|
738
|
+
'tasks': z.array(z.object({
|
|
739
|
+
'id': z.string().readonly(),
|
|
740
|
+
'revision': z.number().readonly(),
|
|
741
|
+
'subject': z.string().readonly(),
|
|
742
|
+
'description': z.string().readonly(),
|
|
743
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
744
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
745
|
+
'writeScopes': z.array(z.string()).readonly(),
|
|
746
|
+
'ownerId': z.string().readonly().optional(),
|
|
747
|
+
'ownerName': z.string().readonly().optional().describe('Immutable agent path captured at assignment; absent on unnamed historical owners.'),
|
|
748
|
+
'ready': z.boolean().readonly(),
|
|
749
|
+
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
750
|
+
})).readonly(),
|
|
751
|
+
'failure': z.string().readonly().optional(),
|
|
752
|
+
}).optional().describe('Saved selection and non-deleted task board of the Team rooted at the projected Session.'),
|
|
753
|
+
'workingDirectory': z.union([z.literal(null), z.string()]).optional().describe('Recorded current directory for Session observations, or null when none is recorded.'),
|
|
754
|
+
'subagentCatalog': z.array(z.union([z.object({
|
|
755
|
+
'id': z.string().readonly(),
|
|
756
|
+
'createdAt': z.number().readonly(),
|
|
757
|
+
'mode': z.literal("one-shot").readonly().describe('A terminal one-shot child.'),
|
|
758
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
759
|
+
}), z.object({
|
|
760
|
+
'id': z.string().readonly(),
|
|
761
|
+
'createdAt': z.number().readonly(),
|
|
762
|
+
'mode': z.literal("external").readonly().describe('An external execution without a local child Session.'),
|
|
763
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
764
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
765
|
+
}), z.object({
|
|
766
|
+
'id': z.string().readonly(),
|
|
767
|
+
'createdAt': z.number().readonly(),
|
|
768
|
+
'mode': z.literal("continuable").readonly().describe('A resumable conversation.'),
|
|
769
|
+
'label': z.string().readonly().describe('Durable creation label from the parent catalog.'),
|
|
770
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
771
|
+
}), z.object({
|
|
772
|
+
'id': z.string().readonly(),
|
|
773
|
+
'createdAt': z.number().readonly(),
|
|
774
|
+
'mode': z.literal("unknown").readonly(),
|
|
775
|
+
'label': z.string().readonly().optional(),
|
|
776
|
+
})])).optional().describe('Direct children in parent catalog event order, excluding fork-inherited facts.'),
|
|
777
|
+
'subagentTiming': z.object({
|
|
778
|
+
'settledMs': z.number().describe('Milliseconds accumulated across completed turns after the child\'s own descriptor.'),
|
|
779
|
+
'active': z.object({
|
|
780
|
+
'since': z.number().describe('Start of the open turn.'),
|
|
781
|
+
'through': z.number().describe('Latest event time folded into this projection cut.'),
|
|
782
|
+
}).optional().describe('Same-cut bounds of the currently open turn, when one has not reached `turn/end`.'),
|
|
783
|
+
'lastTurnCompleted': z.boolean().optional().describe('Whether the latest closed turn after the child\'s own descriptor completed normally; absent while a turn is open or before one closes.'),
|
|
784
|
+
}).optional().describe('Active-turn duration and latest closed-turn completion for a descriptor-backed subagent session.'),
|
|
785
|
+
'title': z.union([z.literal(null), z.string()]).optional().describe('The session\'s current normalized title — the latest `session/title` event\'s text (last-wins), or `null` before the first title lands. A plain string: the shape the client list rows consume.'),
|
|
786
|
+
'permissions': z.object({
|
|
787
|
+
'currentValue': z.string().describe('The effective current value: a configured preset key, `auto`, or `custom`.'),
|
|
788
|
+
}).optional().describe('The session\'s current permission, folded from the three whole-value knob events (`permission/preset`, `sandbox/mode`, `approval/policy`) over the composition defaults. Selectable options come from the process-level catalog Remote. Key absence means no permission service is composed — clients hide the control.'),
|
|
789
|
+
'conversationContinuation': z.union([z.literal(null), z.number()]).optional().describe('Eligible latest failed turn/end for an empty prompt, or null.'),
|
|
790
|
+
'sessionListMetadata': z.object({
|
|
791
|
+
'blank': z.boolean().readonly().describe('Whether the folded prefix contains no turn.'),
|
|
792
|
+
'lastPromptAt': z.union([z.literal(null), z.number()]).readonly().describe('Latest human-authored prompt time in the folded prefix.'),
|
|
793
|
+
}).optional().describe('Persisted facts used to summarize a Session without activating it.'),
|
|
794
|
+
'tokenUsage': z.object({
|
|
795
|
+
'uncachedInputTokens': z.number(),
|
|
796
|
+
'outputTokens': z.number(),
|
|
797
|
+
'cacheReadTokens': z.number(),
|
|
798
|
+
'cacheWriteTokens': z.number(),
|
|
799
|
+
}).optional().describe('Provider-reported usage accumulated across the complete durable log.'),
|
|
800
|
+
'userQuestions': z.object({
|
|
801
|
+
'active': z.array(z.object({
|
|
802
|
+
'callId': z.string().readonly(),
|
|
803
|
+
'questions': z.array(z.object({
|
|
804
|
+
'id': z.string().describe('Stable caller-provided question id, echoed in the answer.'),
|
|
805
|
+
'question': z.string().describe('The question to display.'),
|
|
806
|
+
'detail': z.string().optional().describe('Optional supporting detail rendered with the question but kept out of option labels.'),
|
|
807
|
+
'header': z.string().optional().describe('Optional short heading/group label.'),
|
|
808
|
+
'options': z.array(z.object({
|
|
809
|
+
'label': z.string().describe('User-facing label.'),
|
|
810
|
+
'description': z.string().optional().describe('Optional extra context rendered by capable UIs.'),
|
|
811
|
+
})).optional().describe('Optional choices the UI can render as a menu.'),
|
|
812
|
+
'multiSelect': z.boolean().optional().describe('Whether more than one option may be selected. Defaults to single-select.'),
|
|
813
|
+
'intent': z.union([z.object({
|
|
814
|
+
'kind': z.literal("plan-review").describe('A plan submitted for review: `detail` is the plan markdown `ask()` requires, and the decision approves or declines it.'),
|
|
815
|
+
'approve': z.string().describe('The option label that approves the plan; every other option declines it. Named rather than positional so no UI infers the verdict from option order. An `approve` naming no option of its own question is rejected at `ask()`.'),
|
|
816
|
+
'callId': z.string().optional().describe('Logged tool invocation whose arguments contain the reviewed plan.'),
|
|
817
|
+
}), z.object({
|
|
818
|
+
'kind': z.literal("approval").describe('A blocking permission decision with fixed actions and no free-text answer.'),
|
|
819
|
+
'approve': z.string().describe('Option label granting the scope described by the caller.'),
|
|
820
|
+
'reject': z.string().describe('Option label refusing the requested access.'),
|
|
821
|
+
'always': z.string().optional().describe('Optional persistent grant offered only when the caller supports it.'),
|
|
822
|
+
'subject': z.object({
|
|
823
|
+
'name': z.string(),
|
|
824
|
+
'icon': z.string().optional(),
|
|
825
|
+
}).optional().describe('Metadata for human recognition; the caller admits icon sources, which the UI may load as URLs. Never an authorization identity.'),
|
|
826
|
+
'display': z.object({
|
|
827
|
+
'question': z.intersection(z.object({
|
|
828
|
+
'en': z.string(),
|
|
829
|
+
}), z.record(z.string(), z.string())),
|
|
830
|
+
'detail': z.intersection(z.object({
|
|
831
|
+
'en': z.string(),
|
|
832
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
833
|
+
'approve': z.intersection(z.object({
|
|
834
|
+
'en': z.string(),
|
|
835
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
836
|
+
}).optional().describe('Localized question and limited-grant label; fixed cards own reject/always wording. Option labels remain answer values.'),
|
|
837
|
+
})]).optional().describe('Optional presentation intent for capable UIs; absent asks for the generic option list.'),
|
|
838
|
+
})).readonly(),
|
|
839
|
+
'state': z.union([z.literal("open"), z.literal("continued")]).readonly(),
|
|
840
|
+
})).readonly().describe('Calls that can still take an answer, in ask order.'),
|
|
841
|
+
'settled': z.array(z.object({
|
|
842
|
+
'callId': z.string().readonly().describe('The settled call.'),
|
|
843
|
+
'answers': z.array(z.object({
|
|
844
|
+
'id': z.string().describe('The answered question id.'),
|
|
845
|
+
'selected': z.array(z.string()).describe('Selected option labels. May accompany custom text for a multi-select question.'),
|
|
846
|
+
'custom': z.string().optional().describe('Optional free-text "Other" answer.'),
|
|
847
|
+
})).readonly().describe('The recorded batch, one entry per question; empty when the late reply carried none.'),
|
|
848
|
+
})).readonly().describe('Calls an answer settled, in settlement order.'),
|
|
849
|
+
}).optional().describe('Timed questions that remain answerable in this Session, and the ones a late reply settled.'),
|
|
850
|
+
'forgeChangeRequests': z.array(z.object({
|
|
851
|
+
'url': z.string().readonly().describe('Web URL as first recorded.'),
|
|
852
|
+
'origin': z.union([z.literal("created"), z.literal("referenced"), z.literal("discovered"), z.literal("tracked")]).readonly().describe('How the change request became bound.'),
|
|
853
|
+
'dismissed': z.boolean().readonly().describe('Whether a dismissal hides the binding.'),
|
|
854
|
+
})).optional().describe('Every change request bound to the Session, hidden ones included, in binding order.'),
|
|
855
|
+
'forgeWorktree': z.union([z.literal(null), z.object({
|
|
856
|
+
'path': z.string().readonly().describe('Canonical checkout directory.'),
|
|
857
|
+
'branch': z.string().readonly().describe('Branch created for the checkout.'),
|
|
858
|
+
'from': z.union([z.literal(null), z.string()]).readonly().describe('Requested base branch, or null when the checkout started from HEAD of the source checkout.'),
|
|
859
|
+
'baseCommit': z.string().readonly().describe('Commit object name the branch started from.'),
|
|
860
|
+
'repositoryRoot': z.string().readonly().describe('Canonical root of the source checkout.'),
|
|
861
|
+
})]).optional().describe('The worktree the panel created for the Session while the Session works in it, else null.'),
|
|
862
|
+
'worktree': z.array(z.object({
|
|
863
|
+
'worktree': z.object({
|
|
864
|
+
'path': z.string().describe('Canonical absolute checkout directory in the filesystem provider\'s execution world.'),
|
|
865
|
+
'branch': z.string().describe('Newly created branch name.'),
|
|
866
|
+
'baseCommit': z.string().describe('Resolved commit object name; repository-local replacement refs can change its checked-out content.'),
|
|
867
|
+
'repositoryRoot': z.string().describe('Canonical root of the source checkout.'),
|
|
868
|
+
}).readonly(),
|
|
869
|
+
'owned': z.boolean().readonly().describe('False for a creation inside the fork-inherited prefix.'),
|
|
870
|
+
})).optional().describe('Checkouts recorded in the Session\'s log, in creation order.'),
|
|
871
|
+
'forkLineage': z.object({
|
|
872
|
+
'origin': z.literal("fork").readonly().describe('How the Session came to exist; only `fork` is published under this key.'),
|
|
873
|
+
'sourceSessionId': z.string().readonly().describe('Session the branch was cut from.'),
|
|
874
|
+
'authoredByViewer': z.boolean().readonly().describe('True when the reader created the branch it is reading.'),
|
|
875
|
+
'workspaceReadOnly': z.boolean().readonly().describe('True when the branch\'s workspace stays read-only for its reader.'),
|
|
876
|
+
}).optional().describe('Branch facts one reader was given for a branch of a shared Session.'),
|
|
877
|
+
'goal': z.union([z.literal(null), z.object({
|
|
878
|
+
'goal': z.object({
|
|
879
|
+
'objective': z.string().readonly().describe('Human-requested completion objective.'),
|
|
880
|
+
'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
|
|
881
|
+
'blockedReason': z.object({
|
|
882
|
+
'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
|
|
883
|
+
'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
|
|
884
|
+
}).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
|
|
885
|
+
'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
|
|
886
|
+
'id': z.string().readonly().describe('Stable goal identity.'),
|
|
887
|
+
'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
|
|
888
|
+
}).readonly().describe('Current durable goal snapshot (the CAS ref for mutations rides on it).'),
|
|
889
|
+
'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
|
|
890
|
+
'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
|
|
891
|
+
'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
|
|
892
|
+
})]).optional().describe('The session\'s current goal and admitted-round count, or `null` before the first create and after a clear tombstone. `goal/change` supplies the whole lifecycle value; matching admitted `user/message` events advance `roundsStarted`.'),
|
|
893
|
+
'plan': z.object({
|
|
894
|
+
'active': z.boolean(),
|
|
895
|
+
'pending': z.boolean(),
|
|
896
|
+
}).optional().describe('Plan collaboration state folded from the plan command lifecycle and `plan/mode` events.'),
|
|
897
|
+
}).readonly().describe('Provider-validated summary values present in the block; omitted keys remain unknown.'),
|
|
898
|
+
}).readonly().optional(),
|
|
899
|
+
})).readonly(),
|
|
900
|
+
}))
|
|
901
|
+
let _unieai_rabi_api_session_controller_session_modelCatalog_result$schema$value
|
|
902
|
+
const _unieai_rabi_api_session_controller_session_modelCatalog_result$schema = () => (_unieai_rabi_api_session_controller_session_modelCatalog_result$schema$value ??= z.object({
|
|
903
|
+
'default': z.object({
|
|
904
|
+
'provider': z.string().readonly(),
|
|
905
|
+
'model': z.string().readonly(),
|
|
906
|
+
'reasoningEffort': z.string().readonly().optional(),
|
|
907
|
+
}).readonly(),
|
|
908
|
+
'routableProviders': z.array(z.string()).readonly().describe('Provider routes with at least one currently available catalog model.'),
|
|
909
|
+
'groups': z.array(z.object({
|
|
910
|
+
'id': z.string().readonly(),
|
|
911
|
+
'name': z.string().readonly(),
|
|
912
|
+
'models': z.array(z.object({
|
|
913
|
+
'id': z.string().readonly(),
|
|
914
|
+
'name': z.string().readonly(),
|
|
915
|
+
'description': z.string().readonly().optional(),
|
|
916
|
+
'reasoning': z.object({
|
|
917
|
+
'efforts': z.array(z.object({
|
|
918
|
+
'id': z.string().readonly(),
|
|
919
|
+
'name': z.string().readonly(),
|
|
920
|
+
'description': z.string().readonly().optional(),
|
|
921
|
+
})).readonly(),
|
|
922
|
+
'defaultEffort': z.string().readonly().optional(),
|
|
923
|
+
}).readonly().optional(),
|
|
924
|
+
'badge': z.object({
|
|
925
|
+
'text': z.union([z.string(), z.intersection(z.object({
|
|
926
|
+
'en': z.string().readonly(),
|
|
927
|
+
}), z.record(z.string(), z.string()).readonly())]).describe('One literal, or translations keyed by lowercase language id with a required English entry.'),
|
|
928
|
+
'tone': z.union([z.literal("neutral"), z.literal("info"), z.literal("success"), z.literal("warning")]).describe('Emphasis of the label.'),
|
|
929
|
+
}).readonly().optional().describe('Provider-authored label shown beside the name; display data only.'),
|
|
930
|
+
})).readonly(),
|
|
931
|
+
})).readonly(),
|
|
932
|
+
'failures': z.array(z.object({
|
|
933
|
+
'id': z.string().readonly(),
|
|
934
|
+
'name': z.string().readonly(),
|
|
935
|
+
'message': z.string().readonly(),
|
|
936
|
+
})).readonly(),
|
|
937
|
+
}))
|
|
938
|
+
let _unieai_rabi_api_session_controller_session_observeEvent_parameter_0$schema$value
|
|
939
|
+
const _unieai_rabi_api_session_controller_session_observeEvent_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_observeEvent_parameter_0$schema$value ??= z.object({
|
|
940
|
+
'address': z.union([z.object({
|
|
941
|
+
'kind': z.literal("session").readonly(),
|
|
942
|
+
'sessionId': z.string().readonly(),
|
|
943
|
+
}), z.object({
|
|
944
|
+
'kind': z.literal("subagent").readonly(),
|
|
945
|
+
'parentSessionId': z.string().readonly(),
|
|
946
|
+
'childSessionId': z.string().readonly(),
|
|
947
|
+
'mode': z.union([z.literal("one-shot"), z.literal("continuable"), z.literal("unknown")]).readonly(),
|
|
948
|
+
})]).readonly(),
|
|
949
|
+
}))
|
|
950
|
+
let _unieai_rabi_api_session_controller_session_observeEvent_result$schema$value
|
|
951
|
+
const _unieai_rabi_api_session_controller_session_observeEvent_result$schema = () => (_unieai_rabi_api_session_controller_session_observeEvent_result$schema$value ??= z.union([z.object({
|
|
952
|
+
'type': z.literal("event").readonly(),
|
|
953
|
+
'event': z.object({
|
|
954
|
+
'type': z.string().readonly(),
|
|
955
|
+
'seq': z.number().readonly(),
|
|
956
|
+
'time': z.number().readonly(),
|
|
957
|
+
'data': z.json().readonly(),
|
|
958
|
+
'ignorable': z.literal(true).readonly().optional(),
|
|
959
|
+
'sourceEventSeqs': z.json().readonly().optional().describe('Earlier sources on current surface events; opaque JSON on unknown ignorable events.'),
|
|
960
|
+
'surfaceOp': z.json().readonly().optional().describe('Canonical placement on current surface events; opaque JSON on unknown ignorable events.'),
|
|
961
|
+
}).readonly(),
|
|
962
|
+
}), z.object({
|
|
963
|
+
'type': z.literal("ready").readonly(),
|
|
964
|
+
})]))
|
|
965
|
+
let _unieai_rabi_api_session_controller_session_observeProjections_parameter_0$schema$value
|
|
966
|
+
const _unieai_rabi_api_session_controller_session_observeProjections_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_observeProjections_parameter_0$schema$value ??= z.object({
|
|
967
|
+
'sessionId': z.string().readonly(),
|
|
968
|
+
}))
|
|
969
|
+
let _unieai_rabi_api_session_controller_session_observeProjections_result$schema$value
|
|
970
|
+
const _unieai_rabi_api_session_controller_session_observeProjections_result$schema = () => (_unieai_rabi_api_session_controller_session_observeProjections_result$schema$value ??= z.union([z.object({
|
|
971
|
+
'type': z.literal("ready").readonly(),
|
|
972
|
+
}), z.object({
|
|
973
|
+
'type': z.literal("projection").readonly(),
|
|
974
|
+
'seq': z.number().readonly().describe('Seq of the committed event that caused every listed change.'),
|
|
975
|
+
'changes': z.array(z.object({
|
|
976
|
+
'key': z.string().readonly(),
|
|
977
|
+
'val': z.json().readonly(),
|
|
978
|
+
})).readonly().describe('One entry per client-visible key whose view the event changed, in registration order without duplicate keys, with the key\'s new value as `val`. A key absent from `changes` is unchanged; unlike a baseline, absence does not mean an absent capability.'),
|
|
979
|
+
})]))
|
|
980
|
+
let _unieai_rabi_api_session_controller_session_observeState_parameter_0$schema$value
|
|
981
|
+
const _unieai_rabi_api_session_controller_session_observeState_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_observeState_parameter_0$schema$value ??= z.object({
|
|
982
|
+
'sessionId': z.string().readonly(),
|
|
983
|
+
}))
|
|
984
|
+
let _unieai_rabi_api_session_controller_session_observeState_result$schema$value
|
|
985
|
+
const _unieai_rabi_api_session_controller_session_observeState_result$schema = () => (_unieai_rabi_api_session_controller_session_observeState_result$schema$value ??= z.object({
|
|
986
|
+
'cursor': z.number().readonly(),
|
|
987
|
+
'active': z.boolean().readonly(),
|
|
988
|
+
'running': z.boolean().readonly(),
|
|
989
|
+
'queue': z.union([z.literal(null), z.array(z.object({
|
|
990
|
+
'id': z.string().readonly(),
|
|
991
|
+
'placement': z.union([z.literal("queued"), z.literal("steering"), z.literal("context")]).readonly(),
|
|
992
|
+
'rpcId': z.string().readonly().optional(),
|
|
993
|
+
'content': z.array(z.json()).readonly(),
|
|
994
|
+
}))]).readonly(),
|
|
995
|
+
'pendingInput': z.array(z.union([z.literal("approval"), z.literal("question"), z.literal("other")])).readonly().describe('Pending Remote requests sampled when this state was read. A pending change alone does not trigger `observeState`; `wait` refreshes on its own interval.'),
|
|
996
|
+
}))
|
|
997
|
+
let _unieai_rabi_api_session_controller_session_openWorkspacePath_parameter_0$schema$value
|
|
998
|
+
const _unieai_rabi_api_session_controller_session_openWorkspacePath_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_openWorkspacePath_parameter_0$schema$value ??= z.object({
|
|
999
|
+
'action': z.literal("reveal").readonly().optional().describe('File-manager navigation when requested; omission uses the default application.'),
|
|
1000
|
+
'application': z.string().readonly().optional().describe('Registered application identifier; ignored for reveal. Omission preserves the operating system default.'),
|
|
1001
|
+
'path': z.string().readonly().describe('Path after best-effort Session workspace resolution, in Host filesystem syntax.'),
|
|
1002
|
+
}))
|
|
1003
|
+
let _unieai_rabi_api_session_controller_session_openWorkspacePath_result$schema$value
|
|
1004
|
+
const _unieai_rabi_api_session_controller_session_openWorkspacePath_result$schema = () => (_unieai_rabi_api_session_controller_session_openWorkspacePath_result$schema$value ??= z.object({
|
|
1005
|
+
'opened': z.literal(true).readonly(),
|
|
1006
|
+
}))
|
|
1007
|
+
let _unieai_rabi_api_session_controller_session_page_parameter_0$schema$value
|
|
1008
|
+
const _unieai_rabi_api_session_controller_session_page_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_page_parameter_0$schema$value ??= z.object({
|
|
1009
|
+
'address': z.union([z.object({
|
|
1010
|
+
'kind': z.literal("session").readonly(),
|
|
1011
|
+
'sessionId': z.string().readonly(),
|
|
1012
|
+
}), z.object({
|
|
1013
|
+
'kind': z.literal("subagent").readonly(),
|
|
1014
|
+
'parentSessionId': z.string().readonly(),
|
|
1015
|
+
'childSessionId': z.string().readonly(),
|
|
1016
|
+
'mode': z.union([z.literal("one-shot"), z.literal("continuable"), z.literal("unknown")]).readonly(),
|
|
1017
|
+
})]).readonly(),
|
|
1018
|
+
'throughSeq': z.number().readonly().optional().describe('Inclusive log cut; omission selects the observed log end. A follow opening reports the cut it covered so a caller can pin the same point.'),
|
|
1019
|
+
'beforeSeq': z.number().readonly().optional(),
|
|
1020
|
+
'maxMessages': z.number().readonly().optional(),
|
|
1021
|
+
'turnWindow': z.object({
|
|
1022
|
+
'minMessages': z.number().readonly().describe('Minimum append-origin user/assistant messages; must not exceed maxMessages.'),
|
|
1023
|
+
'minTurns': z.number().readonly().describe('Minimum Turn starts crossed, including the partial Turn at beforeSeq.'),
|
|
1024
|
+
}).readonly().optional().describe('Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins.'),
|
|
1025
|
+
}))
|
|
1026
|
+
let _unieai_rabi_api_session_controller_session_page_result$schema$value
|
|
1027
|
+
const _unieai_rabi_api_session_controller_session_page_result$schema = () => (_unieai_rabi_api_session_controller_session_page_result$schema$value ??= z.object({
|
|
1028
|
+
'cursor': z.number().readonly(),
|
|
1029
|
+
'records': z.array(z.object({
|
|
1030
|
+
'type': z.literal("event").readonly(),
|
|
1031
|
+
'event': z.object({
|
|
1032
|
+
'type': z.string().readonly(),
|
|
1033
|
+
'seq': z.number().readonly(),
|
|
1034
|
+
'time': z.number().readonly(),
|
|
1035
|
+
'data': z.json().readonly(),
|
|
1036
|
+
'ignorable': z.literal(true).readonly().optional(),
|
|
1037
|
+
'sourceEventSeqs': z.json().readonly().optional().describe('Earlier sources on current surface events; opaque JSON on unknown ignorable events.'),
|
|
1038
|
+
'surfaceOp': z.json().readonly().optional().describe('Canonical placement on current surface events; opaque JSON on unknown ignorable events.'),
|
|
1039
|
+
}).readonly(),
|
|
1040
|
+
})).readonly(),
|
|
1041
|
+
'hasMore': z.boolean().readonly(),
|
|
1042
|
+
}))
|
|
1043
|
+
let _unieai_rabi_api_session_controller_session_projections_parameter_0$schema$value
|
|
1044
|
+
const _unieai_rabi_api_session_controller_session_projections_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_projections_parameter_0$schema$value ??= z.object({
|
|
1045
|
+
'sessionId': z.string().readonly(),
|
|
1046
|
+
}))
|
|
1047
|
+
let _unieai_rabi_api_session_controller_session_projections_result$schema$value
|
|
1048
|
+
const _unieai_rabi_api_session_controller_session_projections_result$schema = () => (_unieai_rabi_api_session_controller_session_projections_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
1049
|
+
'asOfSeq': z.number().readonly(),
|
|
1050
|
+
'values': z.intersection(z.object({
|
|
1051
|
+
'inbox': z.object({
|
|
1052
|
+
'next-turn': z.array(z.json()).readonly(),
|
|
1053
|
+
'next-step': z.array(z.json()).readonly(),
|
|
1054
|
+
}).optional().describe('Pending agent input reconstructed from durable inbox splices.'),
|
|
1055
|
+
'modelSelection': z.object({
|
|
1056
|
+
'lastUsed': z.union([z.literal(null), z.object({
|
|
1057
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
1058
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
1059
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
1060
|
+
})]).readonly().describe('Selection used by the latest recorded model request.'),
|
|
1061
|
+
'next': z.union([z.literal(null), z.object({
|
|
1062
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
1063
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
1064
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
1065
|
+
})]).readonly().describe('Selection the next model step uses; null while the Agent\'s initial options supply the route.'),
|
|
1066
|
+
}).optional().describe('Recorded model selection for the next model step and the latest request.'),
|
|
1067
|
+
'actionCards': z.object({
|
|
1068
|
+
'proposals': z.record(z.string(), z.object({
|
|
1069
|
+
'callId': z.string().readonly().describe('Id of the logged tool call.'),
|
|
1070
|
+
'turn': z.number().readonly().describe('Turn whose answer the card follows.'),
|
|
1071
|
+
'action': z.string().readonly().describe('Registered action kind named by the call.'),
|
|
1072
|
+
'title': z.string().readonly(),
|
|
1073
|
+
'brief': z.string().readonly().describe('What the action does, in the user\'s language.'),
|
|
1074
|
+
'details': z.record(z.string(), z.json()).readonly().readonly().describe('Fields the kind\'s skill asks for.'),
|
|
1075
|
+
})).readonly().readonly(),
|
|
1076
|
+
'decisions': z.record(z.string(), z.object({
|
|
1077
|
+
'callId': z.string().readonly(),
|
|
1078
|
+
'action': z.string().readonly(),
|
|
1079
|
+
'phase': z.string().readonly(),
|
|
1080
|
+
'data': z.union([z.undefined(), z.record(z.string(), z.json()).readonly()]).readonly().optional().describe('Kind-defined fields such as a chosen location or a created package.'),
|
|
1081
|
+
})).readonly().readonly(),
|
|
1082
|
+
}).optional().describe('Action card proposals and decisions for the currently open Session.'),
|
|
1083
|
+
'agentPreset': z.union([z.literal(null), z.string()]).optional().describe('Preset the Session runs, or null when the deployment composes none.'),
|
|
1084
|
+
'agentTeam': z.object({
|
|
1085
|
+
'enabled': z.boolean().readonly(),
|
|
1086
|
+
'tasks': z.array(z.object({
|
|
1087
|
+
'id': z.string().readonly(),
|
|
1088
|
+
'revision': z.number().readonly(),
|
|
1089
|
+
'subject': z.string().readonly(),
|
|
1090
|
+
'description': z.string().readonly(),
|
|
1091
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
1092
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
1093
|
+
'writeScopes': z.array(z.string()).readonly(),
|
|
1094
|
+
'ownerId': z.string().readonly().optional(),
|
|
1095
|
+
'ownerName': z.string().readonly().optional().describe('Immutable agent path captured at assignment; absent on unnamed historical owners.'),
|
|
1096
|
+
'ready': z.boolean().readonly(),
|
|
1097
|
+
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
1098
|
+
})).readonly(),
|
|
1099
|
+
'failure': z.string().readonly().optional(),
|
|
1100
|
+
}).optional().describe('Saved selection and non-deleted task board of the Team rooted at the projected Session.'),
|
|
1101
|
+
'workingDirectory': z.union([z.literal(null), z.string()]).optional().describe('Recorded current directory for Session observations, or null when none is recorded.'),
|
|
1102
|
+
'subagentCatalog': z.array(z.union([z.object({
|
|
1103
|
+
'id': z.string().readonly(),
|
|
1104
|
+
'createdAt': z.number().readonly(),
|
|
1105
|
+
'mode': z.literal("one-shot").readonly().describe('A terminal one-shot child.'),
|
|
1106
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
1107
|
+
}), z.object({
|
|
1108
|
+
'id': z.string().readonly(),
|
|
1109
|
+
'createdAt': z.number().readonly(),
|
|
1110
|
+
'mode': z.literal("external").readonly().describe('An external execution without a local child Session.'),
|
|
1111
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
1112
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
1113
|
+
}), z.object({
|
|
1114
|
+
'id': z.string().readonly(),
|
|
1115
|
+
'createdAt': z.number().readonly(),
|
|
1116
|
+
'mode': z.literal("continuable").readonly().describe('A resumable conversation.'),
|
|
1117
|
+
'label': z.string().readonly().describe('Durable creation label from the parent catalog.'),
|
|
1118
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
1119
|
+
}), z.object({
|
|
1120
|
+
'id': z.string().readonly(),
|
|
1121
|
+
'createdAt': z.number().readonly(),
|
|
1122
|
+
'mode': z.literal("unknown").readonly(),
|
|
1123
|
+
'label': z.string().readonly().optional(),
|
|
1124
|
+
})])).optional().describe('Direct children in parent catalog event order, excluding fork-inherited facts.'),
|
|
1125
|
+
'subagentTiming': z.object({
|
|
1126
|
+
'settledMs': z.number().describe('Milliseconds accumulated across completed turns after the child\'s own descriptor.'),
|
|
1127
|
+
'active': z.object({
|
|
1128
|
+
'since': z.number().describe('Start of the open turn.'),
|
|
1129
|
+
'through': z.number().describe('Latest event time folded into this projection cut.'),
|
|
1130
|
+
}).optional().describe('Same-cut bounds of the currently open turn, when one has not reached `turn/end`.'),
|
|
1131
|
+
'lastTurnCompleted': z.boolean().optional().describe('Whether the latest closed turn after the child\'s own descriptor completed normally; absent while a turn is open or before one closes.'),
|
|
1132
|
+
}).optional().describe('Active-turn duration and latest closed-turn completion for a descriptor-backed subagent session.'),
|
|
1133
|
+
'subagent': z.union([z.literal(null), z.object({
|
|
1134
|
+
'mode': z.literal("one-shot").describe('A terminal one-shot child.'),
|
|
1135
|
+
'label': z.string().optional().describe('Optional durable creation label from the child\'s descriptor.'),
|
|
1136
|
+
'seq': z.number().describe('Seq of the `subagent/descriptor` event this identity was folded from. `session.isOwnSeq(seq)` proves the identity comes from the child\'s OWN log suffix — where a descriptor is immutable once appended — and not from a fork seed\'s replayed ancestor descriptor.'),
|
|
1137
|
+
}), z.object({
|
|
1138
|
+
'mode': z.literal("continuable").describe('A resumable conversation.'),
|
|
1139
|
+
'label': z.string().describe('Durable creation label from the child\'s descriptor.'),
|
|
1140
|
+
'seq': z.number().describe('Seq of the folded descriptor event; see the one-shot arm for the own-suffix proof.'),
|
|
1141
|
+
})]).optional().describe('Identity of a descriptor-backed subagent session. `null` ⟺ no valid descriptor (missing, malformed, or unrecognized-version — deliberately undistinguished). The sentinel is deliberately serializable: a value pushed over JSON transports must survive `JSON.stringify` losslessly, where an `undefined` field would be dropped and a stale identity would survive on the receiving side. The entry itself stays non-optional.'),
|
|
1142
|
+
'title': z.union([z.literal(null), z.string()]).optional().describe('The session\'s current normalized title — the latest `session/title` event\'s text (last-wins), or `null` before the first title lands. A plain string: the shape the client list rows consume.'),
|
|
1143
|
+
'todos': z.union([z.literal(null), z.array(z.object({
|
|
1144
|
+
'content': z.string().describe('What this task is — a short imperative line shown in the UI.'),
|
|
1145
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress")]).describe('Lifecycle state. `in_progress` marks a task being worked now; parallel work may mark several.'),
|
|
1146
|
+
}))]).optional().describe('The agent\'s current whole todo list (the latest `todo/write` snapshot), or `null` before the first write. Whole-value rule: every `todo/write` carries the complete replacement list, so the fold is last-wins. Excluded from Session summary payloads, with `null` kept outside the exclusion mark so the pre-first-write value stays expressible.'),
|
|
1147
|
+
'permissions': z.object({
|
|
1148
|
+
'currentValue': z.string().describe('The effective current value: a configured preset key, `auto`, or `custom`.'),
|
|
1149
|
+
}).optional().describe('The session\'s current permission, folded from the three whole-value knob events (`permission/preset`, `sandbox/mode`, `approval/policy`) over the composition defaults. Selectable options come from the process-level catalog Remote. Key absence means no permission service is composed — clients hide the control.'),
|
|
1150
|
+
'conversationContinuation': z.union([z.literal(null), z.number()]).optional().describe('Eligible latest failed turn/end for an empty prompt, or null.'),
|
|
1151
|
+
'sessionListMetadata': z.object({
|
|
1152
|
+
'blank': z.boolean().readonly().describe('Whether the folded prefix contains no turn.'),
|
|
1153
|
+
'lastPromptAt': z.union([z.literal(null), z.number()]).readonly().describe('Latest human-authored prompt time in the folded prefix.'),
|
|
1154
|
+
}).optional().describe('Persisted facts used to summarize a Session without activating it.'),
|
|
1155
|
+
'imageLimits': z.object({
|
|
1156
|
+
'maxImageBytes': z.number(),
|
|
1157
|
+
'maxImagesPerMessage': z.number(),
|
|
1158
|
+
'maxMessageImageBytes': z.number(),
|
|
1159
|
+
'maxImagePixels': z.number(),
|
|
1160
|
+
'maxImageDimension': z.number().describe('Maximum intrinsic width and maximum intrinsic height in pixels for one image.'),
|
|
1161
|
+
'mediaTypes': z.array(z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")])),
|
|
1162
|
+
}).optional().describe('Image-intake limits enforced by the Session prompt endpoint. Boot constant, excluded from Session summary payloads: every Session shares it, so a list row would repeat one host-wide fact.'),
|
|
1163
|
+
'tokenUsage': z.object({
|
|
1164
|
+
'uncachedInputTokens': z.number(),
|
|
1165
|
+
'outputTokens': z.number(),
|
|
1166
|
+
'cacheReadTokens': z.number(),
|
|
1167
|
+
'cacheWriteTokens': z.number(),
|
|
1168
|
+
}).optional().describe('Provider-reported usage accumulated across the complete durable log.'),
|
|
1169
|
+
'contextPressure': z.object({
|
|
1170
|
+
'pressureTokens': z.number().optional().describe('Provider-reported prompt size of the most recent request: uncached input plus cache reads and writes. Response output is excluded, so this does not grow as the current turn streams. Absent until a provider reports usage.'),
|
|
1171
|
+
'projectedTokens': z.number().optional().describe('What the NEXT request\'s prompt would cost: {@link pressureTokens} plus the heuristic repricing of everything the surface gained or lost since that sample. Only the delta is estimated, so the figure stays anchored to the provider while still reacting the moment a compaction shadows a span — which `pressureTokens` alone cannot do, since compaction reports no usage of its own. Absent until a provider reports usage.'),
|
|
1172
|
+
'contextWindow': z.number().optional().describe('Newest recorded route capacity; absent when no adapter advertised one.'),
|
|
1173
|
+
}).optional().describe('Newest request pressure paired with the newest known route capacity.'),
|
|
1174
|
+
'contextBreakdown': z.object({
|
|
1175
|
+
'systemTokens': z.number().describe('Heuristic tokens of the last nonempty surviving system prompt in surface order; 0 when none exists.'),
|
|
1176
|
+
'toolsTokens': z.number().describe('Heuristic tokens of the newest request envelope\'s tool schemas; 0 before any request.'),
|
|
1177
|
+
'messageTokens': z.number().describe('Heuristic tokens of every other visible surface node, including superseded system prompts.'),
|
|
1178
|
+
}).optional().describe('Heuristic system/tools/message composition of the next request.'),
|
|
1179
|
+
'userQuestions': z.object({
|
|
1180
|
+
'active': z.array(z.object({
|
|
1181
|
+
'callId': z.string().readonly(),
|
|
1182
|
+
'questions': z.array(z.object({
|
|
1183
|
+
'id': z.string().describe('Stable caller-provided question id, echoed in the answer.'),
|
|
1184
|
+
'question': z.string().describe('The question to display.'),
|
|
1185
|
+
'detail': z.string().optional().describe('Optional supporting detail rendered with the question but kept out of option labels.'),
|
|
1186
|
+
'header': z.string().optional().describe('Optional short heading/group label.'),
|
|
1187
|
+
'options': z.array(z.object({
|
|
1188
|
+
'label': z.string().describe('User-facing label.'),
|
|
1189
|
+
'description': z.string().optional().describe('Optional extra context rendered by capable UIs.'),
|
|
1190
|
+
})).optional().describe('Optional choices the UI can render as a menu.'),
|
|
1191
|
+
'multiSelect': z.boolean().optional().describe('Whether more than one option may be selected. Defaults to single-select.'),
|
|
1192
|
+
'intent': z.union([z.object({
|
|
1193
|
+
'kind': z.literal("plan-review").describe('A plan submitted for review: `detail` is the plan markdown `ask()` requires, and the decision approves or declines it.'),
|
|
1194
|
+
'approve': z.string().describe('The option label that approves the plan; every other option declines it. Named rather than positional so no UI infers the verdict from option order. An `approve` naming no option of its own question is rejected at `ask()`.'),
|
|
1195
|
+
'callId': z.string().optional().describe('Logged tool invocation whose arguments contain the reviewed plan.'),
|
|
1196
|
+
}), z.object({
|
|
1197
|
+
'kind': z.literal("approval").describe('A blocking permission decision with fixed actions and no free-text answer.'),
|
|
1198
|
+
'approve': z.string().describe('Option label granting the scope described by the caller.'),
|
|
1199
|
+
'reject': z.string().describe('Option label refusing the requested access.'),
|
|
1200
|
+
'always': z.string().optional().describe('Optional persistent grant offered only when the caller supports it.'),
|
|
1201
|
+
'subject': z.object({
|
|
1202
|
+
'name': z.string(),
|
|
1203
|
+
'icon': z.string().optional(),
|
|
1204
|
+
}).optional().describe('Metadata for human recognition; the caller admits icon sources, which the UI may load as URLs. Never an authorization identity.'),
|
|
1205
|
+
'display': z.object({
|
|
1206
|
+
'question': z.intersection(z.object({
|
|
1207
|
+
'en': z.string(),
|
|
1208
|
+
}), z.record(z.string(), z.string())),
|
|
1209
|
+
'detail': z.intersection(z.object({
|
|
1210
|
+
'en': z.string(),
|
|
1211
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
1212
|
+
'approve': z.intersection(z.object({
|
|
1213
|
+
'en': z.string(),
|
|
1214
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
1215
|
+
}).optional().describe('Localized question and limited-grant label; fixed cards own reject/always wording. Option labels remain answer values.'),
|
|
1216
|
+
})]).optional().describe('Optional presentation intent for capable UIs; absent asks for the generic option list.'),
|
|
1217
|
+
})).readonly(),
|
|
1218
|
+
'state': z.union([z.literal("open"), z.literal("continued")]).readonly(),
|
|
1219
|
+
})).readonly().describe('Calls that can still take an answer, in ask order.'),
|
|
1220
|
+
'settled': z.array(z.object({
|
|
1221
|
+
'callId': z.string().readonly().describe('The settled call.'),
|
|
1222
|
+
'answers': z.array(z.object({
|
|
1223
|
+
'id': z.string().describe('The answered question id.'),
|
|
1224
|
+
'selected': z.array(z.string()).describe('Selected option labels. May accompany custom text for a multi-select question.'),
|
|
1225
|
+
'custom': z.string().optional().describe('Optional free-text "Other" answer.'),
|
|
1226
|
+
})).readonly().describe('The recorded batch, one entry per question; empty when the late reply carried none.'),
|
|
1227
|
+
})).readonly().describe('Calls an answer settled, in settlement order.'),
|
|
1228
|
+
}).optional().describe('Timed questions that remain answerable in this Session, and the ones a late reply settled.'),
|
|
1229
|
+
'forgeChangeRequests': z.array(z.object({
|
|
1230
|
+
'url': z.string().readonly().describe('Web URL as first recorded.'),
|
|
1231
|
+
'origin': z.union([z.literal("created"), z.literal("referenced"), z.literal("discovered"), z.literal("tracked")]).readonly().describe('How the change request became bound.'),
|
|
1232
|
+
'dismissed': z.boolean().readonly().describe('Whether a dismissal hides the binding.'),
|
|
1233
|
+
})).optional().describe('Every change request bound to the Session, hidden ones included, in binding order.'),
|
|
1234
|
+
'forgeWorktree': z.union([z.literal(null), z.object({
|
|
1235
|
+
'path': z.string().readonly().describe('Canonical checkout directory.'),
|
|
1236
|
+
'branch': z.string().readonly().describe('Branch created for the checkout.'),
|
|
1237
|
+
'from': z.union([z.literal(null), z.string()]).readonly().describe('Requested base branch, or null when the checkout started from HEAD of the source checkout.'),
|
|
1238
|
+
'baseCommit': z.string().readonly().describe('Commit object name the branch started from.'),
|
|
1239
|
+
'repositoryRoot': z.string().readonly().describe('Canonical root of the source checkout.'),
|
|
1240
|
+
})]).optional().describe('The worktree the panel created for the Session while the Session works in it, else null.'),
|
|
1241
|
+
'worktree': z.array(z.object({
|
|
1242
|
+
'worktree': z.object({
|
|
1243
|
+
'path': z.string().describe('Canonical absolute checkout directory in the filesystem provider\'s execution world.'),
|
|
1244
|
+
'branch': z.string().describe('Newly created branch name.'),
|
|
1245
|
+
'baseCommit': z.string().describe('Resolved commit object name; repository-local replacement refs can change its checked-out content.'),
|
|
1246
|
+
'repositoryRoot': z.string().describe('Canonical root of the source checkout.'),
|
|
1247
|
+
}).readonly(),
|
|
1248
|
+
'owned': z.boolean().readonly().describe('False for a creation inside the fork-inherited prefix.'),
|
|
1249
|
+
})).optional().describe('Checkouts recorded in the Session\'s log, in creation order.'),
|
|
1250
|
+
'forkLineage': z.object({
|
|
1251
|
+
'origin': z.literal("fork").readonly().describe('How the Session came to exist; only `fork` is published under this key.'),
|
|
1252
|
+
'sourceSessionId': z.string().readonly().describe('Session the branch was cut from.'),
|
|
1253
|
+
'authoredByViewer': z.boolean().readonly().describe('True when the reader created the branch it is reading.'),
|
|
1254
|
+
'workspaceReadOnly': z.boolean().readonly().describe('True when the branch\'s workspace stays read-only for its reader.'),
|
|
1255
|
+
}).optional().describe('Branch facts one reader was given for a branch of a shared Session.'),
|
|
1256
|
+
'goal': z.union([z.literal(null), z.object({
|
|
1257
|
+
'goal': z.object({
|
|
1258
|
+
'objective': z.string().readonly().describe('Human-requested completion objective.'),
|
|
1259
|
+
'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
|
|
1260
|
+
'blockedReason': z.object({
|
|
1261
|
+
'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
|
|
1262
|
+
'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
|
|
1263
|
+
}).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
|
|
1264
|
+
'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
|
|
1265
|
+
'id': z.string().readonly().describe('Stable goal identity.'),
|
|
1266
|
+
'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
|
|
1267
|
+
}).readonly().describe('Current durable goal snapshot (the CAS ref for mutations rides on it).'),
|
|
1268
|
+
'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
|
|
1269
|
+
'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
|
|
1270
|
+
'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
|
|
1271
|
+
})]).optional().describe('The session\'s current goal and admitted-round count, or `null` before the first create and after a clear tombstone. `goal/change` supplies the whole lifecycle value; matching admitted `user/message` events advance `roundsStarted`.'),
|
|
1272
|
+
'plan': z.object({
|
|
1273
|
+
'active': z.boolean(),
|
|
1274
|
+
'pending': z.boolean(),
|
|
1275
|
+
}).optional().describe('Plan collaboration state folded from the plan command lifecycle and `plan/mode` events.'),
|
|
1276
|
+
}), z.record(z.string(), z.json()).readonly()).readonly().describe('Provider-validated values; omitted keys are absent capabilities at this cut.'),
|
|
1277
|
+
'kind': z.literal("sequenced").readonly(),
|
|
1278
|
+
}), z.object({
|
|
1279
|
+
'kind': z.literal("migration-required").readonly(),
|
|
1280
|
+
'values': z.intersection(z.object({
|
|
1281
|
+
'inbox': z.object({
|
|
1282
|
+
'next-turn': z.array(z.json()).readonly(),
|
|
1283
|
+
'next-step': z.array(z.json()).readonly(),
|
|
1284
|
+
}).optional().describe('Pending agent input reconstructed from durable inbox splices.'),
|
|
1285
|
+
'modelSelection': z.object({
|
|
1286
|
+
'lastUsed': z.union([z.literal(null), z.object({
|
|
1287
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
1288
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
1289
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
1290
|
+
})]).readonly().describe('Selection used by the latest recorded model request.'),
|
|
1291
|
+
'next': z.union([z.literal(null), z.object({
|
|
1292
|
+
'provider': z.string().describe('Registered provider route.'),
|
|
1293
|
+
'model': z.string().describe('Provider-owned model id.'),
|
|
1294
|
+
'reasoningEffort': z.string().optional().describe('Adapter-owned reasoning effort, or provider/default behavior when absent.'),
|
|
1295
|
+
})]).readonly().describe('Selection the next model step uses; null while the Agent\'s initial options supply the route.'),
|
|
1296
|
+
}).optional().describe('Recorded model selection for the next model step and the latest request.'),
|
|
1297
|
+
'actionCards': z.object({
|
|
1298
|
+
'proposals': z.record(z.string(), z.object({
|
|
1299
|
+
'callId': z.string().readonly().describe('Id of the logged tool call.'),
|
|
1300
|
+
'turn': z.number().readonly().describe('Turn whose answer the card follows.'),
|
|
1301
|
+
'action': z.string().readonly().describe('Registered action kind named by the call.'),
|
|
1302
|
+
'title': z.string().readonly(),
|
|
1303
|
+
'brief': z.string().readonly().describe('What the action does, in the user\'s language.'),
|
|
1304
|
+
'details': z.record(z.string(), z.json()).readonly().readonly().describe('Fields the kind\'s skill asks for.'),
|
|
1305
|
+
})).readonly().readonly(),
|
|
1306
|
+
'decisions': z.record(z.string(), z.object({
|
|
1307
|
+
'callId': z.string().readonly(),
|
|
1308
|
+
'action': z.string().readonly(),
|
|
1309
|
+
'phase': z.string().readonly(),
|
|
1310
|
+
'data': z.union([z.undefined(), z.record(z.string(), z.json()).readonly()]).readonly().optional().describe('Kind-defined fields such as a chosen location or a created package.'),
|
|
1311
|
+
})).readonly().readonly(),
|
|
1312
|
+
}).optional().describe('Action card proposals and decisions for the currently open Session.'),
|
|
1313
|
+
'agentPreset': z.union([z.literal(null), z.string()]).optional().describe('Preset the Session runs, or null when the deployment composes none.'),
|
|
1314
|
+
'agentTeam': z.object({
|
|
1315
|
+
'enabled': z.boolean().readonly(),
|
|
1316
|
+
'tasks': z.array(z.object({
|
|
1317
|
+
'id': z.string().readonly(),
|
|
1318
|
+
'revision': z.number().readonly(),
|
|
1319
|
+
'subject': z.string().readonly(),
|
|
1320
|
+
'description': z.string().readonly(),
|
|
1321
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
1322
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
1323
|
+
'writeScopes': z.array(z.string()).readonly(),
|
|
1324
|
+
'ownerId': z.string().readonly().optional(),
|
|
1325
|
+
'ownerName': z.string().readonly().optional().describe('Immutable agent path captured at assignment; absent on unnamed historical owners.'),
|
|
1326
|
+
'ready': z.boolean().readonly(),
|
|
1327
|
+
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
1328
|
+
})).readonly(),
|
|
1329
|
+
'failure': z.string().readonly().optional(),
|
|
1330
|
+
}).optional().describe('Saved selection and non-deleted task board of the Team rooted at the projected Session.'),
|
|
1331
|
+
'workingDirectory': z.union([z.literal(null), z.string()]).optional().describe('Recorded current directory for Session observations, or null when none is recorded.'),
|
|
1332
|
+
'subagentCatalog': z.array(z.union([z.object({
|
|
1333
|
+
'id': z.string().readonly(),
|
|
1334
|
+
'createdAt': z.number().readonly(),
|
|
1335
|
+
'mode': z.literal("one-shot").readonly().describe('A terminal one-shot child.'),
|
|
1336
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
1337
|
+
}), z.object({
|
|
1338
|
+
'id': z.string().readonly(),
|
|
1339
|
+
'createdAt': z.number().readonly(),
|
|
1340
|
+
'mode': z.literal("external").readonly().describe('An external execution without a local child Session.'),
|
|
1341
|
+
'label': z.string().readonly().optional().describe('Optional durable creation label from the parent catalog.'),
|
|
1342
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
1343
|
+
}), z.object({
|
|
1344
|
+
'id': z.string().readonly(),
|
|
1345
|
+
'createdAt': z.number().readonly(),
|
|
1346
|
+
'mode': z.literal("continuable").readonly().describe('A resumable conversation.'),
|
|
1347
|
+
'label': z.string().readonly().describe('Durable creation label from the parent catalog.'),
|
|
1348
|
+
'name': z.string().readonly().optional().describe('Name unique among the parent\'s children; absent on historical entries.'),
|
|
1349
|
+
}), z.object({
|
|
1350
|
+
'id': z.string().readonly(),
|
|
1351
|
+
'createdAt': z.number().readonly(),
|
|
1352
|
+
'mode': z.literal("unknown").readonly(),
|
|
1353
|
+
'label': z.string().readonly().optional(),
|
|
1354
|
+
})])).optional().describe('Direct children in parent catalog event order, excluding fork-inherited facts.'),
|
|
1355
|
+
'subagentTiming': z.object({
|
|
1356
|
+
'settledMs': z.number().describe('Milliseconds accumulated across completed turns after the child\'s own descriptor.'),
|
|
1357
|
+
'active': z.object({
|
|
1358
|
+
'since': z.number().describe('Start of the open turn.'),
|
|
1359
|
+
'through': z.number().describe('Latest event time folded into this projection cut.'),
|
|
1360
|
+
}).optional().describe('Same-cut bounds of the currently open turn, when one has not reached `turn/end`.'),
|
|
1361
|
+
'lastTurnCompleted': z.boolean().optional().describe('Whether the latest closed turn after the child\'s own descriptor completed normally; absent while a turn is open or before one closes.'),
|
|
1362
|
+
}).optional().describe('Active-turn duration and latest closed-turn completion for a descriptor-backed subagent session.'),
|
|
1363
|
+
'subagent': z.union([z.literal(null), z.object({
|
|
1364
|
+
'mode': z.literal("one-shot").describe('A terminal one-shot child.'),
|
|
1365
|
+
'label': z.string().optional().describe('Optional durable creation label from the child\'s descriptor.'),
|
|
1366
|
+
'seq': z.number().describe('Seq of the `subagent/descriptor` event this identity was folded from. `session.isOwnSeq(seq)` proves the identity comes from the child\'s OWN log suffix — where a descriptor is immutable once appended — and not from a fork seed\'s replayed ancestor descriptor.'),
|
|
1367
|
+
}), z.object({
|
|
1368
|
+
'mode': z.literal("continuable").describe('A resumable conversation.'),
|
|
1369
|
+
'label': z.string().describe('Durable creation label from the child\'s descriptor.'),
|
|
1370
|
+
'seq': z.number().describe('Seq of the folded descriptor event; see the one-shot arm for the own-suffix proof.'),
|
|
1371
|
+
})]).optional().describe('Identity of a descriptor-backed subagent session. `null` ⟺ no valid descriptor (missing, malformed, or unrecognized-version — deliberately undistinguished). The sentinel is deliberately serializable: a value pushed over JSON transports must survive `JSON.stringify` losslessly, where an `undefined` field would be dropped and a stale identity would survive on the receiving side. The entry itself stays non-optional.'),
|
|
1372
|
+
'title': z.union([z.literal(null), z.string()]).optional().describe('The session\'s current normalized title — the latest `session/title` event\'s text (last-wins), or `null` before the first title lands. A plain string: the shape the client list rows consume.'),
|
|
1373
|
+
'todos': z.union([z.literal(null), z.array(z.object({
|
|
1374
|
+
'content': z.string().describe('What this task is — a short imperative line shown in the UI.'),
|
|
1375
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress")]).describe('Lifecycle state. `in_progress` marks a task being worked now; parallel work may mark several.'),
|
|
1376
|
+
}))]).optional().describe('The agent\'s current whole todo list (the latest `todo/write` snapshot), or `null` before the first write. Whole-value rule: every `todo/write` carries the complete replacement list, so the fold is last-wins. Excluded from Session summary payloads, with `null` kept outside the exclusion mark so the pre-first-write value stays expressible.'),
|
|
1377
|
+
'permissions': z.object({
|
|
1378
|
+
'currentValue': z.string().describe('The effective current value: a configured preset key, `auto`, or `custom`.'),
|
|
1379
|
+
}).optional().describe('The session\'s current permission, folded from the three whole-value knob events (`permission/preset`, `sandbox/mode`, `approval/policy`) over the composition defaults. Selectable options come from the process-level catalog Remote. Key absence means no permission service is composed — clients hide the control.'),
|
|
1380
|
+
'conversationContinuation': z.union([z.literal(null), z.number()]).optional().describe('Eligible latest failed turn/end for an empty prompt, or null.'),
|
|
1381
|
+
'sessionListMetadata': z.object({
|
|
1382
|
+
'blank': z.boolean().readonly().describe('Whether the folded prefix contains no turn.'),
|
|
1383
|
+
'lastPromptAt': z.union([z.literal(null), z.number()]).readonly().describe('Latest human-authored prompt time in the folded prefix.'),
|
|
1384
|
+
}).optional().describe('Persisted facts used to summarize a Session without activating it.'),
|
|
1385
|
+
'imageLimits': z.object({
|
|
1386
|
+
'maxImageBytes': z.number(),
|
|
1387
|
+
'maxImagesPerMessage': z.number(),
|
|
1388
|
+
'maxMessageImageBytes': z.number(),
|
|
1389
|
+
'maxImagePixels': z.number(),
|
|
1390
|
+
'maxImageDimension': z.number().describe('Maximum intrinsic width and maximum intrinsic height in pixels for one image.'),
|
|
1391
|
+
'mediaTypes': z.array(z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")])),
|
|
1392
|
+
}).optional().describe('Image-intake limits enforced by the Session prompt endpoint. Boot constant, excluded from Session summary payloads: every Session shares it, so a list row would repeat one host-wide fact.'),
|
|
1393
|
+
'tokenUsage': z.object({
|
|
1394
|
+
'uncachedInputTokens': z.number(),
|
|
1395
|
+
'outputTokens': z.number(),
|
|
1396
|
+
'cacheReadTokens': z.number(),
|
|
1397
|
+
'cacheWriteTokens': z.number(),
|
|
1398
|
+
}).optional().describe('Provider-reported usage accumulated across the complete durable log.'),
|
|
1399
|
+
'contextPressure': z.object({
|
|
1400
|
+
'pressureTokens': z.number().optional().describe('Provider-reported prompt size of the most recent request: uncached input plus cache reads and writes. Response output is excluded, so this does not grow as the current turn streams. Absent until a provider reports usage.'),
|
|
1401
|
+
'projectedTokens': z.number().optional().describe('What the NEXT request\'s prompt would cost: {@link pressureTokens} plus the heuristic repricing of everything the surface gained or lost since that sample. Only the delta is estimated, so the figure stays anchored to the provider while still reacting the moment a compaction shadows a span — which `pressureTokens` alone cannot do, since compaction reports no usage of its own. Absent until a provider reports usage.'),
|
|
1402
|
+
'contextWindow': z.number().optional().describe('Newest recorded route capacity; absent when no adapter advertised one.'),
|
|
1403
|
+
}).optional().describe('Newest request pressure paired with the newest known route capacity.'),
|
|
1404
|
+
'contextBreakdown': z.object({
|
|
1405
|
+
'systemTokens': z.number().describe('Heuristic tokens of the last nonempty surviving system prompt in surface order; 0 when none exists.'),
|
|
1406
|
+
'toolsTokens': z.number().describe('Heuristic tokens of the newest request envelope\'s tool schemas; 0 before any request.'),
|
|
1407
|
+
'messageTokens': z.number().describe('Heuristic tokens of every other visible surface node, including superseded system prompts.'),
|
|
1408
|
+
}).optional().describe('Heuristic system/tools/message composition of the next request.'),
|
|
1409
|
+
'userQuestions': z.object({
|
|
1410
|
+
'active': z.array(z.object({
|
|
1411
|
+
'callId': z.string().readonly(),
|
|
1412
|
+
'questions': z.array(z.object({
|
|
1413
|
+
'id': z.string().describe('Stable caller-provided question id, echoed in the answer.'),
|
|
1414
|
+
'question': z.string().describe('The question to display.'),
|
|
1415
|
+
'detail': z.string().optional().describe('Optional supporting detail rendered with the question but kept out of option labels.'),
|
|
1416
|
+
'header': z.string().optional().describe('Optional short heading/group label.'),
|
|
1417
|
+
'options': z.array(z.object({
|
|
1418
|
+
'label': z.string().describe('User-facing label.'),
|
|
1419
|
+
'description': z.string().optional().describe('Optional extra context rendered by capable UIs.'),
|
|
1420
|
+
})).optional().describe('Optional choices the UI can render as a menu.'),
|
|
1421
|
+
'multiSelect': z.boolean().optional().describe('Whether more than one option may be selected. Defaults to single-select.'),
|
|
1422
|
+
'intent': z.union([z.object({
|
|
1423
|
+
'kind': z.literal("plan-review").describe('A plan submitted for review: `detail` is the plan markdown `ask()` requires, and the decision approves or declines it.'),
|
|
1424
|
+
'approve': z.string().describe('The option label that approves the plan; every other option declines it. Named rather than positional so no UI infers the verdict from option order. An `approve` naming no option of its own question is rejected at `ask()`.'),
|
|
1425
|
+
'callId': z.string().optional().describe('Logged tool invocation whose arguments contain the reviewed plan.'),
|
|
1426
|
+
}), z.object({
|
|
1427
|
+
'kind': z.literal("approval").describe('A blocking permission decision with fixed actions and no free-text answer.'),
|
|
1428
|
+
'approve': z.string().describe('Option label granting the scope described by the caller.'),
|
|
1429
|
+
'reject': z.string().describe('Option label refusing the requested access.'),
|
|
1430
|
+
'always': z.string().optional().describe('Optional persistent grant offered only when the caller supports it.'),
|
|
1431
|
+
'subject': z.object({
|
|
1432
|
+
'name': z.string(),
|
|
1433
|
+
'icon': z.string().optional(),
|
|
1434
|
+
}).optional().describe('Metadata for human recognition; the caller admits icon sources, which the UI may load as URLs. Never an authorization identity.'),
|
|
1435
|
+
'display': z.object({
|
|
1436
|
+
'question': z.intersection(z.object({
|
|
1437
|
+
'en': z.string(),
|
|
1438
|
+
}), z.record(z.string(), z.string())),
|
|
1439
|
+
'detail': z.intersection(z.object({
|
|
1440
|
+
'en': z.string(),
|
|
1441
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
1442
|
+
'approve': z.intersection(z.object({
|
|
1443
|
+
'en': z.string(),
|
|
1444
|
+
}), z.record(z.string(), z.string())).optional(),
|
|
1445
|
+
}).optional().describe('Localized question and limited-grant label; fixed cards own reject/always wording. Option labels remain answer values.'),
|
|
1446
|
+
})]).optional().describe('Optional presentation intent for capable UIs; absent asks for the generic option list.'),
|
|
1447
|
+
})).readonly(),
|
|
1448
|
+
'state': z.union([z.literal("open"), z.literal("continued")]).readonly(),
|
|
1449
|
+
})).readonly().describe('Calls that can still take an answer, in ask order.'),
|
|
1450
|
+
'settled': z.array(z.object({
|
|
1451
|
+
'callId': z.string().readonly().describe('The settled call.'),
|
|
1452
|
+
'answers': z.array(z.object({
|
|
1453
|
+
'id': z.string().describe('The answered question id.'),
|
|
1454
|
+
'selected': z.array(z.string()).describe('Selected option labels. May accompany custom text for a multi-select question.'),
|
|
1455
|
+
'custom': z.string().optional().describe('Optional free-text "Other" answer.'),
|
|
1456
|
+
})).readonly().describe('The recorded batch, one entry per question; empty when the late reply carried none.'),
|
|
1457
|
+
})).readonly().describe('Calls an answer settled, in settlement order.'),
|
|
1458
|
+
}).optional().describe('Timed questions that remain answerable in this Session, and the ones a late reply settled.'),
|
|
1459
|
+
'forgeChangeRequests': z.array(z.object({
|
|
1460
|
+
'url': z.string().readonly().describe('Web URL as first recorded.'),
|
|
1461
|
+
'origin': z.union([z.literal("created"), z.literal("referenced"), z.literal("discovered"), z.literal("tracked")]).readonly().describe('How the change request became bound.'),
|
|
1462
|
+
'dismissed': z.boolean().readonly().describe('Whether a dismissal hides the binding.'),
|
|
1463
|
+
})).optional().describe('Every change request bound to the Session, hidden ones included, in binding order.'),
|
|
1464
|
+
'forgeWorktree': z.union([z.literal(null), z.object({
|
|
1465
|
+
'path': z.string().readonly().describe('Canonical checkout directory.'),
|
|
1466
|
+
'branch': z.string().readonly().describe('Branch created for the checkout.'),
|
|
1467
|
+
'from': z.union([z.literal(null), z.string()]).readonly().describe('Requested base branch, or null when the checkout started from HEAD of the source checkout.'),
|
|
1468
|
+
'baseCommit': z.string().readonly().describe('Commit object name the branch started from.'),
|
|
1469
|
+
'repositoryRoot': z.string().readonly().describe('Canonical root of the source checkout.'),
|
|
1470
|
+
})]).optional().describe('The worktree the panel created for the Session while the Session works in it, else null.'),
|
|
1471
|
+
'worktree': z.array(z.object({
|
|
1472
|
+
'worktree': z.object({
|
|
1473
|
+
'path': z.string().describe('Canonical absolute checkout directory in the filesystem provider\'s execution world.'),
|
|
1474
|
+
'branch': z.string().describe('Newly created branch name.'),
|
|
1475
|
+
'baseCommit': z.string().describe('Resolved commit object name; repository-local replacement refs can change its checked-out content.'),
|
|
1476
|
+
'repositoryRoot': z.string().describe('Canonical root of the source checkout.'),
|
|
1477
|
+
}).readonly(),
|
|
1478
|
+
'owned': z.boolean().readonly().describe('False for a creation inside the fork-inherited prefix.'),
|
|
1479
|
+
})).optional().describe('Checkouts recorded in the Session\'s log, in creation order.'),
|
|
1480
|
+
'forkLineage': z.object({
|
|
1481
|
+
'origin': z.literal("fork").readonly().describe('How the Session came to exist; only `fork` is published under this key.'),
|
|
1482
|
+
'sourceSessionId': z.string().readonly().describe('Session the branch was cut from.'),
|
|
1483
|
+
'authoredByViewer': z.boolean().readonly().describe('True when the reader created the branch it is reading.'),
|
|
1484
|
+
'workspaceReadOnly': z.boolean().readonly().describe('True when the branch\'s workspace stays read-only for its reader.'),
|
|
1485
|
+
}).optional().describe('Branch facts one reader was given for a branch of a shared Session.'),
|
|
1486
|
+
'goal': z.union([z.literal(null), z.object({
|
|
1487
|
+
'goal': z.object({
|
|
1488
|
+
'objective': z.string().readonly().describe('Human-requested completion objective.'),
|
|
1489
|
+
'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
|
|
1490
|
+
'blockedReason': z.object({
|
|
1491
|
+
'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
|
|
1492
|
+
'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
|
|
1493
|
+
}).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
|
|
1494
|
+
'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
|
|
1495
|
+
'id': z.string().readonly().describe('Stable goal identity.'),
|
|
1496
|
+
'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
|
|
1497
|
+
}).readonly().describe('Current durable goal snapshot (the CAS ref for mutations rides on it).'),
|
|
1498
|
+
'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
|
|
1499
|
+
'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
|
|
1500
|
+
'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
|
|
1501
|
+
})]).optional().describe('The session\'s current goal and admitted-round count, or `null` before the first create and after a clear tombstone. `goal/change` supplies the whole lifecycle value; matching admitted `user/message` events advance `roundsStarted`.'),
|
|
1502
|
+
'plan': z.object({
|
|
1503
|
+
'active': z.boolean(),
|
|
1504
|
+
'pending': z.boolean(),
|
|
1505
|
+
}).optional().describe('Plan collaboration state folded from the plan command lifecycle and `plan/mode` events.'),
|
|
1506
|
+
}), z.record(z.string(), z.json()).readonly()).readonly(),
|
|
1507
|
+
})]))
|
|
1508
|
+
let _unieai_rabi_api_session_controller_session_prompt_parameter_0$schema$value
|
|
1509
|
+
const _unieai_rabi_api_session_controller_session_prompt_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_prompt_parameter_0$schema$value ??= z.object({
|
|
1510
|
+
'requestId': z.string().readonly().describe('Client-minted identity persisted on the accepted inbox input, including empty continuation.'),
|
|
1511
|
+
'sessionId': z.string().readonly(),
|
|
1512
|
+
'mode': z.union([z.literal("queue"), z.literal("steer")]).readonly(),
|
|
1513
|
+
'content': z.array(z.union([z.object({
|
|
1514
|
+
'type': z.literal("text").readonly(),
|
|
1515
|
+
'text': z.string().readonly(),
|
|
1516
|
+
}), z.object({
|
|
1517
|
+
'type': z.literal("image").readonly(),
|
|
1518
|
+
'mediaType': z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")]).readonly(),
|
|
1519
|
+
'data': z.string().readonly(),
|
|
1520
|
+
'name': z.string().readonly().optional(),
|
|
1521
|
+
}), z.object({
|
|
1522
|
+
'type': z.literal("file").readonly(),
|
|
1523
|
+
'receiptId': z.string().readonly(),
|
|
1524
|
+
})])).readonly().describe('Non-whitespace text or attachments; an empty array continues an eligible failed idle Session.'),
|
|
1525
|
+
'clientTimeZone': z.string().readonly().optional(),
|
|
1526
|
+
}))
|
|
1527
|
+
let _unieai_rabi_api_session_controller_session_prompt_result$schema$value
|
|
1528
|
+
const _unieai_rabi_api_session_controller_session_prompt_result$schema = () => (_unieai_rabi_api_session_controller_session_prompt_result$schema$value ??= z.object({
|
|
1529
|
+
'accepted': z.literal(true).readonly(),
|
|
1530
|
+
}))
|
|
1531
|
+
let _unieai_rabi_api_session_controller_session_rename_parameter_0$schema$value
|
|
1532
|
+
const _unieai_rabi_api_session_controller_session_rename_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_rename_parameter_0$schema$value ??= z.object({
|
|
1533
|
+
'sessionId': z.string().readonly(),
|
|
1534
|
+
'title': z.string().readonly(),
|
|
1535
|
+
}))
|
|
1536
|
+
let _unieai_rabi_api_session_controller_session_rename_result$schema$value
|
|
1537
|
+
const _unieai_rabi_api_session_controller_session_rename_result$schema = () => (_unieai_rabi_api_session_controller_session_rename_result$schema$value ??= z.object({
|
|
1538
|
+
'title': z.string().readonly(),
|
|
1539
|
+
'seq': z.number().readonly(),
|
|
1540
|
+
}))
|
|
1541
|
+
let _unieai_rabi_api_session_controller_session_search_parameter_0$schema$value
|
|
1542
|
+
const _unieai_rabi_api_session_controller_session_search_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_search_parameter_0$schema$value ??= z.object({
|
|
1543
|
+
'query': z.string().readonly(),
|
|
1544
|
+
}))
|
|
1545
|
+
let _unieai_rabi_api_session_controller_session_search_result$schema$value
|
|
1546
|
+
const _unieai_rabi_api_session_controller_session_search_result$schema = () => (_unieai_rabi_api_session_controller_session_search_result$schema$value ??= z.object({
|
|
1547
|
+
'items': z.array(z.object({
|
|
1548
|
+
'sessionId': z.string().readonly(),
|
|
1549
|
+
'snippet': z.string().readonly(),
|
|
1550
|
+
})).readonly(),
|
|
1551
|
+
'hasMore': z.boolean().readonly(),
|
|
1552
|
+
}))
|
|
1553
|
+
let _unieai_rabi_api_session_controller_session_selectModel_parameter_0$schema$value
|
|
1554
|
+
const _unieai_rabi_api_session_controller_session_selectModel_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_selectModel_parameter_0$schema$value ??= z.object({
|
|
1555
|
+
'sessionId': z.string().readonly(),
|
|
1556
|
+
'provider': z.string().readonly(),
|
|
1557
|
+
'model': z.string().readonly(),
|
|
1558
|
+
'reasoningEffort': z.string().readonly().optional(),
|
|
1559
|
+
}))
|
|
1560
|
+
let _unieai_rabi_api_session_controller_session_selectModel_result$schema$value
|
|
1561
|
+
const _unieai_rabi_api_session_controller_session_selectModel_result$schema = () => (_unieai_rabi_api_session_controller_session_selectModel_result$schema$value ??= z.object({
|
|
1562
|
+
'selected': z.object({
|
|
1563
|
+
'provider': z.string().readonly(),
|
|
1564
|
+
'model': z.string().readonly(),
|
|
1565
|
+
'reasoningEffort': z.string().readonly().optional(),
|
|
1566
|
+
}).readonly(),
|
|
1567
|
+
}))
|
|
1568
|
+
let _unieai_rabi_api_session_controller_session_state_parameter_0$schema$value
|
|
1569
|
+
const _unieai_rabi_api_session_controller_session_state_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_state_parameter_0$schema$value ??= z.object({
|
|
1570
|
+
'sessionId': z.string().readonly(),
|
|
1571
|
+
}))
|
|
1572
|
+
let _unieai_rabi_api_session_controller_session_state_result$schema$value
|
|
1573
|
+
const _unieai_rabi_api_session_controller_session_state_result$schema = () => (_unieai_rabi_api_session_controller_session_state_result$schema$value ??= z.object({
|
|
1574
|
+
'cursor': z.number().readonly(),
|
|
1575
|
+
'active': z.boolean().readonly(),
|
|
1576
|
+
'running': z.boolean().readonly(),
|
|
1577
|
+
'queue': z.union([z.literal(null), z.array(z.object({
|
|
1578
|
+
'id': z.string().readonly(),
|
|
1579
|
+
'placement': z.union([z.literal("queued"), z.literal("steering"), z.literal("context")]).readonly(),
|
|
1580
|
+
'rpcId': z.string().readonly().optional(),
|
|
1581
|
+
'content': z.array(z.json()).readonly(),
|
|
1582
|
+
}))]).readonly(),
|
|
1583
|
+
'pendingInput': z.array(z.union([z.literal("approval"), z.literal("question"), z.literal("other")])).readonly().describe('Pending Remote requests sampled when this state was read. A pending change alone does not trigger `observeState`; `wait` refreshes on its own interval.'),
|
|
1584
|
+
}))
|
|
1585
|
+
let _unieai_rabi_api_session_controller_session_updateQueue_parameter_0$schema$value
|
|
1586
|
+
const _unieai_rabi_api_session_controller_session_updateQueue_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_updateQueue_parameter_0$schema$value ??= z.object({
|
|
1587
|
+
'sessionId': z.string().readonly(),
|
|
1588
|
+
'itemId': z.string().readonly(),
|
|
1589
|
+
'action': z.union([z.object({
|
|
1590
|
+
'kind': z.literal("edit").readonly(),
|
|
1591
|
+
'content': z.array(z.object({
|
|
1592
|
+
'type': z.literal("text"),
|
|
1593
|
+
'text': z.string(),
|
|
1594
|
+
})).readonly().describe('Non-empty text-only replacement content.'),
|
|
1595
|
+
}), z.object({
|
|
1596
|
+
'kind': z.literal("remove").readonly(),
|
|
1597
|
+
}), z.object({
|
|
1598
|
+
'kind': z.literal("steer").readonly(),
|
|
1599
|
+
})]).readonly(),
|
|
1600
|
+
}))
|
|
1601
|
+
let _unieai_rabi_api_session_controller_session_updateQueue_result$schema$value
|
|
1602
|
+
const _unieai_rabi_api_session_controller_session_updateQueue_result$schema = () => (_unieai_rabi_api_session_controller_session_updateQueue_result$schema$value ??= z.object({
|
|
1603
|
+
'accepted': z.literal(true).readonly(),
|
|
1604
|
+
}))
|
|
1605
|
+
let _unieai_rabi_api_session_controller_session_wait_parameter_0$schema$value
|
|
1606
|
+
const _unieai_rabi_api_session_controller_session_wait_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_wait_parameter_0$schema$value ??= z.object({
|
|
1607
|
+
'timeoutMs': z.number().readonly().optional(),
|
|
1608
|
+
'afterSeq': z.number().readonly().optional().describe('Exclusive output cursor; omission includes all available assistant records.'),
|
|
1609
|
+
'maxMessages': z.number().readonly().optional().describe('Positive assistant-record limit; omission uses the history message budget.'),
|
|
1610
|
+
'sessionId': z.string().readonly(),
|
|
1611
|
+
}))
|
|
1612
|
+
let _unieai_rabi_api_session_controller_session_wait_result$schema$value
|
|
1613
|
+
const _unieai_rabi_api_session_controller_session_wait_result$schema = () => (_unieai_rabi_api_session_controller_session_wait_result$schema$value ??= z.object({
|
|
1614
|
+
'reason': z.union([z.literal("idle"), z.literal("input-required"), z.literal("timeout")]).readonly(),
|
|
1615
|
+
'state': z.object({
|
|
1616
|
+
'cursor': z.number().readonly(),
|
|
1617
|
+
'active': z.boolean().readonly(),
|
|
1618
|
+
'running': z.boolean().readonly(),
|
|
1619
|
+
'queue': z.union([z.literal(null), z.array(z.object({
|
|
1620
|
+
'id': z.string().readonly(),
|
|
1621
|
+
'placement': z.union([z.literal("queued"), z.literal("steering"), z.literal("context")]).readonly(),
|
|
1622
|
+
'rpcId': z.string().readonly().optional(),
|
|
1623
|
+
'content': z.array(z.json()).readonly(),
|
|
1624
|
+
}))]).readonly(),
|
|
1625
|
+
'pendingInput': z.array(z.union([z.literal("approval"), z.literal("question"), z.literal("other")])).readonly().describe('Pending Remote requests sampled when this state was read. A pending change alone does not trigger `observeState`; `wait` refreshes on its own interval.'),
|
|
1626
|
+
}).readonly(),
|
|
1627
|
+
'output': z.object({
|
|
1628
|
+
'records': z.array(z.object({
|
|
1629
|
+
'type': z.literal("event").readonly(),
|
|
1630
|
+
'event': z.object({
|
|
1631
|
+
'type': z.string().readonly(),
|
|
1632
|
+
'seq': z.number().readonly(),
|
|
1633
|
+
'time': z.number().readonly(),
|
|
1634
|
+
'data': z.json().readonly(),
|
|
1635
|
+
'ignorable': z.literal(true).readonly().optional(),
|
|
1636
|
+
'sourceEventSeqs': z.json().readonly().optional().describe('Earlier sources on current surface events; opaque JSON on unknown ignorable events.'),
|
|
1637
|
+
'surfaceOp': z.json().readonly().optional().describe('Canonical placement on current surface events; opaque JSON on unknown ignorable events.'),
|
|
1638
|
+
}).readonly(),
|
|
1639
|
+
})).readonly(),
|
|
1640
|
+
'truncated': z.boolean().readonly().describe('More eligible assistant messages exist in the selected interval.'),
|
|
1641
|
+
}).readonly(),
|
|
1642
|
+
}))
|
|
1643
|
+
let _unieai_rabi_api_session_controller_session_workspacePathApplications_parameter_0$schema$value
|
|
1644
|
+
const _unieai_rabi_api_session_controller_session_workspacePathApplications_parameter_0$schema = () => (_unieai_rabi_api_session_controller_session_workspacePathApplications_parameter_0$schema$value ??= z.object({
|
|
1645
|
+
'path': z.string().readonly(),
|
|
1646
|
+
}))
|
|
1647
|
+
let _unieai_rabi_api_session_controller_session_workspacePathApplications_result$schema$value
|
|
1648
|
+
const _unieai_rabi_api_session_controller_session_workspacePathApplications_result$schema = () => (_unieai_rabi_api_session_controller_session_workspacePathApplications_result$schema$value ??= z.array(z.object({
|
|
1649
|
+
'id': z.string().readonly().describe('OS application identifier; callers must revalidate it against the file\'s current handlers before opening.'),
|
|
1650
|
+
'name': z.string().readonly(),
|
|
1651
|
+
'default': z.boolean().readonly(),
|
|
1652
|
+
'icon': z.union([z.literal(null), z.string()]).readonly().describe('PNG or SVG data URL, or null when the desktop supplies no icon.'),
|
|
1653
|
+
})))
|
|
1654
|
+
let _unieai_rabi_api_session_controller_skills_list_parameter_0$schema$value
|
|
1655
|
+
const _unieai_rabi_api_session_controller_skills_list_parameter_0$schema = () => (_unieai_rabi_api_session_controller_skills_list_parameter_0$schema$value ??= z.object({
|
|
1656
|
+
'sessionId': z.string().readonly(),
|
|
1657
|
+
}))
|
|
1658
|
+
let _unieai_rabi_api_session_controller_skills_list_result$schema$value
|
|
1659
|
+
const _unieai_rabi_api_session_controller_skills_list_result$schema = () => (_unieai_rabi_api_session_controller_skills_list_result$schema$value ??= z.object({
|
|
1660
|
+
'skills': z.array(z.object({
|
|
1661
|
+
'path': z.string().readonly().optional().describe('Absolute SKILL.md path when supplied by a filesystem provider.'),
|
|
1662
|
+
'name': z.string().readonly().describe('Kebab-case identifier referenced as `/name`.'),
|
|
1663
|
+
'description': z.string().readonly().describe('Short routing description.'),
|
|
1664
|
+
'whenToUse': z.string().readonly().optional().describe('Optional extra routing guidance.'),
|
|
1665
|
+
'modelInvocable': z.boolean().readonly().describe('Whether the same skill is also advertised to the model.'),
|
|
1666
|
+
})).readonly(),
|
|
1667
|
+
}))
|
|
1668
|
+
let _unieai_rabi_api_session_controller_fileReferences_list_parameter_0_strict$schema$value
|
|
1669
|
+
const _unieai_rabi_api_session_controller_fileReferences_list_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_fileReferences_list_parameter_0_strict$schema$value ??= z.string())
|
|
1670
|
+
let _unieai_rabi_api_session_controller_fileReferences_list_parameter_1_strict$schema$value
|
|
1671
|
+
const _unieai_rabi_api_session_controller_fileReferences_list_parameter_1_strict$schema = () => (_unieai_rabi_api_session_controller_fileReferences_list_parameter_1_strict$schema$value ??= z.string())
|
|
1672
|
+
let _unieai_rabi_api_session_controller_session_attachment_parameter_0_strict$schema$value
|
|
1673
|
+
const _unieai_rabi_api_session_controller_session_attachment_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_attachment_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1674
|
+
'sessionId': z.string().readonly().describe('Gateway permission scope only; neither Session existence nor its image references are checked.'),
|
|
1675
|
+
'attachment': z.strictObject({
|
|
1676
|
+
'attachmentId': z.string().describe('Opaque storage identifier; never a filesystem path or bearer URL.'),
|
|
1677
|
+
'mediaType': z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")]).describe('Media type verified from the stored bytes.'),
|
|
1678
|
+
'bytes': z.number().describe('Exact encoded byte length.'),
|
|
1679
|
+
'width': z.number().describe('Intrinsic encoded width in pixels.'),
|
|
1680
|
+
'height': z.number().describe('Intrinsic encoded height in pixels.'),
|
|
1681
|
+
'name': z.string().optional().describe('Optional display name stripped of local path information.'),
|
|
1682
|
+
'originalDimensions': z.strictObject({
|
|
1683
|
+
'width': z.number(),
|
|
1684
|
+
'height': z.number(),
|
|
1685
|
+
}).optional().describe('Input dimensions after applying EXIF orientation and before normalization scaling. Present only when normalization reduced the image.'),
|
|
1686
|
+
}).readonly(),
|
|
1687
|
+
}))
|
|
1688
|
+
let _unieai_rabi_api_session_controller_session_cancel_parameter_0_strict$schema$value
|
|
1689
|
+
const _unieai_rabi_api_session_controller_session_cancel_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_cancel_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1690
|
+
'sessionId': z.string().readonly(),
|
|
1691
|
+
}))
|
|
1692
|
+
let _unieai_rabi_api_session_controller_session_create_parameter_0_strict$schema$value
|
|
1693
|
+
const _unieai_rabi_api_session_controller_session_create_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_create_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1694
|
+
'workspaceId': z.string().readonly().optional().describe('Workspace the Session joins; exclusive with `cwd`.'),
|
|
1695
|
+
'cwd': z.string().readonly().optional().describe('Directory the Session owns when no Workspace is named.'),
|
|
1696
|
+
'sessionId': z.string().readonly().optional().describe('Blank Session to reuse while it is reusable, or the identity of a new Session when none is stored under it.'),
|
|
1697
|
+
'agentPreset': z.string().readonly().optional().describe('Preset the Session runs, replacing a reused Session\'s recorded preset; the configured default when omitted.'),
|
|
1698
|
+
}))
|
|
1699
|
+
let _unieai_rabi_api_session_controller_session_events_parameter_0_strict$schema$value
|
|
1700
|
+
const _unieai_rabi_api_session_controller_session_events_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_events_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1701
|
+
'address': z.union([z.strictObject({
|
|
1702
|
+
'kind': z.literal("session").readonly(),
|
|
1703
|
+
'sessionId': z.string().readonly(),
|
|
1704
|
+
}), z.strictObject({
|
|
1705
|
+
'kind': z.literal("subagent").readonly(),
|
|
1706
|
+
'parentSessionId': z.string().readonly(),
|
|
1707
|
+
'childSessionId': z.string().readonly(),
|
|
1708
|
+
'mode': z.union([z.literal("one-shot"), z.literal("continuable"), z.literal("unknown")]).readonly(),
|
|
1709
|
+
})]).readonly(),
|
|
1710
|
+
'throughSeq': z.number().readonly().optional().describe('Inclusive log cut; omission selects the observed log end. A follow opening reports the cut it covered so a caller can pin the same point.'),
|
|
1711
|
+
'beforeSeq': z.number().readonly().optional(),
|
|
1712
|
+
'maxMessages': z.number().readonly().optional(),
|
|
1713
|
+
'turnWindow': z.strictObject({
|
|
1714
|
+
'minMessages': z.number().readonly().describe('Minimum append-origin user/assistant messages; must not exceed maxMessages.'),
|
|
1715
|
+
'minTurns': z.number().readonly().describe('Minimum Turn starts crossed, including the partial Turn at beforeSeq.'),
|
|
1716
|
+
}).readonly().optional().describe('Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins.'),
|
|
1717
|
+
}))
|
|
1718
|
+
let _unieai_rabi_api_session_controller_session_follow_parameter_0_strict$schema$value
|
|
1719
|
+
const _unieai_rabi_api_session_controller_session_follow_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_follow_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1720
|
+
'address': z.union([z.strictObject({
|
|
1721
|
+
'kind': z.literal("session").readonly(),
|
|
1722
|
+
'sessionId': z.string().readonly(),
|
|
1723
|
+
}), z.strictObject({
|
|
1724
|
+
'kind': z.literal("subagent").readonly(),
|
|
1725
|
+
'parentSessionId': z.string().readonly(),
|
|
1726
|
+
'childSessionId': z.string().readonly(),
|
|
1727
|
+
'mode': z.union([z.literal("one-shot"), z.literal("continuable"), z.literal("unknown")]).readonly(),
|
|
1728
|
+
})]).readonly(),
|
|
1729
|
+
'activate': z.boolean().readonly().optional().describe('Request background activation; omission leaves the read passive.'),
|
|
1730
|
+
'assistantStream': z.literal(true).readonly().optional().describe('Include process-local assistant presentation frames for the Web client.'),
|
|
1731
|
+
'maxMessages': z.number().readonly().optional(),
|
|
1732
|
+
'turnWindow': z.strictObject({
|
|
1733
|
+
'minMessages': z.number().readonly().describe('Minimum append-origin user/assistant messages; must not exceed maxMessages.'),
|
|
1734
|
+
'minTurns': z.number().readonly().describe('Minimum Turn starts crossed, including the partial Turn at beforeSeq.'),
|
|
1735
|
+
}).readonly().optional().describe('Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins.'),
|
|
1736
|
+
}))
|
|
1737
|
+
let _unieai_rabi_api_session_controller_session_fork_parameter_0_strict$schema$value
|
|
1738
|
+
const _unieai_rabi_api_session_controller_session_fork_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_fork_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1739
|
+
'sessionId': z.string().readonly(),
|
|
1740
|
+
'atSeq': z.number().readonly().optional().describe('Exact inclusive source event seq; omission selects the latest completed-turn prefix.'),
|
|
1741
|
+
'allowMigration': z.boolean().readonly().optional().describe('False asks the Host to check for required migration before forking. Defaults to true.'),
|
|
1742
|
+
}))
|
|
1743
|
+
let _unieai_rabi_api_session_controller_session_list_parameter_0_strict$schema$value
|
|
1744
|
+
const _unieai_rabi_api_session_controller_session_list_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_list_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1745
|
+
'cursor': z.string().readonly().optional(),
|
|
1746
|
+
}))
|
|
1747
|
+
let _unieai_rabi_api_session_controller_session_observeEvent_parameter_0_strict$schema$value
|
|
1748
|
+
const _unieai_rabi_api_session_controller_session_observeEvent_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_observeEvent_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1749
|
+
'address': z.union([z.strictObject({
|
|
1750
|
+
'kind': z.literal("session").readonly(),
|
|
1751
|
+
'sessionId': z.string().readonly(),
|
|
1752
|
+
}), z.strictObject({
|
|
1753
|
+
'kind': z.literal("subagent").readonly(),
|
|
1754
|
+
'parentSessionId': z.string().readonly(),
|
|
1755
|
+
'childSessionId': z.string().readonly(),
|
|
1756
|
+
'mode': z.union([z.literal("one-shot"), z.literal("continuable"), z.literal("unknown")]).readonly(),
|
|
1757
|
+
})]).readonly(),
|
|
1758
|
+
}))
|
|
1759
|
+
let _unieai_rabi_api_session_controller_session_observeProjections_parameter_0_strict$schema$value
|
|
1760
|
+
const _unieai_rabi_api_session_controller_session_observeProjections_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_observeProjections_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1761
|
+
'sessionId': z.string().readonly(),
|
|
1762
|
+
}))
|
|
1763
|
+
let _unieai_rabi_api_session_controller_session_observeState_parameter_0_strict$schema$value
|
|
1764
|
+
const _unieai_rabi_api_session_controller_session_observeState_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_observeState_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1765
|
+
'sessionId': z.string().readonly(),
|
|
1766
|
+
}))
|
|
1767
|
+
let _unieai_rabi_api_session_controller_session_openWorkspacePath_parameter_0_strict$schema$value
|
|
1768
|
+
const _unieai_rabi_api_session_controller_session_openWorkspacePath_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_openWorkspacePath_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1769
|
+
'action': z.literal("reveal").readonly().optional().describe('File-manager navigation when requested; omission uses the default application.'),
|
|
1770
|
+
'application': z.string().readonly().optional().describe('Registered application identifier; ignored for reveal. Omission preserves the operating system default.'),
|
|
1771
|
+
'path': z.string().readonly().describe('Path after best-effort Session workspace resolution, in Host filesystem syntax.'),
|
|
1772
|
+
}))
|
|
1773
|
+
let _unieai_rabi_api_session_controller_session_page_parameter_0_strict$schema$value
|
|
1774
|
+
const _unieai_rabi_api_session_controller_session_page_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_page_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1775
|
+
'address': z.union([z.strictObject({
|
|
1776
|
+
'kind': z.literal("session").readonly(),
|
|
1777
|
+
'sessionId': z.string().readonly(),
|
|
1778
|
+
}), z.strictObject({
|
|
1779
|
+
'kind': z.literal("subagent").readonly(),
|
|
1780
|
+
'parentSessionId': z.string().readonly(),
|
|
1781
|
+
'childSessionId': z.string().readonly(),
|
|
1782
|
+
'mode': z.union([z.literal("one-shot"), z.literal("continuable"), z.literal("unknown")]).readonly(),
|
|
1783
|
+
})]).readonly(),
|
|
1784
|
+
'throughSeq': z.number().readonly().optional().describe('Inclusive log cut; omission selects the observed log end. A follow opening reports the cut it covered so a caller can pin the same point.'),
|
|
1785
|
+
'beforeSeq': z.number().readonly().optional(),
|
|
1786
|
+
'maxMessages': z.number().readonly().optional(),
|
|
1787
|
+
'turnWindow': z.strictObject({
|
|
1788
|
+
'minMessages': z.number().readonly().describe('Minimum append-origin user/assistant messages; must not exceed maxMessages.'),
|
|
1789
|
+
'minTurns': z.number().readonly().describe('Minimum Turn starts crossed, including the partial Turn at beforeSeq.'),
|
|
1790
|
+
}).readonly().optional().describe('Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins.'),
|
|
1791
|
+
}))
|
|
1792
|
+
let _unieai_rabi_api_session_controller_session_projections_parameter_0_strict$schema$value
|
|
1793
|
+
const _unieai_rabi_api_session_controller_session_projections_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_projections_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1794
|
+
'sessionId': z.string().readonly(),
|
|
1795
|
+
}))
|
|
1796
|
+
let _unieai_rabi_api_session_controller_session_prompt_parameter_0_strict$schema$value
|
|
1797
|
+
const _unieai_rabi_api_session_controller_session_prompt_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_prompt_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1798
|
+
'requestId': z.string().readonly().describe('Client-minted identity persisted on the accepted inbox input, including empty continuation.'),
|
|
1799
|
+
'sessionId': z.string().readonly(),
|
|
1800
|
+
'mode': z.union([z.literal("queue"), z.literal("steer")]).readonly(),
|
|
1801
|
+
'content': z.array(z.union([z.strictObject({
|
|
1802
|
+
'type': z.literal("text").readonly(),
|
|
1803
|
+
'text': z.string().readonly(),
|
|
1804
|
+
}), z.strictObject({
|
|
1805
|
+
'type': z.literal("image").readonly(),
|
|
1806
|
+
'mediaType': z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")]).readonly(),
|
|
1807
|
+
'data': z.string().readonly(),
|
|
1808
|
+
'name': z.string().readonly().optional(),
|
|
1809
|
+
}), z.strictObject({
|
|
1810
|
+
'type': z.literal("file").readonly(),
|
|
1811
|
+
'receiptId': z.string().readonly(),
|
|
1812
|
+
})])).readonly().describe('Non-whitespace text or attachments; an empty array continues an eligible failed idle Session.'),
|
|
1813
|
+
'clientTimeZone': z.string().readonly().optional(),
|
|
1814
|
+
}))
|
|
1815
|
+
let _unieai_rabi_api_session_controller_session_rename_parameter_0_strict$schema$value
|
|
1816
|
+
const _unieai_rabi_api_session_controller_session_rename_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_rename_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1817
|
+
'sessionId': z.string().readonly(),
|
|
1818
|
+
'title': z.string().readonly(),
|
|
1819
|
+
}))
|
|
1820
|
+
let _unieai_rabi_api_session_controller_session_search_parameter_0_strict$schema$value
|
|
1821
|
+
const _unieai_rabi_api_session_controller_session_search_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_search_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1822
|
+
'query': z.string().readonly(),
|
|
1823
|
+
}))
|
|
1824
|
+
let _unieai_rabi_api_session_controller_session_selectModel_parameter_0_strict$schema$value
|
|
1825
|
+
const _unieai_rabi_api_session_controller_session_selectModel_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_selectModel_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1826
|
+
'sessionId': z.string().readonly(),
|
|
1827
|
+
'provider': z.string().readonly(),
|
|
1828
|
+
'model': z.string().readonly(),
|
|
1829
|
+
'reasoningEffort': z.string().readonly().optional(),
|
|
1830
|
+
}))
|
|
1831
|
+
let _unieai_rabi_api_session_controller_session_state_parameter_0_strict$schema$value
|
|
1832
|
+
const _unieai_rabi_api_session_controller_session_state_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_state_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1833
|
+
'sessionId': z.string().readonly(),
|
|
1834
|
+
}))
|
|
1835
|
+
let _unieai_rabi_api_session_controller_session_updateQueue_parameter_0_strict$schema$value
|
|
1836
|
+
const _unieai_rabi_api_session_controller_session_updateQueue_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_updateQueue_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1837
|
+
'sessionId': z.string().readonly(),
|
|
1838
|
+
'itemId': z.string().readonly(),
|
|
1839
|
+
'action': z.union([z.strictObject({
|
|
1840
|
+
'kind': z.literal("edit").readonly(),
|
|
1841
|
+
'content': z.array(z.strictObject({
|
|
1842
|
+
'type': z.literal("text"),
|
|
1843
|
+
'text': z.string(),
|
|
1844
|
+
})).readonly().describe('Non-empty text-only replacement content.'),
|
|
1845
|
+
}), z.strictObject({
|
|
1846
|
+
'kind': z.literal("remove").readonly(),
|
|
1847
|
+
}), z.strictObject({
|
|
1848
|
+
'kind': z.literal("steer").readonly(),
|
|
1849
|
+
})]).readonly(),
|
|
1850
|
+
}))
|
|
1851
|
+
let _unieai_rabi_api_session_controller_session_wait_parameter_0_strict$schema$value
|
|
1852
|
+
const _unieai_rabi_api_session_controller_session_wait_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_wait_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1853
|
+
'timeoutMs': z.number().readonly().optional(),
|
|
1854
|
+
'afterSeq': z.number().readonly().optional().describe('Exclusive output cursor; omission includes all available assistant records.'),
|
|
1855
|
+
'maxMessages': z.number().readonly().optional().describe('Positive assistant-record limit; omission uses the history message budget.'),
|
|
1856
|
+
'sessionId': z.string().readonly(),
|
|
1857
|
+
}))
|
|
1858
|
+
let _unieai_rabi_api_session_controller_session_workspacePathApplications_parameter_0_strict$schema$value
|
|
1859
|
+
const _unieai_rabi_api_session_controller_session_workspacePathApplications_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_session_workspacePathApplications_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1860
|
+
'path': z.string().readonly(),
|
|
1861
|
+
}))
|
|
1862
|
+
let _unieai_rabi_api_session_controller_skills_list_parameter_0_strict$schema$value
|
|
1863
|
+
const _unieai_rabi_api_session_controller_skills_list_parameter_0_strict$schema = () => (_unieai_rabi_api_session_controller_skills_list_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1864
|
+
'sessionId': z.string().readonly(),
|
|
1865
|
+
}))
|
|
1866
|
+
|
|
1867
|
+
export const TYPERT_REMOTE = createTypertRemoteInfo({
|
|
1868
|
+
package: '@unieai/rabi-api-session-controller',
|
|
1869
|
+
methods: {
|
|
1870
|
+
'fileReferences/list': {
|
|
1871
|
+
service: 'sessionFileReferences',
|
|
1872
|
+
description: 'List file and directory candidates for one Agent\'s working directory.',
|
|
1873
|
+
invocation: { kind: 'direct' },
|
|
1874
|
+
scope: {
|
|
1875
|
+
context: 'agent',
|
|
1876
|
+
wire: 'agentId',
|
|
1877
|
+
},
|
|
1878
|
+
parameters: [
|
|
1879
|
+
{
|
|
1880
|
+
name: 'agent',
|
|
1881
|
+
wire: 'agentId',
|
|
1882
|
+
description: 'target Agent resolved from the Session identity on the wire.',
|
|
1883
|
+
source: 'lookup',
|
|
1884
|
+
lookup: 'agent',
|
|
1885
|
+
codec: {
|
|
1886
|
+
mode: 'strict',
|
|
1887
|
+
typeSymbol: '@unieai/rabi-session/types#SessionId',
|
|
1888
|
+
create: _unieai_rabi_api_session_controller_fileReferences_list_parameter_0$schema,
|
|
1889
|
+
jsonSchema: {"type":"string"},
|
|
1890
|
+
},
|
|
1891
|
+
strictCodec: {
|
|
1892
|
+
mode: 'strict',
|
|
1893
|
+
typeSymbol: '@unieai/rabi-session/types#SessionId',
|
|
1894
|
+
create: _unieai_rabi_api_session_controller_fileReferences_list_parameter_0_strict$schema,
|
|
1895
|
+
jsonSchema: {"type":"string"},
|
|
1896
|
+
},
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
name: 'query',
|
|
1900
|
+
description: 'path text following `@` or `@"`.',
|
|
1901
|
+
source: 'json',
|
|
1902
|
+
codec: {
|
|
1903
|
+
mode: 'strict',
|
|
1904
|
+
typeSymbol: '@unieai/rabi-api-session-controller#fileReferences/list:query',
|
|
1905
|
+
create: _unieai_rabi_api_session_controller_fileReferences_list_parameter_1$schema,
|
|
1906
|
+
jsonSchema: {"type":"string"},
|
|
1907
|
+
},
|
|
1908
|
+
strictCodec: {
|
|
1909
|
+
mode: 'strict',
|
|
1910
|
+
typeSymbol: '@unieai/rabi-api-session-controller#fileReferences/list:query',
|
|
1911
|
+
create: _unieai_rabi_api_session_controller_fileReferences_list_parameter_1_strict$schema,
|
|
1912
|
+
jsonSchema: {"type":"string"},
|
|
1913
|
+
},
|
|
1914
|
+
},
|
|
1915
|
+
],
|
|
1916
|
+
cancellation: { parameter: 'signal' },
|
|
1917
|
+
result: {
|
|
1918
|
+
mode: 'strict',
|
|
1919
|
+
typeSymbol: '@unieai/rabi-api-session-controller#fileReferences/list:result',
|
|
1920
|
+
create: _unieai_rabi_api_session_controller_fileReferences_list_result$schema,
|
|
1921
|
+
description: 'deterministic path-only candidates from the composed provider.',
|
|
1922
|
+
jsonSchema: {"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"User-facing path accepted by normal prompts and filesystem tools."},"kind":{"type":"string","enum":["file","directory"],"description":"Directories keep completion open; files finish the mention."}},"required":["path","kind"],"additionalProperties":true}},
|
|
1923
|
+
},
|
|
1924
|
+
sourceLocation: {"file":"packages/api/session-controller/src/file-references.ts","line":33,"column":3},
|
|
1925
|
+
},
|
|
1926
|
+
'session/attachment': {
|
|
1927
|
+
service: 'sessionController',
|
|
1928
|
+
description: 'Read one image from the attachment store after gateway authorization.',
|
|
1929
|
+
invocation: { kind: 'direct' },
|
|
1930
|
+
parameters: [
|
|
1931
|
+
{
|
|
1932
|
+
name: 'request',
|
|
1933
|
+
description: 'image reference and gateway permission scope; Session existence is not checked.',
|
|
1934
|
+
source: 'json',
|
|
1935
|
+
codec: {
|
|
1936
|
+
mode: 'strict',
|
|
1937
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionAttachmentRequest',
|
|
1938
|
+
create: _unieai_rabi_api_session_controller_session_attachment_parameter_0$schema,
|
|
1939
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Gateway permission scope only; neither Session existence nor its image references are checked."},"attachment":{"type":"object","properties":{"attachmentId":{"type":"string","description":"Opaque storage identifier; never a filesystem path or bearer URL."},"mediaType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"],"description":"Media type verified from the stored bytes."},"bytes":{"type":"number","description":"Exact encoded byte length."},"width":{"type":"number","description":"Intrinsic encoded width in pixels."},"height":{"type":"number","description":"Intrinsic encoded height in pixels."},"name":{"type":"string","description":"Optional display name stripped of local path information."},"originalDimensions":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":true,"description":"Input dimensions after applying EXIF orientation and before normalization scaling. Present only when normalization reduced the image."}},"required":["attachmentId","mediaType","bytes","width","height"],"additionalProperties":true}},"required":["sessionId","attachment"],"additionalProperties":true},
|
|
1940
|
+
},
|
|
1941
|
+
strictCodec: {
|
|
1942
|
+
mode: 'strict',
|
|
1943
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionAttachmentRequest',
|
|
1944
|
+
create: _unieai_rabi_api_session_controller_session_attachment_parameter_0_strict$schema,
|
|
1945
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Gateway permission scope only; neither Session existence nor its image references are checked."},"attachment":{"type":"object","properties":{"attachmentId":{"type":"string","description":"Opaque storage identifier; never a filesystem path or bearer URL."},"mediaType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"],"description":"Media type verified from the stored bytes."},"bytes":{"type":"number","description":"Exact encoded byte length."},"width":{"type":"number","description":"Intrinsic encoded width in pixels."},"height":{"type":"number","description":"Intrinsic encoded height in pixels."},"name":{"type":"string","description":"Optional display name stripped of local path information."},"originalDimensions":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false,"description":"Input dimensions after applying EXIF orientation and before normalization scaling. Present only when normalization reduced the image."}},"required":["attachmentId","mediaType","bytes","width","height"],"additionalProperties":false}},"required":["sessionId","attachment"],"additionalProperties":false},
|
|
1946
|
+
},
|
|
1947
|
+
},
|
|
1948
|
+
],
|
|
1949
|
+
result: {
|
|
1950
|
+
mode: 'strict',
|
|
1951
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionAttachmentValue',
|
|
1952
|
+
create: _unieai_rabi_api_session_controller_session_attachment_result$schema,
|
|
1953
|
+
description: 'the durable attachment reference and base64-encoded bytes.',
|
|
1954
|
+
jsonSchema: {"type":"object","properties":{"attachment":{"type":"object","properties":{"attachmentId":{"type":"string","description":"Opaque storage identifier; never a filesystem path or bearer URL."},"mediaType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"],"description":"Media type verified from the stored bytes."},"bytes":{"type":"number","description":"Exact encoded byte length."},"width":{"type":"number","description":"Intrinsic encoded width in pixels."},"height":{"type":"number","description":"Intrinsic encoded height in pixels."},"name":{"type":"string","description":"Optional display name stripped of local path information."},"originalDimensions":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":true,"description":"Input dimensions after applying EXIF orientation and before normalization scaling. Present only when normalization reduced the image."}},"required":["attachmentId","mediaType","bytes","width","height"],"additionalProperties":true,"description":"Supplied reference after ID, format, byte length, and dimensions verification; display fields are preserved."},"data":{"type":"string"}},"required":["attachment","data"],"additionalProperties":true},
|
|
1955
|
+
},
|
|
1956
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":500,"column":3},
|
|
1957
|
+
},
|
|
1958
|
+
'session/cancel': {
|
|
1959
|
+
service: 'sessionController',
|
|
1960
|
+
description: 'Cancel one active Agent turn without dropping its pending inbox.',
|
|
1961
|
+
invocation: { kind: 'direct' },
|
|
1962
|
+
parameters: [
|
|
1963
|
+
{
|
|
1964
|
+
name: 'request',
|
|
1965
|
+
description: 'Session whose active Agent turn is cancelled.',
|
|
1966
|
+
source: 'json',
|
|
1967
|
+
codec: {
|
|
1968
|
+
mode: 'strict',
|
|
1969
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionCancelRequest',
|
|
1970
|
+
create: _unieai_rabi_api_session_controller_session_cancel_parameter_0$schema,
|
|
1971
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":true},
|
|
1972
|
+
},
|
|
1973
|
+
strictCodec: {
|
|
1974
|
+
mode: 'strict',
|
|
1975
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionCancelRequest',
|
|
1976
|
+
create: _unieai_rabi_api_session_controller_session_cancel_parameter_0_strict$schema,
|
|
1977
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false},
|
|
1978
|
+
},
|
|
1979
|
+
},
|
|
1980
|
+
],
|
|
1981
|
+
result: {
|
|
1982
|
+
mode: 'strict',
|
|
1983
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionCancelValue',
|
|
1984
|
+
create: _unieai_rabi_api_session_controller_session_cancel_result$schema,
|
|
1985
|
+
description: 'acknowledgement that cancellation was requested.',
|
|
1986
|
+
jsonSchema: {"type":"object","properties":{"accepted":{"type":"boolean","const":true}},"required":["accepted"],"additionalProperties":true},
|
|
1987
|
+
},
|
|
1988
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":520,"column":3},
|
|
1989
|
+
},
|
|
1990
|
+
'session/canOpenWorkspacePath': {
|
|
1991
|
+
service: 'sessionController',
|
|
1992
|
+
description: 'Report whether this deployment can hand a Session workspace path to a native desktop.',
|
|
1993
|
+
invocation: { kind: 'direct' },
|
|
1994
|
+
parameters: [
|
|
1995
|
+
],
|
|
1996
|
+
result: {
|
|
1997
|
+
mode: 'strict',
|
|
1998
|
+
typeSymbol: '@unieai/rabi-api-session-controller#session/canOpenWorkspacePath:result',
|
|
1999
|
+
create: _unieai_rabi_api_session_controller_session_canOpenWorkspacePath_result$schema,
|
|
2000
|
+
description: 'true when the matching open operation is available.',
|
|
2001
|
+
jsonSchema: {"type":"boolean"},
|
|
2002
|
+
},
|
|
2003
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":353,"column":3},
|
|
2004
|
+
},
|
|
2005
|
+
'session/control': {
|
|
2006
|
+
service: 'sessionController',
|
|
2007
|
+
description: 'Stream a complete live-control baseline followed by replacement frames.',
|
|
2008
|
+
mode: 'stream',
|
|
2009
|
+
invocation: { kind: 'direct' },
|
|
2010
|
+
parameters: [
|
|
2011
|
+
],
|
|
2012
|
+
cancellation: { parameter: 'signal' },
|
|
2013
|
+
result: {
|
|
2014
|
+
mode: 'strict',
|
|
2015
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionControlFrame',
|
|
2016
|
+
create: _unieai_rabi_api_session_controller_session_control_result$schema,
|
|
2017
|
+
description: 'one complete baseline followed by live replacement frames.',
|
|
2018
|
+
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
2019
|
+
},
|
|
2020
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":631,"column":10},
|
|
2021
|
+
},
|
|
2022
|
+
'session/create': {
|
|
2023
|
+
service: 'sessionController',
|
|
2024
|
+
description: 'Create one ordinary Session for a new conversation, reusing the named blank Session while it is reusable.',
|
|
2025
|
+
invocation: { kind: 'direct' },
|
|
2026
|
+
parameters: [
|
|
2027
|
+
{
|
|
2028
|
+
name: 'request',
|
|
2029
|
+
description: 'optional blank Session to reuse, location, and Agent preset.',
|
|
2030
|
+
source: 'json',
|
|
2031
|
+
codec: {
|
|
2032
|
+
mode: 'strict',
|
|
2033
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionCreateRequest',
|
|
2034
|
+
create: _unieai_rabi_api_session_controller_session_create_parameter_0$schema,
|
|
2035
|
+
jsonSchema: {"type":"object","properties":{"workspaceId":{"type":"string","description":"Workspace the Session joins; exclusive with `cwd`."},"cwd":{"type":"string","description":"Directory the Session owns when no Workspace is named."},"sessionId":{"type":"string","description":"Blank Session to reuse while it is reusable, or the identity of a new Session when none is stored under it."},"agentPreset":{"type":"string","description":"Preset the Session runs, replacing a reused Session's recorded preset; the configured default when omitted."}},"required":[],"additionalProperties":true},
|
|
2036
|
+
},
|
|
2037
|
+
strictCodec: {
|
|
2038
|
+
mode: 'strict',
|
|
2039
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionCreateRequest',
|
|
2040
|
+
create: _unieai_rabi_api_session_controller_session_create_parameter_0_strict$schema,
|
|
2041
|
+
jsonSchema: {"type":"object","properties":{"workspaceId":{"type":"string","description":"Workspace the Session joins; exclusive with `cwd`."},"cwd":{"type":"string","description":"Directory the Session owns when no Workspace is named."},"sessionId":{"type":"string","description":"Blank Session to reuse while it is reusable, or the identity of a new Session when none is stored under it."},"agentPreset":{"type":"string","description":"Preset the Session runs, replacing a reused Session's recorded preset; the configured default when omitted."}},"required":[],"additionalProperties":false},
|
|
2042
|
+
},
|
|
2043
|
+
},
|
|
2044
|
+
],
|
|
2045
|
+
result: {
|
|
2046
|
+
mode: 'strict',
|
|
2047
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionCreateValue',
|
|
2048
|
+
create: _unieai_rabi_api_session_controller_session_create_result$schema,
|
|
2049
|
+
description: 'the created or reused Session identity and its preset when configured.',
|
|
2050
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"The created or reused Session, which may differ from the requested `sessionId`."},"agentPreset":{"type":"string","description":"Preset the Session runs, when the deployment composes a preset roster."}},"required":["sessionId"],"additionalProperties":true},
|
|
2051
|
+
},
|
|
2052
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":307,"column":3},
|
|
2053
|
+
},
|
|
2054
|
+
'session/events': {
|
|
2055
|
+
service: 'sessionController',
|
|
2056
|
+
description: 'Read one cold-safe, message-aligned Session history page.',
|
|
2057
|
+
invocation: { kind: 'direct' },
|
|
2058
|
+
parameters: [
|
|
2059
|
+
{
|
|
2060
|
+
name: 'request',
|
|
2061
|
+
description: 'durable address, optional fixed cut, backward cursor, and page budget.',
|
|
2062
|
+
source: 'json',
|
|
2063
|
+
codec: {
|
|
2064
|
+
mode: 'strict',
|
|
2065
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionPageRequest',
|
|
2066
|
+
create: _unieai_rabi_api_session_controller_session_events_parameter_0$schema,
|
|
2067
|
+
jsonSchema: {"type":"object","properties":{"address":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"session"},"sessionId":{"type":"string"}},"required":["kind","sessionId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"subagent"},"parentSessionId":{"type":"string"},"childSessionId":{"type":"string"},"mode":{"type":"string","enum":["one-shot","continuable","unknown"]}},"required":["kind","parentSessionId","childSessionId","mode"],"additionalProperties":true}]},"throughSeq":{"type":"number","description":"Inclusive log cut; omission selects the observed log end. A follow opening reports the cut it covered so a caller can pin the same point."},"beforeSeq":{"type":"number"},"maxMessages":{"type":"number"},"turnWindow":{"type":"object","properties":{"minMessages":{"type":"number","description":"Minimum append-origin user/assistant messages; must not exceed maxMessages."},"minTurns":{"type":"number","description":"Minimum Turn starts crossed, including the partial Turn at beforeSeq."}},"required":["minMessages","minTurns"],"additionalProperties":true,"description":"Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins."}},"required":["address"],"additionalProperties":true},
|
|
2068
|
+
},
|
|
2069
|
+
strictCodec: {
|
|
2070
|
+
mode: 'strict',
|
|
2071
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionPageRequest',
|
|
2072
|
+
create: _unieai_rabi_api_session_controller_session_events_parameter_0_strict$schema,
|
|
2073
|
+
jsonSchema: {"type":"object","properties":{"address":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"session"},"sessionId":{"type":"string"}},"required":["kind","sessionId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subagent"},"parentSessionId":{"type":"string"},"childSessionId":{"type":"string"},"mode":{"type":"string","enum":["one-shot","continuable","unknown"]}},"required":["kind","parentSessionId","childSessionId","mode"],"additionalProperties":false}]},"throughSeq":{"type":"number","description":"Inclusive log cut; omission selects the observed log end. A follow opening reports the cut it covered so a caller can pin the same point."},"beforeSeq":{"type":"number"},"maxMessages":{"type":"number"},"turnWindow":{"type":"object","properties":{"minMessages":{"type":"number","description":"Minimum append-origin user/assistant messages; must not exceed maxMessages."},"minTurns":{"type":"number","description":"Minimum Turn starts crossed, including the partial Turn at beforeSeq."}},"required":["minMessages","minTurns"],"additionalProperties":false,"description":"Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins."}},"required":["address"],"additionalProperties":false},
|
|
2074
|
+
},
|
|
2075
|
+
},
|
|
2076
|
+
],
|
|
2077
|
+
cancellation: { parameter: 'signal' },
|
|
2078
|
+
result: {
|
|
2079
|
+
mode: 'strict',
|
|
2080
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionEventsPage',
|
|
2081
|
+
create: _unieai_rabi_api_session_controller_session_events_result$schema,
|
|
2082
|
+
description: 'one chronological page with its inclusive cursor.',
|
|
2083
|
+
jsonSchema: {"type":"object","properties":{"cursor":{"type":"number"},"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"event"},"event":{"type":"object","properties":{"type":{"type":"string"},"seq":{"type":"number"},"time":{"type":"number"},"data":{},"ignorable":{"type":"boolean","const":true},"sourceEventSeqs":{"description":"Earlier sources on current surface events; opaque JSON on unknown ignorable events."},"surfaceOp":{"description":"Canonical placement on current surface events; opaque JSON on unknown ignorable events."}},"required":["type","seq","time","data"],"additionalProperties":true}},"required":["type","event"],"additionalProperties":true}},"hasMore":{"type":"boolean"}},"required":["cursor","records","hasMore"],"additionalProperties":true},
|
|
2084
|
+
},
|
|
2085
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":543,"column":3},
|
|
2086
|
+
},
|
|
2087
|
+
'session/follow': {
|
|
2088
|
+
service: 'sessionController',
|
|
2089
|
+
description: 'Follow one Session log from its opening or resume cursor.',
|
|
2090
|
+
mode: 'stream',
|
|
2091
|
+
invocation: { kind: 'direct' },
|
|
2092
|
+
parameters: [
|
|
2093
|
+
{
|
|
2094
|
+
name: 'request',
|
|
2095
|
+
description: 'durable address and last committed sequence already held by the caller.',
|
|
2096
|
+
source: 'json',
|
|
2097
|
+
codec: {
|
|
2098
|
+
mode: 'strict',
|
|
2099
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionFollowRequest',
|
|
2100
|
+
create: _unieai_rabi_api_session_controller_session_follow_parameter_0$schema,
|
|
2101
|
+
jsonSchema: {"type":"object","properties":{"address":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"session"},"sessionId":{"type":"string"}},"required":["kind","sessionId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"subagent"},"parentSessionId":{"type":"string"},"childSessionId":{"type":"string"},"mode":{"type":"string","enum":["one-shot","continuable","unknown"]}},"required":["kind","parentSessionId","childSessionId","mode"],"additionalProperties":true}]},"activate":{"type":"boolean","description":"Request background activation; omission leaves the read passive."},"assistantStream":{"type":"boolean","const":true,"description":"Include process-local assistant presentation frames for the Web client."},"maxMessages":{"type":"number"},"turnWindow":{"type":"object","properties":{"minMessages":{"type":"number","description":"Minimum append-origin user/assistant messages; must not exceed maxMessages."},"minTurns":{"type":"number","description":"Minimum Turn starts crossed, including the partial Turn at beforeSeq."}},"required":["minMessages","minTurns"],"additionalProperties":true,"description":"Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins."}},"required":["address"],"additionalProperties":true},
|
|
2102
|
+
},
|
|
2103
|
+
strictCodec: {
|
|
2104
|
+
mode: 'strict',
|
|
2105
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionFollowRequest',
|
|
2106
|
+
create: _unieai_rabi_api_session_controller_session_follow_parameter_0_strict$schema,
|
|
2107
|
+
jsonSchema: {"type":"object","properties":{"address":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"session"},"sessionId":{"type":"string"}},"required":["kind","sessionId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subagent"},"parentSessionId":{"type":"string"},"childSessionId":{"type":"string"},"mode":{"type":"string","enum":["one-shot","continuable","unknown"]}},"required":["kind","parentSessionId","childSessionId","mode"],"additionalProperties":false}]},"activate":{"type":"boolean","description":"Request background activation; omission leaves the read passive."},"assistantStream":{"type":"boolean","const":true,"description":"Include process-local assistant presentation frames for the Web client."},"maxMessages":{"type":"number"},"turnWindow":{"type":"object","properties":{"minMessages":{"type":"number","description":"Minimum append-origin user/assistant messages; must not exceed maxMessages."},"minTurns":{"type":"number","description":"Minimum Turn starts crossed, including the partial Turn at beforeSeq."}},"required":["minMessages","minTurns"],"additionalProperties":false,"description":"Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins."}},"required":["address"],"additionalProperties":false},
|
|
2108
|
+
},
|
|
2109
|
+
},
|
|
2110
|
+
],
|
|
2111
|
+
cancellation: { parameter: 'signal' },
|
|
2112
|
+
result: {
|
|
2113
|
+
mode: 'strict',
|
|
2114
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionFollowFrame',
|
|
2115
|
+
create: _unieai_rabi_api_session_controller_session_follow_result$schema,
|
|
2116
|
+
description: 'a complete opening snapshot followed by gap-free durable event frames and optional cursorless assistant-stream frames.',
|
|
2117
|
+
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
2118
|
+
},
|
|
2119
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":610,"column":3},
|
|
2120
|
+
},
|
|
2121
|
+
'session/fork': {
|
|
2122
|
+
service: 'sessionController',
|
|
2123
|
+
description: 'Fork one cold-readable exact event prefix into a new Session. An omitted boundary selects the latest completed-turn prefix; an open cut receives synthetic fork closers.',
|
|
2124
|
+
invocation: { kind: 'direct' },
|
|
2125
|
+
parameters: [
|
|
2126
|
+
{
|
|
2127
|
+
name: 'request',
|
|
2128
|
+
description: 'source Session, optional exact inclusive event boundary, and migration preflight choice.',
|
|
2129
|
+
source: 'json',
|
|
2130
|
+
codec: {
|
|
2131
|
+
mode: 'strict',
|
|
2132
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionForkRequest',
|
|
2133
|
+
create: _unieai_rabi_api_session_controller_session_fork_parameter_0$schema,
|
|
2134
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"atSeq":{"type":"number","description":"Exact inclusive source event seq; omission selects the latest completed-turn prefix."},"allowMigration":{"type":"boolean","description":"False asks the Host to check for required migration before forking. Defaults to true."}},"required":["sessionId"],"additionalProperties":true},
|
|
2135
|
+
},
|
|
2136
|
+
strictCodec: {
|
|
2137
|
+
mode: 'strict',
|
|
2138
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionForkRequest',
|
|
2139
|
+
create: _unieai_rabi_api_session_controller_session_fork_parameter_0_strict$schema,
|
|
2140
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"atSeq":{"type":"number","description":"Exact inclusive source event seq; omission selects the latest completed-turn prefix."},"allowMigration":{"type":"boolean","description":"False asks the Host to check for required migration before forking. Defaults to true."}},"required":["sessionId"],"additionalProperties":false},
|
|
2141
|
+
},
|
|
2142
|
+
},
|
|
2143
|
+
],
|
|
2144
|
+
result: {
|
|
2145
|
+
mode: 'strict',
|
|
2146
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionForkValue',
|
|
2147
|
+
create: _unieai_rabi_api_session_controller_session_fork_result$schema,
|
|
2148
|
+
description: 'the new Session identity.',
|
|
2149
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":true},
|
|
2150
|
+
},
|
|
2151
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":449,"column":9},
|
|
2152
|
+
},
|
|
2153
|
+
'session/initializeDefaultModel': {
|
|
2154
|
+
service: 'sessionController',
|
|
2155
|
+
description: 'Select the first available account model after login when no provider API key is configured.',
|
|
2156
|
+
invocation: { kind: 'direct' },
|
|
2157
|
+
parameters: [
|
|
2158
|
+
],
|
|
2159
|
+
result: {
|
|
2160
|
+
mode: 'strict',
|
|
2161
|
+
typeSymbol: '@unieai/rabi-api-session-controller#session/initializeDefaultModel:result',
|
|
2162
|
+
create: _unieai_rabi_api_session_controller_session_initializeDefaultModel_result$schema,
|
|
2163
|
+
description: 'after saving the first available model or retaining the existing default.',
|
|
2164
|
+
jsonSchemaError: 'typert tool schema: unsupported void value',
|
|
2165
|
+
},
|
|
2166
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":326,"column":9},
|
|
2167
|
+
},
|
|
2168
|
+
'session/list': {
|
|
2169
|
+
service: 'sessionController',
|
|
2170
|
+
description: 'Read all visible Session rows without resuming an Agent.',
|
|
2171
|
+
invocation: { kind: 'direct' },
|
|
2172
|
+
parameters: [
|
|
2173
|
+
{
|
|
2174
|
+
name: '_request',
|
|
2175
|
+
description: 'reserved empty list request.',
|
|
2176
|
+
source: 'json',
|
|
2177
|
+
codec: {
|
|
2178
|
+
mode: 'strict',
|
|
2179
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionListRequest',
|
|
2180
|
+
create: _unieai_rabi_api_session_controller_session_list_parameter_0$schema,
|
|
2181
|
+
jsonSchema: {"type":"object","properties":{"cursor":{"type":"string"}},"required":[],"additionalProperties":true},
|
|
2182
|
+
},
|
|
2183
|
+
strictCodec: {
|
|
2184
|
+
mode: 'strict',
|
|
2185
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionListRequest',
|
|
2186
|
+
create: _unieai_rabi_api_session_controller_session_list_parameter_0_strict$schema,
|
|
2187
|
+
jsonSchema: {"type":"object","properties":{"cursor":{"type":"string"}},"required":[],"additionalProperties":false},
|
|
2188
|
+
},
|
|
2189
|
+
},
|
|
2190
|
+
],
|
|
2191
|
+
cancellation: { parameter: 'signal' },
|
|
2192
|
+
result: {
|
|
2193
|
+
mode: 'strict',
|
|
2194
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionListValue',
|
|
2195
|
+
create: _unieai_rabi_api_session_controller_session_list_result$schema,
|
|
2196
|
+
description: 'visible Session summaries ordered by activity.',
|
|
2197
|
+
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
2198
|
+
},
|
|
2199
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":282,"column":9},
|
|
2200
|
+
},
|
|
2201
|
+
'session/modelCatalog': {
|
|
2202
|
+
service: 'sessionController',
|
|
2203
|
+
description: 'Describe every currently routable model for Host-generation selectors.',
|
|
2204
|
+
invocation: { kind: 'direct' },
|
|
2205
|
+
parameters: [
|
|
2206
|
+
],
|
|
2207
|
+
result: {
|
|
2208
|
+
mode: 'strict',
|
|
2209
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#ModelCatalog',
|
|
2210
|
+
create: _unieai_rabi_api_session_controller_session_modelCatalog_result$schema,
|
|
2211
|
+
description: 'provider-grouped models, the deployment default, and isolated provider failures.',
|
|
2212
|
+
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
2213
|
+
},
|
|
2214
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":344,"column":3},
|
|
2215
|
+
},
|
|
2216
|
+
'session/observeEvent': {
|
|
2217
|
+
service: 'sessionController',
|
|
2218
|
+
description: 'Subscribe to Session events without reading a snapshot.',
|
|
2219
|
+
mode: 'stream',
|
|
2220
|
+
invocation: { kind: 'direct' },
|
|
2221
|
+
parameters: [
|
|
2222
|
+
{
|
|
2223
|
+
name: 'request',
|
|
2224
|
+
description: 'Session address.',
|
|
2225
|
+
source: 'json',
|
|
2226
|
+
codec: {
|
|
2227
|
+
mode: 'strict',
|
|
2228
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionObserveEventRequest',
|
|
2229
|
+
create: _unieai_rabi_api_session_controller_session_observeEvent_parameter_0$schema,
|
|
2230
|
+
jsonSchema: {"type":"object","properties":{"address":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"session"},"sessionId":{"type":"string"}},"required":["kind","sessionId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"subagent"},"parentSessionId":{"type":"string"},"childSessionId":{"type":"string"},"mode":{"type":"string","enum":["one-shot","continuable","unknown"]}},"required":["kind","parentSessionId","childSessionId","mode"],"additionalProperties":true}]}},"required":["address"],"additionalProperties":true},
|
|
2231
|
+
},
|
|
2232
|
+
strictCodec: {
|
|
2233
|
+
mode: 'strict',
|
|
2234
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionObserveEventRequest',
|
|
2235
|
+
create: _unieai_rabi_api_session_controller_session_observeEvent_parameter_0_strict$schema,
|
|
2236
|
+
jsonSchema: {"type":"object","properties":{"address":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"session"},"sessionId":{"type":"string"}},"required":["kind","sessionId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subagent"},"parentSessionId":{"type":"string"},"childSessionId":{"type":"string"},"mode":{"type":"string","enum":["one-shot","continuable","unknown"]}},"required":["kind","parentSessionId","childSessionId","mode"],"additionalProperties":false}]}},"required":["address"],"additionalProperties":false},
|
|
2237
|
+
},
|
|
2238
|
+
},
|
|
2239
|
+
],
|
|
2240
|
+
cancellation: { parameter: 'signal' },
|
|
2241
|
+
result: {
|
|
2242
|
+
mode: 'strict',
|
|
2243
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionEventFrame',
|
|
2244
|
+
create: _unieai_rabi_api_session_controller_session_observeEvent_result$schema,
|
|
2245
|
+
description: 'readiness and subsequent events, without a snapshot.',
|
|
2246
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"event"},"event":{"type":"object","properties":{"type":{"type":"string"},"seq":{"type":"number"},"time":{"type":"number"},"data":{},"ignorable":{"type":"boolean","const":true},"sourceEventSeqs":{"description":"Earlier sources on current surface events; opaque JSON on unknown ignorable events."},"surfaceOp":{"description":"Canonical placement on current surface events; opaque JSON on unknown ignorable events."}},"required":["type","seq","time","data"],"additionalProperties":true}},"required":["type","event"],"additionalProperties":true},{"type":"object","properties":{"type":{"type":"string","const":"ready"}},"required":["type"],"additionalProperties":true}]},
|
|
2247
|
+
},
|
|
2248
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":554,"column":3},
|
|
2249
|
+
},
|
|
2250
|
+
'session/observeProjections': {
|
|
2251
|
+
service: 'sessionController',
|
|
2252
|
+
description: 'Subscribe to Session projection changes.',
|
|
2253
|
+
mode: 'stream',
|
|
2254
|
+
invocation: { kind: 'direct' },
|
|
2255
|
+
parameters: [
|
|
2256
|
+
{
|
|
2257
|
+
name: 'request',
|
|
2258
|
+
description: 'target Session.',
|
|
2259
|
+
source: 'json',
|
|
2260
|
+
codec: {
|
|
2261
|
+
mode: 'strict',
|
|
2262
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionProjectionsRequest',
|
|
2263
|
+
create: _unieai_rabi_api_session_controller_session_observeProjections_parameter_0$schema,
|
|
2264
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":true},
|
|
2265
|
+
},
|
|
2266
|
+
strictCodec: {
|
|
2267
|
+
mode: 'strict',
|
|
2268
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionProjectionsRequest',
|
|
2269
|
+
create: _unieai_rabi_api_session_controller_session_observeProjections_parameter_0_strict$schema,
|
|
2270
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false},
|
|
2271
|
+
},
|
|
2272
|
+
},
|
|
2273
|
+
],
|
|
2274
|
+
cancellation: { parameter: 'signal' },
|
|
2275
|
+
result: {
|
|
2276
|
+
mode: 'strict',
|
|
2277
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionProjectionFrame',
|
|
2278
|
+
create: _unieai_rabi_api_session_controller_session_observeProjections_result$schema,
|
|
2279
|
+
description: 'readiness followed by one projection change frame per committed event.',
|
|
2280
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"ready"}},"required":["type"],"additionalProperties":true},{"type":"object","properties":{"type":{"type":"string","const":"projection"},"seq":{"type":"number","description":"Seq of the committed event that caused every listed change."},"changes":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"val":{}},"required":["key","val"],"additionalProperties":true},"description":"One entry per client-visible key whose view the event changed, in registration order without duplicate keys, with the key's new value as `val`. A key absent from `changes` is unchanged; unlike a baseline, absence does not mean an absent capability."}},"required":["type","seq","changes"],"additionalProperties":true}]},
|
|
2281
|
+
},
|
|
2282
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":565,"column":3},
|
|
2283
|
+
},
|
|
2284
|
+
'session/observeState': {
|
|
2285
|
+
service: 'sessionController',
|
|
2286
|
+
description: 'Subscribe to complete Session state replacements.',
|
|
2287
|
+
mode: 'stream',
|
|
2288
|
+
invocation: { kind: 'direct' },
|
|
2289
|
+
parameters: [
|
|
2290
|
+
{
|
|
2291
|
+
name: 'request',
|
|
2292
|
+
description: 'target Session.',
|
|
2293
|
+
source: 'json',
|
|
2294
|
+
codec: {
|
|
2295
|
+
mode: 'strict',
|
|
2296
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionStateRequest',
|
|
2297
|
+
create: _unieai_rabi_api_session_controller_session_observeState_parameter_0$schema,
|
|
2298
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":true},
|
|
2299
|
+
},
|
|
2300
|
+
strictCodec: {
|
|
2301
|
+
mode: 'strict',
|
|
2302
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionStateRequest',
|
|
2303
|
+
create: _unieai_rabi_api_session_controller_session_observeState_parameter_0_strict$schema,
|
|
2304
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false},
|
|
2305
|
+
},
|
|
2306
|
+
},
|
|
2307
|
+
],
|
|
2308
|
+
cancellation: { parameter: 'signal' },
|
|
2309
|
+
result: {
|
|
2310
|
+
mode: 'strict',
|
|
2311
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionState',
|
|
2312
|
+
create: _unieai_rabi_api_session_controller_session_observeState_result$schema,
|
|
2313
|
+
description: 'complete passive state replacements.',
|
|
2314
|
+
jsonSchema: {"type":"object","properties":{"cursor":{"type":"number"},"active":{"type":"boolean"},"running":{"type":"boolean"},"queue":{"oneOf":[{"type":"null","const":null},{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"placement":{"type":"string","enum":["queued","steering","context"]},"rpcId":{"type":"string"},"content":{"type":"array","items":{}}},"required":["id","placement","content"],"additionalProperties":true}}]},"pendingInput":{"type":"array","items":{"type":"string","enum":["approval","question","other"]},"description":"Pending Remote requests sampled when this state was read. A pending change alone does not trigger `observeState`; `wait` refreshes on its own interval."}},"required":["cursor","active","running","queue","pendingInput"],"additionalProperties":true},
|
|
2315
|
+
},
|
|
2316
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":587,"column":3},
|
|
2317
|
+
},
|
|
2318
|
+
'session/openWorkspacePath': {
|
|
2319
|
+
service: 'sessionController',
|
|
2320
|
+
description: 'Verify one path through the composed filesystem and open it on the Host desktop.',
|
|
2321
|
+
invocation: { kind: 'direct' },
|
|
2322
|
+
parameters: [
|
|
2323
|
+
{
|
|
2324
|
+
name: 'request',
|
|
2325
|
+
description: 'path after best-effort Session workspace resolution.',
|
|
2326
|
+
source: 'json',
|
|
2327
|
+
codec: {
|
|
2328
|
+
mode: 'strict',
|
|
2329
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionOpenWorkspacePathRequest',
|
|
2330
|
+
create: _unieai_rabi_api_session_controller_session_openWorkspacePath_parameter_0$schema,
|
|
2331
|
+
jsonSchema: {"type":"object","properties":{"action":{"type":"string","const":"reveal","description":"File-manager navigation when requested; omission uses the default application."},"application":{"type":"string","description":"Registered application identifier; ignored for reveal. Omission preserves the operating system default."},"path":{"type":"string","description":"Path after best-effort Session workspace resolution, in Host filesystem syntax."}},"required":["path"],"additionalProperties":true},
|
|
2332
|
+
},
|
|
2333
|
+
strictCodec: {
|
|
2334
|
+
mode: 'strict',
|
|
2335
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionOpenWorkspacePathRequest',
|
|
2336
|
+
create: _unieai_rabi_api_session_controller_session_openWorkspacePath_parameter_0_strict$schema,
|
|
2337
|
+
jsonSchema: {"type":"object","properties":{"action":{"type":"string","const":"reveal","description":"File-manager navigation when requested; omission uses the default application."},"application":{"type":"string","description":"Registered application identifier; ignored for reveal. Omission preserves the operating system default."},"path":{"type":"string","description":"Path after best-effort Session workspace resolution, in Host filesystem syntax."}},"required":["path"],"additionalProperties":false},
|
|
2338
|
+
},
|
|
2339
|
+
},
|
|
2340
|
+
],
|
|
2341
|
+
cancellation: { parameter: 'signal' },
|
|
2342
|
+
result: {
|
|
2343
|
+
mode: 'strict',
|
|
2344
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionOpenWorkspacePathValue',
|
|
2345
|
+
create: _unieai_rabi_api_session_controller_session_openWorkspacePath_result$schema,
|
|
2346
|
+
description: 'confirmation after the native opener accepts the path.',
|
|
2347
|
+
jsonSchema: {"type":"object","properties":{"opened":{"type":"boolean","const":true}},"required":["opened"],"additionalProperties":true},
|
|
2348
|
+
},
|
|
2349
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":374,"column":9},
|
|
2350
|
+
},
|
|
2351
|
+
'session/page': {
|
|
2352
|
+
service: 'sessionController',
|
|
2353
|
+
description: 'Read one cold-safe, message-aligned Session history page.',
|
|
2354
|
+
invocation: { kind: 'direct' },
|
|
2355
|
+
parameters: [
|
|
2356
|
+
{
|
|
2357
|
+
name: 'request',
|
|
2358
|
+
description: 'durable address, optional fixed cut, backward cursor, and page budget.',
|
|
2359
|
+
source: 'json',
|
|
2360
|
+
codec: {
|
|
2361
|
+
mode: 'strict',
|
|
2362
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionPageRequest',
|
|
2363
|
+
create: _unieai_rabi_api_session_controller_session_page_parameter_0$schema,
|
|
2364
|
+
jsonSchema: {"type":"object","properties":{"address":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"session"},"sessionId":{"type":"string"}},"required":["kind","sessionId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"subagent"},"parentSessionId":{"type":"string"},"childSessionId":{"type":"string"},"mode":{"type":"string","enum":["one-shot","continuable","unknown"]}},"required":["kind","parentSessionId","childSessionId","mode"],"additionalProperties":true}]},"throughSeq":{"type":"number","description":"Inclusive log cut; omission selects the observed log end. A follow opening reports the cut it covered so a caller can pin the same point."},"beforeSeq":{"type":"number"},"maxMessages":{"type":"number"},"turnWindow":{"type":"object","properties":{"minMessages":{"type":"number","description":"Minimum append-origin user/assistant messages; must not exceed maxMessages."},"minTurns":{"type":"number","description":"Minimum Turn starts crossed, including the partial Turn at beforeSeq."}},"required":["minMessages","minTurns"],"additionalProperties":true,"description":"Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins."}},"required":["address"],"additionalProperties":true},
|
|
2365
|
+
},
|
|
2366
|
+
strictCodec: {
|
|
2367
|
+
mode: 'strict',
|
|
2368
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionPageRequest',
|
|
2369
|
+
create: _unieai_rabi_api_session_controller_session_page_parameter_0_strict$schema,
|
|
2370
|
+
jsonSchema: {"type":"object","properties":{"address":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"session"},"sessionId":{"type":"string"}},"required":["kind","sessionId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subagent"},"parentSessionId":{"type":"string"},"childSessionId":{"type":"string"},"mode":{"type":"string","enum":["one-shot","continuable","unknown"]}},"required":["kind","parentSessionId","childSessionId","mode"],"additionalProperties":false}]},"throughSeq":{"type":"number","description":"Inclusive log cut; omission selects the observed log end. A follow opening reports the cut it covered so a caller can pin the same point."},"beforeSeq":{"type":"number"},"maxMessages":{"type":"number"},"turnWindow":{"type":"object","properties":{"minMessages":{"type":"number","description":"Minimum append-origin user/assistant messages; must not exceed maxMessages."},"minTurns":{"type":"number","description":"Minimum Turn starts crossed, including the partial Turn at beforeSeq."}},"required":["minMessages","minTurns"],"additionalProperties":false,"description":"Stop at a Turn start after both minima, unless maxMessages or history exhaustion wins."}},"required":["address"],"additionalProperties":false},
|
|
2371
|
+
},
|
|
2372
|
+
},
|
|
2373
|
+
],
|
|
2374
|
+
cancellation: { parameter: 'signal' },
|
|
2375
|
+
result: {
|
|
2376
|
+
mode: 'strict',
|
|
2377
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionEventsPage',
|
|
2378
|
+
create: _unieai_rabi_api_session_controller_session_page_result$schema,
|
|
2379
|
+
description: 'one chronological page with its inclusive cursor; an omitted `throughSeq` selects the observed log end.',
|
|
2380
|
+
jsonSchema: {"type":"object","properties":{"cursor":{"type":"number"},"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"event"},"event":{"type":"object","properties":{"type":{"type":"string"},"seq":{"type":"number"},"time":{"type":"number"},"data":{},"ignorable":{"type":"boolean","const":true},"sourceEventSeqs":{"description":"Earlier sources on current surface events; opaque JSON on unknown ignorable events."},"surfaceOp":{"description":"Canonical placement on current surface events; opaque JSON on unknown ignorable events."}},"required":["type","seq","time","data"],"additionalProperties":true}},"required":["type","event"],"additionalProperties":true}},"hasMore":{"type":"boolean"}},"required":["cursor","records","hasMore"],"additionalProperties":true},
|
|
2381
|
+
},
|
|
2382
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":532,"column":3},
|
|
2383
|
+
},
|
|
2384
|
+
'session/projections': {
|
|
2385
|
+
service: 'sessionController',
|
|
2386
|
+
description: 'Read exact projections, returning cached hints only when migration is required.',
|
|
2387
|
+
invocation: { kind: 'direct' },
|
|
2388
|
+
parameters: [
|
|
2389
|
+
{
|
|
2390
|
+
name: 'request',
|
|
2391
|
+
description: 'Session whose current values are required.',
|
|
2392
|
+
source: 'json',
|
|
2393
|
+
codec: {
|
|
2394
|
+
mode: 'strict',
|
|
2395
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionProjectionsRequest',
|
|
2396
|
+
create: _unieai_rabi_api_session_controller_session_projections_parameter_0$schema,
|
|
2397
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":true},
|
|
2398
|
+
},
|
|
2399
|
+
strictCodec: {
|
|
2400
|
+
mode: 'strict',
|
|
2401
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionProjectionsRequest',
|
|
2402
|
+
create: _unieai_rabi_api_session_controller_session_projections_parameter_0_strict$schema,
|
|
2403
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false},
|
|
2404
|
+
},
|
|
2405
|
+
},
|
|
2406
|
+
],
|
|
2407
|
+
cancellation: { parameter: 'signal' },
|
|
2408
|
+
result: {
|
|
2409
|
+
mode: 'strict',
|
|
2410
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionProjectionsValue',
|
|
2411
|
+
create: _unieai_rabi_api_session_controller_session_projections_result$schema,
|
|
2412
|
+
description: 'a sequenced baseline, cached hints when migration is deferred, or null when absent.',
|
|
2413
|
+
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
2414
|
+
},
|
|
2415
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":621,"column":3},
|
|
2416
|
+
},
|
|
2417
|
+
'session/prompt': {
|
|
2418
|
+
service: 'sessionController',
|
|
2419
|
+
description: 'Admit one prompt after explicitly resuming its Session.',
|
|
2420
|
+
invocation: { kind: 'direct' },
|
|
2421
|
+
parameters: [
|
|
2422
|
+
{
|
|
2423
|
+
name: 'request',
|
|
2424
|
+
description: 'Session identity, prompt content, source metadata, and delivery mode.',
|
|
2425
|
+
source: 'json',
|
|
2426
|
+
codec: {
|
|
2427
|
+
mode: 'strict',
|
|
2428
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionPromptRequest',
|
|
2429
|
+
create: _unieai_rabi_api_session_controller_session_prompt_parameter_0$schema,
|
|
2430
|
+
jsonSchema: {"type":"object","properties":{"requestId":{"type":"string","description":"Client-minted identity persisted on the accepted inbox input, including empty continuation."},"sessionId":{"type":"string"},"mode":{"type":"string","enum":["queue","steer"]},"content":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":true},{"type":"object","properties":{"type":{"type":"string","const":"image"},"mediaType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"data":{"type":"string"},"name":{"type":"string"}},"required":["type","mediaType","data"],"additionalProperties":true},{"type":"object","properties":{"type":{"type":"string","const":"file"},"receiptId":{"type":"string"}},"required":["type","receiptId"],"additionalProperties":true}]},"description":"Non-whitespace text or attachments; an empty array continues an eligible failed idle Session."},"clientTimeZone":{"type":"string"}},"required":["requestId","sessionId","mode","content"],"additionalProperties":true},
|
|
2431
|
+
},
|
|
2432
|
+
strictCodec: {
|
|
2433
|
+
mode: 'strict',
|
|
2434
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionPromptRequest',
|
|
2435
|
+
create: _unieai_rabi_api_session_controller_session_prompt_parameter_0_strict$schema,
|
|
2436
|
+
jsonSchema: {"type":"object","properties":{"requestId":{"type":"string","description":"Client-minted identity persisted on the accepted inbox input, including empty continuation."},"sessionId":{"type":"string"},"mode":{"type":"string","enum":["queue","steer"]},"content":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"mediaType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"data":{"type":"string"},"name":{"type":"string"}},"required":["type","mediaType","data"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"file"},"receiptId":{"type":"string"}},"required":["type","receiptId"],"additionalProperties":false}]},"description":"Non-whitespace text or attachments; an empty array continues an eligible failed idle Session."},"clientTimeZone":{"type":"string"}},"required":["requestId","sessionId","mode","content"],"additionalProperties":false},
|
|
2437
|
+
},
|
|
2438
|
+
},
|
|
2439
|
+
],
|
|
2440
|
+
cancellation: { parameter: 'signal' },
|
|
2441
|
+
result: {
|
|
2442
|
+
mode: 'strict',
|
|
2443
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionPromptValue',
|
|
2444
|
+
create: _unieai_rabi_api_session_controller_session_prompt_result$schema,
|
|
2445
|
+
description: 'acknowledgement that the Agent accepted the prompt.',
|
|
2446
|
+
jsonSchema: {"type":"object","properties":{"accepted":{"type":"boolean","const":true}},"required":["accepted"],"additionalProperties":true},
|
|
2447
|
+
},
|
|
2448
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":468,"column":9},
|
|
2449
|
+
},
|
|
2450
|
+
'session/rename': {
|
|
2451
|
+
service: 'sessionController',
|
|
2452
|
+
description: 'Rename one Session after explicitly resuming it.',
|
|
2453
|
+
invocation: { kind: 'direct' },
|
|
2454
|
+
parameters: [
|
|
2455
|
+
{
|
|
2456
|
+
name: 'request',
|
|
2457
|
+
description: 'Session identity and proposed title.',
|
|
2458
|
+
source: 'json',
|
|
2459
|
+
codec: {
|
|
2460
|
+
mode: 'strict',
|
|
2461
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionRenameRequest',
|
|
2462
|
+
create: _unieai_rabi_api_session_controller_session_rename_parameter_0$schema,
|
|
2463
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"title":{"type":"string"}},"required":["sessionId","title"],"additionalProperties":true},
|
|
2464
|
+
},
|
|
2465
|
+
strictCodec: {
|
|
2466
|
+
mode: 'strict',
|
|
2467
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionRenameRequest',
|
|
2468
|
+
create: _unieai_rabi_api_session_controller_session_rename_parameter_0_strict$schema,
|
|
2469
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"title":{"type":"string"}},"required":["sessionId","title"],"additionalProperties":false},
|
|
2470
|
+
},
|
|
2471
|
+
},
|
|
2472
|
+
],
|
|
2473
|
+
result: {
|
|
2474
|
+
mode: 'strict',
|
|
2475
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionRenameValue',
|
|
2476
|
+
create: _unieai_rabi_api_session_controller_session_rename_result$schema,
|
|
2477
|
+
description: 'the accepted title and durable event sequence.',
|
|
2478
|
+
jsonSchema: {"type":"object","properties":{"title":{"type":"string"},"seq":{"type":"number"}},"required":["title","seq"],"additionalProperties":true},
|
|
2479
|
+
},
|
|
2480
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":437,"column":3},
|
|
2481
|
+
},
|
|
2482
|
+
'session/search': {
|
|
2483
|
+
service: 'sessionController',
|
|
2484
|
+
description: 'Search visible Session content without resuming an Agent. A non-owner receives only the hits whose Session `allows()` admits; `hasMore` describes the bounded result before that filtering.',
|
|
2485
|
+
invocation: { kind: 'direct' },
|
|
2486
|
+
parameters: [
|
|
2487
|
+
{
|
|
2488
|
+
name: 'request',
|
|
2489
|
+
description: 'literal message-content query.',
|
|
2490
|
+
source: 'json',
|
|
2491
|
+
codec: {
|
|
2492
|
+
mode: 'strict',
|
|
2493
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionSearchRequest',
|
|
2494
|
+
create: _unieai_rabi_api_session_controller_session_search_parameter_0$schema,
|
|
2495
|
+
jsonSchema: {"type":"object","properties":{"query":{"type":"string"}},"required":["query"],"additionalProperties":true},
|
|
2496
|
+
},
|
|
2497
|
+
strictCodec: {
|
|
2498
|
+
mode: 'strict',
|
|
2499
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionSearchRequest',
|
|
2500
|
+
create: _unieai_rabi_api_session_controller_session_search_parameter_0_strict$schema,
|
|
2501
|
+
jsonSchema: {"type":"object","properties":{"query":{"type":"string"}},"required":["query"],"additionalProperties":false},
|
|
2502
|
+
},
|
|
2503
|
+
},
|
|
2504
|
+
],
|
|
2505
|
+
cancellation: { parameter: 'signal' },
|
|
2506
|
+
result: {
|
|
2507
|
+
mode: 'strict',
|
|
2508
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionSearchValue',
|
|
2509
|
+
create: _unieai_rabi_api_session_controller_session_search_result$schema,
|
|
2510
|
+
description: 'authorized bounded Session search results.',
|
|
2511
|
+
jsonSchema: {"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"sessionId":{"type":"string"},"snippet":{"type":"string"}},"required":["sessionId","snippet"],"additionalProperties":true}},"hasMore":{"type":"boolean"}},"required":["items","hasMore"],"additionalProperties":true},
|
|
2512
|
+
},
|
|
2513
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":296,"column":9},
|
|
2514
|
+
},
|
|
2515
|
+
'session/selectModel': {
|
|
2516
|
+
service: 'sessionController',
|
|
2517
|
+
description: 'Select one Session-local model after explicitly resuming the Session; save the default in the background.',
|
|
2518
|
+
invocation: { kind: 'direct' },
|
|
2519
|
+
parameters: [
|
|
2520
|
+
{
|
|
2521
|
+
name: 'request',
|
|
2522
|
+
description: 'Session identity and requested model selection.',
|
|
2523
|
+
source: 'json',
|
|
2524
|
+
codec: {
|
|
2525
|
+
mode: 'strict',
|
|
2526
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionSelectModelRequest',
|
|
2527
|
+
create: _unieai_rabi_api_session_controller_session_selectModel_parameter_0$schema,
|
|
2528
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"provider":{"type":"string"},"model":{"type":"string"},"reasoningEffort":{"type":"string"}},"required":["sessionId","provider","model"],"additionalProperties":true},
|
|
2529
|
+
},
|
|
2530
|
+
strictCodec: {
|
|
2531
|
+
mode: 'strict',
|
|
2532
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionSelectModelRequest',
|
|
2533
|
+
create: _unieai_rabi_api_session_controller_session_selectModel_parameter_0_strict$schema,
|
|
2534
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"provider":{"type":"string"},"model":{"type":"string"},"reasoningEffort":{"type":"string"}},"required":["sessionId","provider","model"],"additionalProperties":false},
|
|
2535
|
+
},
|
|
2536
|
+
},
|
|
2537
|
+
],
|
|
2538
|
+
result: {
|
|
2539
|
+
mode: 'strict',
|
|
2540
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionSelectModelValue',
|
|
2541
|
+
create: _unieai_rabi_api_session_controller_session_selectModel_result$schema,
|
|
2542
|
+
description: 'the normalized selection installed for the Session, without waiting for default persistence.',
|
|
2543
|
+
jsonSchema: {"type":"object","properties":{"selected":{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"},"reasoningEffort":{"type":"string"}},"required":["provider","model"],"additionalProperties":true}},"required":["selected"],"additionalProperties":true},
|
|
2544
|
+
},
|
|
2545
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":317,"column":3},
|
|
2546
|
+
},
|
|
2547
|
+
'session/state': {
|
|
2548
|
+
service: 'sessionController',
|
|
2549
|
+
description: 'Read passive Session state.',
|
|
2550
|
+
invocation: { kind: 'direct' },
|
|
2551
|
+
parameters: [
|
|
2552
|
+
{
|
|
2553
|
+
name: 'request',
|
|
2554
|
+
description: 'target Session.',
|
|
2555
|
+
source: 'json',
|
|
2556
|
+
codec: {
|
|
2557
|
+
mode: 'strict',
|
|
2558
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionStateRequest',
|
|
2559
|
+
create: _unieai_rabi_api_session_controller_session_state_parameter_0$schema,
|
|
2560
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":true},
|
|
2561
|
+
},
|
|
2562
|
+
strictCodec: {
|
|
2563
|
+
mode: 'strict',
|
|
2564
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionStateRequest',
|
|
2565
|
+
create: _unieai_rabi_api_session_controller_session_state_parameter_0_strict$schema,
|
|
2566
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false},
|
|
2567
|
+
},
|
|
2568
|
+
},
|
|
2569
|
+
],
|
|
2570
|
+
cancellation: { parameter: 'signal' },
|
|
2571
|
+
result: {
|
|
2572
|
+
mode: 'strict',
|
|
2573
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionState',
|
|
2574
|
+
create: _unieai_rabi_api_session_controller_session_state_result$schema,
|
|
2575
|
+
description: 'current passive state.',
|
|
2576
|
+
jsonSchema: {"type":"object","properties":{"cursor":{"type":"number"},"active":{"type":"boolean"},"running":{"type":"boolean"},"queue":{"oneOf":[{"type":"null","const":null},{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"placement":{"type":"string","enum":["queued","steering","context"]},"rpcId":{"type":"string"},"content":{"type":"array","items":{}}},"required":["id","placement","content"],"additionalProperties":true}}]},"pendingInput":{"type":"array","items":{"type":"string","enum":["approval","question","other"]},"description":"Pending Remote requests sampled when this state was read. A pending change alone does not trigger `observeState`; `wait` refreshes on its own interval."}},"required":["cursor","active","running","queue","pendingInput"],"additionalProperties":true},
|
|
2577
|
+
},
|
|
2578
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":576,"column":3},
|
|
2579
|
+
},
|
|
2580
|
+
'session/updateQueue': {
|
|
2581
|
+
service: 'sessionController',
|
|
2582
|
+
description: 'Mutate one still-pending queue occurrence, resuming a cold Agent first.',
|
|
2583
|
+
invocation: { kind: 'direct' },
|
|
2584
|
+
parameters: [
|
|
2585
|
+
{
|
|
2586
|
+
name: 'request',
|
|
2587
|
+
description: 'Session, queue item, and requested mutation.',
|
|
2588
|
+
source: 'json',
|
|
2589
|
+
codec: {
|
|
2590
|
+
mode: 'strict',
|
|
2591
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionUpdateQueueRequest',
|
|
2592
|
+
create: _unieai_rabi_api_session_controller_session_updateQueue_parameter_0$schema,
|
|
2593
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"itemId":{"type":"string"},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"edit"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":true},"description":"Non-empty text-only replacement content."}},"required":["kind","content"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"remove"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"steer"}},"required":["kind"],"additionalProperties":true}]}},"required":["sessionId","itemId","action"],"additionalProperties":true},
|
|
2594
|
+
},
|
|
2595
|
+
strictCodec: {
|
|
2596
|
+
mode: 'strict',
|
|
2597
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionUpdateQueueRequest',
|
|
2598
|
+
create: _unieai_rabi_api_session_controller_session_updateQueue_parameter_0_strict$schema,
|
|
2599
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"itemId":{"type":"string"},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"edit"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false},"description":"Non-empty text-only replacement content."}},"required":["kind","content"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"remove"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"steer"}},"required":["kind"],"additionalProperties":false}]}},"required":["sessionId","itemId","action"],"additionalProperties":false},
|
|
2600
|
+
},
|
|
2601
|
+
},
|
|
2602
|
+
],
|
|
2603
|
+
result: {
|
|
2604
|
+
mode: 'strict',
|
|
2605
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionUpdateQueueValue',
|
|
2606
|
+
create: _unieai_rabi_api_session_controller_session_updateQueue_result$schema,
|
|
2607
|
+
description: 'acknowledgement that the queue mutation was applied.',
|
|
2608
|
+
jsonSchema: {"type":"object","properties":{"accepted":{"type":"boolean","const":true}},"required":["accepted"],"additionalProperties":true},
|
|
2609
|
+
},
|
|
2610
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":510,"column":3},
|
|
2611
|
+
},
|
|
2612
|
+
'session/wait': {
|
|
2613
|
+
service: 'sessionController',
|
|
2614
|
+
description: 'Wait for Session quiescence or pending input with bounded assistant output.',
|
|
2615
|
+
invocation: { kind: 'direct' },
|
|
2616
|
+
parameters: [
|
|
2617
|
+
{
|
|
2618
|
+
name: 'request',
|
|
2619
|
+
description: 'Session, wait bounds and output window.',
|
|
2620
|
+
source: 'json',
|
|
2621
|
+
codec: {
|
|
2622
|
+
mode: 'strict',
|
|
2623
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionWaitRequest',
|
|
2624
|
+
create: _unieai_rabi_api_session_controller_session_wait_parameter_0$schema,
|
|
2625
|
+
jsonSchema: {"type":"object","properties":{"timeoutMs":{"type":"number"},"afterSeq":{"type":"number","description":"Exclusive output cursor; omission includes all available assistant records."},"maxMessages":{"type":"number","description":"Positive assistant-record limit; omission uses the history message budget."},"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":true},
|
|
2626
|
+
},
|
|
2627
|
+
strictCodec: {
|
|
2628
|
+
mode: 'strict',
|
|
2629
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionWaitRequest',
|
|
2630
|
+
create: _unieai_rabi_api_session_controller_session_wait_parameter_0_strict$schema,
|
|
2631
|
+
jsonSchema: {"type":"object","properties":{"timeoutMs":{"type":"number"},"afterSeq":{"type":"number","description":"Exclusive output cursor; omission includes all available assistant records."},"maxMessages":{"type":"number","description":"Positive assistant-record limit; omission uses the history message budget."},"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false},
|
|
2632
|
+
},
|
|
2633
|
+
},
|
|
2634
|
+
],
|
|
2635
|
+
cancellation: { parameter: 'signal' },
|
|
2636
|
+
result: {
|
|
2637
|
+
mode: 'strict',
|
|
2638
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SessionWaitValue',
|
|
2639
|
+
create: _unieai_rabi_api_session_controller_session_wait_result$schema,
|
|
2640
|
+
description: 'stopping state and bounded assistant output.',
|
|
2641
|
+
jsonSchema: {"type":"object","properties":{"reason":{"type":"string","enum":["idle","input-required","timeout"]},"state":{"type":"object","properties":{"cursor":{"type":"number"},"active":{"type":"boolean"},"running":{"type":"boolean"},"queue":{"oneOf":[{"type":"null","const":null},{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"placement":{"type":"string","enum":["queued","steering","context"]},"rpcId":{"type":"string"},"content":{"type":"array","items":{}}},"required":["id","placement","content"],"additionalProperties":true}}]},"pendingInput":{"type":"array","items":{"type":"string","enum":["approval","question","other"]},"description":"Pending Remote requests sampled when this state was read. A pending change alone does not trigger `observeState`; `wait` refreshes on its own interval."}},"required":["cursor","active","running","queue","pendingInput"],"additionalProperties":true},"output":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"event"},"event":{"type":"object","properties":{"type":{"type":"string"},"seq":{"type":"number"},"time":{"type":"number"},"data":{},"ignorable":{"type":"boolean","const":true},"sourceEventSeqs":{"description":"Earlier sources on current surface events; opaque JSON on unknown ignorable events."},"surfaceOp":{"description":"Canonical placement on current surface events; opaque JSON on unknown ignorable events."}},"required":["type","seq","time","data"],"additionalProperties":true}},"required":["type","event"],"additionalProperties":true}},"truncated":{"type":"boolean","description":"More eligible assistant messages exist in the selected interval."}},"required":["records","truncated"],"additionalProperties":true}},"required":["reason","state","output"],"additionalProperties":true},
|
|
2642
|
+
},
|
|
2643
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":598,"column":3},
|
|
2644
|
+
},
|
|
2645
|
+
'session/workspacePathApplications': {
|
|
2646
|
+
service: 'sessionController',
|
|
2647
|
+
description: 'Query current file handlers on the serving desktop without activating an Agent.',
|
|
2648
|
+
invocation: { kind: 'direct' },
|
|
2649
|
+
parameters: [
|
|
2650
|
+
{
|
|
2651
|
+
name: 'request',
|
|
2652
|
+
description: 'file path in Host filesystem syntax.',
|
|
2653
|
+
source: 'json',
|
|
2654
|
+
codec: {
|
|
2655
|
+
mode: 'strict',
|
|
2656
|
+
typeSymbol: '@unieai/rabi-api-session-controller#session/workspacePathApplications:request',
|
|
2657
|
+
create: _unieai_rabi_api_session_controller_session_workspacePathApplications_parameter_0$schema,
|
|
2658
|
+
jsonSchema: {"type":"object","properties":{"path":{"type":"string"}},"required":["path"],"additionalProperties":true},
|
|
2659
|
+
},
|
|
2660
|
+
strictCodec: {
|
|
2661
|
+
mode: 'strict',
|
|
2662
|
+
typeSymbol: '@unieai/rabi-api-session-controller#session/workspacePathApplications:request',
|
|
2663
|
+
create: _unieai_rabi_api_session_controller_session_workspacePathApplications_parameter_0_strict$schema,
|
|
2664
|
+
jsonSchema: {"type":"object","properties":{"path":{"type":"string"}},"required":["path"],"additionalProperties":false},
|
|
2665
|
+
},
|
|
2666
|
+
},
|
|
2667
|
+
],
|
|
2668
|
+
cancellation: { parameter: 'signal' },
|
|
2669
|
+
result: {
|
|
2670
|
+
mode: 'strict',
|
|
2671
|
+
typeSymbol: '@unieai/rabi-api-session-controller#session/workspacePathApplications:result',
|
|
2672
|
+
create: _unieai_rabi_api_session_controller_session_workspacePathApplications_result$schema,
|
|
2673
|
+
description: 'OS application names, icons, and default selection; empty when desktop opening is unavailable.',
|
|
2674
|
+
jsonSchema: {"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"OS application identifier; callers must revalidate it against the file's current handlers before opening."},"name":{"type":"string"},"default":{"type":"boolean"},"icon":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"PNG or SVG data URL, or null when the desktop supplies no icon."}},"required":["id","name","default","icon"],"additionalProperties":true}},
|
|
2675
|
+
},
|
|
2676
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":404,"column":9},
|
|
2677
|
+
},
|
|
2678
|
+
'skills/list': {
|
|
2679
|
+
service: 'sessionSkillCatalog',
|
|
2680
|
+
description: 'List the user-invocable skills visible to one Session composition.',
|
|
2681
|
+
invocation: { kind: 'direct' },
|
|
2682
|
+
parameters: [
|
|
2683
|
+
{
|
|
2684
|
+
name: 'request',
|
|
2685
|
+
description: 'Session identity whose cwd and preset select the catalog view.',
|
|
2686
|
+
source: 'json',
|
|
2687
|
+
codec: {
|
|
2688
|
+
mode: 'strict',
|
|
2689
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SkillListRequest',
|
|
2690
|
+
create: _unieai_rabi_api_session_controller_skills_list_parameter_0$schema,
|
|
2691
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":true},
|
|
2692
|
+
},
|
|
2693
|
+
strictCodec: {
|
|
2694
|
+
mode: 'strict',
|
|
2695
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SkillListRequest',
|
|
2696
|
+
create: _unieai_rabi_api_session_controller_skills_list_parameter_0_strict$schema,
|
|
2697
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false},
|
|
2698
|
+
},
|
|
2699
|
+
},
|
|
2700
|
+
],
|
|
2701
|
+
cancellation: { parameter: 'signal' },
|
|
2702
|
+
result: {
|
|
2703
|
+
mode: 'strict',
|
|
2704
|
+
typeSymbol: '@unieai/rabi-api-session-controller/types#SkillListValue',
|
|
2705
|
+
create: _unieai_rabi_api_session_controller_skills_list_result$schema,
|
|
2706
|
+
description: 'user-invocable skill metadata without loading skill bodies.',
|
|
2707
|
+
jsonSchema: {"type":"object","properties":{"skills":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Absolute SKILL.md path when supplied by a filesystem provider."},"name":{"type":"string","description":"Kebab-case identifier referenced as `/name`."},"description":{"type":"string","description":"Short routing description."},"whenToUse":{"type":"string","description":"Optional extra routing guidance."},"modelInvocable":{"type":"boolean","description":"Whether the same skill is also advertised to the model."}},"required":["name","description","modelInvocable"],"additionalProperties":true}}},"required":["skills"],"additionalProperties":true},
|
|
2708
|
+
},
|
|
2709
|
+
sourceLocation: {"file":"packages/api/session-controller/src/skill-catalog.ts","line":36,"column":9},
|
|
2710
|
+
},
|
|
2711
|
+
},
|
|
2712
|
+
}, z)
|
|
2713
|
+
|
|
2714
|
+
export default TYPERT_REMOTE
|