@40rty/ams-sdk 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +583 -458
- package/dist/types/sdk/src/analytics/index.d.ts +1 -1
- package/dist/types/sdk/src/analytics/outbox.d.ts +2 -0
- package/dist/types/sdk/src/analytics/scope-context.d.ts +2 -0
- package/dist/types/sdk/src/analytics/scope.d.ts +7 -0
- package/dist/types/sdk/src/host/host-modules.d.ts +234 -36
- package/dist/types/spacestation/src/analytics/envelope.d.ts +24 -0
- package/dist/types/spacestation/src/catalog/element-filled.d.ts +2 -2
- package/dist/types/spacestation/src/catalog/wire/package-release.d.ts +10 -0
- package/dist/types/spacestation/src/index.d.ts +2 -0
- package/dist/types/spacestation/src/space/agent-directive.d.ts +239 -0
- package/dist/types/spacestation/src/space/session-queue.d.ts +24 -24
- package/dist/types/spacestation/src/space/trace.d.ts +12 -12
- package/dist/types/spacestation/src/trace/trace-diagnostics.d.ts +8 -0
- package/package.json +1 -1
|
@@ -114,18 +114,29 @@ export declare const AnalyticsWireEventSchema: z.ZodObject<{
|
|
|
114
114
|
sessionId: z.ZodString;
|
|
115
115
|
kind: z.ZodString;
|
|
116
116
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
117
|
+
/**
|
|
118
|
+
* The agent turn whose canvas the event came from — stamped by the scope
|
|
119
|
+
* from the element the emit ran inside, never by the emit site; `null` when
|
|
120
|
+
* it ran outside any turn (the cart drawer, a root bridge). OPTIONAL because
|
|
121
|
+
* a bundle older than this field omits it, and the envelope's strip posture
|
|
122
|
+
* (header) is what keeps that bundle's batch alive. Lands in the typed
|
|
123
|
+
* `client_events.turn_id` column — the join to `agent_runs.turn_id`.
|
|
124
|
+
*/
|
|
125
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
126
|
}, "strip", z.ZodTypeAny, {
|
|
118
127
|
kind: string;
|
|
119
128
|
payload: Record<string, unknown>;
|
|
120
129
|
eventId: string;
|
|
121
130
|
occurredAt: number;
|
|
122
131
|
sessionId: string;
|
|
132
|
+
turnId?: string | null | undefined;
|
|
123
133
|
}, {
|
|
124
134
|
kind: string;
|
|
125
135
|
payload: Record<string, unknown>;
|
|
126
136
|
eventId: string;
|
|
127
137
|
occurredAt: number;
|
|
128
138
|
sessionId: string;
|
|
139
|
+
turnId?: string | null | undefined;
|
|
129
140
|
}>;
|
|
130
141
|
export type AnalyticsWireEvent = z.infer<typeof AnalyticsWireEventSchema>;
|
|
131
142
|
/**
|
|
@@ -179,18 +190,29 @@ export declare const AnalyticsBatchSchema: z.ZodObject<{
|
|
|
179
190
|
sessionId: z.ZodString;
|
|
180
191
|
kind: z.ZodString;
|
|
181
192
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
193
|
+
/**
|
|
194
|
+
* The agent turn whose canvas the event came from — stamped by the scope
|
|
195
|
+
* from the element the emit ran inside, never by the emit site; `null` when
|
|
196
|
+
* it ran outside any turn (the cart drawer, a root bridge). OPTIONAL because
|
|
197
|
+
* a bundle older than this field omits it, and the envelope's strip posture
|
|
198
|
+
* (header) is what keeps that bundle's batch alive. Lands in the typed
|
|
199
|
+
* `client_events.turn_id` column — the join to `agent_runs.turn_id`.
|
|
200
|
+
*/
|
|
201
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
202
|
}, "strip", z.ZodTypeAny, {
|
|
183
203
|
kind: string;
|
|
184
204
|
payload: Record<string, unknown>;
|
|
185
205
|
eventId: string;
|
|
186
206
|
occurredAt: number;
|
|
187
207
|
sessionId: string;
|
|
208
|
+
turnId?: string | null | undefined;
|
|
188
209
|
}, {
|
|
189
210
|
kind: string;
|
|
190
211
|
payload: Record<string, unknown>;
|
|
191
212
|
eventId: string;
|
|
192
213
|
occurredAt: number;
|
|
193
214
|
sessionId: string;
|
|
215
|
+
turnId?: string | null | undefined;
|
|
194
216
|
}>, "many">;
|
|
195
217
|
}, "strip", z.ZodTypeAny, {
|
|
196
218
|
scopeId: string;
|
|
@@ -204,6 +226,7 @@ export declare const AnalyticsBatchSchema: z.ZodObject<{
|
|
|
204
226
|
eventId: string;
|
|
205
227
|
occurredAt: number;
|
|
206
228
|
sessionId: string;
|
|
229
|
+
turnId?: string | null | undefined;
|
|
207
230
|
}[];
|
|
208
231
|
}, {
|
|
209
232
|
scopeId: string;
|
|
@@ -217,6 +240,7 @@ export declare const AnalyticsBatchSchema: z.ZodObject<{
|
|
|
217
240
|
eventId: string;
|
|
218
241
|
occurredAt: number;
|
|
219
242
|
sessionId: string;
|
|
243
|
+
turnId?: string | null | undefined;
|
|
220
244
|
}[];
|
|
221
245
|
}>;
|
|
222
246
|
export type AnalyticsBatch = z.infer<typeof AnalyticsBatchSchema>;
|
|
@@ -35,8 +35,8 @@ export interface ElementFilledOptions {
|
|
|
35
35
|
* NEVER from a component-name or prop-name hardcode (IV.1: the catalog is the
|
|
36
36
|
* single source of truth):
|
|
37
37
|
*
|
|
38
|
-
* - a `resolved()` entity-ref path is absent / holds no refs (a
|
|
39
|
-
* with no products), or
|
|
38
|
+
* - a REQUIRED `resolved()` entity-ref path is absent / holds no refs (a
|
|
39
|
+
* productGrid with no products) — an optional one never blanks it, or
|
|
40
40
|
* - a required (non-optional) non-entity prop is absent / empty (an
|
|
41
41
|
* editorialText with no `paragraphs`, a `pullQuote` with no `quote`).
|
|
42
42
|
*
|
|
@@ -321,6 +321,14 @@ export declare const PackageReleaseSchema: z.ZodObject<{
|
|
|
321
321
|
order: number;
|
|
322
322
|
content: string;
|
|
323
323
|
}>, "many">>;
|
|
324
|
+
/**
|
|
325
|
+
* The brand's SPACE prompt — its `prompts/space.md`, verbatim: sections split
|
|
326
|
+
* by `<!-- section:<id> -->` markers, the same format as the platform's
|
|
327
|
+
* `prompts/spaces/<slug>.md`, which it replaces for any space bound to this
|
|
328
|
+
* package. How the brand speaks, what it sells and what it never claims ship
|
|
329
|
+
* with the brand, and a release changes them with no platform deploy.
|
|
330
|
+
*/
|
|
331
|
+
spacePrompt: z.ZodOptional<z.ZodString>;
|
|
324
332
|
/**
|
|
325
333
|
* Opaque per-vertical extension data (`BrandDefinition.config`): the
|
|
326
334
|
* platform stays vertical-agnostic and the vertical's own code reads its keys.
|
|
@@ -417,6 +425,7 @@ export declare const PackageReleaseSchema: z.ZodObject<{
|
|
|
417
425
|
order: number;
|
|
418
426
|
content: string;
|
|
419
427
|
}[] | undefined;
|
|
428
|
+
spacePrompt?: string | undefined;
|
|
420
429
|
draft?: {
|
|
421
430
|
of: string;
|
|
422
431
|
space: string;
|
|
@@ -498,6 +507,7 @@ export declare const PackageReleaseSchema: z.ZodObject<{
|
|
|
498
507
|
order: number;
|
|
499
508
|
content: string;
|
|
500
509
|
}[] | undefined;
|
|
510
|
+
spacePrompt?: string | undefined;
|
|
501
511
|
draft?: {
|
|
502
512
|
of: string;
|
|
503
513
|
space: string;
|
|
@@ -48,6 +48,8 @@ export { resolveScope, normalizeAttributeField, scopedAttributeKey, scopeOfAttri
|
|
|
48
48
|
export type { Space, SpaceName, CreateSpaceInput, UpdateSpaceInput, SpaceConnector, UpsertSpaceConnectorInput } from './space/space';
|
|
49
49
|
export type { HostedApp, SpaceConfig, SpaceWithConfig, VisitorAccess } from './space/space-config';
|
|
50
50
|
export type { ConnectorDescriptor, ConnectorFieldDescriptor } from './space/connector';
|
|
51
|
+
export { AgentDirectiveSchema, SpaceAgentDirectiveSchema, SpaceAgentDirectiveListItemSchema, UpdateAgentDirectiveInputSchema, ReorderAgentDirectivesInputSchema, AGENT_DIRECTIVE_KINDS, AGENT_DIRECTIVE_SEVERITIES, AGENT_DIRECTIVE_SOURCES, AGENT_DIRECTIVE_STATUSES, MAX_ACTIVE_AGENT_DIRECTIVES, } from './space/agent-directive';
|
|
52
|
+
export type { AgentDirective, SpaceAgentDirective, SpaceAgentDirectiveListItem, UpdateAgentDirectiveInput, } from './space/agent-directive';
|
|
51
53
|
export { DEFAULT_SPACE_CONFIG, DEFAULT_VISITOR_ACCESS, VISITOR_ACCESS, visitorAccessOf, } from './space/space-config';
|
|
52
54
|
export type { ThemePackageOption, BrandDefinition, BrandPromptSection } from './space/workspace-catalog';
|
|
53
55
|
export { COMPONENT_SOURCE, THEME_PACKAGE, THEME_CLASS, COMPONENT_SOURCE_DEFAULT_THEME, WORKSPACE_THEME_PACKAGES, } from './space/workspace-catalog';
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Space agent directives — the wire contract of the store that holds everything
|
|
3
|
+
* a space's agent has been TAUGHT (`space_agent_directives`).
|
|
4
|
+
*
|
|
5
|
+
* ONE definition, shared by the api routes that write the store, the console
|
|
6
|
+
* that edits it and the agent that renders it — so the three cannot disagree
|
|
7
|
+
* about what a directive is. The agent's render side is
|
|
8
|
+
* `@fourty/agent`'s `agent-directives.ts`.
|
|
9
|
+
*
|
|
10
|
+
* A directive is the same thing to the agent whoever taught it: the space
|
|
11
|
+
* owner, an operator, or a lesson mined from what worked with the space's
|
|
12
|
+
* visitors. `source` and the lifecycle fields are for the people reviewing the
|
|
13
|
+
* list; only `AgentDirective` reaches the prompt.
|
|
14
|
+
*/
|
|
15
|
+
import { z } from 'zod';
|
|
16
|
+
/** At most this many ACTIVE directives per space — a product decision fixed for
|
|
17
|
+
* v1. Prose is where a cap rots silently: nothing throws when a thirteenth rule
|
|
18
|
+
* is pasted in, the prompt just gets longer. */
|
|
19
|
+
export declare const MAX_ACTIVE_AGENT_DIRECTIVES = 12;
|
|
20
|
+
/** What KIND of directive — how an evidence report tells a preference from a
|
|
21
|
+
* promise. */
|
|
22
|
+
export declare const AGENT_DIRECTIVE_KINDS: readonly ["preference", "pairing", "order of things", "promise", "threshold"];
|
|
23
|
+
/** What a miss costs. Read in the prompt as "a miss is <severity>". */
|
|
24
|
+
export declare const AGENT_DIRECTIVE_SEVERITIES: readonly ["a missed opportunity", "a problem", "unacceptable"];
|
|
25
|
+
/** Who taught the agent this. Never rendered into the prompt. */
|
|
26
|
+
export declare const AGENT_DIRECTIVE_SOURCES: readonly ["owner", "operator", "session-lesson"];
|
|
27
|
+
/** Where a directive is in its life. Only `active` reaches the agent; a mined
|
|
28
|
+
* lesson arrives `proposed` and waits for a person. */
|
|
29
|
+
export declare const AGENT_DIRECTIVE_STATUSES: readonly ["proposed", "active", "rejected", "retired"];
|
|
30
|
+
/**
|
|
31
|
+
* One directive's CONTENT — what the agent receives, and what a person writes.
|
|
32
|
+
*/
|
|
33
|
+
export declare const AgentDirectiveSchema: z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
kind: z.ZodEnum<["preference", "pairing", "order of things", "promise", "threshold"]>;
|
|
36
|
+
severity: z.ZodEnum<["a missed opportunity", "a problem", "unacceptable"]>;
|
|
37
|
+
/** No bare URL: a URL is a hallucination surface, and a handle is not a
|
|
38
|
+
* product name. */
|
|
39
|
+
text: z.ZodEffects<z.ZodString, string, string>;
|
|
40
|
+
}, "strict", z.ZodTypeAny, {
|
|
41
|
+
kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
|
|
42
|
+
name: string;
|
|
43
|
+
text: string;
|
|
44
|
+
severity: "a missed opportunity" | "a problem" | "unacceptable";
|
|
45
|
+
}, {
|
|
46
|
+
kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
|
|
47
|
+
name: string;
|
|
48
|
+
text: string;
|
|
49
|
+
severity: "a missed opportunity" | "a problem" | "unacceptable";
|
|
50
|
+
}>;
|
|
51
|
+
export type AgentDirective = z.infer<typeof AgentDirectiveSchema>;
|
|
52
|
+
/** One stored directive, as the console lists it. */
|
|
53
|
+
export declare const SpaceAgentDirectiveSchema: z.ZodObject<{
|
|
54
|
+
id: z.ZodString;
|
|
55
|
+
position: z.ZodNumber;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
kind: z.ZodEnum<["preference", "pairing", "order of things", "promise", "threshold"]>;
|
|
58
|
+
severity: z.ZodEnum<["a missed opportunity", "a problem", "unacceptable"]>;
|
|
59
|
+
text: z.ZodString;
|
|
60
|
+
source: z.ZodEnum<["owner", "operator", "session-lesson"]>;
|
|
61
|
+
status: z.ZodEnum<["proposed", "active", "rejected", "retired"]>;
|
|
62
|
+
/** Who wrote it; null for a lesson the system proposed. */
|
|
63
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
64
|
+
/** Why a mined lesson was proposed; null for a directive a person wrote. */
|
|
65
|
+
evidence: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
66
|
+
decidedBy: z.ZodNullable<z.ZodString>;
|
|
67
|
+
decidedAt: z.ZodNullable<z.ZodString>;
|
|
68
|
+
createdAt: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
status: "proposed" | "active" | "rejected" | "retired";
|
|
71
|
+
kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
text: string;
|
|
75
|
+
source: "owner" | "operator" | "session-lesson";
|
|
76
|
+
severity: "a missed opportunity" | "a problem" | "unacceptable";
|
|
77
|
+
position: number;
|
|
78
|
+
createdBy: string | null;
|
|
79
|
+
evidence: Record<string, unknown> | null;
|
|
80
|
+
decidedBy: string | null;
|
|
81
|
+
decidedAt: string | null;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
}, {
|
|
84
|
+
status: "proposed" | "active" | "rejected" | "retired";
|
|
85
|
+
kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
text: string;
|
|
89
|
+
source: "owner" | "operator" | "session-lesson";
|
|
90
|
+
severity: "a missed opportunity" | "a problem" | "unacceptable";
|
|
91
|
+
position: number;
|
|
92
|
+
createdBy: string | null;
|
|
93
|
+
evidence: Record<string, unknown> | null;
|
|
94
|
+
decidedBy: string | null;
|
|
95
|
+
decidedAt: string | null;
|
|
96
|
+
createdAt: string;
|
|
97
|
+
}>;
|
|
98
|
+
export type SpaceAgentDirective = z.infer<typeof SpaceAgentDirectiveSchema>;
|
|
99
|
+
/**
|
|
100
|
+
* A directive as the console LISTS it — with `impact` for an active learned
|
|
101
|
+
* one: its topic's acted turns before activation against since. Null for
|
|
102
|
+
* anything not measurable (a person's directive, or a lesson not yet active).
|
|
103
|
+
*/
|
|
104
|
+
export declare const SpaceAgentDirectiveListItemSchema: z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
position: z.ZodNumber;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
kind: z.ZodEnum<["preference", "pairing", "order of things", "promise", "threshold"]>;
|
|
109
|
+
severity: z.ZodEnum<["a missed opportunity", "a problem", "unacceptable"]>;
|
|
110
|
+
text: z.ZodString;
|
|
111
|
+
source: z.ZodEnum<["owner", "operator", "session-lesson"]>;
|
|
112
|
+
status: z.ZodEnum<["proposed", "active", "rejected", "retired"]>;
|
|
113
|
+
/** Who wrote it; null for a lesson the system proposed. */
|
|
114
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
115
|
+
/** Why a mined lesson was proposed; null for a directive a person wrote. */
|
|
116
|
+
evidence: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
117
|
+
decidedBy: z.ZodNullable<z.ZodString>;
|
|
118
|
+
decidedAt: z.ZodNullable<z.ZodString>;
|
|
119
|
+
createdAt: z.ZodString;
|
|
120
|
+
} & {
|
|
121
|
+
impact: z.ZodNullable<z.ZodObject<{
|
|
122
|
+
before: z.ZodObject<{
|
|
123
|
+
turns: z.ZodNumber;
|
|
124
|
+
acted: z.ZodNumber;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
turns: number;
|
|
127
|
+
acted: number;
|
|
128
|
+
}, {
|
|
129
|
+
turns: number;
|
|
130
|
+
acted: number;
|
|
131
|
+
}>;
|
|
132
|
+
after: z.ZodObject<{
|
|
133
|
+
turns: z.ZodNumber;
|
|
134
|
+
acted: z.ZodNumber;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
turns: number;
|
|
137
|
+
acted: number;
|
|
138
|
+
}, {
|
|
139
|
+
turns: number;
|
|
140
|
+
acted: number;
|
|
141
|
+
}>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
before: {
|
|
144
|
+
turns: number;
|
|
145
|
+
acted: number;
|
|
146
|
+
};
|
|
147
|
+
after: {
|
|
148
|
+
turns: number;
|
|
149
|
+
acted: number;
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
before: {
|
|
153
|
+
turns: number;
|
|
154
|
+
acted: number;
|
|
155
|
+
};
|
|
156
|
+
after: {
|
|
157
|
+
turns: number;
|
|
158
|
+
acted: number;
|
|
159
|
+
};
|
|
160
|
+
}>>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
status: "proposed" | "active" | "rejected" | "retired";
|
|
163
|
+
kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
|
|
164
|
+
id: string;
|
|
165
|
+
name: string;
|
|
166
|
+
text: string;
|
|
167
|
+
source: "owner" | "operator" | "session-lesson";
|
|
168
|
+
severity: "a missed opportunity" | "a problem" | "unacceptable";
|
|
169
|
+
position: number;
|
|
170
|
+
createdBy: string | null;
|
|
171
|
+
evidence: Record<string, unknown> | null;
|
|
172
|
+
decidedBy: string | null;
|
|
173
|
+
decidedAt: string | null;
|
|
174
|
+
createdAt: string;
|
|
175
|
+
impact: {
|
|
176
|
+
before: {
|
|
177
|
+
turns: number;
|
|
178
|
+
acted: number;
|
|
179
|
+
};
|
|
180
|
+
after: {
|
|
181
|
+
turns: number;
|
|
182
|
+
acted: number;
|
|
183
|
+
};
|
|
184
|
+
} | null;
|
|
185
|
+
}, {
|
|
186
|
+
status: "proposed" | "active" | "rejected" | "retired";
|
|
187
|
+
kind: "promise" | "preference" | "pairing" | "order of things" | "threshold";
|
|
188
|
+
id: string;
|
|
189
|
+
name: string;
|
|
190
|
+
text: string;
|
|
191
|
+
source: "owner" | "operator" | "session-lesson";
|
|
192
|
+
severity: "a missed opportunity" | "a problem" | "unacceptable";
|
|
193
|
+
position: number;
|
|
194
|
+
createdBy: string | null;
|
|
195
|
+
evidence: Record<string, unknown> | null;
|
|
196
|
+
decidedBy: string | null;
|
|
197
|
+
decidedAt: string | null;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
impact: {
|
|
200
|
+
before: {
|
|
201
|
+
turns: number;
|
|
202
|
+
acted: number;
|
|
203
|
+
};
|
|
204
|
+
after: {
|
|
205
|
+
turns: number;
|
|
206
|
+
acted: number;
|
|
207
|
+
};
|
|
208
|
+
} | null;
|
|
209
|
+
}>;
|
|
210
|
+
export type SpaceAgentDirectiveListItem = z.infer<typeof SpaceAgentDirectiveListItemSchema>;
|
|
211
|
+
/** An edit: content and/or a status move. A person never sets `source`. */
|
|
212
|
+
export declare const UpdateAgentDirectiveInputSchema: z.ZodObject<{
|
|
213
|
+
name: z.ZodOptional<z.ZodString>;
|
|
214
|
+
kind: z.ZodOptional<z.ZodEnum<["preference", "pairing", "order of things", "promise", "threshold"]>>;
|
|
215
|
+
severity: z.ZodOptional<z.ZodEnum<["a missed opportunity", "a problem", "unacceptable"]>>;
|
|
216
|
+
text: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
217
|
+
status: z.ZodOptional<z.ZodEnum<["proposed", "active", "rejected", "retired"]>>;
|
|
218
|
+
}, "strict", z.ZodTypeAny, {
|
|
219
|
+
status?: "proposed" | "active" | "rejected" | "retired" | undefined;
|
|
220
|
+
kind?: "promise" | "preference" | "pairing" | "order of things" | "threshold" | undefined;
|
|
221
|
+
name?: string | undefined;
|
|
222
|
+
text?: string | undefined;
|
|
223
|
+
severity?: "a missed opportunity" | "a problem" | "unacceptable" | undefined;
|
|
224
|
+
}, {
|
|
225
|
+
status?: "proposed" | "active" | "rejected" | "retired" | undefined;
|
|
226
|
+
kind?: "promise" | "preference" | "pairing" | "order of things" | "threshold" | undefined;
|
|
227
|
+
name?: string | undefined;
|
|
228
|
+
text?: string | undefined;
|
|
229
|
+
severity?: "a missed opportunity" | "a problem" | "unacceptable" | undefined;
|
|
230
|
+
}>;
|
|
231
|
+
export type UpdateAgentDirectiveInput = z.infer<typeof UpdateAgentDirectiveInputSchema>;
|
|
232
|
+
/** The active list's new order — every active directive's id, once. */
|
|
233
|
+
export declare const ReorderAgentDirectivesInputSchema: z.ZodObject<{
|
|
234
|
+
ids: z.ZodArray<z.ZodString, "many">;
|
|
235
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
|
+
ids: string[];
|
|
237
|
+
}, {
|
|
238
|
+
ids: string[];
|
|
239
|
+
}>;
|
|
@@ -220,6 +220,8 @@ export declare const SessionBugSchema: z.ZodObject<{
|
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
221
|
id: string;
|
|
222
222
|
title: string;
|
|
223
|
+
severity: "high" | "medium" | "low";
|
|
224
|
+
createdBy: string;
|
|
223
225
|
createdAt: string;
|
|
224
226
|
provider: string;
|
|
225
227
|
turnIndex: number | null;
|
|
@@ -235,13 +237,13 @@ export declare const SessionBugSchema: z.ZodObject<{
|
|
|
235
237
|
issueUrl: string | null;
|
|
236
238
|
issueState: string | null;
|
|
237
239
|
body: string;
|
|
238
|
-
severity: "high" | "medium" | "low";
|
|
239
|
-
createdBy: string;
|
|
240
240
|
resolvedAt: string | null;
|
|
241
241
|
resolvedBy: string | null;
|
|
242
242
|
}, {
|
|
243
243
|
id: string;
|
|
244
244
|
title: string;
|
|
245
|
+
severity: "high" | "medium" | "low";
|
|
246
|
+
createdBy: string;
|
|
245
247
|
createdAt: string;
|
|
246
248
|
provider: string;
|
|
247
249
|
turnIndex: number | null;
|
|
@@ -257,8 +259,6 @@ export declare const SessionBugSchema: z.ZodObject<{
|
|
|
257
259
|
issueUrl: string | null;
|
|
258
260
|
issueState: string | null;
|
|
259
261
|
body: string;
|
|
260
|
-
severity: "high" | "medium" | "low";
|
|
261
|
-
createdBy: string;
|
|
262
262
|
resolvedAt: string | null;
|
|
263
263
|
resolvedBy: string | null;
|
|
264
264
|
}>;
|
|
@@ -351,6 +351,8 @@ export declare const SpaceBugSchema: z.ZodObject<{
|
|
|
351
351
|
sessionId: string;
|
|
352
352
|
id: string;
|
|
353
353
|
title: string;
|
|
354
|
+
severity: "high" | "medium" | "low";
|
|
355
|
+
createdBy: string;
|
|
354
356
|
createdAt: string;
|
|
355
357
|
provider: string;
|
|
356
358
|
turnIndex: number | null;
|
|
@@ -366,14 +368,14 @@ export declare const SpaceBugSchema: z.ZodObject<{
|
|
|
366
368
|
issueUrl: string | null;
|
|
367
369
|
issueState: string | null;
|
|
368
370
|
body: string;
|
|
369
|
-
severity: "high" | "medium" | "low";
|
|
370
|
-
createdBy: string;
|
|
371
371
|
resolvedAt: string | null;
|
|
372
372
|
resolvedBy: string | null;
|
|
373
373
|
}, {
|
|
374
374
|
sessionId: string;
|
|
375
375
|
id: string;
|
|
376
376
|
title: string;
|
|
377
|
+
severity: "high" | "medium" | "low";
|
|
378
|
+
createdBy: string;
|
|
377
379
|
createdAt: string;
|
|
378
380
|
provider: string;
|
|
379
381
|
turnIndex: number | null;
|
|
@@ -389,8 +391,6 @@ export declare const SpaceBugSchema: z.ZodObject<{
|
|
|
389
391
|
issueUrl: string | null;
|
|
390
392
|
issueState: string | null;
|
|
391
393
|
body: string;
|
|
392
|
-
severity: "high" | "medium" | "low";
|
|
393
|
-
createdBy: string;
|
|
394
394
|
resolvedAt: string | null;
|
|
395
395
|
resolvedBy: string | null;
|
|
396
396
|
}>;
|
|
@@ -457,6 +457,7 @@ export declare const SessionCommentSchema: z.ZodObject<{
|
|
|
457
457
|
createdAt: z.ZodString;
|
|
458
458
|
}, "strip", z.ZodTypeAny, {
|
|
459
459
|
id: string;
|
|
460
|
+
createdBy: string;
|
|
460
461
|
createdAt: string;
|
|
461
462
|
turnIndex: number | null;
|
|
462
463
|
location: {
|
|
@@ -468,10 +469,10 @@ export declare const SessionCommentSchema: z.ZodObject<{
|
|
|
468
469
|
pageY: number | null;
|
|
469
470
|
} | null;
|
|
470
471
|
body: string;
|
|
471
|
-
createdBy: string;
|
|
472
472
|
bugId: string | null;
|
|
473
473
|
}, {
|
|
474
474
|
id: string;
|
|
475
|
+
createdBy: string;
|
|
475
476
|
createdAt: string;
|
|
476
477
|
turnIndex: number | null;
|
|
477
478
|
location: {
|
|
@@ -483,7 +484,6 @@ export declare const SessionCommentSchema: z.ZodObject<{
|
|
|
483
484
|
pageY: number | null;
|
|
484
485
|
} | null;
|
|
485
486
|
body: string;
|
|
486
|
-
createdBy: string;
|
|
487
487
|
bugId: string | null;
|
|
488
488
|
}>;
|
|
489
489
|
export type SessionComment = z.infer<typeof SessionCommentSchema>;
|
|
@@ -1661,6 +1661,8 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1661
1661
|
}, "strip", z.ZodTypeAny, {
|
|
1662
1662
|
id: string;
|
|
1663
1663
|
title: string;
|
|
1664
|
+
severity: "high" | "medium" | "low";
|
|
1665
|
+
createdBy: string;
|
|
1664
1666
|
createdAt: string;
|
|
1665
1667
|
provider: string;
|
|
1666
1668
|
turnIndex: number | null;
|
|
@@ -1676,13 +1678,13 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1676
1678
|
issueUrl: string | null;
|
|
1677
1679
|
issueState: string | null;
|
|
1678
1680
|
body: string;
|
|
1679
|
-
severity: "high" | "medium" | "low";
|
|
1680
|
-
createdBy: string;
|
|
1681
1681
|
resolvedAt: string | null;
|
|
1682
1682
|
resolvedBy: string | null;
|
|
1683
1683
|
}, {
|
|
1684
1684
|
id: string;
|
|
1685
1685
|
title: string;
|
|
1686
|
+
severity: "high" | "medium" | "low";
|
|
1687
|
+
createdBy: string;
|
|
1686
1688
|
createdAt: string;
|
|
1687
1689
|
provider: string;
|
|
1688
1690
|
turnIndex: number | null;
|
|
@@ -1698,8 +1700,6 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1698
1700
|
issueUrl: string | null;
|
|
1699
1701
|
issueState: string | null;
|
|
1700
1702
|
body: string;
|
|
1701
|
-
severity: "high" | "medium" | "low";
|
|
1702
|
-
createdBy: string;
|
|
1703
1703
|
resolvedAt: string | null;
|
|
1704
1704
|
resolvedBy: string | null;
|
|
1705
1705
|
}>, "many">;
|
|
@@ -1765,6 +1765,7 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1765
1765
|
createdAt: z.ZodString;
|
|
1766
1766
|
}, "strip", z.ZodTypeAny, {
|
|
1767
1767
|
id: string;
|
|
1768
|
+
createdBy: string;
|
|
1768
1769
|
createdAt: string;
|
|
1769
1770
|
turnIndex: number | null;
|
|
1770
1771
|
location: {
|
|
@@ -1776,10 +1777,10 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1776
1777
|
pageY: number | null;
|
|
1777
1778
|
} | null;
|
|
1778
1779
|
body: string;
|
|
1779
|
-
createdBy: string;
|
|
1780
1780
|
bugId: string | null;
|
|
1781
1781
|
}, {
|
|
1782
1782
|
id: string;
|
|
1783
|
+
createdBy: string;
|
|
1783
1784
|
createdAt: string;
|
|
1784
1785
|
turnIndex: number | null;
|
|
1785
1786
|
location: {
|
|
@@ -1791,7 +1792,6 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1791
1792
|
pageY: number | null;
|
|
1792
1793
|
} | null;
|
|
1793
1794
|
body: string;
|
|
1794
|
-
createdBy: string;
|
|
1795
1795
|
bugId: string | null;
|
|
1796
1796
|
}>, "many">;
|
|
1797
1797
|
/** Optional during API/console rolling deployment. Absent is unavailable,
|
|
@@ -1892,6 +1892,8 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1892
1892
|
bugs: {
|
|
1893
1893
|
id: string;
|
|
1894
1894
|
title: string;
|
|
1895
|
+
severity: "high" | "medium" | "low";
|
|
1896
|
+
createdBy: string;
|
|
1895
1897
|
createdAt: string;
|
|
1896
1898
|
provider: string;
|
|
1897
1899
|
turnIndex: number | null;
|
|
@@ -1907,13 +1909,12 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1907
1909
|
issueUrl: string | null;
|
|
1908
1910
|
issueState: string | null;
|
|
1909
1911
|
body: string;
|
|
1910
|
-
severity: "high" | "medium" | "low";
|
|
1911
|
-
createdBy: string;
|
|
1912
1912
|
resolvedAt: string | null;
|
|
1913
1913
|
resolvedBy: string | null;
|
|
1914
1914
|
}[];
|
|
1915
1915
|
comments: {
|
|
1916
1916
|
id: string;
|
|
1917
|
+
createdBy: string;
|
|
1917
1918
|
createdAt: string;
|
|
1918
1919
|
turnIndex: number | null;
|
|
1919
1920
|
location: {
|
|
@@ -1925,7 +1926,6 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1925
1926
|
pageY: number | null;
|
|
1926
1927
|
} | null;
|
|
1927
1928
|
body: string;
|
|
1928
|
-
createdBy: string;
|
|
1929
1929
|
bugId: string | null;
|
|
1930
1930
|
}[];
|
|
1931
1931
|
activity?: {
|
|
@@ -1990,6 +1990,8 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
1990
1990
|
bugs: {
|
|
1991
1991
|
id: string;
|
|
1992
1992
|
title: string;
|
|
1993
|
+
severity: "high" | "medium" | "low";
|
|
1994
|
+
createdBy: string;
|
|
1993
1995
|
createdAt: string;
|
|
1994
1996
|
provider: string;
|
|
1995
1997
|
turnIndex: number | null;
|
|
@@ -2005,13 +2007,12 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
2005
2007
|
issueUrl: string | null;
|
|
2006
2008
|
issueState: string | null;
|
|
2007
2009
|
body: string;
|
|
2008
|
-
severity: "high" | "medium" | "low";
|
|
2009
|
-
createdBy: string;
|
|
2010
2010
|
resolvedAt: string | null;
|
|
2011
2011
|
resolvedBy: string | null;
|
|
2012
2012
|
}[];
|
|
2013
2013
|
comments: {
|
|
2014
2014
|
id: string;
|
|
2015
|
+
createdBy: string;
|
|
2015
2016
|
createdAt: string;
|
|
2016
2017
|
turnIndex: number | null;
|
|
2017
2018
|
location: {
|
|
@@ -2023,7 +2024,6 @@ export declare const SessionDetailSchema: z.ZodObject<{
|
|
|
2023
2024
|
pageY: number | null;
|
|
2024
2025
|
} | null;
|
|
2025
2026
|
body: string;
|
|
2026
|
-
createdBy: string;
|
|
2027
2027
|
bugId: string | null;
|
|
2028
2028
|
}[];
|
|
2029
2029
|
activity?: {
|
|
@@ -2118,9 +2118,9 @@ export declare const FileBugInputSchema: z.ZodObject<{
|
|
|
2118
2118
|
}, "strip", z.ZodTypeAny, {
|
|
2119
2119
|
payload: Record<string, unknown>;
|
|
2120
2120
|
title: string;
|
|
2121
|
+
severity: "high" | "medium" | "low";
|
|
2121
2122
|
turnIndex: number | null;
|
|
2122
2123
|
body: string;
|
|
2123
|
-
severity: "high" | "medium" | "low";
|
|
2124
2124
|
location?: {
|
|
2125
2125
|
elementId: string | null;
|
|
2126
2126
|
elementType: string | null;
|
|
@@ -2132,9 +2132,9 @@ export declare const FileBugInputSchema: z.ZodObject<{
|
|
|
2132
2132
|
}, {
|
|
2133
2133
|
payload: Record<string, unknown>;
|
|
2134
2134
|
title: string;
|
|
2135
|
+
severity: "high" | "medium" | "low";
|
|
2135
2136
|
turnIndex: number | null;
|
|
2136
2137
|
body: string;
|
|
2137
|
-
severity: "high" | "medium" | "low";
|
|
2138
2138
|
location?: {
|
|
2139
2139
|
elementId: string | null;
|
|
2140
2140
|
elementType: string | null;
|