@opengeni/contracts 1.0.1 → 2.2.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-authored-durable-text.d.ts +64 -0
- package/dist/atlassian.d.ts +1 -0
- package/dist/atlassian.js +14 -13
- package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
- package/dist/chunk-3SIZGL3O.js.map +1 -0
- package/dist/{chunk-JBCIY7QD.js → chunk-7RMTKFJW.js} +45 -22
- package/dist/chunk-7RMTKFJW.js.map +1 -0
- package/dist/{chunk-NX5JNF4L.js → chunk-7ZZ3R27P.js} +9322 -5798
- package/dist/chunk-7ZZ3R27P.js.map +1 -0
- package/dist/{chunk-5UDNP7AO.js → chunk-MRWYRAS5.js} +56 -8
- package/dist/chunk-MRWYRAS5.js.map +1 -0
- package/dist/{chunk-LW7OH6CS.js → chunk-N6GRVXAJ.js} +6 -5
- package/dist/chunk-N6GRVXAJ.js.map +1 -0
- package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
- package/dist/chunk-NVJMJWLL.js.map +1 -0
- package/dist/chunk-PX3VCKAU.js +29 -0
- package/dist/chunk-PX3VCKAU.js.map +1 -0
- package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
- package/dist/chunk-TXTQIYCV.js.map +1 -0
- package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
- package/dist/chunk-YBW5JSA3.js +251 -0
- package/dist/chunk-YBW5JSA3.js.map +1 -0
- package/dist/company-brain-governed-writes.d.ts +475 -0
- package/dist/company-brain.d.ts +398 -0
- package/dist/company-profile.d.ts +268 -0
- package/dist/connection-authority.d.ts +501 -0
- package/dist/connection-authority.js +364 -0
- package/dist/connection-authority.js.map +1 -0
- package/dist/connector-attachments.d.ts +95 -0
- package/dist/connector-attachments.js +51 -0
- package/dist/connector-attachments.js.map +1 -0
- package/dist/editable-artifact-codec-registry.d.ts +16 -7
- package/dist/editable-artifact-codec-registry.js +18 -8
- package/dist/editable-artifact-committed-transaction.d.ts +2 -2
- package/dist/editable-artifact-committed-transaction.js +2 -2
- package/dist/editable-artifact-live.d.ts +11 -12
- package/dist/editable-artifact-live.js +111 -46
- package/dist/editable-artifact-live.js.map +1 -1
- package/dist/editable-artifact-serialized-commit.d.ts +2 -1
- package/dist/editable-artifact-serialized-commit.js +9 -8
- package/dist/editable-artifact-versions.d.ts +20 -5
- package/dist/editable-artifact-versions.js +23 -5
- package/dist/editable-artifacts.d.ts +2 -0
- package/dist/editable-artifacts.js +51 -39
- package/dist/google-drive.d.ts +1 -0
- package/dist/google-drive.js +14 -13
- package/dist/google-drive.js.map +1 -1
- package/dist/governed-learning-activation.d.ts +154 -0
- package/dist/governed-learning-evaluator.d.ts +152 -0
- package/dist/index.d.ts +12224 -1328
- package/dist/index.js +831 -115
- package/dist/interaction.d.ts +68 -0
- package/dist/knowledge.d.ts +119 -0
- package/dist/organization-membership-lifecycle.d.ts +516 -0
- package/dist/permissions.d.ts +52 -0
- package/dist/personal-github.d.ts +319 -0
- package/dist/personal-github.js +209 -0
- package/dist/personal-github.js.map +1 -0
- package/dist/preference-registry.d.ts +17 -0
- package/dist/remember.d.ts +331 -0
- package/dist/sandbox-file-artifacts.d.ts +56 -0
- package/dist/sandbox-snapshots.d.ts +21 -0
- package/dist/slack-bot-scopes.d.ts +34 -14
- package/dist/slack-bot-scopes.js +5 -1
- package/dist/spreadsheet-artifact-commands.d.ts +2 -3
- package/dist/spreadsheet-artifact-commands.js +4 -2
- package/dist/spreadsheet-artifact-query.js +3 -2
- package/dist/task-notes.d.ts +42 -1
- package/dist/tool-result-spill.d.ts +16 -0
- package/dist/workspace-instruction-policies.d.ts +81 -0
- package/dist/workspace-learning-administration.d.ts +289 -0
- package/package.json +13 -1
- package/src/agent-authored-durable-text.ts +105 -0
- package/src/company-brain-governed-writes.ts +356 -0
- package/src/company-brain.ts +201 -0
- package/src/company-profile.ts +122 -1
- package/src/connection-authority.ts +413 -0
- package/src/connector-attachments.ts +327 -0
- package/src/editable-artifact-codec-registry.ts +55 -17
- package/src/editable-artifact-committed-transaction.ts +44 -31
- package/src/editable-artifact-live.ts +123 -57
- package/src/editable-artifact-serialized-commit.ts +2 -1
- package/src/editable-artifact-versions.ts +26 -5
- package/src/editable-artifacts.ts +2 -0
- package/src/governed-learning-activation.ts +191 -0
- package/src/governed-learning-evaluator.ts +176 -0
- package/src/index.ts +3033 -392
- package/src/interaction.ts +55 -1
- package/src/knowledge.ts +118 -6
- package/src/organization-membership-lifecycle.ts +330 -0
- package/src/permissions.ts +55 -0
- package/src/personal-github.ts +267 -0
- package/src/preference-registry.ts +17 -0
- package/src/remember.ts +242 -0
- package/src/sandbox-file-artifacts.ts +65 -0
- package/src/sandbox-snapshots.ts +78 -0
- package/src/slack-bot-scopes.ts +81 -9
- package/src/spreadsheet-artifact-commands.ts +12 -13
- package/src/task-notes.ts +14 -1
- package/src/tool-result-spill.ts +35 -0
- package/src/workspace-instruction-policies.ts +30 -0
- package/src/workspace-learning-administration.ts +88 -0
- package/dist/chunk-5UDNP7AO.js.map +0 -1
- package/dist/chunk-BVGIYW7D.js +0 -11
- package/dist/chunk-BVGIYW7D.js.map +0 -1
- package/dist/chunk-JBCIY7QD.js.map +0 -1
- package/dist/chunk-LSB7GRLG.js.map +0 -1
- package/dist/chunk-LW7OH6CS.js.map +0 -1
- package/dist/chunk-NX5JNF4L.js.map +0 -1
- package/dist/chunk-TZ6YEYN4.js.map +0 -1
- package/dist/chunk-Y3MLSLB4.js.map +0 -1
- /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Explicit user-directed durable write ("remember X for this workspace").
|
|
4
|
+
*
|
|
5
|
+
* The lane is the Company Brain area the content belongs to:
|
|
6
|
+
* - `preference`: a Ways-of-working preference (how agents should act);
|
|
7
|
+
* - `instruction_policy`: a mandatory workspace rule ("always"/"never");
|
|
8
|
+
* - `knowledge`: a company/product/people fact.
|
|
9
|
+
*
|
|
10
|
+
* v1 supports the workspace scope only. Personal and organization scopes are
|
|
11
|
+
* separate authorities that are not yet active for governed writes.
|
|
12
|
+
*/
|
|
13
|
+
export declare const RememberLane: z.ZodEnum<{
|
|
14
|
+
instruction_policy: "instruction_policy";
|
|
15
|
+
knowledge: "knowledge";
|
|
16
|
+
preference: "preference";
|
|
17
|
+
}>;
|
|
18
|
+
export type RememberLane = z.infer<typeof RememberLane>;
|
|
19
|
+
export declare const RememberScope: z.ZodEnum<{
|
|
20
|
+
workspace: "workspace";
|
|
21
|
+
}>;
|
|
22
|
+
export type RememberScope = z.infer<typeof RememberScope>;
|
|
23
|
+
/**
|
|
24
|
+
* Ceiling for the Knowledge lane, which is retrieval evidence rather than
|
|
25
|
+
* always-composed prompt text. The prompt-composed lanes are bounded far more
|
|
26
|
+
* tightly: see `AGENT_AUTHORED_INSTRUCTION_POLICY_CONTENT_MAX_CHARS` and
|
|
27
|
+
* `AGENT_AUTHORED_PREFERENCE_CONTENT_MAX_CHARS`.
|
|
28
|
+
*/
|
|
29
|
+
export declare const REMEMBER_CONTENT_MAX_CHARS = 4000;
|
|
30
|
+
export declare const RememberRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
operationId: z.ZodString;
|
|
32
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
33
|
+
workspace: "workspace";
|
|
34
|
+
}>>;
|
|
35
|
+
reason: z.ZodString;
|
|
36
|
+
lane: z.ZodLiteral<"preference">;
|
|
37
|
+
content: z.ZodString;
|
|
38
|
+
stableKey: z.ZodString;
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
description: z.ZodString;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
operationId: z.ZodString;
|
|
43
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
44
|
+
workspace: "workspace";
|
|
45
|
+
}>>;
|
|
46
|
+
reason: z.ZodString;
|
|
47
|
+
lane: z.ZodLiteral<"instruction_policy">;
|
|
48
|
+
content: z.ZodString;
|
|
49
|
+
target: z.ZodDefault<z.ZodObject<{
|
|
50
|
+
kind: z.ZodEnum<{
|
|
51
|
+
charter: "charter";
|
|
52
|
+
policy: "policy";
|
|
53
|
+
}>;
|
|
54
|
+
scope: z.ZodEnum<{
|
|
55
|
+
global: "global";
|
|
56
|
+
role: "role";
|
|
57
|
+
}>;
|
|
58
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
61
|
+
operationId: z.ZodString;
|
|
62
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
63
|
+
workspace: "workspace";
|
|
64
|
+
}>>;
|
|
65
|
+
content: z.ZodString;
|
|
66
|
+
reason: z.ZodString;
|
|
67
|
+
lane: z.ZodLiteral<"knowledge">;
|
|
68
|
+
subject: z.ZodString;
|
|
69
|
+
}, z.core.$strict>], "lane">;
|
|
70
|
+
export type RememberRequest = z.infer<typeof RememberRequest>;
|
|
71
|
+
/**
|
|
72
|
+
* Bound structured human-input question that authorizes a confirmed remember.
|
|
73
|
+
* The question id binds the exact confirmation target: the
|
|
74
|
+
* `knowledge_change_proposals` id for Ways-of-working lanes, or the
|
|
75
|
+
* `knowledge_claims` id for the Knowledge lane.
|
|
76
|
+
*/
|
|
77
|
+
export declare const REMEMBER_HUMAN_INPUT_SAVE_OPTION: "save";
|
|
78
|
+
export declare const REMEMBER_HUMAN_INPUT_SKIP_OPTION: "skip";
|
|
79
|
+
export declare function rememberHumanInputQuestionId(targetId: string): string;
|
|
80
|
+
export declare const RememberHumanInputPrompt: z.ZodObject<{
|
|
81
|
+
questions: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
kind: z.ZodEnum<{
|
|
84
|
+
multi_select: "multi_select";
|
|
85
|
+
single_select: "single_select";
|
|
86
|
+
text: "text";
|
|
87
|
+
}>;
|
|
88
|
+
prompt: z.ZodString;
|
|
89
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
label: z.ZodString;
|
|
94
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
96
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
97
|
+
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
98
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
|
+
minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
100
|
+
maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
101
|
+
}, z.core.$strip>>>;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
allowSkip: z.ZodLiteral<false>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type RememberHumanInputPrompt = z.infer<typeof RememberHumanInputPrompt>;
|
|
106
|
+
export declare const RememberActivationSummary: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
107
|
+
destination: z.ZodEnum<{
|
|
108
|
+
instruction_policy: "instruction_policy";
|
|
109
|
+
preference: "preference";
|
|
110
|
+
}>;
|
|
111
|
+
receiptId: z.ZodString;
|
|
112
|
+
destinationRevisionId: z.ZodNullable<z.ZodString>;
|
|
113
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
114
|
+
authorityKind: z.ZodEnum<{
|
|
115
|
+
automatic: "automatic";
|
|
116
|
+
human_confirmed: "human_confirmed";
|
|
117
|
+
}>;
|
|
118
|
+
undo: z.ZodLiteral<"learning_history">;
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
destination: z.ZodLiteral<"knowledge">;
|
|
121
|
+
receiptId: z.ZodString;
|
|
122
|
+
claimId: z.ZodString;
|
|
123
|
+
approvalReviewId: z.ZodString;
|
|
124
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
125
|
+
authorityKind: z.ZodLiteral<"human_confirmed">;
|
|
126
|
+
undo: z.ZodLiteral<"knowledge_review">;
|
|
127
|
+
}, z.core.$strip>], "destination">;
|
|
128
|
+
export type RememberActivationSummary = z.infer<typeof RememberActivationSummary>;
|
|
129
|
+
export declare const RememberReceipt: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
130
|
+
status: z.ZodLiteral<"blocked">;
|
|
131
|
+
operationId: z.ZodString;
|
|
132
|
+
lane: z.ZodEnum<{
|
|
133
|
+
instruction_policy: "instruction_policy";
|
|
134
|
+
knowledge: "knowledge";
|
|
135
|
+
preference: "preference";
|
|
136
|
+
}>;
|
|
137
|
+
scope: z.ZodEnum<{
|
|
138
|
+
workspace: "workspace";
|
|
139
|
+
}>;
|
|
140
|
+
reason: z.ZodLiteral<"learning_policy_off">;
|
|
141
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
142
|
+
status: z.ZodLiteral<"proposed_for_review">;
|
|
143
|
+
operationId: z.ZodString;
|
|
144
|
+
lane: z.ZodEnum<{
|
|
145
|
+
instruction_policy: "instruction_policy";
|
|
146
|
+
knowledge: "knowledge";
|
|
147
|
+
preference: "preference";
|
|
148
|
+
}>;
|
|
149
|
+
scope: z.ZodEnum<{
|
|
150
|
+
workspace: "workspace";
|
|
151
|
+
}>;
|
|
152
|
+
noteId: z.ZodString;
|
|
153
|
+
claimId: z.ZodString;
|
|
154
|
+
evidenceId: z.ZodString;
|
|
155
|
+
reviewId: z.ZodNullable<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
+
status: z.ZodLiteral<"activated">;
|
|
158
|
+
operationId: z.ZodString;
|
|
159
|
+
lane: z.ZodEnum<{
|
|
160
|
+
instruction_policy: "instruction_policy";
|
|
161
|
+
knowledge: "knowledge";
|
|
162
|
+
preference: "preference";
|
|
163
|
+
}>;
|
|
164
|
+
scope: z.ZodEnum<{
|
|
165
|
+
workspace: "workspace";
|
|
166
|
+
}>;
|
|
167
|
+
noteId: z.ZodString;
|
|
168
|
+
proposalId: z.ZodString;
|
|
169
|
+
learning: z.ZodNullable<z.ZodObject<{
|
|
170
|
+
receiptId: z.ZodString;
|
|
171
|
+
outcome: z.ZodEnum<{
|
|
172
|
+
automatic: "automatic";
|
|
173
|
+
confidence: "confidence";
|
|
174
|
+
conflict: "conflict";
|
|
175
|
+
off: "off";
|
|
176
|
+
revoked: "revoked";
|
|
177
|
+
stale: "stale";
|
|
178
|
+
suggest: "suggest";
|
|
179
|
+
}>;
|
|
180
|
+
automaticEligible: z.ZodBoolean;
|
|
181
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
182
|
+
confidence_below_floor: "confidence_below_floor";
|
|
183
|
+
evidence_conflict: "evidence_conflict";
|
|
184
|
+
evidence_revoked: "evidence_revoked";
|
|
185
|
+
policy_automatic: "policy_automatic";
|
|
186
|
+
policy_off: "policy_off";
|
|
187
|
+
policy_suggest: "policy_suggest";
|
|
188
|
+
proposal_stale: "proposal_stale";
|
|
189
|
+
}>>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
activation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
192
|
+
destination: z.ZodEnum<{
|
|
193
|
+
instruction_policy: "instruction_policy";
|
|
194
|
+
preference: "preference";
|
|
195
|
+
}>;
|
|
196
|
+
receiptId: z.ZodString;
|
|
197
|
+
destinationRevisionId: z.ZodNullable<z.ZodString>;
|
|
198
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
199
|
+
authorityKind: z.ZodEnum<{
|
|
200
|
+
automatic: "automatic";
|
|
201
|
+
human_confirmed: "human_confirmed";
|
|
202
|
+
}>;
|
|
203
|
+
undo: z.ZodLiteral<"learning_history">;
|
|
204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
205
|
+
destination: z.ZodLiteral<"knowledge">;
|
|
206
|
+
receiptId: z.ZodString;
|
|
207
|
+
claimId: z.ZodString;
|
|
208
|
+
approvalReviewId: z.ZodString;
|
|
209
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
210
|
+
authorityKind: z.ZodLiteral<"human_confirmed">;
|
|
211
|
+
undo: z.ZodLiteral<"knowledge_review">;
|
|
212
|
+
}, z.core.$strip>], "destination">;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
status: z.ZodLiteral<"confirmation_required">;
|
|
215
|
+
operationId: z.ZodString;
|
|
216
|
+
lane: z.ZodEnum<{
|
|
217
|
+
instruction_policy: "instruction_policy";
|
|
218
|
+
knowledge: "knowledge";
|
|
219
|
+
preference: "preference";
|
|
220
|
+
}>;
|
|
221
|
+
scope: z.ZodEnum<{
|
|
222
|
+
workspace: "workspace";
|
|
223
|
+
}>;
|
|
224
|
+
noteId: z.ZodString;
|
|
225
|
+
proposalId: z.ZodNullable<z.ZodString>;
|
|
226
|
+
claimId: z.ZodString;
|
|
227
|
+
learning: z.ZodNullable<z.ZodObject<{
|
|
228
|
+
receiptId: z.ZodString;
|
|
229
|
+
outcome: z.ZodEnum<{
|
|
230
|
+
automatic: "automatic";
|
|
231
|
+
confidence: "confidence";
|
|
232
|
+
conflict: "conflict";
|
|
233
|
+
off: "off";
|
|
234
|
+
revoked: "revoked";
|
|
235
|
+
stale: "stale";
|
|
236
|
+
suggest: "suggest";
|
|
237
|
+
}>;
|
|
238
|
+
automaticEligible: z.ZodBoolean;
|
|
239
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
240
|
+
confidence_below_floor: "confidence_below_floor";
|
|
241
|
+
evidence_conflict: "evidence_conflict";
|
|
242
|
+
evidence_revoked: "evidence_revoked";
|
|
243
|
+
policy_automatic: "policy_automatic";
|
|
244
|
+
policy_off: "policy_off";
|
|
245
|
+
policy_suggest: "policy_suggest";
|
|
246
|
+
proposal_stale: "proposal_stale";
|
|
247
|
+
}>>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
learningFailure: z.ZodNullable<z.ZodObject<{
|
|
250
|
+
stage: z.ZodEnum<{
|
|
251
|
+
activation: "activation";
|
|
252
|
+
evaluation: "evaluation";
|
|
253
|
+
}>;
|
|
254
|
+
code: z.ZodEnum<{
|
|
255
|
+
authority: "authority";
|
|
256
|
+
conflict: "conflict";
|
|
257
|
+
invalid_operation: "invalid_operation";
|
|
258
|
+
unavailable: "unavailable";
|
|
259
|
+
}>;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
humanInput: z.ZodObject<{
|
|
262
|
+
questions: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
kind: z.ZodEnum<{
|
|
265
|
+
multi_select: "multi_select";
|
|
266
|
+
single_select: "single_select";
|
|
267
|
+
text: "text";
|
|
268
|
+
}>;
|
|
269
|
+
prompt: z.ZodString;
|
|
270
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
+
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
273
|
+
id: z.ZodString;
|
|
274
|
+
label: z.ZodString;
|
|
275
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
}, z.core.$strip>>>;
|
|
277
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
278
|
+
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
279
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
280
|
+
minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
281
|
+
maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
282
|
+
}, z.core.$strip>>>;
|
|
283
|
+
}, z.core.$strip>>>;
|
|
284
|
+
allowSkip: z.ZodLiteral<false>;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
confirmWith: z.ZodLiteral<"remember_confirm">;
|
|
287
|
+
}, z.core.$strip>], "status">;
|
|
288
|
+
export type RememberReceipt = z.infer<typeof RememberReceipt>;
|
|
289
|
+
export declare const RememberConfirmRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
290
|
+
target: z.ZodLiteral<"proposal">;
|
|
291
|
+
operationId: z.ZodString;
|
|
292
|
+
proposalId: z.ZodString;
|
|
293
|
+
decisionReceiptId: z.ZodString;
|
|
294
|
+
humanInputRequestId: z.ZodString;
|
|
295
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
296
|
+
target: z.ZodLiteral<"knowledge_claim">;
|
|
297
|
+
operationId: z.ZodString;
|
|
298
|
+
claimId: z.ZodString;
|
|
299
|
+
humanInputRequestId: z.ZodString;
|
|
300
|
+
}, z.core.$strict>], "target">;
|
|
301
|
+
export type RememberConfirmRequest = z.infer<typeof RememberConfirmRequest>;
|
|
302
|
+
export declare const RememberConfirmReceipt: z.ZodObject<{
|
|
303
|
+
status: z.ZodLiteral<"activated">;
|
|
304
|
+
operationId: z.ZodString;
|
|
305
|
+
proposalId: z.ZodNullable<z.ZodString>;
|
|
306
|
+
claimId: z.ZodString;
|
|
307
|
+
decisionReceiptId: z.ZodNullable<z.ZodString>;
|
|
308
|
+
activation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
309
|
+
destination: z.ZodEnum<{
|
|
310
|
+
instruction_policy: "instruction_policy";
|
|
311
|
+
preference: "preference";
|
|
312
|
+
}>;
|
|
313
|
+
receiptId: z.ZodString;
|
|
314
|
+
destinationRevisionId: z.ZodNullable<z.ZodString>;
|
|
315
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
316
|
+
authorityKind: z.ZodEnum<{
|
|
317
|
+
automatic: "automatic";
|
|
318
|
+
human_confirmed: "human_confirmed";
|
|
319
|
+
}>;
|
|
320
|
+
undo: z.ZodLiteral<"learning_history">;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
destination: z.ZodLiteral<"knowledge">;
|
|
323
|
+
receiptId: z.ZodString;
|
|
324
|
+
claimId: z.ZodString;
|
|
325
|
+
approvalReviewId: z.ZodString;
|
|
326
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
327
|
+
authorityKind: z.ZodLiteral<"human_confirmed">;
|
|
328
|
+
undo: z.ZodLiteral<"knowledge_review">;
|
|
329
|
+
}, z.core.$strip>], "destination">;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
export type RememberConfirmReceipt = z.infer<typeof RememberConfirmReceipt>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Channel-A currently returns one bounded binary-safe read. Keep publication
|
|
4
|
+
* below that ceiling so an extra sentinel byte can distinguish an exact file
|
|
5
|
+
* from a truncated prefix.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SANDBOX_FILE_ARTIFACT_MAX_BYTES: number;
|
|
8
|
+
export declare const PublishSandboxFileArtifactRequest: z.ZodObject<{
|
|
9
|
+
path: z.ZodString;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export type PublishSandboxFileArtifactRequest = z.infer<typeof PublishSandboxFileArtifactRequest>;
|
|
12
|
+
/**
|
|
13
|
+
* Closed model/UI receipt for one exact sandbox-file publication. Storage
|
|
14
|
+
* locators and signed URLs never cross this boundary.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SandboxFileArtifactReceipt: z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"sandbox_file">;
|
|
18
|
+
sandboxPath: z.ZodString;
|
|
19
|
+
filename: z.ZodString;
|
|
20
|
+
artifact: z.ZodObject<{
|
|
21
|
+
available: z.ZodLiteral<true>;
|
|
22
|
+
artifactId: z.ZodString;
|
|
23
|
+
kind: z.ZodEnum<{
|
|
24
|
+
assistant_completion: "assistant_completion";
|
|
25
|
+
computer_screenshot: "computer_screenshot";
|
|
26
|
+
event_media: "event_media";
|
|
27
|
+
file: "file";
|
|
28
|
+
generated_image: "generated_image";
|
|
29
|
+
generated_video: "generated_video";
|
|
30
|
+
internal_update: "internal_update";
|
|
31
|
+
tool_result: "tool_result";
|
|
32
|
+
}>;
|
|
33
|
+
contentType: z.ZodString;
|
|
34
|
+
originalBytes: z.ZodNumber;
|
|
35
|
+
sha256: z.ZodString;
|
|
36
|
+
retainedAt: z.ZodString;
|
|
37
|
+
dimensions: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
width: z.ZodNumber;
|
|
39
|
+
height: z.ZodNumber;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
retention: z.ZodUnion<readonly [z.ZodObject<{
|
|
42
|
+
policy: z.ZodLiteral<"workspace_file">;
|
|
43
|
+
expiresAt: z.ZodNull;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
policy: z.ZodLiteral<"session_screenshot">;
|
|
46
|
+
expiresAt: z.ZodString;
|
|
47
|
+
}, z.core.$strict>]>;
|
|
48
|
+
retrieval: z.ZodObject<{
|
|
49
|
+
method: z.ZodLiteral<"GET">;
|
|
50
|
+
path: z.ZodString;
|
|
51
|
+
acceptRanges: z.ZodLiteral<"bytes">;
|
|
52
|
+
maxRangeBytes: z.ZodNumber;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export type SandboxFileArtifactReceipt = z.infer<typeof SandboxFileArtifactReceipt>;
|
|
@@ -40,6 +40,27 @@ export type NativeSnapshotDescriptor = {
|
|
|
40
40
|
workspacePersistence?: string;
|
|
41
41
|
};
|
|
42
42
|
export type WorkspaceArchiveDescriptor = TarWorkspaceArchiveDescriptor | NativeSnapshotDescriptor;
|
|
43
|
+
export declare const WORKSPACE_ARCHIVE_OBJECT_REF_SCHEMA: "sandbox_archive_object_v1";
|
|
44
|
+
/** Compact object-storage locator for portable tar bytes. The SHA-256/size in
|
|
45
|
+
* `workspaceArchiveMeta` remain the verification authority. */
|
|
46
|
+
export type WorkspaceArchiveObjectRef = {
|
|
47
|
+
schema: typeof WORKSPACE_ARCHIVE_OBJECT_REF_SCHEMA;
|
|
48
|
+
key: string;
|
|
49
|
+
sha256: string;
|
|
50
|
+
bytes: number;
|
|
51
|
+
backend: string;
|
|
52
|
+
};
|
|
53
|
+
export declare function parseWorkspaceArchiveObjectRef(value: unknown): WorkspaceArchiveObjectRef | null;
|
|
54
|
+
export declare function workspaceArchiveObjectKey(input: {
|
|
55
|
+
accountId: string;
|
|
56
|
+
workspaceId: string;
|
|
57
|
+
sandboxGroupId: string;
|
|
58
|
+
revision: string;
|
|
59
|
+
}): string;
|
|
60
|
+
export declare function workspaceArchivePayloadPresent(sessionState: Record<string, unknown> | null | undefined): boolean;
|
|
61
|
+
/** Restore may inline object bytes in memory for hydrate. That copy must never
|
|
62
|
+
* be published onto a lease when a durable object-storage ref exists. */
|
|
63
|
+
export declare function omitInlineWorkspaceArchiveWhenObjectRefPresent(sessionState: Record<string, unknown>): Record<string, unknown>;
|
|
43
64
|
export declare const NATIVE_SNAPSHOT_PREFIXES: ReadonlyArray<{
|
|
44
65
|
provider: NativeSnapshotProvider;
|
|
45
66
|
prefix: string;
|
|
@@ -1,31 +1,50 @@
|
|
|
1
1
|
export declare const OPENGENI_SLACK_BOT_REQUIRED_SCOPES: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read"];
|
|
2
2
|
/** Read-only scope needed only for the optional emoji-reaction summon surface. */
|
|
3
3
|
export declare const OPENGENI_SLACK_REACTION_REQUIRED_SCOPE: "reactions:read";
|
|
4
|
+
/**
|
|
5
|
+
* Bot-token search scopes for Slack's Real-time Search API
|
|
6
|
+
* (`assistant.search.context`). Slack accepts these as BOT scopes, so
|
|
7
|
+
* workspace-wide public search runs under the bot identity and never needs a
|
|
8
|
+
* human proxy token. Private-channel, DM, and MPIM search remain user-token
|
|
9
|
+
* only and belong exclusively to the personal hosted-MCP grant.
|
|
10
|
+
*/
|
|
11
|
+
export declare const OPENGENI_SLACK_BOT_SEARCH_SCOPES: readonly ["search:read.public", "search:read.files", "search:read.users"];
|
|
4
12
|
/**
|
|
5
13
|
* Scopes requested by the managed and generated self-hosted manifests.
|
|
6
14
|
*
|
|
7
|
-
* `reactions:read`
|
|
8
|
-
* legacy installations may continue using existing
|
|
9
|
-
* tools while the reaction setting stays disabled
|
|
10
|
-
* reinstall.
|
|
15
|
+
* `reactions:read` and the bot search scopes are deliberately not part of the
|
|
16
|
+
* base eligibility contract: legacy installations may continue using existing
|
|
17
|
+
* Slack interactions and tools while the reaction setting stays disabled, bot
|
|
18
|
+
* search stays unavailable, and the UI asks an admin to reinstall.
|
|
11
19
|
*/
|
|
12
|
-
export declare const OPENGENI_SLACK_BOT_REQUESTED_SCOPES: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read"];
|
|
13
|
-
export declare const OPENGENI_SLACK_BOT_EVENTS: readonly ["app_mention", "message.channels", "message.groups", "message.im", "message.mpim", "reaction_added"];
|
|
20
|
+
export declare const OPENGENI_SLACK_BOT_REQUESTED_SCOPES: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read", "search:read.public", "search:read.files", "search:read.users"];
|
|
21
|
+
export declare const OPENGENI_SLACK_BOT_EVENTS: readonly ["app_home_opened", "app_mention", "message.channels", "message.groups", "message.im", "message.mpim", "reaction_added"];
|
|
14
22
|
/** Full user-token scope set for every tool currently exposed by Slack's hosted MCP server. */
|
|
15
23
|
export declare const OPENGENI_SLACK_MCP_USER_SCOPES: readonly ["search:read.public", "search:read.private", "search:read.mpim", "search:read.im", "search:read.files", "files:read", "emoji:read", "search:read.users", "chat:write", "channels:history", "groups:history", "mpim:history", "im:history", "channels:write", "groups:write", "im:write", "mpim:write", "reactions:write", "canvases:read", "canvases:write", "users:read", "users:read.email", "channels:read", "groups:read", "mpim:read"];
|
|
16
24
|
export declare const OPENGENI_MANAGED_PUBLIC_BASE_URL: "https://app.opengeni.ai";
|
|
25
|
+
export type OpenGeniSlackBotManifestOptions = Readonly<{
|
|
26
|
+
appName?: string;
|
|
27
|
+
botDisplayName?: string;
|
|
28
|
+
slashCommand?: string;
|
|
29
|
+
shortcutName?: string;
|
|
30
|
+
}>;
|
|
17
31
|
/** Canonical managed/self-hosted Slack app manifest. Slack accepts JSON manifests. */
|
|
18
|
-
export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string): {
|
|
32
|
+
export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string, options?: OpenGeniSlackBotManifestOptions): {
|
|
19
33
|
readonly display_information: {
|
|
20
|
-
readonly name:
|
|
34
|
+
readonly name: string;
|
|
21
35
|
};
|
|
22
36
|
readonly features: {
|
|
37
|
+
readonly app_home: {
|
|
38
|
+
readonly home_tab_enabled: true;
|
|
39
|
+
readonly messages_tab_enabled: true;
|
|
40
|
+
readonly messages_tab_read_only_enabled: false;
|
|
41
|
+
};
|
|
23
42
|
readonly bot_user: {
|
|
24
|
-
readonly display_name:
|
|
43
|
+
readonly display_name: string;
|
|
25
44
|
readonly always_online: false;
|
|
26
45
|
};
|
|
27
46
|
readonly slash_commands: readonly [{
|
|
28
|
-
readonly command:
|
|
47
|
+
readonly command: string;
|
|
29
48
|
readonly description: "Start an OpenGeni task in this channel";
|
|
30
49
|
readonly should_escape: false;
|
|
31
50
|
readonly url: `${string}/v1/integrations/slack/commands`;
|
|
@@ -33,20 +52,20 @@ export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string): {
|
|
|
33
52
|
readonly shortcuts: readonly [{
|
|
34
53
|
readonly callback_id: "opengeni_message";
|
|
35
54
|
readonly description: "Start an OpenGeni task from this Slack message";
|
|
36
|
-
readonly name:
|
|
55
|
+
readonly name: string;
|
|
37
56
|
readonly type: "message";
|
|
38
57
|
}];
|
|
39
58
|
};
|
|
40
59
|
readonly oauth_config: {
|
|
41
60
|
readonly redirect_urls: readonly [`${string}/v1/integrations/oauth/callback`, `${string}/v1/integrations/slack/callback`];
|
|
42
61
|
readonly scopes: {
|
|
43
|
-
readonly bot: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read"];
|
|
62
|
+
readonly bot: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read", "search:read.public", "search:read.files", "search:read.users"];
|
|
44
63
|
readonly user: readonly ["search:read.public", "search:read.private", "search:read.mpim", "search:read.im", "search:read.files", "files:read", "emoji:read", "search:read.users", "chat:write", "channels:history", "groups:history", "mpim:history", "im:history", "channels:write", "groups:write", "im:write", "mpim:write", "reactions:write", "canvases:read", "canvases:write", "users:read", "users:read.email", "channels:read", "groups:read", "mpim:read"];
|
|
45
64
|
};
|
|
46
65
|
};
|
|
47
66
|
readonly settings: {
|
|
48
67
|
readonly event_subscriptions: {
|
|
49
|
-
readonly bot_events: readonly ["app_mention", "message.channels", "message.groups", "message.im", "message.mpim", "reaction_added"];
|
|
68
|
+
readonly bot_events: readonly ["app_home_opened", "app_mention", "message.channels", "message.groups", "message.im", "message.mpim", "reaction_added"];
|
|
50
69
|
readonly request_url: `${string}/v1/integrations/slack/events`;
|
|
51
70
|
};
|
|
52
71
|
readonly interactivity: {
|
|
@@ -64,7 +83,8 @@ export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string): {
|
|
|
64
83
|
* boundary. Every other unrequired scope fails closed, including unknown future
|
|
65
84
|
* Slack scopes, so verification, core routing, and UI eligibility cannot drift.
|
|
66
85
|
*/
|
|
67
|
-
export declare const OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES: readonly ["team:read", "reactions:read"];
|
|
86
|
+
export declare const OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES: readonly ["team:read", "reactions:read", "search:read.public", "search:read.files", "search:read.users"];
|
|
87
|
+
export declare function hasOpenGeniSlackBotSearchScopes(grantedScopes: readonly string[]): boolean;
|
|
68
88
|
/** @deprecated Use evaluateOpenGeniSlackBotScopes; an allowlist is the policy. */
|
|
69
89
|
export declare const OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES: readonly ["channels:join", "chat:write.public"];
|
|
70
90
|
export type OpenGeniSlackBotScopePolicy = {
|
package/dist/slack-bot-scopes.js
CHANGED
|
@@ -5,13 +5,15 @@ import {
|
|
|
5
5
|
OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
|
|
6
6
|
OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
|
|
7
7
|
OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
|
|
8
|
+
OPENGENI_SLACK_BOT_SEARCH_SCOPES,
|
|
8
9
|
OPENGENI_SLACK_MCP_USER_SCOPES,
|
|
9
10
|
OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
|
|
10
11
|
areOpenGeniSlackBotScopesAccepted,
|
|
11
12
|
buildOpenGeniSlackBotManifest,
|
|
12
13
|
evaluateOpenGeniSlackBotScopes,
|
|
14
|
+
hasOpenGeniSlackBotSearchScopes,
|
|
13
15
|
hasOpenGeniSlackReactionScope
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MRWYRAS5.js";
|
|
15
17
|
export {
|
|
16
18
|
OPENGENI_MANAGED_PUBLIC_BASE_URL,
|
|
17
19
|
OPENGENI_SLACK_BOT_EVENTS,
|
|
@@ -19,11 +21,13 @@ export {
|
|
|
19
21
|
OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
|
|
20
22
|
OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
|
|
21
23
|
OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
|
|
24
|
+
OPENGENI_SLACK_BOT_SEARCH_SCOPES,
|
|
22
25
|
OPENGENI_SLACK_MCP_USER_SCOPES,
|
|
23
26
|
OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
|
|
24
27
|
areOpenGeniSlackBotScopesAccepted,
|
|
25
28
|
buildOpenGeniSlackBotManifest,
|
|
26
29
|
evaluateOpenGeniSlackBotScopes,
|
|
30
|
+
hasOpenGeniSlackBotSearchScopes,
|
|
27
31
|
hasOpenGeniSlackReactionScope
|
|
28
32
|
};
|
|
29
33
|
//# sourceMappingURL=slack-bot-scopes.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { SPREADSHEET_ARTIFACT_COMMAND_VERSION } from "./editable-artifact-versions.js";
|
|
1
2
|
/**
|
|
2
3
|
* Canonical, identity-free spreadsheet mutation commands nested inside
|
|
3
4
|
* `OGATX001`. Artifact, actor, transaction, delivery, and causal identity must
|
|
4
5
|
* never be added here: the outer authored-intent envelope is their sole wire
|
|
5
6
|
* authority.
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
+
export { SPREADSHEET_ARTIFACT_COMMAND_VERSION } from "./editable-artifact-versions.js";
|
|
8
9
|
export declare const SPREADSHEET_ARTIFACT_COMMAND_MAX_BYTES: number;
|
|
9
10
|
export declare const SPREADSHEET_ARTIFACT_COMMAND_MAX_COMMANDS = 4096;
|
|
10
11
|
export declare const SPREADSHEET_ARTIFACT_COMMAND_MAX_CELLS = 1000000;
|
|
@@ -53,7 +54,6 @@ export type SpreadsheetDateValue = Readonly<{
|
|
|
53
54
|
export type SpreadsheetCellScalar = null | boolean | number | string | SpreadsheetDateValue | SpreadsheetFormulaError;
|
|
54
55
|
export type SpreadsheetFormulaCell = Readonly<{
|
|
55
56
|
formula: string;
|
|
56
|
-
cached: SpreadsheetCellScalar;
|
|
57
57
|
}>;
|
|
58
58
|
export type SpreadsheetCellInput = SpreadsheetCellScalar | SpreadsheetFormulaCell;
|
|
59
59
|
export type SpreadsheetCreateSheetCommand = Readonly<{
|
|
@@ -98,4 +98,3 @@ export declare function encodeSpreadsheetArtifactCommandBatch(input: Spreadsheet
|
|
|
98
98
|
export declare function decodeSpreadsheetArtifactCommandBatch(bytes: Uint8Array): SpreadsheetArtifactCommandBatch;
|
|
99
99
|
/** Decodes, re-encodes, and proves byte-for-byte canonicality. */
|
|
100
100
|
export declare function assertCanonicalSpreadsheetArtifactCommandBytes(bytes: Uint8Array): Uint8Array;
|
|
101
|
-
export {};
|
|
@@ -3,14 +3,16 @@ import {
|
|
|
3
3
|
SPREADSHEET_ARTIFACT_COMMAND_MAX_CELLS,
|
|
4
4
|
SPREADSHEET_ARTIFACT_COMMAND_MAX_COMMANDS,
|
|
5
5
|
SPREADSHEET_ARTIFACT_COMMAND_MAX_STRING_BYTES,
|
|
6
|
-
SPREADSHEET_ARTIFACT_COMMAND_VERSION,
|
|
7
6
|
SPREADSHEET_ARTIFACT_SHEET_NAME_MAX_UTF16_UNITS,
|
|
8
7
|
assertCanonicalSpreadsheetArtifactCommandBytes,
|
|
9
8
|
decodeSpreadsheetArtifactCommandBatch,
|
|
10
9
|
editableArtifactStableId,
|
|
11
10
|
encodeSpreadsheetArtifactCommandBatch,
|
|
12
11
|
spreadsheetSheetId
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TXTQIYCV.js";
|
|
13
|
+
import {
|
|
14
|
+
SPREADSHEET_ARTIFACT_COMMAND_VERSION
|
|
15
|
+
} from "./chunk-PX3VCKAU.js";
|
|
14
16
|
export {
|
|
15
17
|
SPREADSHEET_ARTIFACT_COMMAND_MAX_BYTES,
|
|
16
18
|
SPREADSHEET_ARTIFACT_COMMAND_MAX_CELLS,
|
|
@@ -20,8 +20,9 @@ import {
|
|
|
20
20
|
encodeSpreadsheetMetadataKernelQuery,
|
|
21
21
|
encodeSpreadsheetViewportKernelProjection,
|
|
22
22
|
encodeSpreadsheetViewportKernelQuery
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-Y3KNXVTD.js";
|
|
24
|
+
import "./chunk-TXTQIYCV.js";
|
|
25
|
+
import "./chunk-PX3VCKAU.js";
|
|
25
26
|
export {
|
|
26
27
|
SPREADSHEET_ARTIFACT_METADATA_MAX_SHEETS,
|
|
27
28
|
SPREADSHEET_ARTIFACT_METADATA_MIN_RESPONSE_BYTES,
|
package/dist/task-notes.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const TASK_NOTE_TEXT_MAX_BYTES = 4096;
|
|
3
3
|
export declare const TASK_NOTE_REASON_MAX_BYTES = 2048;
|
|
4
|
-
export declare const TASK_NOTE_MAX_LIFETIME_DAYS =
|
|
4
|
+
export declare const TASK_NOTE_MAX_LIFETIME_DAYS = 90;
|
|
5
5
|
export declare const TASK_NOTE_ACTIVE_RECORD_CAP = 500;
|
|
6
6
|
export declare const TASK_NOTE_LIST_DEFAULT_LIMIT = 10;
|
|
7
7
|
export declare const TASK_NOTE_LIST_MAX_LIMIT = 20;
|
|
@@ -93,6 +93,47 @@ export declare const TaskNoteMutationResult: z.ZodObject<{
|
|
|
93
93
|
replayed: z.ZodBoolean;
|
|
94
94
|
}, z.core.$strip>;
|
|
95
95
|
export type TaskNoteMutationResult = z.infer<typeof TaskNoteMutationResult>;
|
|
96
|
+
/** Atomic correction lineage: archive one exact v1 note and create one v1 replacement. */
|
|
97
|
+
export declare const TaskNoteReplacementResult: z.ZodObject<{
|
|
98
|
+
operationId: z.ZodString;
|
|
99
|
+
inputHash: z.ZodString;
|
|
100
|
+
replaces: z.ZodObject<{
|
|
101
|
+
noteId: z.ZodString;
|
|
102
|
+
archivedVersion: z.ZodLiteral<2>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
replacement: z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
rootSessionId: z.ZodString;
|
|
107
|
+
kind: z.ZodEnum<{
|
|
108
|
+
artifact: "artifact";
|
|
109
|
+
blocker: "blocker";
|
|
110
|
+
decision: "decision";
|
|
111
|
+
finding: "finding";
|
|
112
|
+
handoff: "handoff";
|
|
113
|
+
ownership: "ownership";
|
|
114
|
+
}>;
|
|
115
|
+
text: z.ZodString;
|
|
116
|
+
status: z.ZodEnum<{
|
|
117
|
+
active: "active";
|
|
118
|
+
archived: "archived";
|
|
119
|
+
}>;
|
|
120
|
+
version: z.ZodNumber;
|
|
121
|
+
expiresAt: z.ZodString;
|
|
122
|
+
createdAt: z.ZodString;
|
|
123
|
+
updatedAt: z.ZodString;
|
|
124
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
125
|
+
provenance: z.ZodObject<{
|
|
126
|
+
actorKind: z.ZodEnum<{
|
|
127
|
+
human: "human";
|
|
128
|
+
service: "service";
|
|
129
|
+
}>;
|
|
130
|
+
sourceSessionId: z.ZodString;
|
|
131
|
+
sourceTurnId: z.ZodString;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
replayed: z.ZodBoolean;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type TaskNoteReplacementResult = z.infer<typeof TaskNoteReplacementResult>;
|
|
96
137
|
export declare const TaskNoteListResponse: z.ZodObject<{
|
|
97
138
|
notes: z.ZodArray<z.ZodObject<{
|
|
98
139
|
id: z.ZodString;
|