@rudderhq/shared 0.3.6-canary.3 → 0.3.6-canary.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-run.d.ts +4 -0
- package/dist/agent-run.d.ts.map +1 -0
- package/dist/agent-run.js +90 -0
- package/dist/agent-run.js.map +1 -0
- package/dist/agent-run.test.d.ts +2 -0
- package/dist/agent-run.test.d.ts.map +1 -0
- package/dist/agent-run.test.js +111 -0
- package/dist/agent-run.test.js.map +1 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -0
- package/dist/api.js.map +1 -1
- package/dist/config-schema.d.ts +37 -37
- package/dist/constants.d.ts +13 -9
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +26 -10
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/project-mentions.d.ts.map +1 -1
- package/dist/project-mentions.js +11 -5
- package/dist/project-mentions.js.map +1 -1
- package/dist/project-mentions.test.js +12 -12
- package/dist/project-mentions.test.js.map +1 -1
- package/dist/short-refs.d.ts +10 -0
- package/dist/short-refs.d.ts.map +1 -0
- package/dist/short-refs.js +34 -0
- package/dist/short-refs.js.map +1 -0
- package/dist/short-refs.test.d.ts +2 -0
- package/dist/short-refs.test.d.ts.map +1 -0
- package/dist/short-refs.test.js +23 -0
- package/dist/short-refs.test.js.map +1 -0
- package/dist/types/agent-integration.d.ts +22 -0
- package/dist/types/agent-integration.d.ts.map +1 -1
- package/dist/types/agent.d.ts +3 -0
- package/dist/types/agent.d.ts.map +1 -1
- package/dist/types/chat.d.ts +56 -1
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/heartbeat.d.ts +24 -1
- package/dist/types/heartbeat.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/issue.d.ts +1 -0
- package/dist/types/issue.d.ts.map +1 -1
- package/dist/types/messenger.d.ts +1 -0
- package/dist/types/messenger.d.ts.map +1 -1
- package/dist/types/plugin.d.ts +8 -8
- package/dist/types/workspace-backup.d.ts +6 -0
- package/dist/types/workspace-backup.d.ts.map +1 -1
- package/dist/validators/adapter-skills.d.ts +2 -2
- package/dist/validators/agent-integration.d.ts +60 -3
- package/dist/validators/agent-integration.d.ts.map +1 -1
- package/dist/validators/agent-integration.js +7 -0
- package/dist/validators/agent-integration.js.map +1 -1
- package/dist/validators/agent.d.ts +12 -4
- package/dist/validators/agent.d.ts.map +1 -1
- package/dist/validators/agent.js +8 -0
- package/dist/validators/agent.js.map +1 -1
- package/dist/validators/automation.d.ts +17 -9
- package/dist/validators/automation.d.ts.map +1 -1
- package/dist/validators/automation.js +8 -0
- package/dist/validators/automation.js.map +1 -1
- package/dist/validators/calendar.d.ts +20 -20
- package/dist/validators/chat.d.ts +223 -46
- package/dist/validators/chat.d.ts.map +1 -1
- package/dist/validators/chat.js +31 -0
- package/dist/validators/chat.js.map +1 -1
- package/dist/validators/cost.d.ts +8 -8
- package/dist/validators/finance.d.ts +12 -12
- package/dist/validators/index.d.ts +2 -2
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +2 -2
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/instance.d.ts +2 -2
- package/dist/validators/issue.d.ts +8 -0
- package/dist/validators/issue.d.ts.map +1 -1
- package/dist/validators/issue.js +8 -0
- package/dist/validators/issue.js.map +1 -1
- package/dist/validators/organization-portability.d.ts +76 -76
- package/dist/validators/organization-skill.d.ts +74 -74
- package/dist/validators/plugin.d.ts +67 -67
- package/dist/validators/plugin.js +12 -12
- package/dist/validators/plugin.js.map +1 -1
- package/dist/validators/secret.d.ts +14 -14
- package/dist/validators/work-product.d.ts +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-run.d.ts","sourceRoot":"","sources":["../src/agent-run.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AA8DnE,wBAAgB,UAAU,CAAC,GAAG,EAAE,YAAY,GAAG,QAAQ,CAoBtD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,QAAQ,EAAE,CAE5D"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
function asRecord(value) {
|
|
2
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
3
|
+
}
|
|
4
|
+
function stringValue(value) {
|
|
5
|
+
return typeof value === "string" && value.trim().length > 0 ? value : null;
|
|
6
|
+
}
|
|
7
|
+
function isAgentRunScene(value) {
|
|
8
|
+
return value === "issue"
|
|
9
|
+
|| value === "chat"
|
|
10
|
+
|| value === "automation"
|
|
11
|
+
|| value === "review"
|
|
12
|
+
|| value === "manual"
|
|
13
|
+
|| value === "heartbeat";
|
|
14
|
+
}
|
|
15
|
+
function isAgentRunTargetType(value) {
|
|
16
|
+
return value === "issue"
|
|
17
|
+
|| value === "chat_conversation"
|
|
18
|
+
|| value === "chat_message"
|
|
19
|
+
|| value === "automation_run"
|
|
20
|
+
|| value === "wakeup_request"
|
|
21
|
+
|| value === "manual";
|
|
22
|
+
}
|
|
23
|
+
function resolveScene(run, context) {
|
|
24
|
+
if (isAgentRunScene(context.scene))
|
|
25
|
+
return context.scene;
|
|
26
|
+
if (run.invocationSource === "chat" || run.chatConversationId || stringValue(context.conversationId))
|
|
27
|
+
return "chat";
|
|
28
|
+
if (run.invocationSource === "review")
|
|
29
|
+
return "review";
|
|
30
|
+
if (run.invocationSource === "automation" || stringValue(context.automationRunId))
|
|
31
|
+
return "automation";
|
|
32
|
+
if (run.invocationSource === "timer")
|
|
33
|
+
return "heartbeat";
|
|
34
|
+
if (stringValue(context.issueId))
|
|
35
|
+
return "issue";
|
|
36
|
+
return "manual";
|
|
37
|
+
}
|
|
38
|
+
function resolveTargetType(run, context) {
|
|
39
|
+
if (isAgentRunTargetType(context.targetType))
|
|
40
|
+
return context.targetType;
|
|
41
|
+
if (run.chatConversationId || stringValue(context.conversationId))
|
|
42
|
+
return "chat_conversation";
|
|
43
|
+
if (stringValue(context.automationRunId))
|
|
44
|
+
return "automation_run";
|
|
45
|
+
if (stringValue(context.issueId))
|
|
46
|
+
return "issue";
|
|
47
|
+
if (run.wakeupRequestId || stringValue(context.wakeupRequestId))
|
|
48
|
+
return "wakeup_request";
|
|
49
|
+
return "manual";
|
|
50
|
+
}
|
|
51
|
+
function resolveTargetId(run, context, targetType) {
|
|
52
|
+
const explicit = stringValue(context.targetId);
|
|
53
|
+
if (explicit)
|
|
54
|
+
return explicit;
|
|
55
|
+
if (targetType === "chat_conversation")
|
|
56
|
+
return run.chatConversationId ?? stringValue(context.conversationId);
|
|
57
|
+
if (targetType === "chat_message")
|
|
58
|
+
return stringValue(context.messageId) ?? stringValue(context.assistantMessageId) ?? stringValue(context.userMessageId);
|
|
59
|
+
if (targetType === "automation_run")
|
|
60
|
+
return stringValue(context.automationRunId);
|
|
61
|
+
if (targetType === "issue")
|
|
62
|
+
return stringValue(context.issueId);
|
|
63
|
+
if (targetType === "wakeup_request")
|
|
64
|
+
return run.wakeupRequestId ?? stringValue(context.wakeupRequestId);
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
export function toAgentRun(run) {
|
|
68
|
+
const context = asRecord(run.contextSnapshot);
|
|
69
|
+
const targetType = resolveTargetType(run, context);
|
|
70
|
+
const conversationId = run.chatConversationId ?? stringValue(context.conversationId);
|
|
71
|
+
const messageId = stringValue(context.messageId)
|
|
72
|
+
?? stringValue(context.assistantMessageId)
|
|
73
|
+
?? stringValue(context.userMessageId);
|
|
74
|
+
return {
|
|
75
|
+
...run,
|
|
76
|
+
scene: resolveScene(run, context),
|
|
77
|
+
triggerKind: stringValue(context.triggerKind) ?? run.triggerDetail ?? run.invocationSource,
|
|
78
|
+
targetType,
|
|
79
|
+
targetId: resolveTargetId(run, context, targetType),
|
|
80
|
+
conversationId,
|
|
81
|
+
messageId,
|
|
82
|
+
automationRunId: stringValue(context.automationRunId),
|
|
83
|
+
automationId: stringValue(context.automationId),
|
|
84
|
+
wakeupRequestId: run.wakeupRequestId ?? stringValue(context.wakeupRequestId),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export function toAgentRuns(runs) {
|
|
88
|
+
return runs.map(toAgentRun);
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=agent-run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-run.js","sourceRoot":"","sources":["../src/agent-run.ts"],"names":[],"mappings":"AAMA,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAgC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7G,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,CAAC;AAED,SAAS,eAAe,CAAC,KAAc;IACrC,OAAO,KAAK,KAAK,OAAO;WACnB,KAAK,KAAK,MAAM;WAChB,KAAK,KAAK,YAAY;WACtB,KAAK,KAAK,QAAQ;WAClB,KAAK,KAAK,QAAQ;WAClB,KAAK,KAAK,WAAW,CAAC;AAC7B,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAc;IAC1C,OAAO,KAAK,KAAK,OAAO;WACnB,KAAK,KAAK,mBAAmB;WAC7B,KAAK,KAAK,cAAc;WACxB,KAAK,KAAK,gBAAgB;WAC1B,KAAK,KAAK,gBAAgB;WAC1B,KAAK,KAAK,QAAQ,CAA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AC,OAAO,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,aAAa,IAAI,GAAG,CAAC,gBAAgB;QAC1F,UAAU;QACV,QAAQ,EAAE,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC;QACnD,cAAc;QACd,SAAS;QACT,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC;QACrD,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC;QAC/C,eAAe,EAAE,GAAG,CAAC,eAAe,IAAI,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC;KAC7E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAoB;IAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-run.test.d.ts","sourceRoot":"","sources":["../src/agent-run.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { toAgentRun } from "./index.js";
|
|
3
|
+
function heartbeatRun(overrides) {
|
|
4
|
+
return {
|
|
5
|
+
id: "run-1",
|
|
6
|
+
orgId: "org-1",
|
|
7
|
+
agentId: "agent-1",
|
|
8
|
+
invocationSource: "on_demand",
|
|
9
|
+
triggerDetail: null,
|
|
10
|
+
status: "running",
|
|
11
|
+
startedAt: null,
|
|
12
|
+
finishedAt: null,
|
|
13
|
+
error: null,
|
|
14
|
+
wakeupRequestId: null,
|
|
15
|
+
exitCode: null,
|
|
16
|
+
signal: null,
|
|
17
|
+
usageJson: null,
|
|
18
|
+
resultJson: null,
|
|
19
|
+
sessionIdBefore: null,
|
|
20
|
+
sessionIdAfter: null,
|
|
21
|
+
logStore: null,
|
|
22
|
+
logRef: null,
|
|
23
|
+
logBytes: null,
|
|
24
|
+
logSha256: null,
|
|
25
|
+
logCompressed: false,
|
|
26
|
+
stdoutExcerpt: null,
|
|
27
|
+
stderrExcerpt: null,
|
|
28
|
+
errorCode: null,
|
|
29
|
+
externalRunId: null,
|
|
30
|
+
chatConversationId: null,
|
|
31
|
+
processPid: null,
|
|
32
|
+
processStartedAt: null,
|
|
33
|
+
retryOfRunId: null,
|
|
34
|
+
processLossRetryCount: 0,
|
|
35
|
+
contextSnapshot: null,
|
|
36
|
+
createdAt: new Date("2026-06-20T00:00:00.000Z"),
|
|
37
|
+
updatedAt: new Date("2026-06-20T00:00:00.000Z"),
|
|
38
|
+
...overrides,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
describe("toAgentRun", () => {
|
|
42
|
+
it("normalizes chat run scene and target from legacy heartbeat fields", () => {
|
|
43
|
+
const run = toAgentRun(heartbeatRun({
|
|
44
|
+
id: "chat-run",
|
|
45
|
+
invocationSource: "chat",
|
|
46
|
+
triggerDetail: "chat_assistant_reply_stream",
|
|
47
|
+
chatConversationId: "conversation-1",
|
|
48
|
+
contextSnapshot: {
|
|
49
|
+
assistantMessageId: "assistant-message-1",
|
|
50
|
+
},
|
|
51
|
+
}));
|
|
52
|
+
expect(run.scene).toBe("chat");
|
|
53
|
+
expect(run.triggerKind).toBe("chat_assistant_reply_stream");
|
|
54
|
+
expect(run.targetType).toBe("chat_conversation");
|
|
55
|
+
expect(run.targetId).toBe("conversation-1");
|
|
56
|
+
expect(run.conversationId).toBe("conversation-1");
|
|
57
|
+
expect(run.messageId).toBe("assistant-message-1");
|
|
58
|
+
});
|
|
59
|
+
it("honors explicit automation target metadata while preserving linked chat facts", () => {
|
|
60
|
+
const run = toAgentRun(heartbeatRun({
|
|
61
|
+
id: "automation-chat-run",
|
|
62
|
+
invocationSource: "chat",
|
|
63
|
+
triggerDetail: "chat_assistant_reply_stream",
|
|
64
|
+
chatConversationId: "conversation-1",
|
|
65
|
+
contextSnapshot: {
|
|
66
|
+
scene: "chat",
|
|
67
|
+
targetType: "automation_run",
|
|
68
|
+
targetId: "automation-run-1",
|
|
69
|
+
automationRunId: "automation-run-1",
|
|
70
|
+
automationId: "automation-1",
|
|
71
|
+
conversationId: "conversation-1",
|
|
72
|
+
userMessageId: "user-message-1",
|
|
73
|
+
assistantMessageId: "assistant-message-1",
|
|
74
|
+
},
|
|
75
|
+
}));
|
|
76
|
+
expect(run.scene).toBe("chat");
|
|
77
|
+
expect(run.targetType).toBe("automation_run");
|
|
78
|
+
expect(run.targetId).toBe("automation-run-1");
|
|
79
|
+
expect(run.automationRunId).toBe("automation-run-1");
|
|
80
|
+
expect(run.automationId).toBe("automation-1");
|
|
81
|
+
expect(run.conversationId).toBe("conversation-1");
|
|
82
|
+
expect(run.messageId).toBe("assistant-message-1");
|
|
83
|
+
});
|
|
84
|
+
it("falls back to issue target metadata for issue-backed runs", () => {
|
|
85
|
+
const run = toAgentRun(heartbeatRun({
|
|
86
|
+
invocationSource: "assignment",
|
|
87
|
+
triggerDetail: "manual",
|
|
88
|
+
contextSnapshot: {
|
|
89
|
+
issueId: "issue-1",
|
|
90
|
+
},
|
|
91
|
+
}));
|
|
92
|
+
expect(run.scene).toBe("issue");
|
|
93
|
+
expect(run.triggerKind).toBe("manual");
|
|
94
|
+
expect(run.targetType).toBe("issue");
|
|
95
|
+
expect(run.targetId).toBe("issue-1");
|
|
96
|
+
});
|
|
97
|
+
it("normalizes timer invocations to the heartbeat scene", () => {
|
|
98
|
+
const run = toAgentRun(heartbeatRun({
|
|
99
|
+
invocationSource: "timer",
|
|
100
|
+
triggerDetail: "system",
|
|
101
|
+
contextSnapshot: {
|
|
102
|
+
wakeReason: "heartbeat_timer",
|
|
103
|
+
},
|
|
104
|
+
}));
|
|
105
|
+
expect(run.scene).toBe("heartbeat");
|
|
106
|
+
expect(run.triggerKind).toBe("system");
|
|
107
|
+
expect(run.targetType).toBe("manual");
|
|
108
|
+
expect(run.targetId).toBeNull();
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
//# sourceMappingURL=agent-run.test.js.map
|
|
@@ -0,0 +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YAClC,gBAAgB,EAAE,OAAO;YACzB,aAAa,EAAE,QAAQ;YACvB,eAAe,EAAE;gBACf,UAAU,EAAE,iBAAiB;aAC9B;SACF,CAAC,CAAC,CAAC;QAEJ,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACpC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/api.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const API: {
|
|
|
13
13
|
readonly secrets: "/api/secrets";
|
|
14
14
|
readonly costs: "/api/costs";
|
|
15
15
|
readonly activity: "/api/activity";
|
|
16
|
+
readonly agentRuns: "/api/agent-runs";
|
|
16
17
|
readonly dashboard: "/api/dashboard";
|
|
17
18
|
readonly sidebarBadges: "/api/sidebar-badges";
|
|
18
19
|
readonly invites: "/api/invites";
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAS,CAAC;AAEjC,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAS,CAAC;AAEjC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;CAqBN,CAAC"}
|
package/dist/api.js
CHANGED
|
@@ -13,6 +13,7 @@ export const API = {
|
|
|
13
13
|
secrets: `${API_PREFIX}/secrets`,
|
|
14
14
|
costs: `${API_PREFIX}/costs`,
|
|
15
15
|
activity: `${API_PREFIX}/activity`,
|
|
16
|
+
agentRuns: `${API_PREFIX}/agent-runs`,
|
|
16
17
|
dashboard: `${API_PREFIX}/dashboard`,
|
|
17
18
|
sidebarBadges: `${API_PREFIX}/sidebar-badges`,
|
|
18
19
|
invites: `${API_PREFIX}/invites`,
|
package/dist/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AAEjC,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,MAAM,EAAE,GAAG,UAAU,SAAS;IAC9B,aAAa,EAAE,GAAG,UAAU,OAAO;IACnC,MAAM,EAAE,GAAG,UAAU,SAAS;IAC9B,QAAQ,EAAE,GAAG,UAAU,WAAW;IAClC,MAAM,EAAE,GAAG,UAAU,SAAS;IAC9B,KAAK,EAAE,GAAG,UAAU,QAAQ;IAC5B,SAAS,EAAE,GAAG,UAAU,YAAY;IACpC,QAAQ,EAAE,GAAG,UAAU,WAAW;IAClC,KAAK,EAAE,GAAG,UAAU,QAAQ;IAC5B,SAAS,EAAE,GAAG,UAAU,YAAY;IACpC,OAAO,EAAE,GAAG,UAAU,UAAU;IAChC,KAAK,EAAE,GAAG,UAAU,QAAQ;IAC5B,QAAQ,EAAE,GAAG,UAAU,WAAW;IAClC,SAAS,EAAE,GAAG,UAAU,YAAY;IACpC,aAAa,EAAE,GAAG,UAAU,iBAAiB;IAC7C,OAAO,EAAE,GAAG,UAAU,UAAU;IAChC,YAAY,EAAE,GAAG,UAAU,gBAAgB;IAC3C,OAAO,EAAE,GAAG,UAAU,UAAU;IAChC,KAAK,EAAE,GAAG,UAAU,QAAQ;CACpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AAEjC,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,MAAM,EAAE,GAAG,UAAU,SAAS;IAC9B,aAAa,EAAE,GAAG,UAAU,OAAO;IACnC,MAAM,EAAE,GAAG,UAAU,SAAS;IAC9B,QAAQ,EAAE,GAAG,UAAU,WAAW;IAClC,MAAM,EAAE,GAAG,UAAU,SAAS;IAC9B,KAAK,EAAE,GAAG,UAAU,QAAQ;IAC5B,SAAS,EAAE,GAAG,UAAU,YAAY;IACpC,QAAQ,EAAE,GAAG,UAAU,WAAW;IAClC,KAAK,EAAE,GAAG,UAAU,QAAQ;IAC5B,SAAS,EAAE,GAAG,UAAU,YAAY;IACpC,OAAO,EAAE,GAAG,UAAU,UAAU;IAChC,KAAK,EAAE,GAAG,UAAU,QAAQ;IAC5B,QAAQ,EAAE,GAAG,UAAU,WAAW;IAClC,SAAS,EAAE,GAAG,UAAU,aAAa;IACrC,SAAS,EAAE,GAAG,UAAU,YAAY;IACpC,aAAa,EAAE,GAAG,UAAU,iBAAiB;IAC7C,OAAO,EAAE,GAAG,UAAU,UAAU;IAChC,YAAY,EAAE,GAAG,UAAU,gBAAgB;IAC3C,OAAO,EAAE,GAAG,UAAU,UAAU;IAChC,KAAK,EAAE,GAAG,UAAU,QAAQ;CACpB,CAAC"}
|
package/dist/config-schema.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ export declare const configMetaSchema: z.ZodObject<{
|
|
|
5
5
|
updatedAt: z.ZodString;
|
|
6
6
|
source: z.ZodEnum<["onboard", "configure", "doctor"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
version: 1;
|
|
9
8
|
updatedAt: string;
|
|
9
|
+
version: 1;
|
|
10
10
|
source: "onboard" | "configure" | "doctor";
|
|
11
11
|
}, {
|
|
12
|
-
version: 1;
|
|
13
12
|
updatedAt: string;
|
|
13
|
+
version: 1;
|
|
14
14
|
source: "onboard" | "configure" | "doctor";
|
|
15
15
|
}>;
|
|
16
16
|
export declare const llmConfigSchema: z.ZodObject<{
|
|
@@ -150,16 +150,16 @@ export declare const storageS3ConfigSchema: z.ZodObject<{
|
|
|
150
150
|
prefix: z.ZodDefault<z.ZodString>;
|
|
151
151
|
forcePathStyle: z.ZodDefault<z.ZodBoolean>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
bucket: string;
|
|
154
153
|
region: string;
|
|
155
154
|
prefix: string;
|
|
155
|
+
bucket: string;
|
|
156
156
|
forcePathStyle: boolean;
|
|
157
157
|
endpoint?: string | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
bucket?: string | undefined;
|
|
160
159
|
region?: string | undefined;
|
|
161
|
-
endpoint?: string | undefined;
|
|
162
160
|
prefix?: string | undefined;
|
|
161
|
+
bucket?: string | undefined;
|
|
162
|
+
endpoint?: string | undefined;
|
|
163
163
|
forcePathStyle?: boolean | undefined;
|
|
164
164
|
}>;
|
|
165
165
|
export declare const storageConfigSchema: z.ZodObject<{
|
|
@@ -178,23 +178,23 @@ export declare const storageConfigSchema: z.ZodObject<{
|
|
|
178
178
|
prefix: z.ZodDefault<z.ZodString>;
|
|
179
179
|
forcePathStyle: z.ZodDefault<z.ZodBoolean>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
bucket: string;
|
|
182
181
|
region: string;
|
|
183
182
|
prefix: string;
|
|
183
|
+
bucket: string;
|
|
184
184
|
forcePathStyle: boolean;
|
|
185
185
|
endpoint?: string | undefined;
|
|
186
186
|
}, {
|
|
187
|
-
bucket?: string | undefined;
|
|
188
187
|
region?: string | undefined;
|
|
189
|
-
endpoint?: string | undefined;
|
|
190
188
|
prefix?: string | undefined;
|
|
189
|
+
bucket?: string | undefined;
|
|
190
|
+
endpoint?: string | undefined;
|
|
191
191
|
forcePathStyle?: boolean | undefined;
|
|
192
192
|
}>>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
194
|
s3: {
|
|
195
|
-
bucket: string;
|
|
196
195
|
region: string;
|
|
197
196
|
prefix: string;
|
|
197
|
+
bucket: string;
|
|
198
198
|
forcePathStyle: boolean;
|
|
199
199
|
endpoint?: string | undefined;
|
|
200
200
|
};
|
|
@@ -204,10 +204,10 @@ export declare const storageConfigSchema: z.ZodObject<{
|
|
|
204
204
|
};
|
|
205
205
|
}, {
|
|
206
206
|
s3?: {
|
|
207
|
-
bucket?: string | undefined;
|
|
208
207
|
region?: string | undefined;
|
|
209
|
-
endpoint?: string | undefined;
|
|
210
208
|
prefix?: string | undefined;
|
|
209
|
+
bucket?: string | undefined;
|
|
210
|
+
endpoint?: string | undefined;
|
|
211
211
|
forcePathStyle?: boolean | undefined;
|
|
212
212
|
} | undefined;
|
|
213
213
|
provider?: "local_disk" | "s3" | undefined;
|
|
@@ -255,14 +255,14 @@ export declare const langfuseConfigSchema: z.ZodObject<{
|
|
|
255
255
|
enabled: boolean;
|
|
256
256
|
baseUrl: string;
|
|
257
257
|
publicKey?: string | undefined;
|
|
258
|
-
secretKey?: string | undefined;
|
|
259
258
|
environment?: string | undefined;
|
|
259
|
+
secretKey?: string | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
enabled?: boolean | undefined;
|
|
262
262
|
baseUrl?: string | undefined;
|
|
263
263
|
publicKey?: string | undefined;
|
|
264
|
-
secretKey?: string | undefined;
|
|
265
264
|
environment?: string | undefined;
|
|
265
|
+
secretKey?: string | undefined;
|
|
266
266
|
}>;
|
|
267
267
|
export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
268
268
|
$meta: z.ZodObject<{
|
|
@@ -270,12 +270,12 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
270
270
|
updatedAt: z.ZodString;
|
|
271
271
|
source: z.ZodEnum<["onboard", "configure", "doctor"]>;
|
|
272
272
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
version: 1;
|
|
274
273
|
updatedAt: string;
|
|
274
|
+
version: 1;
|
|
275
275
|
source: "onboard" | "configure" | "doctor";
|
|
276
276
|
}, {
|
|
277
|
-
version: 1;
|
|
278
277
|
updatedAt: string;
|
|
278
|
+
version: 1;
|
|
279
279
|
source: "onboard" | "configure" | "doctor";
|
|
280
280
|
}>;
|
|
281
281
|
llm: z.ZodOptional<z.ZodObject<{
|
|
@@ -398,23 +398,23 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
398
398
|
prefix: z.ZodDefault<z.ZodString>;
|
|
399
399
|
forcePathStyle: z.ZodDefault<z.ZodBoolean>;
|
|
400
400
|
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
bucket: string;
|
|
402
401
|
region: string;
|
|
403
402
|
prefix: string;
|
|
403
|
+
bucket: string;
|
|
404
404
|
forcePathStyle: boolean;
|
|
405
405
|
endpoint?: string | undefined;
|
|
406
406
|
}, {
|
|
407
|
-
bucket?: string | undefined;
|
|
408
407
|
region?: string | undefined;
|
|
409
|
-
endpoint?: string | undefined;
|
|
410
408
|
prefix?: string | undefined;
|
|
409
|
+
bucket?: string | undefined;
|
|
410
|
+
endpoint?: string | undefined;
|
|
411
411
|
forcePathStyle?: boolean | undefined;
|
|
412
412
|
}>>;
|
|
413
413
|
}, "strip", z.ZodTypeAny, {
|
|
414
414
|
s3: {
|
|
415
|
-
bucket: string;
|
|
416
415
|
region: string;
|
|
417
416
|
prefix: string;
|
|
417
|
+
bucket: string;
|
|
418
418
|
forcePathStyle: boolean;
|
|
419
419
|
endpoint?: string | undefined;
|
|
420
420
|
};
|
|
@@ -424,10 +424,10 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
424
424
|
};
|
|
425
425
|
}, {
|
|
426
426
|
s3?: {
|
|
427
|
-
bucket?: string | undefined;
|
|
428
427
|
region?: string | undefined;
|
|
429
|
-
endpoint?: string | undefined;
|
|
430
428
|
prefix?: string | undefined;
|
|
429
|
+
bucket?: string | undefined;
|
|
430
|
+
endpoint?: string | undefined;
|
|
431
431
|
forcePathStyle?: boolean | undefined;
|
|
432
432
|
} | undefined;
|
|
433
433
|
provider?: "local_disk" | "s3" | undefined;
|
|
@@ -468,14 +468,14 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
468
468
|
enabled: boolean;
|
|
469
469
|
baseUrl: string;
|
|
470
470
|
publicKey?: string | undefined;
|
|
471
|
-
secretKey?: string | undefined;
|
|
472
471
|
environment?: string | undefined;
|
|
472
|
+
secretKey?: string | undefined;
|
|
473
473
|
}, {
|
|
474
474
|
enabled?: boolean | undefined;
|
|
475
475
|
baseUrl?: string | undefined;
|
|
476
476
|
publicKey?: string | undefined;
|
|
477
|
-
secretKey?: string | undefined;
|
|
478
477
|
environment?: string | undefined;
|
|
478
|
+
secretKey?: string | undefined;
|
|
479
479
|
}>>;
|
|
480
480
|
}, "strip", z.ZodTypeAny, {
|
|
481
481
|
database: {
|
|
@@ -492,8 +492,8 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
492
492
|
connectionString?: string | undefined;
|
|
493
493
|
};
|
|
494
494
|
$meta: {
|
|
495
|
-
version: 1;
|
|
496
495
|
updatedAt: string;
|
|
496
|
+
version: 1;
|
|
497
497
|
source: "onboard" | "configure" | "doctor";
|
|
498
498
|
};
|
|
499
499
|
logging: {
|
|
@@ -515,9 +515,9 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
515
515
|
};
|
|
516
516
|
storage: {
|
|
517
517
|
s3: {
|
|
518
|
-
bucket: string;
|
|
519
518
|
region: string;
|
|
520
519
|
prefix: string;
|
|
520
|
+
bucket: string;
|
|
521
521
|
forcePathStyle: boolean;
|
|
522
522
|
endpoint?: string | undefined;
|
|
523
523
|
};
|
|
@@ -541,8 +541,8 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
541
541
|
enabled: boolean;
|
|
542
542
|
baseUrl: string;
|
|
543
543
|
publicKey?: string | undefined;
|
|
544
|
-
secretKey?: string | undefined;
|
|
545
544
|
environment?: string | undefined;
|
|
545
|
+
secretKey?: string | undefined;
|
|
546
546
|
} | undefined;
|
|
547
547
|
}, {
|
|
548
548
|
database: {
|
|
@@ -559,8 +559,8 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
559
559
|
} | undefined;
|
|
560
560
|
};
|
|
561
561
|
$meta: {
|
|
562
|
-
version: 1;
|
|
563
562
|
updatedAt: string;
|
|
563
|
+
version: 1;
|
|
564
564
|
source: "onboard" | "configure" | "doctor";
|
|
565
565
|
};
|
|
566
566
|
logging: {
|
|
@@ -586,10 +586,10 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
586
586
|
} | undefined;
|
|
587
587
|
storage?: {
|
|
588
588
|
s3?: {
|
|
589
|
-
bucket?: string | undefined;
|
|
590
589
|
region?: string | undefined;
|
|
591
|
-
endpoint?: string | undefined;
|
|
592
590
|
prefix?: string | undefined;
|
|
591
|
+
bucket?: string | undefined;
|
|
592
|
+
endpoint?: string | undefined;
|
|
593
593
|
forcePathStyle?: boolean | undefined;
|
|
594
594
|
} | undefined;
|
|
595
595
|
provider?: "local_disk" | "s3" | undefined;
|
|
@@ -608,8 +608,8 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
608
608
|
enabled?: boolean | undefined;
|
|
609
609
|
baseUrl?: string | undefined;
|
|
610
610
|
publicKey?: string | undefined;
|
|
611
|
-
secretKey?: string | undefined;
|
|
612
611
|
environment?: string | undefined;
|
|
612
|
+
secretKey?: string | undefined;
|
|
613
613
|
} | undefined;
|
|
614
614
|
}>, {
|
|
615
615
|
database: {
|
|
@@ -626,8 +626,8 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
626
626
|
connectionString?: string | undefined;
|
|
627
627
|
};
|
|
628
628
|
$meta: {
|
|
629
|
-
version: 1;
|
|
630
629
|
updatedAt: string;
|
|
630
|
+
version: 1;
|
|
631
631
|
source: "onboard" | "configure" | "doctor";
|
|
632
632
|
};
|
|
633
633
|
logging: {
|
|
@@ -649,9 +649,9 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
649
649
|
};
|
|
650
650
|
storage: {
|
|
651
651
|
s3: {
|
|
652
|
-
bucket: string;
|
|
653
652
|
region: string;
|
|
654
653
|
prefix: string;
|
|
654
|
+
bucket: string;
|
|
655
655
|
forcePathStyle: boolean;
|
|
656
656
|
endpoint?: string | undefined;
|
|
657
657
|
};
|
|
@@ -675,8 +675,8 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
675
675
|
enabled: boolean;
|
|
676
676
|
baseUrl: string;
|
|
677
677
|
publicKey?: string | undefined;
|
|
678
|
-
secretKey?: string | undefined;
|
|
679
678
|
environment?: string | undefined;
|
|
679
|
+
secretKey?: string | undefined;
|
|
680
680
|
} | undefined;
|
|
681
681
|
}, {
|
|
682
682
|
database: {
|
|
@@ -693,8 +693,8 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
693
693
|
} | undefined;
|
|
694
694
|
};
|
|
695
695
|
$meta: {
|
|
696
|
-
version: 1;
|
|
697
696
|
updatedAt: string;
|
|
697
|
+
version: 1;
|
|
698
698
|
source: "onboard" | "configure" | "doctor";
|
|
699
699
|
};
|
|
700
700
|
logging: {
|
|
@@ -720,10 +720,10 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
720
720
|
} | undefined;
|
|
721
721
|
storage?: {
|
|
722
722
|
s3?: {
|
|
723
|
-
bucket?: string | undefined;
|
|
724
723
|
region?: string | undefined;
|
|
725
|
-
endpoint?: string | undefined;
|
|
726
724
|
prefix?: string | undefined;
|
|
725
|
+
bucket?: string | undefined;
|
|
726
|
+
endpoint?: string | undefined;
|
|
727
727
|
forcePathStyle?: boolean | undefined;
|
|
728
728
|
} | undefined;
|
|
729
729
|
provider?: "local_disk" | "s3" | undefined;
|
|
@@ -742,8 +742,8 @@ export declare const rudderConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
742
742
|
enabled?: boolean | undefined;
|
|
743
743
|
baseUrl?: string | undefined;
|
|
744
744
|
publicKey?: string | undefined;
|
|
745
|
-
secretKey?: string | undefined;
|
|
746
745
|
environment?: string | undefined;
|
|
746
|
+
secretKey?: string | undefined;
|
|
747
747
|
} | undefined;
|
|
748
748
|
}>;
|
|
749
749
|
export type RudderConfig = z.infer<typeof rudderConfigSchema>;
|
package/dist/constants.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export type AgentStatus = (typeof AGENT_STATUSES)[number];
|
|
|
15
15
|
export declare const AGENT_RUN_CONCURRENCY_DEFAULT = 3;
|
|
16
16
|
export declare const AGENT_RUN_CONCURRENCY_MIN = 1;
|
|
17
17
|
export declare const AGENT_RUN_CONCURRENCY_MAX = 10;
|
|
18
|
+
export declare const AGENT_RUN_SCENES: readonly ["issue", "chat", "automation", "review", "manual", "heartbeat"];
|
|
19
|
+
export type AgentRunScene = (typeof AGENT_RUN_SCENES)[number];
|
|
20
|
+
export declare const AGENT_RUN_TARGET_TYPES: readonly ["issue", "chat_conversation", "chat_message", "automation_run", "wakeup_request", "manual"];
|
|
21
|
+
export type AgentRunTargetType = (typeof AGENT_RUN_TARGET_TYPES)[number];
|
|
18
22
|
export declare const AGENT_RUNTIME_TYPES: readonly ["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"];
|
|
19
23
|
export type AgentRuntimeType = (typeof AGENT_RUNTIME_TYPES)[number];
|
|
20
24
|
export declare const AGENT_ROLES: readonly ["ceo", "cto", "cmo", "cfo", "engineer", "designer", "pm", "qa", "devops", "researcher", "general"];
|
|
@@ -169,7 +173,7 @@ export type PermissionKey = (typeof PERMISSION_KEYS)[number];
|
|
|
169
173
|
* Increment this value whenever a breaking change is made to the plugin API
|
|
170
174
|
* so that the host can reject incompatible plugin manifests.
|
|
171
175
|
*
|
|
172
|
-
* @see
|
|
176
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md — Versioning
|
|
173
177
|
*/
|
|
174
178
|
export declare const PLUGIN_API_VERSION: 1;
|
|
175
179
|
/**
|
|
@@ -180,7 +184,7 @@ export declare const PLUGIN_API_VERSION: 1;
|
|
|
180
184
|
* upgrade_pending → ready | error | uninstalled, uninstalled → installed (reinstall).
|
|
181
185
|
*
|
|
182
186
|
* @see {@link PluginStatus} — inferred union type
|
|
183
|
-
* @see
|
|
187
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md `plugins.status`
|
|
184
188
|
*/
|
|
185
189
|
export declare const PLUGIN_STATUSES: readonly ["installed", "ready", "disabled", "error", "upgrade_pending", "uninstalled"];
|
|
186
190
|
export type PluginStatus = (typeof PLUGIN_STATUSES)[number];
|
|
@@ -188,7 +192,7 @@ export type PluginStatus = (typeof PLUGIN_STATUSES)[number];
|
|
|
188
192
|
* Plugin classification categories. A plugin declares one or more categories
|
|
189
193
|
* in its manifest to describe its primary purpose.
|
|
190
194
|
*
|
|
191
|
-
* @see
|
|
195
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md
|
|
192
196
|
*/
|
|
193
197
|
export declare const PLUGIN_CATEGORIES: readonly ["connector", "workspace", "automation", "ui"];
|
|
194
198
|
export type PluginCategory = (typeof PLUGIN_CATEGORIES)[number];
|
|
@@ -200,7 +204,7 @@ export type PluginCategory = (typeof PLUGIN_CATEGORIES)[number];
|
|
|
200
204
|
* Grouped into: Data Read, Data Write, Plugin State, Runtime/Integration,
|
|
201
205
|
* Agent Tools, and UI.
|
|
202
206
|
*
|
|
203
|
-
* @see
|
|
207
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md — Capability Model
|
|
204
208
|
*/
|
|
205
209
|
export declare const PLUGIN_CAPABILITIES: readonly ["organizations.read", "projects.read", "project.workspaces.read", "issues.read", "issue.comments.read", "agents.read", "goals.read", "goals.create", "goals.update", "activity.read", "costs.read", "issues.create", "issues.update", "issue.comments.create", "agents.pause", "agents.resume", "agents.invoke", "agent.sessions.create", "agent.sessions.list", "agent.sessions.send", "agent.sessions.close", "activity.log.write", "metrics.write", "plugin.state.read", "plugin.state.write", "events.subscribe", "events.emit", "jobs.schedule", "webhooks.receive", "http.outbound", "secrets.read-ref", "agent.tools.register", "instance.settings.register", "ui.sidebar.register", "ui.page.register", "ui.detailTab.register", "ui.dashboardWidget.register", "ui.commentAnnotation.register", "ui.action.register"];
|
|
206
210
|
export type PluginCapability = (typeof PLUGIN_CAPABILITIES)[number];
|
|
@@ -208,7 +212,7 @@ export type PluginCapability = (typeof PLUGIN_CAPABILITIES)[number];
|
|
|
208
212
|
* UI extension slot types. Each slot type corresponds to a mount point in the
|
|
209
213
|
* Rudder UI where plugin components can be rendered.
|
|
210
214
|
*
|
|
211
|
-
* @see
|
|
215
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md — UI Extension Model
|
|
212
216
|
*/
|
|
213
217
|
export declare const PLUGIN_UI_SLOT_TYPES: readonly ["page", "detailTab", "taskDetailView", "dashboardWidget", "sidebar", "sidebarPanel", "projectSidebarItem", "globalToolbarButton", "toolbarButton", "contextMenuItem", "commentAnnotation", "commentContextMenuItem", "settingsPage"];
|
|
214
218
|
export type PluginUiSlotType = (typeof PLUGIN_UI_SLOT_TYPES)[number];
|
|
@@ -247,7 +251,7 @@ export type PluginLauncherRenderEnvironment = (typeof PLUGIN_LAUNCHER_RENDER_ENV
|
|
|
247
251
|
/**
|
|
248
252
|
* Entity types that a `detailTab` UI slot can attach to.
|
|
249
253
|
*
|
|
250
|
-
* @see
|
|
254
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md — Detail Tabs
|
|
251
255
|
*/
|
|
252
256
|
export declare const PLUGIN_UI_SLOT_ENTITY_TYPES: readonly ["project", "issue", "agent", "goal", "run", "comment"];
|
|
253
257
|
export type PluginUiSlotEntityType = (typeof PLUGIN_UI_SLOT_ENTITY_TYPES)[number];
|
|
@@ -255,7 +259,7 @@ export type PluginUiSlotEntityType = (typeof PLUGIN_UI_SLOT_ENTITY_TYPES)[number
|
|
|
255
259
|
* Scope kinds for plugin state storage. Determines the granularity at which
|
|
256
260
|
* a plugin stores key-value state data.
|
|
257
261
|
*
|
|
258
|
-
* @see
|
|
262
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md `plugin_state.scope_kind`
|
|
259
263
|
*/
|
|
260
264
|
export declare const PLUGIN_STATE_SCOPE_KINDS: readonly ["instance", "organization", "project", "project_workspace", "agent", "issue", "goal", "run"];
|
|
261
265
|
export type PluginStateScopeKind = (typeof PLUGIN_STATE_SCOPE_KINDS)[number];
|
|
@@ -275,14 +279,14 @@ export type PluginWebhookDeliveryStatus = (typeof PLUGIN_WEBHOOK_DELIVERY_STATUS
|
|
|
275
279
|
* Core domain event types that plugins can subscribe to via the
|
|
276
280
|
* `events.subscribe` capability.
|
|
277
281
|
*
|
|
278
|
-
* @see
|
|
282
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md — Event System
|
|
279
283
|
*/
|
|
280
284
|
export declare const PLUGIN_EVENT_TYPES: readonly ["organization.created", "organization.updated", "project.created", "project.updated", "project.workspace_created", "project.workspace_updated", "project.workspace_deleted", "issue.created", "issue.updated", "issue.comment.created", "agent.created", "agent.updated", "agent.status_changed", "agent.run.started", "agent.run.finished", "agent.run.failed", "agent.run.cancelled", "goal.created", "goal.updated", "approval.created", "approval.decided", "cost_event.created", "activity.logged"];
|
|
281
285
|
export type PluginEventType = (typeof PLUGIN_EVENT_TYPES)[number];
|
|
282
286
|
/**
|
|
283
287
|
* Error codes returned by the plugin bridge when a UI → worker call fails.
|
|
284
288
|
*
|
|
285
|
-
* @see
|
|
289
|
+
* @see doc/engineering/PLUGIN_RUNTIME_CONTRACT.md — Error Propagation Through The Bridge
|
|
286
290
|
*/
|
|
287
291
|
export declare const PLUGIN_BRIDGE_ERROR_CODES: readonly ["WORKER_UNAVAILABLE", "CAPABILITY_DENIED", "WORKER_ERROR", "TIMEOUT", "UNKNOWN"];
|
|
288
292
|
export type PluginBridgeErrorCode = (typeof PLUGIN_BRIDGE_ERROR_CODES)[number];
|