@rudderhq/shared 0.6.5 → 0.6.6-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/chat-subagents.d.ts +14 -0
- package/dist/chat-subagents.d.ts.map +1 -0
- package/dist/chat-subagents.js +234 -0
- package/dist/chat-subagents.js.map +1 -0
- package/dist/chat-subagents.test.d.ts +2 -0
- package/dist/chat-subagents.test.d.ts.map +1 -0
- package/dist/chat-subagents.test.js +214 -0
- package/dist/chat-subagents.test.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/chat.d.ts +24 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/validators/adapter-skills.d.ts +2 -2
- package/dist/validators/automation.d.ts +21 -21
- package/dist/validators/chat.d.ts +346 -346
- package/dist/validators/cost.d.ts +4 -4
- package/dist/validators/custom-integration.d.ts +4 -4
- package/dist/validators/finance.d.ts +4 -4
- package/dist/validators/mcp.d.ts +22 -22
- package/dist/validators/organization-portability.d.ts +20 -20
- package/dist/validators/organization-skill.d.ts +22 -22
- package/dist/validators/work-product.d.ts +8 -8
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ChatStreamTranscriptEntry, ChatWorkManifestSubagentSummary } from "./types/chat.js";
|
|
2
|
+
export interface ChatSubagentInspection extends ChatWorkManifestSubagentSummary {
|
|
3
|
+
response: string | null;
|
|
4
|
+
entries: ChatStreamTranscriptEntry[];
|
|
5
|
+
}
|
|
6
|
+
export interface CollectChatSubagentContext {
|
|
7
|
+
sourceMessageId: string;
|
|
8
|
+
runId: string | null;
|
|
9
|
+
sourceActive: boolean;
|
|
10
|
+
senderLabel?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export declare function collectChatSubagentInspections(entries: ChatStreamTranscriptEntry[], context: CollectChatSubagentContext): ChatSubagentInspection[];
|
|
13
|
+
export declare function mergeChatSubagentSummaries(summaries: ChatWorkManifestSubagentSummary[]): ChatWorkManifestSubagentSummary[];
|
|
14
|
+
//# sourceMappingURL=chat-subagents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-subagents.d.ts","sourceRoot":"","sources":["../src/chat-subagents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EAGzB,+BAA+B,EAChC,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,sBAAuB,SAAQ,+BAA+B;IAC7E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,yBAAyB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAyKD,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,yBAAyB,EAAE,EACpC,OAAO,EAAE,0BAA0B,GAClC,sBAAsB,EAAE,CAwD1B;AA+BD,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,+BAA+B,EAAE,GAC3C,+BAA+B,EAAE,CAMnC"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
function asRecord(value) {
|
|
2
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
3
|
+
? value
|
|
4
|
+
: null;
|
|
5
|
+
}
|
|
6
|
+
function readString(record, keys) {
|
|
7
|
+
if (!record)
|
|
8
|
+
return null;
|
|
9
|
+
for (const key of keys) {
|
|
10
|
+
const value = record[key];
|
|
11
|
+
if (typeof value === "string" && value.trim())
|
|
12
|
+
return value.trim();
|
|
13
|
+
}
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
function readStrings(record, keys) {
|
|
17
|
+
for (const key of keys) {
|
|
18
|
+
const value = record[key];
|
|
19
|
+
if (!Array.isArray(value))
|
|
20
|
+
continue;
|
|
21
|
+
return value.filter((item) => typeof item === "string" && item.trim().length > 0);
|
|
22
|
+
}
|
|
23
|
+
const one = readString(record, ["agent_thread_id", "agentThreadId"]);
|
|
24
|
+
return one ? [one] : [];
|
|
25
|
+
}
|
|
26
|
+
function readTranscriptEntries(value) {
|
|
27
|
+
if (!Array.isArray(value))
|
|
28
|
+
return [];
|
|
29
|
+
return value.filter((entry) => {
|
|
30
|
+
const record = asRecord(entry);
|
|
31
|
+
return typeof record?.kind === "string" && typeof record.ts === "string";
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function normalizedToolName(value) {
|
|
35
|
+
return value?.trim().toLowerCase().split(".").pop()?.replace(/-/gu, "_") ?? "";
|
|
36
|
+
}
|
|
37
|
+
function normalizeStatus(rawStatus, sourceActive, isError) {
|
|
38
|
+
const value = rawStatus
|
|
39
|
+
?.trim()
|
|
40
|
+
.replace(/([a-z0-9])([A-Z])/gu, "$1_$2")
|
|
41
|
+
.replace(/[\s-]+/gu, "_")
|
|
42
|
+
.toLowerCase() ?? "";
|
|
43
|
+
if (isError || value === "failed" || value === "error") {
|
|
44
|
+
return { state: "done", status: "failed" };
|
|
45
|
+
}
|
|
46
|
+
if (value === "interrupted")
|
|
47
|
+
return { state: "done", status: "interrupted" };
|
|
48
|
+
if (value === "cancelled" || value === "canceled")
|
|
49
|
+
return { state: "done", status: "cancelled" };
|
|
50
|
+
if (value === "stopped" || value === "closed")
|
|
51
|
+
return { state: "done", status: "stopped" };
|
|
52
|
+
if (value === "completed" || value === "complete" || value === "done" || value === "success") {
|
|
53
|
+
return { state: "done", status: "completed" };
|
|
54
|
+
}
|
|
55
|
+
if (value === "pending" || value === "queued")
|
|
56
|
+
return { state: "active", status: "pending" };
|
|
57
|
+
if (value === "running"
|
|
58
|
+
|| value === "in_progress"
|
|
59
|
+
|| value === "inprogress"
|
|
60
|
+
|| value === "started"
|
|
61
|
+
|| value === "active") {
|
|
62
|
+
return { state: "active", status: "running" };
|
|
63
|
+
}
|
|
64
|
+
return sourceActive
|
|
65
|
+
? { state: "active", status: "unknown" }
|
|
66
|
+
: { state: "done", status: "unknown" };
|
|
67
|
+
}
|
|
68
|
+
function latestTimestamp(entries, fallback) {
|
|
69
|
+
let latest = Number.isFinite(Date.parse(fallback)) ? fallback : new Date(0).toISOString();
|
|
70
|
+
for (const entry of entries) {
|
|
71
|
+
if (!Number.isFinite(Date.parse(entry.ts)))
|
|
72
|
+
continue;
|
|
73
|
+
if (Date.parse(entry.ts) > Date.parse(latest))
|
|
74
|
+
latest = entry.ts;
|
|
75
|
+
}
|
|
76
|
+
return latest;
|
|
77
|
+
}
|
|
78
|
+
function responseFromEntries(entries) {
|
|
79
|
+
for (let index = entries.length - 1; index >= 0; index -= 1) {
|
|
80
|
+
const entry = entries[index];
|
|
81
|
+
if (entry?.kind === "assistant" && entry.text.trim())
|
|
82
|
+
return entry.text.trim();
|
|
83
|
+
}
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
function humanizeAgentPath(agentPath) {
|
|
87
|
+
const tail = agentPath?.split("/").filter(Boolean).at(-1)?.trim() ?? "";
|
|
88
|
+
if (!tail)
|
|
89
|
+
return null;
|
|
90
|
+
return tail
|
|
91
|
+
.replace(/[_-]+/gu, " ")
|
|
92
|
+
.replace(/\s+/gu, " ")
|
|
93
|
+
.replace(/\b\p{L}/gu, (character) => character.toUpperCase());
|
|
94
|
+
}
|
|
95
|
+
function fallbackThreadLabel(threadId) {
|
|
96
|
+
const identity = threadId.startsWith("thread-") ? threadId.slice("thread-".length) : threadId;
|
|
97
|
+
const suffix = identity.length > 8 ? identity.slice(-8) : identity;
|
|
98
|
+
return `Sub-agent ${suffix}`;
|
|
99
|
+
}
|
|
100
|
+
function promptLabel(prompt) {
|
|
101
|
+
const compact = prompt.replace(/\s+/gu, " ").trim();
|
|
102
|
+
if (!compact || compact === "Delegated task")
|
|
103
|
+
return null;
|
|
104
|
+
return compact.length > 52 ? `${compact.slice(0, 51).trimEnd()}…` : compact;
|
|
105
|
+
}
|
|
106
|
+
function mergeResultRecord(input, content) {
|
|
107
|
+
try {
|
|
108
|
+
const result = asRecord(JSON.parse(content));
|
|
109
|
+
return result ? { ...input, ...result } : input;
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
return input;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function inspectionForThread(record, context, callId, threadId, eventTs, isError, toolName) {
|
|
116
|
+
const transcriptRecords = asRecord(record.agent_transcripts) ?? asRecord(record.agentTranscripts);
|
|
117
|
+
const stateRecords = asRecord(record.agents_states) ?? asRecord(record.agentsStates);
|
|
118
|
+
const transcript = asRecord(transcriptRecords?.[threadId]);
|
|
119
|
+
const state = asRecord(stateRecords?.[threadId]);
|
|
120
|
+
const entries = readTranscriptEntries(transcript?.entries);
|
|
121
|
+
const agentPath = readString(record, ["agent_path", "agentPath"]);
|
|
122
|
+
const prompt = readString(record, ["message", "prompt", "task", "instructions"])
|
|
123
|
+
?? (agentPath ? `Delegated task to ${agentPath}` : "Delegated task");
|
|
124
|
+
const response = readString(state, ["message", "response"])
|
|
125
|
+
?? responseFromEntries(entries);
|
|
126
|
+
const rawStatus = readString(transcript, ["status"])
|
|
127
|
+
?? readString(state, ["status"])
|
|
128
|
+
?? (normalizedToolName(toolName) === "subagent_activity"
|
|
129
|
+
? readString(record, ["activity_kind", "activityKind", "status"])
|
|
130
|
+
: null);
|
|
131
|
+
const normalized = normalizeStatus(rawStatus, context.sourceActive, isError);
|
|
132
|
+
const label = humanizeAgentPath(agentPath)
|
|
133
|
+
?? promptLabel(prompt)
|
|
134
|
+
?? fallbackThreadLabel(threadId);
|
|
135
|
+
return {
|
|
136
|
+
callId,
|
|
137
|
+
threadId,
|
|
138
|
+
sourceMessageId: context.sourceMessageId,
|
|
139
|
+
runId: context.runId,
|
|
140
|
+
senderLabel: context.senderLabel ?? null,
|
|
141
|
+
label,
|
|
142
|
+
prompt,
|
|
143
|
+
avatarSeed: readString(record, ["id", "tool_use_id", "toolUseId"]) ?? callId ?? threadId,
|
|
144
|
+
model: readString(record, ["model"]),
|
|
145
|
+
reasoningEffort: readString(record, ["reasoning_effort", "reasoningEffort"]),
|
|
146
|
+
...normalized,
|
|
147
|
+
startedAt: eventTs,
|
|
148
|
+
updatedAt: latestTimestamp(entries, eventTs),
|
|
149
|
+
response,
|
|
150
|
+
entries,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export function collectChatSubagentInspections(entries, context) {
|
|
154
|
+
const pendingCalls = new Map();
|
|
155
|
+
const observations = [];
|
|
156
|
+
const append = (name, record, callId, ts, isError) => {
|
|
157
|
+
const toolName = normalizedToolName(name);
|
|
158
|
+
const identityTool = toolName === "spawn_agent" || toolName === "subagent_activity";
|
|
159
|
+
const snapshotTool = new Set([
|
|
160
|
+
"wait_agent",
|
|
161
|
+
"send_input",
|
|
162
|
+
"resume_agent",
|
|
163
|
+
"close_agent",
|
|
164
|
+
"followup_task",
|
|
165
|
+
"send_message",
|
|
166
|
+
]).has(toolName);
|
|
167
|
+
if (!identityTool && !snapshotTool)
|
|
168
|
+
return;
|
|
169
|
+
const transcriptRecords = asRecord(record.agent_transcripts) ?? asRecord(record.agentTranscripts);
|
|
170
|
+
const stateRecords = asRecord(record.agents_states) ?? asRecord(record.agentsStates);
|
|
171
|
+
if (!identityTool && !transcriptRecords && !stateRecords)
|
|
172
|
+
return;
|
|
173
|
+
const threadIds = new Set([
|
|
174
|
+
...readStrings(record, ["receiver_thread_ids", "receiverThreadIds"]),
|
|
175
|
+
...Object.keys(transcriptRecords ?? {}),
|
|
176
|
+
...Object.keys(stateRecords ?? {}),
|
|
177
|
+
]);
|
|
178
|
+
for (const threadId of threadIds) {
|
|
179
|
+
observations.push(inspectionForThread(record, context, callId, threadId, ts, isError, toolName));
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
for (const entry of entries) {
|
|
183
|
+
if (entry.kind === "tool_call") {
|
|
184
|
+
const input = asRecord(entry.input);
|
|
185
|
+
const callId = entry.toolUseId ?? readString(input, ["id", "tool_use_id", "toolUseId"]);
|
|
186
|
+
if (!input || !callId)
|
|
187
|
+
continue;
|
|
188
|
+
pendingCalls.set(callId, { name: entry.name, input, ts: entry.ts });
|
|
189
|
+
append(entry.name, input, callId, entry.ts, false);
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
if (entry.kind !== "tool_result")
|
|
193
|
+
continue;
|
|
194
|
+
const pending = pendingCalls.get(entry.toolUseId);
|
|
195
|
+
const name = pending?.name ?? entry.toolName ?? "";
|
|
196
|
+
const input = mergeResultRecord(pending?.input ?? {}, entry.content);
|
|
197
|
+
append(name, input, entry.toolUseId, pending?.ts ?? entry.ts, entry.isError);
|
|
198
|
+
}
|
|
199
|
+
return mergeChatSubagentInspections(observations);
|
|
200
|
+
}
|
|
201
|
+
function mergeChatSubagentInspections(inspections) {
|
|
202
|
+
const merged = new Map();
|
|
203
|
+
for (const inspection of inspections) {
|
|
204
|
+
const current = merged.get(inspection.threadId);
|
|
205
|
+
if (!current) {
|
|
206
|
+
merged.set(inspection.threadId, inspection);
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
const incomingIsNewer = Date.parse(inspection.updatedAt) >= Date.parse(current.updatedAt);
|
|
210
|
+
const identitySource = Date.parse(inspection.startedAt) < Date.parse(current.startedAt)
|
|
211
|
+
? inspection
|
|
212
|
+
: current;
|
|
213
|
+
const stateSource = incomingIsNewer ? inspection : current;
|
|
214
|
+
merged.set(inspection.threadId, {
|
|
215
|
+
...stateSource,
|
|
216
|
+
callId: identitySource.callId,
|
|
217
|
+
prompt: identitySource.prompt,
|
|
218
|
+
label: identitySource.label,
|
|
219
|
+
avatarSeed: identitySource.avatarSeed,
|
|
220
|
+
model: identitySource.model ?? stateSource.model,
|
|
221
|
+
reasoningEffort: identitySource.reasoningEffort ?? stateSource.reasoningEffort,
|
|
222
|
+
startedAt: identitySource.startedAt,
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return [...merged.values()];
|
|
226
|
+
}
|
|
227
|
+
export function mergeChatSubagentSummaries(summaries) {
|
|
228
|
+
return mergeChatSubagentInspections(summaries.map((summary) => ({
|
|
229
|
+
...summary,
|
|
230
|
+
response: null,
|
|
231
|
+
entries: [],
|
|
232
|
+
}))).map(({ response: _response, entries: _entries, ...summary }) => summary);
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=chat-subagents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-subagents.js","sourceRoot":"","sources":["../src/chat-subagents.ts"],"names":[],"mappings":"AAqBA,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzE,CAAC,CAAC,KAAoB;QACtB,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,SAAS,UAAU,CAAC,MAAsC,EAAE,IAAc;IACxE,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IACzB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE;YAAE,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;IACrE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,WAAW,CAAC,MAAmB,EAAE,IAAc;IACtD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,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EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-subagents.test.d.ts","sourceRoot":"","sources":["../src/chat-subagents.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { collectChatSubagentInspections, mergeChatSubagentSummaries } from "./chat-subagents.js";
|
|
3
|
+
const context = {
|
|
4
|
+
sourceMessageId: "message-1",
|
|
5
|
+
runId: "run-1",
|
|
6
|
+
sourceActive: true,
|
|
7
|
+
};
|
|
8
|
+
describe("chat subagent transcript projection", () => {
|
|
9
|
+
it("merges spawn results into one completed thread with inspectable evidence", () => {
|
|
10
|
+
const entries = [
|
|
11
|
+
{
|
|
12
|
+
kind: "tool_call",
|
|
13
|
+
ts: "2026-07-29T01:00:00.000Z",
|
|
14
|
+
name: "spawn_agent",
|
|
15
|
+
toolUseId: "spawn-1",
|
|
16
|
+
input: { id: "spawn-1", message: "Review the roadmap", receiver_thread_ids: [] },
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
kind: "tool_result",
|
|
20
|
+
ts: "2026-07-29T01:00:04.000Z",
|
|
21
|
+
toolUseId: "spawn-1",
|
|
22
|
+
toolName: "spawn_agent",
|
|
23
|
+
isError: false,
|
|
24
|
+
content: JSON.stringify({
|
|
25
|
+
status: "completed",
|
|
26
|
+
receiver_thread_ids: ["thread-reviewer"],
|
|
27
|
+
agents_states: {
|
|
28
|
+
"thread-reviewer": { status: "completed", message: "Review passed." },
|
|
29
|
+
},
|
|
30
|
+
agent_transcripts: {
|
|
31
|
+
"thread-reviewer": {
|
|
32
|
+
status: "completed",
|
|
33
|
+
entries: [
|
|
34
|
+
{ kind: "thinking", ts: "2026-07-29T01:00:01.000Z", text: "Inspecting." },
|
|
35
|
+
{ kind: "assistant", ts: "2026-07-29T01:00:03.000Z", text: "Review passed." },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
expect(collectChatSubagentInspections(entries, context)).toEqual([
|
|
43
|
+
expect.objectContaining({
|
|
44
|
+
callId: "spawn-1",
|
|
45
|
+
threadId: "thread-reviewer",
|
|
46
|
+
label: "Review the roadmap",
|
|
47
|
+
prompt: "Review the roadmap",
|
|
48
|
+
state: "done",
|
|
49
|
+
status: "completed",
|
|
50
|
+
response: "Review passed.",
|
|
51
|
+
updatedAt: "2026-07-29T01:00:03.000Z",
|
|
52
|
+
}),
|
|
53
|
+
]);
|
|
54
|
+
});
|
|
55
|
+
it("normalizes active and failed activity statuses and humanizes agent paths", () => {
|
|
56
|
+
const active = collectChatSubagentInspections([{
|
|
57
|
+
kind: "tool_call",
|
|
58
|
+
ts: "2026-07-29T02:00:00.000Z",
|
|
59
|
+
name: "subagent_activity",
|
|
60
|
+
toolUseId: "activity-1",
|
|
61
|
+
input: {
|
|
62
|
+
id: "activity-1",
|
|
63
|
+
activity_kind: "started",
|
|
64
|
+
agent_path: "/root/runtime_verifier",
|
|
65
|
+
receiver_thread_ids: ["thread-runtime"],
|
|
66
|
+
agent_transcripts: {
|
|
67
|
+
"thread-runtime": { status: "inProgress", entries: [] },
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
}], context);
|
|
71
|
+
expect(active[0]).toMatchObject({
|
|
72
|
+
label: "Runtime Verifier",
|
|
73
|
+
state: "active",
|
|
74
|
+
status: "running",
|
|
75
|
+
});
|
|
76
|
+
const failed = collectChatSubagentInspections([{
|
|
77
|
+
kind: "tool_call",
|
|
78
|
+
ts: "2026-07-29T02:00:00.000Z",
|
|
79
|
+
name: "subagent_activity",
|
|
80
|
+
toolUseId: "activity-2",
|
|
81
|
+
input: {
|
|
82
|
+
id: "activity-2",
|
|
83
|
+
activity_kind: "interrupted",
|
|
84
|
+
agent_path: "/root/runtime_verifier",
|
|
85
|
+
receiver_thread_ids: ["thread-runtime"],
|
|
86
|
+
},
|
|
87
|
+
}], context);
|
|
88
|
+
expect(failed[0]).toMatchObject({
|
|
89
|
+
state: "done",
|
|
90
|
+
status: "interrupted",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
it("deduplicates a thread across observations while preserving first identity and latest state", () => {
|
|
94
|
+
const merged = mergeChatSubagentSummaries([
|
|
95
|
+
{
|
|
96
|
+
callId: "spawn-1",
|
|
97
|
+
threadId: "thread-1",
|
|
98
|
+
sourceMessageId: "message-1",
|
|
99
|
+
runId: "run-1",
|
|
100
|
+
label: "Roadmap reviewer",
|
|
101
|
+
prompt: "Review the roadmap",
|
|
102
|
+
avatarSeed: "spawn-1",
|
|
103
|
+
model: "gpt-test",
|
|
104
|
+
reasoningEffort: "high",
|
|
105
|
+
state: "active",
|
|
106
|
+
status: "running",
|
|
107
|
+
startedAt: "2026-07-29T01:00:00.000Z",
|
|
108
|
+
updatedAt: "2026-07-29T01:00:01.000Z",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
callId: "wait-1",
|
|
112
|
+
threadId: "thread-1",
|
|
113
|
+
sourceMessageId: "message-2",
|
|
114
|
+
runId: "run-2",
|
|
115
|
+
label: "Later label",
|
|
116
|
+
prompt: "Wait for reviewer",
|
|
117
|
+
avatarSeed: "wait-1",
|
|
118
|
+
model: null,
|
|
119
|
+
reasoningEffort: null,
|
|
120
|
+
state: "done",
|
|
121
|
+
status: "completed",
|
|
122
|
+
startedAt: "2026-07-29T01:00:05.000Z",
|
|
123
|
+
updatedAt: "2026-07-29T01:00:06.000Z",
|
|
124
|
+
},
|
|
125
|
+
]);
|
|
126
|
+
expect(merged).toEqual([
|
|
127
|
+
expect.objectContaining({
|
|
128
|
+
callId: "spawn-1",
|
|
129
|
+
sourceMessageId: "message-2",
|
|
130
|
+
label: "Roadmap reviewer",
|
|
131
|
+
prompt: "Review the roadmap",
|
|
132
|
+
avatarSeed: "spawn-1",
|
|
133
|
+
state: "done",
|
|
134
|
+
status: "completed",
|
|
135
|
+
}),
|
|
136
|
+
]);
|
|
137
|
+
});
|
|
138
|
+
it("merges a terminal wait snapshot without treating tool completion as child completion", () => {
|
|
139
|
+
const entries = [
|
|
140
|
+
{
|
|
141
|
+
kind: "tool_call",
|
|
142
|
+
ts: "2026-07-29T03:00:00.000Z",
|
|
143
|
+
name: "spawn_agent",
|
|
144
|
+
toolUseId: "spawn-wait",
|
|
145
|
+
input: {
|
|
146
|
+
id: "spawn-wait",
|
|
147
|
+
message: "Verify the runtime",
|
|
148
|
+
receiver_thread_ids: [],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
kind: "tool_result",
|
|
153
|
+
ts: "2026-07-29T03:00:01.000Z",
|
|
154
|
+
toolUseId: "spawn-wait",
|
|
155
|
+
toolName: "spawn_agent",
|
|
156
|
+
isError: false,
|
|
157
|
+
content: JSON.stringify({
|
|
158
|
+
status: "completed",
|
|
159
|
+
receiver_thread_ids: ["thread-wait"],
|
|
160
|
+
agents_states: { "thread-wait": { status: "inProgress" } },
|
|
161
|
+
agent_transcripts: {
|
|
162
|
+
"thread-wait": {
|
|
163
|
+
status: "inProgress",
|
|
164
|
+
entries: [{ kind: "thinking", ts: "2026-07-29T03:00:00.500Z", text: "Working." }],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
}),
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
kind: "tool_call",
|
|
171
|
+
ts: "2026-07-29T03:00:02.000Z",
|
|
172
|
+
name: "wait_agent",
|
|
173
|
+
toolUseId: "wait-1",
|
|
174
|
+
input: { receiver_thread_ids: ["thread-wait"] },
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
kind: "tool_result",
|
|
178
|
+
ts: "2026-07-29T03:00:04.000Z",
|
|
179
|
+
toolUseId: "wait-1",
|
|
180
|
+
toolName: "wait_agent",
|
|
181
|
+
isError: false,
|
|
182
|
+
content: JSON.stringify({
|
|
183
|
+
status: "completed",
|
|
184
|
+
receiver_thread_ids: ["thread-wait"],
|
|
185
|
+
agents_states: {
|
|
186
|
+
"thread-wait": { status: "completed", message: "Runtime verified." },
|
|
187
|
+
},
|
|
188
|
+
agent_transcripts: {
|
|
189
|
+
"thread-wait": {
|
|
190
|
+
status: "completed",
|
|
191
|
+
entries: [
|
|
192
|
+
{ kind: "thinking", ts: "2026-07-29T03:00:00.500Z", text: "Working." },
|
|
193
|
+
{ kind: "assistant", ts: "2026-07-29T03:00:03.500Z", text: "Runtime verified." },
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
}),
|
|
198
|
+
},
|
|
199
|
+
];
|
|
200
|
+
expect(collectChatSubagentInspections(entries, context)).toEqual([
|
|
201
|
+
expect.objectContaining({
|
|
202
|
+
callId: "spawn-wait",
|
|
203
|
+
threadId: "thread-wait",
|
|
204
|
+
label: "Verify the runtime",
|
|
205
|
+
prompt: "Verify the runtime",
|
|
206
|
+
state: "done",
|
|
207
|
+
status: "completed",
|
|
208
|
+
response: "Runtime verified.",
|
|
209
|
+
updatedAt: "2026-07-29T03:00:03.500Z",
|
|
210
|
+
}),
|
|
211
|
+
]);
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
//# sourceMappingURL=chat-subagents.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-subagents.test.js","sourceRoot":"","sources":["../src/chat-subagents.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAGjG,MAAM,OAAO,GAAG;IACd,eAAe,EAAE,WAAW;IAC5B,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,QAAQ,CAAC,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B,EAAE;qBACrE;oBACD,iBAAiB,EAAE;wBACjB,aAAa,EAAE;4BACb,MAAM,EAAE,WAAW;4BACnB,OAAO,EAAE;gCACP,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,UAAU,EAAE;gCACtE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,mBAAmB,EAAE;6BACjF;yBACF;qBACF;iBACF,CAAC;aACH;SACF,CAAC;QAEF,MAAM,CAAC,8BAA8B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;YAC/D,MAAM,CAAC,gBAAgB,CAAC;gBACtB,MAAM,EAAE,YAAY;gBACpB,QAAQ,EAAE,aAAa;gBACvB,KAAK,EAAE,oBAAoB;gBAC3B,MAAM,EAAE,oBAAoB;gBAC5B,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,WAAW;gBACnB,QAAQ,EAAE,mBAAmB;gBAC7B,SAAS,EAAE,0BAA0B;aACtC,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { BROWSER_SHORTCUT_ACTIONS, isBrowserShortcutAction, resolveBrowserShortcutInput, type BrowserShortcutAction, type BrowserShortcutInput } from "./browser-shortcuts.js";
|
|
2
2
|
export { CODEX_INLINE_VISUAL_DIRECTIVE_PREFIX, MAX_CODEX_INLINE_VISUALS, MAX_RUDDER_INLINE_VISUAL_FRAGMENT_BYTES, MAX_RUDDER_INLINE_VISUAL_REPLY_BYTES, MAX_RUDDER_INLINE_VISUAL_TOTAL_BYTES, RUDDER_INLINE_VISUAL_END, RUDDER_INLINE_VISUAL_PLACEMENT_PREFIX, RUDDER_INLINE_VISUAL_START, chatInlineVisualMappingsFromStructuredPayload, createRudderInlineVisualStreamSuppressor, parseCodexInlineVisualDirectives, parseRudderInlineVisualEnvelopes, parseRudderInlineVisualPlacements, redactRudderInlineVisualSources, replaceRudderInlineVisualSources, rudderInlineVisualMappingsFromStructuredPayload, stripCodexInlineVisualDirectives, stripRudderInlineVisualPlacements, type ChatInlineVisualMapping, type CodexInlineVisualDirective, type CodexInlineVisualDirectiveIssue, type CodexInlineVisualDirectiveIssueCode, type CodexInlineVisualDirectiveParseResult, type RudderInlineVisualEnvelope, type RudderInlineVisualEnvelopeIssue, type RudderInlineVisualEnvelopeIssueCode, type RudderInlineVisualEnvelopeParseResult, type RudderInlineVisualMapping, type RudderInlineVisualPlacement } from "./chat-inline-visuals.js";
|
|
3
|
+
export { collectChatSubagentInspections, mergeChatSubagentSummaries, type ChatSubagentInspection } from "./chat-subagents.js";
|
|
3
4
|
export { extractVisibleChatWorkTargets, normalizeChatWorkExternalUrl, preferChatWorkManifestCategory, type ChatWorkManifestCategory, type ExtractedChatWorkTarget } from "./chat-work-manifest.js";
|
|
4
5
|
export { AGENT_AVATAR_BACKGROUND_PRESET_IDS, AGENT_DICEBEAR_NOTIONISTS_ICON_PREFIX, AGENT_ICON_NAMES, AGENT_INTEGRATION_CHAT_TYPES, AGENT_INTEGRATION_DROP_REASONS, AGENT_INTEGRATION_OUTBOUND_STATUSES, AGENT_INTEGRATION_PROVIDERS, AGENT_INTEGRATION_PROVIDER_REGIONS, AGENT_INTEGRATION_STATUSES, AGENT_INTEGRATION_TRANSPORTS, AGENT_OREO_DEFAULT_PALETTE_ID, AGENT_OREO_DEFAULT_SHAPE_ID, AGENT_OREO_ICON_PREFIX, AGENT_OREO_PALETTE_IDS, AGENT_OREO_SHAPE_IDS, AGENT_ROLES, AGENT_ROLE_LABELS, AGENT_RUNTIME_TYPES, AGENT_RUN_CONCURRENCY_DEFAULT, AGENT_RUN_CONCURRENCY_MAX, AGENT_RUN_CONCURRENCY_MIN, AGENT_RUN_SCENES, AGENT_RUN_TARGET_TYPES, AGENT_STATUSES, APPROVAL_STATUSES, APPROVAL_TYPES, AUTH_BASE_URL_MODES, AUTOMATION_CATCH_UP_POLICIES, AUTOMATION_CONCURRENCY_POLICIES, AUTOMATION_OUTPUT_MODES, AUTOMATION_RUN_SOURCES, AUTOMATION_RUN_STATUSES, AUTOMATION_STATUSES, AUTOMATION_TRIGGER_KINDS, AUTOMATION_TRIGGER_SIGNING_MODES, BILLING_TYPES, BUDGET_INCIDENT_RESOLUTION_ACTIONS, BUDGET_INCIDENT_STATUSES, BUDGET_METRICS, BUDGET_SCOPE_TYPES, BUDGET_THRESHOLD_TYPES, BUDGET_WINDOW_KINDS, CALENDAR_EVENT_KINDS, CALENDAR_EVENT_STATUSES, CALENDAR_OWNER_TYPES, CALENDAR_SOURCE_MODES, CALENDAR_SOURCE_STATUSES, CALENDAR_SOURCE_TYPES, CALENDAR_VISIBILITIES, CHAT_CONTEXT_ENTITY_TYPES, CHAT_CONVERSATION_KINDS, CHAT_CONVERSATION_MUTABILITIES, CHAT_CONVERSATION_STATUSES, CHAT_ISSUE_CREATION_MODES, CHAT_MESSAGE_KINDS, CHAT_MESSAGE_ROLES, CHAT_MESSAGE_STATUSES, CUSTOM_INTEGRATION_BINDING_STATUSES, CUSTOM_INTEGRATION_KINDS, CUSTOM_INTEGRATION_SCOPES, CUSTOM_INTEGRATION_STATUSES, CUSTOM_INTEGRATION_TOOL_CALL_STATUSES, CUSTOM_INTEGRATION_TOOL_STATUSES, DEFAULT_PROJECT_ICON, DEPLOYMENT_EXPOSURES, DEPLOYMENT_MODES, FINANCE_DIRECTIONS, FINANCE_EVENT_KINDS, FINANCE_UNITS, GOAL_LEVELS, GOAL_STATUSES, HEARTBEAT_INVOCATION_SOURCES, HEARTBEAT_RUN_STATUSES, INSTANCE_USER_ROLES, INVITE_JOIN_TYPES, INVITE_TYPES, ISSUE_ORIGIN_KINDS, ISSUE_PRIORITIES, ISSUE_STATUSES, JOIN_REQUEST_STATUSES, JOIN_REQUEST_TYPES, LIVE_EVENT_TYPES, MEMBERSHIP_STATUSES, MESSENGER_CUSTOM_GROUP_EMOJI_ICONS, MESSENGER_FORK_GROUP_DEFAULT_ICON, MESSENGER_SYSTEM_THREAD_KINDS, MESSENGER_THREAD_KINDS, ORGANIZATION_INTELLIGENCE_PROFILE_PURPOSES, ORGANIZATION_INTELLIGENCE_PROFILE_STATUSES, ORGANIZATION_RESOURCE_KINDS, ORGANIZATION_RESOURCE_SOURCE_TYPES, ORGANIZATION_SECRET_PURPOSES, ORGANIZATION_STATUSES, PAUSE_REASONS, PERMISSION_KEYS, PLUGIN_API_VERSION, PLUGIN_BRIDGE_ERROR_CODES, PLUGIN_CAPABILITIES, PLUGIN_CATEGORIES, PLUGIN_EVENT_TYPES, PLUGIN_JOB_RUN_STATUSES, PLUGIN_JOB_RUN_TRIGGERS, PLUGIN_JOB_STATUSES, PLUGIN_LAUNCHER_ACTIONS, PLUGIN_LAUNCHER_BOUNDS, PLUGIN_LAUNCHER_PLACEMENT_ZONES, PLUGIN_LAUNCHER_RENDER_ENVIRONMENTS, PLUGIN_STATE_SCOPE_KINDS, PLUGIN_STATUSES, PLUGIN_UI_SLOT_ENTITY_TYPES, PLUGIN_UI_SLOT_TYPES, PLUGIN_WEBHOOK_DELIVERY_STATUSES, PRINCIPAL_TYPES, PROJECT_COLORS, PROJECT_ICONS, PROJECT_RESOURCE_ATTACHMENT_ROLES, PROJECT_STATUSES, RUDDER_AGENT_V1_MCP_SERVER_NAME, RUDDER_AGENT_V1_MCP_TOOL_NAMES, RUDDER_BROWSER_MCP_SERVER_NAME, RUDDER_BROWSER_MCP_TOOL_NAMES, RUDDER_CORE_MCP_TOOL_NAMES, SECRET_PROVIDERS, SIDE_CHAT_STATES, STORAGE_PROVIDERS, WAKEUP_REQUEST_STATUSES, WAKEUP_TRIGGER_DETAILS, type AgentAvatarBackgroundPresetId, type AgentIconName, type AgentIntegrationChatType, type AgentIntegrationDropReason, type AgentIntegrationOutboundStatus, type AgentIntegrationProvider, type AgentIntegrationProviderRegion, type AgentIntegrationStatus, type AgentIntegrationTransport, type AgentOreoPaletteId, type AgentOreoShapeId, type AgentRole, type AgentRunScene, type AgentRunTargetType, type AgentRuntimeType, type AgentStatus, type ApprovalStatus, type ApprovalType, type AuthBaseUrlMode, type AutomationCatchUpPolicy, type AutomationConcurrencyPolicy, type AutomationOutputMode, type AutomationRunSource, type AutomationRunStatus, type AutomationStatus, type AutomationTriggerKind, type AutomationTriggerSigningMode, type BillingType, type BudgetIncidentResolutionAction, type BudgetIncidentStatus, type BudgetMetric, type BudgetScopeType, type BudgetThresholdType, type BudgetWindowKind, type CalendarEventKind, type CalendarEventStatus, type CalendarOwnerType, type CalendarSourceMode, type CalendarSourceStatus, type CalendarSourceType, type CalendarVisibility, type ChatContextEntityType, type ChatConversationKind, type ChatConversationMutability, type ChatConversationStatus, type ChatIssueCreationMode, type ChatMessageKind, type ChatMessageRole, type ChatMessageStatus, type CustomIntegrationBindingStatus, type CustomIntegrationKind, type CustomIntegrationScope, type CustomIntegrationStatus, type CustomIntegrationToolCallStatus, type CustomIntegrationToolStatus, type DeploymentExposure, type DeploymentMode, type FinanceDirection, type FinanceEventKind, type FinanceUnit, type GoalLevel, type GoalStatus, type HeartbeatInvocationSource, type HeartbeatRunStatus, type InstanceUserRole, type InviteJoinType, type InviteType, type IssueOriginKind, type IssuePriority, type IssueStatus, type JoinRequestStatus, type JoinRequestType, type LiveEventType, type MembershipStatus, type MessengerSystemThreadKind, type MessengerThreadKind, type OrganizationIntelligenceProfilePurpose, type OrganizationIntelligenceProfileStatus, type OrganizationResourceKind, type OrganizationResourceSourceType, type OrganizationSecretPurpose, type OrganizationStatus, type PauseReason, type PermissionKey, type PluginBridgeErrorCode, type PluginCapability, type PluginCategory, type PluginEventType, type PluginJobRunStatus, type PluginJobRunTrigger, type PluginJobStatus, type PluginLauncherAction, type PluginLauncherBounds, type PluginLauncherPlacementZone, type PluginLauncherRenderEnvironment, type PluginStateScopeKind, type PluginStatus, type PluginUiSlotEntityType, type PluginUiSlotType, type PluginWebhookDeliveryStatus, type PrincipalType, type ProjectIconName, type ProjectResourceAttachmentRole, type ProjectStatus, type RudderAgentV1McpToolName, type RudderBrowserMcpToolName, type RudderCoreMcpToolName, type SecretProvider, type SideChatState, type StorageProvider, type WakeupRequestStatus, type WakeupTriggerDetail } from "./constants.js";
|
|
5
6
|
export { MCP_AGENT_ACCESS_MODES, MCP_AGENT_BINDING_STATUSES, MCP_CONNECTION_ACCESS_MODES, MCP_CONNECTION_CANONICAL_STATES, MCP_CONNECTION_PROVIDERS, MCP_CONNECTION_SCOPES, MCP_CONNECTION_STATUSES, MCP_CONNECTION_TRANSPORTS, MCP_OAUTH_GRANT_STATUSES, MCP_OAUTH_SESSION_STATUSES, MCP_OAUTH_SESSION_TTL_MS, MCP_PROVIDER_CATALOG, MCP_PROVIDER_ORGANIZATION_STATES, MCP_PROVIDER_SCOPE_MODES, MCP_TOOL_CAPABILITY_CLASSES, type McpAgentAccessMode, type McpAgentBindingStatus, type McpConnectionAccessMode, type McpConnectionCanonicalState, type McpConnectionProvider, type McpConnectionScope, type McpConnectionStatus, type McpConnectionTransport, type McpOAuthGrantStatus, type McpOAuthSessionStatus, type McpProviderOrganizationState, type McpProviderScopeMode, type McpToolCapabilityClass } from "./constants.js";
|
|
@@ -12,7 +13,7 @@ export type { ManagedExternalMcpBinding, ManagedExternalMcpBindings, ManagedExte
|
|
|
12
13
|
export { createCustomIntegrationSchema, createCustomIntegrationToolCallSchema, customIntegrationBindingStatusSchema, customIntegrationKindSchema, customIntegrationScopeSchema, customIntegrationStatusSchema, customIntegrationToolCallStatusSchema, customIntegrationToolInputSchema, customIntegrationToolStatusSchema, updateCustomIntegrationBindingSchema, type CreateCustomIntegration, type CreateCustomIntegrationToolCall, type UpdateCustomIntegrationBinding } from "./validators/custom-integration.js";
|
|
13
14
|
export { createMcpConnectionSchema, managedExternalMcpBindingSchema, managedExternalMcpBindingsSchema, mcpAgentAccessModeSchema, mcpAgentBindingSchema, mcpAgentBindingStatusSchema, mcpAgentConnectionSummarySchema, mcpConnectionAccessModeSchema, mcpConnectionCanonicalStateSchema, mcpConnectionMergedConfigSchema, mcpConnectionMutationConfigSchema, mcpConnectionProviderSchema, mcpConnectionSafeConfigSchema, mcpConnectionScopeSchema, mcpConnectionSecretsMutationSchema, mcpConnectionStatusSchema, mcpConnectionSummarySchema, mcpConnectionTransportSchema, mcpCuratedSafeConfigSchema, mcpDiscoveredToolSchema, mcpExternalScopeOptionSchema, mcpLegacyManualSafeConfigSchema, mcpOAuthCallbackSchema, mcpOAuthGrantStatusSchema, mcpOAuthGrantSummarySchema, mcpOAuthStartResponseSchema, mcpOAuthStartSchema, mcpProviderAvailabilitySchema, mcpProviderCatalogEntrySchema, mcpProviderCatalogSchema, mcpProviderMaxAccessSchema, mcpProviderOrganizationStateSchema, mcpProviderScopeModeSchema, mcpScopeSelectionSchema, mcpStdioSafeConfigSchema, mcpStreamableHttpSafeConfigSchema, mcpToolCapabilityClassSchema, updateMcpAgentBindingSchema, updateMcpConnectionSchema, upsertMcpAgentBindingSchema, type CreateMcpConnection, type McpOAuthCallback, type McpOAuthStart, type McpScopeSelection, type UpdateMcpAgentBinding, type UpdateMcpConnection, type UpsertMcpAgentBinding } from "./validators/mcp.js";
|
|
14
15
|
export { appendChatGenerationEventSchema, chatClientCheckpointSchema, chatControlActionKindSchema, chatControlDispositionSchema, chatGenerationControlStateSchema, chatGenerationEventKindSchema, chatGenerationStatusSchema, chatProviderControlDispositionSchema, chatQueueDeliveryIntentSchema, chatQueuedMessageStatusSchema, chatTerminalOutboxStatusSchema, stopChatGenerationSchema, type AppendChatGenerationEvent, type ChatClientCheckpoint, type StopChatGeneration } from "./validators/chat.js";
|
|
15
|
-
export type { ActivityEvent, Agent, AgentAccessState, AgentBrowserToolSummary, AgentConfigRevision, AgentDetail, AgentEnvConfig, AgentInstructionsBundle, AgentInstructionsBundleMode, AgentInstructionsFileDetail, AgentInstructionsFileSummary, AgentIntegration, AgentIntegrationBindingToken, AgentIntegrationChatBinding, AgentIntegrationInboundAudit, AgentIntegrationOutboundMessage, AgentIntegrationSettings, AgentIntegrationSetupSession, AgentIntegrationSetupSessionStatus, AgentIntegrationSetupUrl, AgentIntegrationSummary, AgentIntegrationUserBinding, AgentKeyCreated, AgentPermissions, AgentRudderToolSummary, AgentRun, AgentRuntimeAvailability, AgentRuntimeAvailabilityStatus, AgentRuntimeEnvironmentCheck, AgentRuntimeEnvironmentCheckLevel, AgentRuntimeEnvironmentTestResult, AgentRuntimeEnvironmentTestStatus, AgentRuntimeState, AgentSkillAnalytics, AgentSkillAnalyticsDay, AgentSkillAnalyticsSkillTotal, AgentSkillEntry, AgentSkillOrigin, AgentSkillSnapshot, AgentSkillSourceClass, AgentSkillState, AgentSkillSyncMode, AgentSkillSyncRequest, AgentSkillTelemetryEvidence, AgentSkillTelemetryEvidenceCounts, AgentTaskSession, AgentWakeupRequest, Approval, ApprovalComment, AssetImage, Automation, AutomationDetail, AutomationExecutionIssueOrigin, AutomationListItem, AutomationRun, AutomationRunSummary, AutomationTrigger, AutomationTriggerSecretMaterial, BudgetIncident, BudgetIncidentResolutionInput, BudgetOverview, BudgetPolicy, BudgetPolicySummary, BudgetPolicyUpsertInput, CalendarEvent, CalendarEventLinkedAgent, CalendarEventLinkedIssue, CalendarEventListResponse, CalendarSource, ChatAskUserOption, ChatAskUserQuestion, ChatAskUserRequest, ChatAttachment, ChatContextLink, ChatControlAction, ChatControlActionKind, ChatControlDisposition, ChatConversation, ChatGeneration, ChatGenerationControlState, ChatGenerationEvent, ChatGenerationEventKind, ChatGenerationStatus, ChatGenerationTerminalOutboxEntry, ChatInlineAnnotation, ChatInlineAnnotationInput, ChatInlineAnnotationSurface, ChatInlineAnnotationTranscriptKind, ChatLinkedEntity, ChatMessage, ChatOperationProposalDecision, ChatOperationProposalDecisionAction, ChatOperationProposalDecisionStatus, ChatPrimaryIssueSummary, ChatProviderControlDisposition, ChatQueueClaimResponse, ChatQueueDeliveryIntent, ChatQueueRequestActor, ChatQueueSnapshot, ChatQueuedMessage, ChatQueuedMessagePayload, ChatQueuedMessageStatus, ChatRichReference, ChatRichReferenceDisplay, ChatRuntimeDescriptor, ChatSteerResponse, ChatSteerResult, ChatStreamAckEvent, ChatStreamAssistantDeltaEvent, ChatStreamAssistantStateEvent, ChatStreamErrorEvent, ChatStreamEvent, ChatStreamFinalEvent, ChatStreamQueuedEvent, ChatStreamTranscriptEntry, ChatStreamTranscriptEntryEvent, ChatStreamTranscriptTextEntry, ChatStreamTranscriptTodoItem, ChatStreamTranscriptTodoItemStatus, ChatTerminalOutboxStatus, ChatTranscriptGenerationProvenance, ChatTranscriptSummary, ChatWorkManifestItem, ChatWorkManifestResponse, ChatWorkManifestTargetType, CostByAgent, CostByAgentModel, CostByBiller, CostByProject, CostByProviderModel, CostEvent, CostSummary, CostTrendGranularity, CostTrendPoint, CostWindowSpendRow, CreateOrganizationResourceRequest, CreateProjectInlineResourceInput, DashboardSummary, DocumentFormat, EnvBinding, ExecutionWorkspace, ExecutionWorkspaceMode, ExecutionWorkspaceProviderType, ExecutionWorkspaceStatus, ExecutionWorkspaceStrategy, ExecutionWorkspaceStrategyType, FeishuIntegrationSettings, FinanceByBiller, FinanceByKind, FinanceEvent, FinanceSummary, Goal, GoalDependencies, GoalDependencyPreview, GoogleCalendarConnectResponse, GoogleCalendarOAuthConfig, GoogleCalendarSyncResponse, HeartbeatRecoveryMode, HeartbeatRecoveryTrigger, HeartbeatRun, HeartbeatRunContextSnapshot, HeartbeatRunEvent, HeartbeatRunRecoveryContext, HeartbeatSessionReuseScope, HeartbeatSessionReuseSuppression, InstanceBrowserSettings, InstanceGeneralSettings, InstanceLocale, InstanceNotificationSettings, InstancePathPickerRequest, InstancePathPickerResult, InstancePathPickerSelectionType, InstanceSchedulerHeartbeatAgent, InstanceSettings, InstanceUserRoleGrant, Invite, Issue, IssueAssigneeAgentRuntimeOverrides, IssueAttachment, IssueComment, IssueCommitReport, IssueExecutionWorkspaceSettings, IssueFollow, IssueFollowEntry, IssueLabel, IssueLinkedApproval, IssueRunWorkspaceSettings, IssueSearchField, IssueSearchMatch, IssueWorkProduct, IssueWorkProductProvider, IssueWorkProductReviewState, IssueWorkProductStatus, IssueWorkProductType, JoinRequest, JsonSchema, LibraryDocument, LibraryDocumentIssueLink, LibraryDocumentRevision, LibraryDocumentSummary, LibraryEntry, LiveEvent, MessengerApprovalThreadItem, MessengerBudgetThreadItem, MessengerChatThreadDetail, MessengerCustomGroup, MessengerCustomGroupEntry, MessengerCustomGroupHydratedEntry, MessengerCustomGroupHydratedSavedViewEntry, MessengerCustomGroupHydratedThreadEntry, MessengerCustomGroupWithEntries, MessengerCustomGroupsResponse, MessengerDirectoryItem, MessengerEvent, MessengerFailedRunThreadItem, MessengerHeartbeatRunThreadItem, MessengerIssueThreadItem, MessengerJoinRequestThreadItem, MessengerRunOriginDescriptor, MessengerRunOriginSource, MessengerRunOriginSourceState, MessengerSavedView, MessengerSavedViewKeepResult, MessengerSavedViewPage, MessengerSavedViewPageInfo, MessengerSavedViewPlacement, MessengerSavedViewTarget, MessengerSavedViewTargetKind, MessengerSystemThreadItem, MessengerThreadAction, MessengerThreadDetail, MessengerThreadItem, MessengerThreadPageInfo, MessengerThreadSummary, MessengerThreadSummaryPage, MessengerThreadUserState, OperatorProfileSettings, Organization, OrganizationExportJob, OrganizationExportJobCreateResult, OrganizationExportJobProgress, OrganizationExportJobStage, OrganizationExportJobStatus, OrganizationIntelligenceProfile, OrganizationLegacyHeartbeatInstructionDeleteResult, OrganizationMembership, OrganizationPortabilityAgentManifestEntry, OrganizationPortabilityAgentRuntimeOverride, OrganizationPortabilityAgentSelection, OrganizationPortabilityCollisionStrategy, OrganizationPortabilityEnvInput, OrganizationPortabilityExportPreviewFile, OrganizationPortabilityExportPreviewResult, OrganizationPortabilityExportRequest, OrganizationPortabilityExportResult, OrganizationPortabilityFileEntry, OrganizationPortabilityImportRequest, OrganizationPortabilityImportResult, OrganizationPortabilityImportTarget, OrganizationPortabilityInclude, OrganizationPortabilityIssueAutomationManifestEntry, OrganizationPortabilityIssueAutomationTriggerManifestEntry, OrganizationPortabilityIssueManifestEntry, OrganizationPortabilityManifest, OrganizationPortabilityOrganizationManifestEntry, OrganizationPortabilityPreviewAgentPlan, OrganizationPortabilityPreviewIssuePlan, OrganizationPortabilityPreviewProjectPlan, OrganizationPortabilityPreviewRequest, OrganizationPortabilityPreviewResult, OrganizationPortabilityProjectManifestEntry, OrganizationPortabilityProjectWorkspaceManifestEntry, OrganizationPortabilitySidebarOrder, OrganizationPortabilitySkillManifestEntry, OrganizationPortabilitySource, OrganizationResource, OrganizationSecret, OrganizationSkill, OrganizationSkillCompatibility, OrganizationSkillCreateRequest, OrganizationSkillDetail, OrganizationSkillFileDetail, OrganizationSkillFileInventoryEntry, OrganizationSkillFileUpdateRequest, OrganizationSkillImportRequest, OrganizationSkillImportResult, OrganizationSkillListItem, OrganizationSkillLocalScanConflict, OrganizationSkillLocalScanRequest, OrganizationSkillLocalScanResult, OrganizationSkillLocalScanSkipped, OrganizationSkillProjectScanConflict, OrganizationSkillProjectScanRequest, OrganizationSkillProjectScanResult, OrganizationSkillProjectScanSkipped, OrganizationSkillSourceBadge, OrganizationSkillSourceType, OrganizationSkillTrustLevel, OrganizationSkillUpdateStatus, OrganizationSkillUsageAgent, OrganizationSkillWorkspaceEditPath, OrganizationWorkspace, OrganizationWorkspaceDirectoryCreateRequest, OrganizationWorkspaceEntryCopyRequest, OrganizationWorkspaceEntryMoveRequest, OrganizationWorkspaceEntryMutationResult, OrganizationWorkspaceEntryRenameRequest, OrganizationWorkspaceFileCreateRequest, OrganizationWorkspaceFileDetail, OrganizationWorkspaceFileEntry, OrganizationWorkspaceFileList, OrganizationWorkspaceFileUpdateRequest, OrganizationWorkspaceRootSource, OrganizationWorkspaceWebPreviewSession, OrganizationWorkspaceWebPreviewSessionRequest, PaperclipPluginManifestV1, PluginConfig, PluginEntityQuery, PluginEntityRecord, PluginJobDeclaration, PluginJobRecord, PluginJobRunRecord, PluginLauncherActionDeclaration, PluginLauncherDeclaration, PluginLauncherRenderContextSnapshot, PluginLauncherRenderDeclaration, PluginMinimumHostVersion, PluginRecord, PluginStateRecord, PluginToolDeclaration, PluginUiDeclaration, PluginUiSlotDeclaration, PluginWebhookDeclaration, PluginWebhookDeliveryRecord, PrincipalPermissionGrant, Project, ProjectCodebase, ProjectCodebaseOrigin, ProjectCodebaseScope, ProjectExecutionWorkspaceDefaultMode, ProjectExecutionWorkspacePolicy, ProjectGoalRef, ProjectResourceAttachment, ProjectResourceAttachmentInput, ProjectRunWorkspaceDefaultMode, ProjectRunWorkspacePolicy, ProjectWorkspace, ProjectWorkspaceSourceType, ProjectWorkspaceVisibility, ProviderQuotaResult, QuotaWindow, RunEventCursorPage, RunInspectionHeader, RunSummary, RunSummaryIssue, RunSummaryPage, RunSummarySkillEvidence, RunSummaryTarget, RunSummaryUsage, RunWorkspace, RunWorkspaceMode, RunWorkspaceProviderType, RunWorkspaceStatus, RunWorkspaceStrategy, RunWorkspaceStrategyType, SecretProviderDescriptor, SidebarBadges, UpdateOrganizationResourceRequest, UpdateProjectResourceAttachmentRequest, UpsertOrganizationIntelligenceProfile, UserActivityLedgerInclude, UserActivityLedgerItem, UserActivityLedgerKind, UserActivityLedgerRelatedEntity, UserActivityLedgerResponse, UserActivityLedgerSource, WorkspaceBackupCreateRequest, WorkspaceBackupFileDetail, WorkspaceBackupFileList, WorkspaceBackupList, WorkspaceBackupRestoreRequest, WorkspaceBackupRestoreResult, WorkspaceBackupStatus, WorkspaceBackupSummary, WorkspaceBackupTriggerSource, WorkspaceOperation, WorkspaceOperationPhase, WorkspaceOperationStatus, WorkspaceRuntimeService, WorkspaceWebPreviewNetworkMode } from "./types/index.js";
|
|
16
|
+
export type { ActivityEvent, Agent, AgentAccessState, AgentBrowserToolSummary, AgentConfigRevision, AgentDetail, AgentEnvConfig, AgentInstructionsBundle, AgentInstructionsBundleMode, AgentInstructionsFileDetail, AgentInstructionsFileSummary, AgentIntegration, AgentIntegrationBindingToken, AgentIntegrationChatBinding, AgentIntegrationInboundAudit, AgentIntegrationOutboundMessage, AgentIntegrationSettings, AgentIntegrationSetupSession, AgentIntegrationSetupSessionStatus, AgentIntegrationSetupUrl, AgentIntegrationSummary, AgentIntegrationUserBinding, AgentKeyCreated, AgentPermissions, AgentRudderToolSummary, AgentRun, AgentRuntimeAvailability, AgentRuntimeAvailabilityStatus, AgentRuntimeEnvironmentCheck, AgentRuntimeEnvironmentCheckLevel, AgentRuntimeEnvironmentTestResult, AgentRuntimeEnvironmentTestStatus, AgentRuntimeState, AgentSkillAnalytics, AgentSkillAnalyticsDay, AgentSkillAnalyticsSkillTotal, AgentSkillEntry, AgentSkillOrigin, AgentSkillSnapshot, AgentSkillSourceClass, AgentSkillState, AgentSkillSyncMode, AgentSkillSyncRequest, AgentSkillTelemetryEvidence, AgentSkillTelemetryEvidenceCounts, AgentTaskSession, AgentWakeupRequest, Approval, ApprovalComment, AssetImage, Automation, AutomationDetail, AutomationExecutionIssueOrigin, AutomationListItem, AutomationRun, AutomationRunSummary, AutomationTrigger, AutomationTriggerSecretMaterial, BudgetIncident, BudgetIncidentResolutionInput, BudgetOverview, BudgetPolicy, BudgetPolicySummary, BudgetPolicyUpsertInput, CalendarEvent, CalendarEventLinkedAgent, CalendarEventLinkedIssue, CalendarEventListResponse, CalendarSource, ChatAskUserOption, ChatAskUserQuestion, ChatAskUserRequest, ChatAttachment, ChatContextLink, ChatControlAction, ChatControlActionKind, ChatControlDisposition, ChatConversation, ChatGeneration, ChatGenerationControlState, ChatGenerationEvent, ChatGenerationEventKind, ChatGenerationStatus, ChatGenerationTerminalOutboxEntry, ChatInlineAnnotation, ChatInlineAnnotationInput, ChatInlineAnnotationSurface, ChatInlineAnnotationTranscriptKind, ChatLinkedEntity, ChatMessage, ChatOperationProposalDecision, ChatOperationProposalDecisionAction, ChatOperationProposalDecisionStatus, ChatPrimaryIssueSummary, ChatProviderControlDisposition, ChatQueueClaimResponse, ChatQueueDeliveryIntent, ChatQueueRequestActor, ChatQueueSnapshot, ChatQueuedMessage, ChatQueuedMessagePayload, ChatQueuedMessageStatus, ChatRichReference, ChatRichReferenceDisplay, ChatRuntimeDescriptor, ChatSteerResponse, ChatSteerResult, ChatStreamAckEvent, ChatStreamAssistantDeltaEvent, ChatStreamAssistantStateEvent, ChatStreamErrorEvent, ChatStreamEvent, ChatStreamFinalEvent, ChatStreamQueuedEvent, ChatStreamTranscriptEntry, ChatStreamTranscriptEntryEvent, ChatStreamTranscriptTextEntry, ChatStreamTranscriptTodoItem, ChatStreamTranscriptTodoItemStatus, ChatTerminalOutboxStatus, ChatTranscriptGenerationProvenance, ChatTranscriptSummary, ChatWorkManifestItem, ChatWorkManifestResponse, ChatWorkManifestSubagentState, ChatWorkManifestSubagentStatus, ChatWorkManifestSubagentSummary, ChatWorkManifestSubagents, ChatWorkManifestTargetType, CostByAgent, CostByAgentModel, CostByBiller, CostByProject, CostByProviderModel, CostEvent, CostSummary, CostTrendGranularity, CostTrendPoint, CostWindowSpendRow, CreateOrganizationResourceRequest, CreateProjectInlineResourceInput, DashboardSummary, DocumentFormat, EnvBinding, ExecutionWorkspace, ExecutionWorkspaceMode, ExecutionWorkspaceProviderType, ExecutionWorkspaceStatus, ExecutionWorkspaceStrategy, ExecutionWorkspaceStrategyType, FeishuIntegrationSettings, FinanceByBiller, FinanceByKind, FinanceEvent, FinanceSummary, Goal, GoalDependencies, GoalDependencyPreview, GoogleCalendarConnectResponse, GoogleCalendarOAuthConfig, GoogleCalendarSyncResponse, HeartbeatRecoveryMode, HeartbeatRecoveryTrigger, HeartbeatRun, HeartbeatRunContextSnapshot, HeartbeatRunEvent, HeartbeatRunRecoveryContext, HeartbeatSessionReuseScope, HeartbeatSessionReuseSuppression, InstanceBrowserSettings, InstanceGeneralSettings, InstanceLocale, InstanceNotificationSettings, InstancePathPickerRequest, InstancePathPickerResult, InstancePathPickerSelectionType, InstanceSchedulerHeartbeatAgent, InstanceSettings, InstanceUserRoleGrant, Invite, Issue, IssueAssigneeAgentRuntimeOverrides, IssueAttachment, IssueComment, IssueCommitReport, IssueExecutionWorkspaceSettings, IssueFollow, IssueFollowEntry, IssueLabel, IssueLinkedApproval, IssueRunWorkspaceSettings, IssueSearchField, IssueSearchMatch, IssueWorkProduct, IssueWorkProductProvider, IssueWorkProductReviewState, IssueWorkProductStatus, IssueWorkProductType, JoinRequest, JsonSchema, LibraryDocument, LibraryDocumentIssueLink, LibraryDocumentRevision, LibraryDocumentSummary, LibraryEntry, LiveEvent, MessengerApprovalThreadItem, MessengerBudgetThreadItem, MessengerChatThreadDetail, MessengerCustomGroup, MessengerCustomGroupEntry, MessengerCustomGroupHydratedEntry, MessengerCustomGroupHydratedSavedViewEntry, MessengerCustomGroupHydratedThreadEntry, MessengerCustomGroupWithEntries, MessengerCustomGroupsResponse, MessengerDirectoryItem, MessengerEvent, MessengerFailedRunThreadItem, MessengerHeartbeatRunThreadItem, MessengerIssueThreadItem, MessengerJoinRequestThreadItem, MessengerRunOriginDescriptor, MessengerRunOriginSource, MessengerRunOriginSourceState, MessengerSavedView, MessengerSavedViewKeepResult, MessengerSavedViewPage, MessengerSavedViewPageInfo, MessengerSavedViewPlacement, MessengerSavedViewTarget, MessengerSavedViewTargetKind, MessengerSystemThreadItem, MessengerThreadAction, MessengerThreadDetail, MessengerThreadItem, MessengerThreadPageInfo, MessengerThreadSummary, MessengerThreadSummaryPage, MessengerThreadUserState, OperatorProfileSettings, Organization, OrganizationExportJob, OrganizationExportJobCreateResult, OrganizationExportJobProgress, OrganizationExportJobStage, OrganizationExportJobStatus, OrganizationIntelligenceProfile, OrganizationLegacyHeartbeatInstructionDeleteResult, OrganizationMembership, OrganizationPortabilityAgentManifestEntry, OrganizationPortabilityAgentRuntimeOverride, OrganizationPortabilityAgentSelection, OrganizationPortabilityCollisionStrategy, OrganizationPortabilityEnvInput, OrganizationPortabilityExportPreviewFile, OrganizationPortabilityExportPreviewResult, OrganizationPortabilityExportRequest, OrganizationPortabilityExportResult, OrganizationPortabilityFileEntry, OrganizationPortabilityImportRequest, OrganizationPortabilityImportResult, OrganizationPortabilityImportTarget, OrganizationPortabilityInclude, OrganizationPortabilityIssueAutomationManifestEntry, OrganizationPortabilityIssueAutomationTriggerManifestEntry, OrganizationPortabilityIssueManifestEntry, OrganizationPortabilityManifest, OrganizationPortabilityOrganizationManifestEntry, OrganizationPortabilityPreviewAgentPlan, OrganizationPortabilityPreviewIssuePlan, OrganizationPortabilityPreviewProjectPlan, OrganizationPortabilityPreviewRequest, OrganizationPortabilityPreviewResult, OrganizationPortabilityProjectManifestEntry, OrganizationPortabilityProjectWorkspaceManifestEntry, OrganizationPortabilitySidebarOrder, OrganizationPortabilitySkillManifestEntry, OrganizationPortabilitySource, OrganizationResource, OrganizationSecret, OrganizationSkill, OrganizationSkillCompatibility, OrganizationSkillCreateRequest, OrganizationSkillDetail, OrganizationSkillFileDetail, OrganizationSkillFileInventoryEntry, OrganizationSkillFileUpdateRequest, OrganizationSkillImportRequest, OrganizationSkillImportResult, OrganizationSkillListItem, OrganizationSkillLocalScanConflict, OrganizationSkillLocalScanRequest, OrganizationSkillLocalScanResult, OrganizationSkillLocalScanSkipped, OrganizationSkillProjectScanConflict, OrganizationSkillProjectScanRequest, OrganizationSkillProjectScanResult, OrganizationSkillProjectScanSkipped, OrganizationSkillSourceBadge, OrganizationSkillSourceType, OrganizationSkillTrustLevel, OrganizationSkillUpdateStatus, OrganizationSkillUsageAgent, OrganizationSkillWorkspaceEditPath, OrganizationWorkspace, OrganizationWorkspaceDirectoryCreateRequest, OrganizationWorkspaceEntryCopyRequest, OrganizationWorkspaceEntryMoveRequest, OrganizationWorkspaceEntryMutationResult, OrganizationWorkspaceEntryRenameRequest, OrganizationWorkspaceFileCreateRequest, OrganizationWorkspaceFileDetail, OrganizationWorkspaceFileEntry, OrganizationWorkspaceFileList, OrganizationWorkspaceFileUpdateRequest, OrganizationWorkspaceRootSource, OrganizationWorkspaceWebPreviewSession, OrganizationWorkspaceWebPreviewSessionRequest, PaperclipPluginManifestV1, PluginConfig, PluginEntityQuery, PluginEntityRecord, PluginJobDeclaration, PluginJobRecord, PluginJobRunRecord, PluginLauncherActionDeclaration, PluginLauncherDeclaration, PluginLauncherRenderContextSnapshot, PluginLauncherRenderDeclaration, PluginMinimumHostVersion, PluginRecord, PluginStateRecord, PluginToolDeclaration, PluginUiDeclaration, PluginUiSlotDeclaration, PluginWebhookDeclaration, PluginWebhookDeliveryRecord, PrincipalPermissionGrant, Project, ProjectCodebase, ProjectCodebaseOrigin, ProjectCodebaseScope, ProjectExecutionWorkspaceDefaultMode, ProjectExecutionWorkspacePolicy, ProjectGoalRef, ProjectResourceAttachment, ProjectResourceAttachmentInput, ProjectRunWorkspaceDefaultMode, ProjectRunWorkspacePolicy, ProjectWorkspace, ProjectWorkspaceSourceType, ProjectWorkspaceVisibility, ProviderQuotaResult, QuotaWindow, RunEventCursorPage, RunInspectionHeader, RunSummary, RunSummaryIssue, RunSummaryPage, RunSummarySkillEvidence, RunSummaryTarget, RunSummaryUsage, RunWorkspace, RunWorkspaceMode, RunWorkspaceProviderType, RunWorkspaceStatus, RunWorkspaceStrategy, RunWorkspaceStrategyType, SecretProviderDescriptor, SidebarBadges, UpdateOrganizationResourceRequest, UpdateProjectResourceAttachmentRequest, UpsertOrganizationIntelligenceProfile, UserActivityLedgerInclude, UserActivityLedgerItem, UserActivityLedgerKind, UserActivityLedgerRelatedEntity, UserActivityLedgerResponse, UserActivityLedgerSource, WorkspaceBackupCreateRequest, WorkspaceBackupFileDetail, WorkspaceBackupFileList, WorkspaceBackupList, WorkspaceBackupRestoreRequest, WorkspaceBackupRestoreResult, WorkspaceBackupStatus, WorkspaceBackupSummary, WorkspaceBackupTriggerSource, WorkspaceOperation, WorkspaceOperationPhase, WorkspaceOperationStatus, WorkspaceRuntimeService, WorkspaceWebPreviewNetworkMode } from "./types/index.js";
|
|
16
17
|
export { createMessengerSavedViewSchema, keepMessengerSavedViewSchema, listMessengerSavedViewsQuerySchema, messengerSavedViewIdSchema, messengerSavedViewTargetSchema, reorderMessengerSavedViewsSchema, updateMessengerSavedViewSchema, type CreateMessengerSavedView, type KeepMessengerSavedView, type ListMessengerSavedViewsQuery, type MessengerSavedViewTargetInput, type ReorderMessengerSavedViews, type UpdateMessengerSavedView } from "./validators/messenger.js";
|
|
17
18
|
export { DEFAULT_INSTANCE_BROWSER_SETTINGS, KEYBOARD_SHORTCUT_ACTION_IDS, OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH, instanceBrowserSettingsSchema, instanceGeneralSettingsSchema, instanceLocaleSchema, instanceNotificationSettingsSchema, instancePathPickerRequestSchema, instancePathPickerResultSchema, instancePathPickerSelectionTypeSchema, keyboardShortcutActionIdSchema, keyboardShortcutBindingSchema, keyboardShortcutPreferenceSchema, keyboardShortcutSettingsSchema, operatorProfileSettingsSchema, patchInstanceBrowserSettingsSchema, patchInstanceGeneralSettingsSchema, patchInstanceNotificationSettingsSchema, patchKeyboardShortcutSettingsSchema, patchOperatorProfileSettingsSchema, type KeyboardShortcutActionId, type KeyboardShortcutBinding, type KeyboardShortcutPreference, type KeyboardShortcutSettings, type PatchInstanceBrowserSettings, type PatchInstanceGeneralSettings, type PatchInstanceNotificationSettings, type PatchKeyboardShortcutSettings, type PatchOperatorProfileSettings } from "./validators/index.js";
|
|
18
19
|
export { MAX_CHAT_INLINE_ANNOTATIONS, MAX_CHAT_INLINE_ANNOTATION_ATTACHMENTS, MAX_CHAT_INLINE_ANNOTATION_COMMENT_LENGTH, MAX_CHAT_INLINE_ANNOTATION_CONTEXT_LENGTH, MAX_CHAT_INLINE_ANNOTATION_SELECTED_TEXT_LENGTH, MAX_CHAT_INLINE_ANNOTATION_TOTAL_TEXT_LENGTH, acceptInviteSchema, addApprovalCommentSchema, addChatMessageSchema, addIssueCommentSchema, agentIconSchema, agentInstructionsBundleModeSchema, agentIntegrationChatTypeSchema, agentIntegrationDropReasonSchema, agentIntegrationOutboundStatusSchema, agentIntegrationProviderRegionSchema, agentIntegrationProviderSchema, agentIntegrationSettingsSchema, agentIntegrationStatusSchema, agentIntegrationTransportSchema, agentPermissionsSchema, agentSkillEnableSchema, agentSkillEntrySchema, agentSkillSnapshotSchema, agentSkillStateSchema, agentSkillSyncModeSchema, agentSkillSyncSchema, assignMessengerCustomGroupEntrySchema, boardCliAuthAccessLevelSchema, calendarEventListQuerySchema, cancelChatQueuedMessageSchema, chatAskUserOptionSchema, chatAskUserQuestionSchema, chatAskUserRequestFromStructuredPayload, chatAskUserRequestSchema, chatAutomationCreateFromStructuredPayload, chatAutomationCreateSchema, chatContextEntityTypeSchema, chatConversationStatusSchema, chatDraftSchema, chatInlineAnnotationInputSchema, chatInlineAnnotationSchema, chatInlineAnnotationsFromStructuredPayload, chatInlineAnnotationsInputSchema, chatInlineAnnotationsSchema, chatIssueCreationModeSchema, chatIssueProposalFromStructuredPayload, chatMessageKindSchema, chatMessageRoleSchema, chatOperationProposalSchema, chatRichReferenceSchema, chatRichReferencesFromStructuredPayload, chatRichReferencesSchema, checkoutIssueSchema, claimJoinRequestApiKeySchema, connectAgentIntegrationSchema, convertChatToIssueSchema, copyOrganizationWorkspaceEntrySchema, createAgentHireSchema, createAgentIntegrationSchema, createAgentKeySchema, createAgentSchema, createApprovalSchema, createAssetImageMetadataSchema, createAutomationSchema, createAutomationTriggerSchema, createCalendarEventSchema, createCalendarSourceSchema, createChatAttachmentMetadataSchema, createChatContextLinkSchema, createChatConversationSchema, createChatFirstTurnSchema, createChatQueuedMessageSchema, createCliAuthChallengeSchema, createCompanyInviteSchema, createCostEventSchema, createFinanceEventSchema, createGoalSchema, createIssueAttachmentMetadataSchema, createIssueLabelSchema, createIssueSchema, createIssueWorkProductSchema, createIssueWorkspaceAttachmentSchema, createLibraryDocumentSchema, createMessengerCustomGroupSchema, createMessengerCustomGroupWithEntriesSchema, createOpenClawInvitePromptSchema, createOrganizationResourceSchema, createOrganizationSchema, createOrganizationWorkspaceDirectorySchema, createOrganizationWorkspaceFileSchema, createOrganizationWorkspaceWebPreviewSessionSchema, createProjectInlineResourceSchema, createProjectSchema, createSecretSchema, createSideChatSchema, createWorkspaceBackupSchema, diceBearNotionistsAgentIconSchema, envBindingPlainSchema, envBindingSchema, envBindingSecretRefSchema, envConfigSchema, executionWorkspaceStatusSchema, feishuIntegrationSettingsSchema, forkChatConversationSchema, googleCalendarSyncSchema, installPluginSchema, issueDocumentFormatSchema, issueExecutionWorkspaceSettingsSchema, issueRunWorkspaceSettingsSchema, issueWorkProductReviewStateSchema, issueWorkProductStatusSchema, issueWorkProductTypeSchema, jsonSchemaSchema, linkIssueApprovalSchema, listJoinRequestsQuerySchema, listPluginStateSchema, mockFeishuInboundEventSchema, moveOrganizationWorkspaceEntrySchema, normalizeChatInlineAnnotations, oreoAgentIconSchema, organizationIntelligenceProfileConfigSchema, organizationIntelligenceProfilePurposeSchema, organizationIntelligenceProfileStatusSchema, organizationIssueKeySchema, organizationPortabilityExportSchema, organizationPortabilityImportSchema, organizationPortabilityPreviewSchema, organizationResourceKindSchema, organizationResourceSourceTypeSchema, organizationSkillCompatibilitySchema, organizationSkillCreateSchema, organizationSkillDetailSchema, organizationSkillFileDetailSchema, organizationSkillFileInventoryEntrySchema, organizationSkillFileUpdateSchema, organizationSkillImportSchema, organizationSkillListItemSchema, organizationSkillLocalScanConflictSchema, organizationSkillLocalScanRequestSchema, organizationSkillLocalScanResultSchema, organizationSkillLocalScanSkippedSchema, organizationSkillProjectScanConflictSchema, organizationSkillProjectScanRequestSchema, organizationSkillProjectScanResultSchema, organizationSkillProjectScanSkippedSchema, organizationSkillSchema, organizationSkillSourceBadgeSchema, organizationSkillSourceTypeSchema, organizationSkillTrustLevelSchema, organizationSkillUpdateStatusSchema, organizationSkillUsageAgentSchema, patchPluginConfigSchema, pluginJobDeclarationSchema, pluginLauncherActionDeclarationSchema, pluginLauncherDeclarationSchema, pluginLauncherRenderDeclarationSchema, pluginManifestV1Schema, pluginStateScopeKeySchema, pluginToolDeclarationSchema, pluginUiSlotDeclarationSchema, pluginWebhookDeclarationSchema, portabilityAgentManifestEntrySchema, portabilityAgentSelectionSchema, portabilityCollisionStrategySchema, portabilityEnvInputSchema, portabilityIncludeSchema, portabilityManifestSchema, portabilityOrganizationManifestEntrySchema, portabilitySidebarOrderSchema, portabilitySourceSchema, portabilityTargetSchema, projectExecutionWorkspacePolicySchema, projectResourceAttachmentInputSchema, projectResourceAttachmentRoleSchema, renameOrganizationWorkspaceEntrySchema, reorderIssueSchema, reorderMessengerCustomGroupEntriesSchema, reorderMessengerCustomGroupsSchema, reportIssueCommitSchema, requestApprovalRevisionSchema, resetAgentSessionSchema, resolveApprovalSchema, resolveBudgetIncidentSchema, resolveChatOperationProposalSchema, resolveCliAuthChallengeSchema, restoreLibraryDocumentRevisionSchema, restoreWorkspaceBackupSchema, resubmitApprovalSchema, rotateAutomationTriggerSecretSchema, rotateSecretSchema, runAutomationSchema, runWorkspaceStatusSchema, sanitizeChatStructuredPayload, setChatProjectContextSchema, setPluginStateSchema, steerChatQueuedMessageSchema, testAgentRuntimeEnvironmentSchema, uninstallPluginSchema, updateAgentInstructionsBundleSchema, updateAgentInstructionsPathSchema, updateAgentIntegrationSettingsSchema, updateAgentPermissionsSchema, updateAgentSchema, updateAutomationSchema, updateAutomationTriggerSchema, updateBudgetSchema, updateCalendarEventSchema, updateCalendarSourceSchema, updateChatConversationSchema, updateChatConversationUserStateSchema, updateChatQueuedMessageSchema, updateExecutionWorkspaceSchema, updateGoalSchema, updateGoogleCalendarOAuthConfigSchema, updateIssueCommentSchema, updateIssueLabelSchema, updateIssueSchema, updateIssueWorkProductSchema, updateLibraryDocumentSchema, updateMemberPermissionsSchema, updateMessengerCustomGroupSchema, updateMessengerThreadUserStateSchema, updateOrganizationBrandingSchema, updateOrganizationResourceSchema, updateOrganizationSchema, updateOrganizationWorkspaceFileSchema, updatePluginStatusSchema, updateProjectResourceAttachmentSchema, updateProjectSchema, updateRunWorkspaceSchema, updateSecretSchema, updateUserCompanyAccessSchema, uploadedAgentIconSchema, upsertAgentInstructionsFileSchema, upsertBudgetPolicySchema, upsertOrganizationIntelligenceProfileSchema, upsertPluginConfigSchema, wakeAgentSchema, workspaceBackupTriggerSourceSchema, workspaceWebPreviewNetworkModeSchema, type AcceptInvite, type AddApprovalComment, type AddChatMessage, type AddIssueComment, type AgentSkillEnable, type AgentSkillSync, type AssignMessengerCustomGroupEntry, type BoardCliAuthAccessLevel, type CalendarEventListQuery, type CancelChatQueuedMessage, type ChatAutomationCreate, type ChatDraft, type ChatOperationProposal, type ChatQueuedMessagePayloadInput, type CheckoutIssue, type ClaimJoinRequestApiKey, type ConnectAgentIntegration, type ConvertChatToIssue, type CopyOrganizationWorkspaceEntry, type CreateAgent, type CreateAgentHire, type CreateAgentIntegration, type CreateAgentKey, type CreateApproval, type CreateAssetImageMetadata, type CreateAutomation, type CreateAutomationTrigger, type CreateCalendarEvent, type CreateCalendarSource, type CreateChatAttachmentMetadata, type CreateChatContextLink, type CreateChatConversation, type CreateChatFirstTurn, type CreateChatQueuedMessage, type CreateCliAuthChallenge, type CreateCompanyInvite, type CreateCostEvent, type CreateFinanceEvent, type CreateGoal, type CreateIssue, type CreateIssueAttachmentMetadata, type CreateIssueLabel, type CreateIssueWorkProduct, type CreateIssueWorkspaceAttachment, type CreateLibraryDocument, type CreateMessengerCustomGroup, type CreateMessengerCustomGroupWithEntries, type CreateOpenClawInvitePrompt, type CreateOrganization, type CreateOrganizationResource, type CreateOrganizationWorkspaceDirectory, type CreateOrganizationWorkspaceFile, type CreateProject, type CreateProjectInlineResource, type CreateSecret, type CreateSideChat, type CreateWorkspaceBackup, type ForkChatConversation, type GoogleCalendarSync, type InstallPlugin, type LinkIssueApproval, type ListJoinRequestsQuery, type ListPluginState, type MockFeishuInboundEvent, type MoveOrganizationWorkspaceEntry, type OrganizationIntelligenceProfilePurposeInput, type OrganizationPortabilityExport, type OrganizationPortabilityImport, type OrganizationPortabilityPreview, type PatchPluginConfig, type PluginJobDeclarationInput, type PluginLauncherActionDeclarationInput, type PluginLauncherDeclarationInput, type PluginLauncherRenderDeclarationInput, type PluginManifestV1Input, type PluginStateScopeKey, type PluginToolDeclarationInput, type PluginUiSlotDeclarationInput, type PluginWebhookDeclarationInput, type ProjectResourceAttachmentInputPayload, type RenameOrganizationWorkspaceEntry, type ReorderIssue, type ReorderMessengerCustomGroupEntries, type ReorderMessengerCustomGroups, type ReportIssueCommit, type RequestApprovalRevision, type ResetAgentSession, type ResolveApproval, type ResolveBudgetIncident, type ResolveChatOperationProposal, type ResolveCliAuthChallenge, type RestoreLibraryDocumentRevision, type RestoreWorkspaceBackup, type ResubmitApproval, type RotateAutomationTriggerSecret, type RotateSecret, type RunAutomation, type SetChatProjectContext, type SetPluginState, type SteerChatQueuedMessage, type TestAgentRuntimeEnvironment, type UninstallPlugin, type UpdateAgent, type UpdateAgentInstructionsBundle, type UpdateAgentInstructionsPath, type UpdateAgentIntegrationSettings, type UpdateAgentPermissions, type UpdateAutomation, type UpdateAutomationTrigger, type UpdateBudget, type UpdateCalendarEvent, type UpdateCalendarSource, type UpdateChatConversation, type UpdateChatConversationUserState, type UpdateChatQueuedMessage, type UpdateExecutionWorkspace, type UpdateGoal, type UpdateGoogleCalendarOAuthConfig, type UpdateIssue, type UpdateIssueComment, type UpdateIssueLabel, type UpdateIssueWorkProduct, type UpdateLibraryDocument, type UpdateMemberPermissions, type UpdateMessengerCustomGroup, type UpdateMessengerThreadUserState, type UpdateOrganization, type UpdateOrganizationBranding, type UpdateOrganizationResource, type UpdateOrganizationWorkspaceFile, type UpdatePluginStatus, type UpdateProject, type UpdateProjectResourceAttachment, type UpdateRunWorkspace, type UpdateSecret, type UpdateUserCompanyAccess, type UpsertAgentInstructionsFile, type UpsertBudgetPolicy, type UpsertOrganizationIntelligenceProfileInput, type UpsertPluginConfig, type WakeAgent } from "./validators/index.js";
|