@compozy/extension-sdk 0.4.7 → 0.5.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/cjs/forge-provider.js +34 -0
- package/dist/cjs/forge-provider.js.map +1 -1
- package/dist/cjs/generated/contracts.js.map +1 -1
- package/dist/esm/forge-provider.js +34 -0
- package/dist/esm/forge-provider.js.map +1 -1
- package/dist/esm/generated/contracts.js.map +1 -1
- package/dist/types/forge-provider.d.ts +3 -1
- package/dist/types/forge-provider.d.ts.map +1 -1
- package/dist/types/generated/contracts.d.ts +91 -4
- package/dist/types/generated/contracts.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -73,6 +73,40 @@ function registerForgeProvider(extension, handlers) {
|
|
|
73
73
|
throw new Error("forge provider handlers are required");
|
|
74
74
|
}
|
|
75
75
|
return extension[extension_provide_surface_js_1.registerProvideSurface](exports.FORGE_PROVIDER_CAPABILITY, [
|
|
76
|
+
...(handlers.searchPRs
|
|
77
|
+
? [
|
|
78
|
+
{
|
|
79
|
+
method: "forge/pr_search",
|
|
80
|
+
handler: async (context, request) => {
|
|
81
|
+
const record = requestRecord("forge/pr_search", request);
|
|
82
|
+
return await handlers.searchPRs(context, {
|
|
83
|
+
remote_urls: remoteURLs("forge/pr_search", record),
|
|
84
|
+
query: typeof record.query === "string" ? record.query : "",
|
|
85
|
+
page: typeof record.page === "number" ? record.page : 1,
|
|
86
|
+
limit: typeof record.limit === "number" ? record.limit : 30,
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
]
|
|
91
|
+
: []),
|
|
92
|
+
...(handlers.readPR
|
|
93
|
+
? [
|
|
94
|
+
{
|
|
95
|
+
method: "forge/pr_read",
|
|
96
|
+
handler: async (context, request) => {
|
|
97
|
+
const record = requestRecord("forge/pr_read", request);
|
|
98
|
+
if (typeof record.number !== "number" ||
|
|
99
|
+
!Number.isInteger(record.number) ||
|
|
100
|
+
record.number < 1)
|
|
101
|
+
throw new errors_js_1.InvalidParamsError("positive PR number required");
|
|
102
|
+
return await handlers.readPR(context, {
|
|
103
|
+
remote_urls: remoteURLs("forge/pr_read", record),
|
|
104
|
+
number: record.number,
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
]
|
|
109
|
+
: []),
|
|
76
110
|
{
|
|
77
111
|
method: exports.FORGE_CAPABILITIES_METHOD,
|
|
78
112
|
handler: async (context, request) => await handlers.capabilities(context, capabilitiesRequest(request)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forge-provider.js","sourceRoot":"","sources":["../../src/forge-provider.ts"],"names":[],"mappings":";;;;AAEA,2CAAiD;AACjD,iFAAwE;
|
|
1
|
+
{"version":3,"file":"forge-provider.js","sourceRoot":"","sources":["../../src/forge-provider.ts"],"names":[],"mappings":";;;;AAEA,2CAAiD;AACjD,iFAAwE;AAc3D,QAAA,yBAAyB,GAAG,gBAAgB,CAAC;AAC7C,QAAA,yBAAyB,GAAG,oBAAoB,CAAC;AACjD,QAAA,mBAAmB,GAAG,cAAc,CAAC;AACrC,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AAyBxD,SAAS,aAAa,CAAC,MAAc,EAAE,OAAgB;IACrD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9E,MAAM,IAAI,8BAAkB,CAAC,GAAG,MAAM,2BAA2B,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,OAAkC,CAAC;AAC5C,CAAC;AAED,SAAS,cAAc,CAAC,MAAc,EAAE,OAAgC,EAAE,KAAa;IACrF,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAA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MAAM,QAAQ,CAAC,MAAO,CAAC,OAAO,EAAE;4BACrC,WAAW,EAAE,UAAU,CAAC,eAAe,EAAE,MAAM,CAAC;4BAChD,MAAM,EAAE,MAAM,CAAC,MAAM;yBACtB,CAAC,CAAC;oBACL,CAAC;iBACF;aACF;YACH,CAAC,CAAC,EAAE,CAAC;QACP;YACE,MAAM,EAAE,QAAA,yBAAyB;YACjC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAClC,MAAM,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;SACrE;QACD;YACE,MAAM,EAAE,QAAA,mBAAmB;YAC3B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,MAAM,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;SAC5F;QACD;YACE,MAAM,EAAE,QAAA,sBAAsB;YAC9B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAClC,MAAM,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;SAC7D;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/generated/contracts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/generated/contracts.ts"],"names":[],"mappings":";;;AAigOa,QAAA,2BAA2B,GAAG;IACzC,uBAAuB,EAAE;QACvB,wBAAwB;QACxB,qBAAqB;QACrB,uBAAuB;KACxB;IACD,gBAAgB,EAAE,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,CAAC;IAC3E,mBAAmB,EAAE,CAAC,YAAY,CAAC;IACnC,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,eAAe,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC;IAChD,eAAe,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,CAAC;CACI,CAAC;AAOpD,QAAA,mCAAmC,GAAyC;IACvF;QACE,OAAO,EAAE,uBAAuB;QAChC,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,uBAAuB,CAAC;KACvE;IACD,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,gBAAgB,CAAC,EAAE;IAC9F;QACE,OAAO,EAAE,mBAAmB;QAC5B,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,mBAAmB,CAAC;KACnE;IACD,EAAE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,cAAc,CAAC,EAAE;IAC1F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,eAAe,CAAC,EAAE;IAC5F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAA,2BAA2B,CAAC,eAAe,CAAC,EAAE;CAC7F,CAAC"}
|
|
@@ -69,6 +69,40 @@ export function registerForgeProvider(extension, handlers) {
|
|
|
69
69
|
throw new Error("forge provider handlers are required");
|
|
70
70
|
}
|
|
71
71
|
return extension[registerProvideSurface](FORGE_PROVIDER_CAPABILITY, [
|
|
72
|
+
...(handlers.searchPRs
|
|
73
|
+
? [
|
|
74
|
+
{
|
|
75
|
+
method: "forge/pr_search",
|
|
76
|
+
handler: async (context, request) => {
|
|
77
|
+
const record = requestRecord("forge/pr_search", request);
|
|
78
|
+
return await handlers.searchPRs(context, {
|
|
79
|
+
remote_urls: remoteURLs("forge/pr_search", record),
|
|
80
|
+
query: typeof record.query === "string" ? record.query : "",
|
|
81
|
+
page: typeof record.page === "number" ? record.page : 1,
|
|
82
|
+
limit: typeof record.limit === "number" ? record.limit : 30,
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
]
|
|
87
|
+
: []),
|
|
88
|
+
...(handlers.readPR
|
|
89
|
+
? [
|
|
90
|
+
{
|
|
91
|
+
method: "forge/pr_read",
|
|
92
|
+
handler: async (context, request) => {
|
|
93
|
+
const record = requestRecord("forge/pr_read", request);
|
|
94
|
+
if (typeof record.number !== "number" ||
|
|
95
|
+
!Number.isInteger(record.number) ||
|
|
96
|
+
record.number < 1)
|
|
97
|
+
throw new InvalidParamsError("positive PR number required");
|
|
98
|
+
return await handlers.readPR(context, {
|
|
99
|
+
remote_urls: remoteURLs("forge/pr_read", record),
|
|
100
|
+
number: record.number,
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
]
|
|
105
|
+
: []),
|
|
72
106
|
{
|
|
73
107
|
method: FORGE_CAPABILITIES_METHOD,
|
|
74
108
|
handler: async (context, request) => await handlers.capabilities(context, capabilitiesRequest(request)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forge-provider.js","sourceRoot":"","sources":["../../src/forge-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"forge-provider.js","sourceRoot":"","sources":["../../src/forge-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAcxE,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC;AAC1D,MAAM,CAAC,MAAM,yBAAyB,GAAG,oBAAoB,CAAC;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAClD,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AAyBxD,SAAS,aAAa,CAAC,MAAc,EAAE,OAAgB;IACrD,IAAI,OAAO,OA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K,EAAE,OAAyB,EAAE,OAAgB,EAAE,EAAE;wBAC7D,MAAM,MAAM,GAAG,aAAa,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;wBACvD,IACE,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ;4BACjC,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;4BAChC,MAAM,CAAC,MAAM,GAAG,CAAC;4BAEjB,MAAM,IAAI,kBAAkB,CAAC,6BAA6B,CAAC,CAAC;wBAC9D,OAAO,MAAM,QAAQ,CAAC,MAAO,CAAC,OAAO,EAAE;4BACrC,WAAW,EAAE,UAAU,CAAC,eAAe,EAAE,MAAM,CAAC;4BAChD,MAAM,EAAE,MAAM,CAAC,MAAM;yBACtB,CAAC,CAAC;oBACL,CAAC;iBACF;aACF;YACH,CAAC,CAAC,EAAE,CAAC;QACP;YACE,MAAM,EAAE,yBAAyB;YACjC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAClC,MAAM,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;SACrE;QACD;YACE,MAAM,EAAE,mBAAmB;YAC3B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,MAAM,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;SAC5F;QACD;YACE,MAAM,EAAE,sBAAsB;YAC9B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAClC,MAAM,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;SAC7D;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/generated/contracts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/generated/contracts.ts"],"names":[],"mappings":"AAigOA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,uBAAuB,EAAE;QACvB,wBAAwB;QACxB,qBAAqB;QACrB,uBAAuB;KACxB;IACD,gBAAgB,EAAE,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,CAAC;IAC3E,mBAAmB,EAAE,CAAC,YAAY,CAAC;IACnC,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,eAAe,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC;IAChD,eAAe,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,CAAC;CACI,CAAC;AAOjE,MAAM,CAAC,MAAM,mCAAmC,GAAyC;IACvF;QACE,OAAO,EAAE,uBAAuB;QAChC,gBAAgB,EAAE,2BAA2B,CAAC,uBAAuB,CAAC;KACvE;IACD,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,gBAAgB,CAAC,EAAE;IAC9F;QACE,OAAO,EAAE,mBAAmB;QAC5B,gBAAgB,EAAE,2BAA2B,CAAC,mBAAmB,CAAC;KACnE;IACD,EAAE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,cAAc,CAAC,EAAE;IAC1F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,eAAe,CAAC,EAAE;IAC5F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,2BAA2B,CAAC,eAAe,CAAC,EAAE;CAC7F,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Extension } from "./extension.js";
|
|
2
2
|
import type { ExtensionContext } from "./extension-contract.js";
|
|
3
|
-
import type { ForgeCapabilitiesRequest, ForgeCapabilitiesResponse, ForgePRCreateRequest, ForgePRCreateResponse, ForgeStatusRequest, ForgeStatusResponse } from "./types.js";
|
|
3
|
+
import type { ForgePRSearchRequest, ForgePRReadRequest, ForgePRCandidate, ForgePRSearchResponse, ForgeCapabilitiesRequest, ForgeCapabilitiesResponse, ForgePRCreateRequest, ForgePRCreateResponse, ForgeStatusRequest, ForgeStatusResponse } from "./types.js";
|
|
4
4
|
export declare const FORGE_PROVIDER_CAPABILITY = "forge.provider";
|
|
5
5
|
export declare const FORGE_CAPABILITIES_METHOD = "forge/capabilities";
|
|
6
6
|
export declare const FORGE_STATUS_METHOD = "forge/status";
|
|
7
7
|
export declare const FORGE_PR_CREATE_METHOD = "forge/pr_create";
|
|
8
8
|
export interface ForgeProviderHandlers {
|
|
9
|
+
searchPRs?: (context: ExtensionContext, request: ForgePRSearchRequest) => Promise<ForgePRSearchResponse> | ForgePRSearchResponse;
|
|
10
|
+
readPR?: (context: ExtensionContext, request: ForgePRReadRequest) => Promise<ForgePRCandidate> | ForgePRCandidate;
|
|
9
11
|
capabilities: (context: ExtensionContext, request: ForgeCapabilitiesRequest) => Promise<ForgeCapabilitiesResponse> | ForgeCapabilitiesResponse;
|
|
10
12
|
status: (context: ExtensionContext, request: ForgeStatusRequest) => Promise<ForgeStatusResponse> | ForgeStatusResponse;
|
|
11
13
|
createPR: (context: ExtensionContext, request: ForgePRCreateRequest) => Promise<ForgePRCreateResponse> | ForgePRCreateResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forge-provider.d.ts","sourceRoot":"","sources":["../../src/forge-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAC1D,eAAO,MAAM,yBAAyB,uBAAuB,CAAC;AA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AC1B,OAAO,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,CAAC;IAC5D,MAAM,CAAC,EAAE,CACP,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB,KACxB,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC;IAClD,YAAY,EAAE,CACZ,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,wBAAwB,KAC9B,OAAO,CAAC,yBAAyB,CAAC,GAAG,yBAAyB,CAAC;IACpE,MAAM,EAAE,CACN,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB,KACxB,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC;IACxD,QAAQ,EAAE,CACR,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,oBAAoB,KAC1B,OAAO,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,CAAC;CAC7D;AAiED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,qBAAqB,GAC9B,SAAS,CA+DX"}
|
|
@@ -7,7 +7,7 @@ export interface AcceptedCapabilities {
|
|
|
7
7
|
export interface AgentCrashedPatch {
|
|
8
8
|
labels?: Record<string, string>;
|
|
9
9
|
}
|
|
10
|
-
export type HookEvent = "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected";
|
|
10
|
+
export type HookEvent = "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected";
|
|
11
11
|
export interface AgentCrashedPayload {
|
|
12
12
|
event: HookEvent;
|
|
13
13
|
timestamp: ISODateTime;
|
|
@@ -148,6 +148,33 @@ export interface AgentHeartbeatWakeParams {
|
|
|
148
148
|
dry_run?: boolean;
|
|
149
149
|
idempotency_key?: string;
|
|
150
150
|
}
|
|
151
|
+
export interface AgentHeartbeatWakePatch {
|
|
152
|
+
reason?: string;
|
|
153
|
+
labels?: Record<string, string>;
|
|
154
|
+
cancel?: boolean;
|
|
155
|
+
}
|
|
156
|
+
export type AgentInstanceObservationPatch = Record<string, never>;
|
|
157
|
+
export interface AgentInstancePayload {
|
|
158
|
+
event: HookEvent;
|
|
159
|
+
timestamp: ISODateTime;
|
|
160
|
+
profile_id?: string;
|
|
161
|
+
session_id?: string;
|
|
162
|
+
session_name?: string;
|
|
163
|
+
session_type?: string;
|
|
164
|
+
agent_name?: string;
|
|
165
|
+
workspace_id?: string;
|
|
166
|
+
workspace?: string;
|
|
167
|
+
worktree_id?: string;
|
|
168
|
+
acp_session_id?: string;
|
|
169
|
+
state?: string;
|
|
170
|
+
soul_snapshot_id?: string;
|
|
171
|
+
soul_digest?: string;
|
|
172
|
+
created_at: ISODateTime;
|
|
173
|
+
updated_at: ISODateTime;
|
|
174
|
+
instance_id: string;
|
|
175
|
+
main_session_id?: string;
|
|
176
|
+
reason?: string;
|
|
177
|
+
}
|
|
151
178
|
export interface AgentLifecyclePatch {
|
|
152
179
|
labels?: Record<string, string>;
|
|
153
180
|
}
|
|
@@ -661,12 +688,13 @@ export interface AutomationTargetParams {
|
|
|
661
688
|
id: string;
|
|
662
689
|
}
|
|
663
690
|
export interface AutomationTriggerCreateParams {
|
|
691
|
+
target_instance_scope?: string;
|
|
664
692
|
scope: Scope;
|
|
665
693
|
name: string;
|
|
666
694
|
target_kind?: TargetKind;
|
|
667
695
|
agent_name: string;
|
|
668
696
|
workspace_id?: string;
|
|
669
|
-
prompt
|
|
697
|
+
prompt?: string;
|
|
670
698
|
event: string;
|
|
671
699
|
filter?: Record<string, string>;
|
|
672
700
|
loop_target?: LoopTarget;
|
|
@@ -711,6 +739,7 @@ export interface AutomationTriggerRunsParams {
|
|
|
711
739
|
}
|
|
712
740
|
export interface AutomationTriggerUpdateParams {
|
|
713
741
|
id: string;
|
|
742
|
+
target_instance_scope?: string;
|
|
714
743
|
name?: string;
|
|
715
744
|
prompt?: string;
|
|
716
745
|
event?: string;
|
|
@@ -753,6 +782,7 @@ export interface AutomationLastRunPayload {
|
|
|
753
782
|
skip_reason?: SchedulerSkipReason;
|
|
754
783
|
}
|
|
755
784
|
export interface Trigger {
|
|
785
|
+
target_instance_scope?: string;
|
|
756
786
|
id: string;
|
|
757
787
|
profile_id: string;
|
|
758
788
|
profile_name: string;
|
|
@@ -1387,6 +1417,7 @@ export interface ForgeCapabilitiesRequest {
|
|
|
1387
1417
|
remote_urls: string[];
|
|
1388
1418
|
}
|
|
1389
1419
|
export interface ForgeCapabilitiesResponse {
|
|
1420
|
+
supports_pr_discovery?: boolean;
|
|
1390
1421
|
served: boolean;
|
|
1391
1422
|
available: boolean;
|
|
1392
1423
|
winner?: string;
|
|
@@ -1402,6 +1433,14 @@ export interface ForgeCapabilitiesResponse {
|
|
|
1402
1433
|
default_branch?: string;
|
|
1403
1434
|
cause?: string;
|
|
1404
1435
|
}
|
|
1436
|
+
export interface ForgePRCandidate {
|
|
1437
|
+
head_repository?: string;
|
|
1438
|
+
number: number;
|
|
1439
|
+
title?: string;
|
|
1440
|
+
url: string;
|
|
1441
|
+
branch: string;
|
|
1442
|
+
state: string;
|
|
1443
|
+
}
|
|
1405
1444
|
export interface ForgePRCreateRequest {
|
|
1406
1445
|
remote_urls: string[];
|
|
1407
1446
|
head: string;
|
|
@@ -1417,6 +1456,20 @@ export interface ForgePRCreateResponse {
|
|
|
1417
1456
|
url?: string;
|
|
1418
1457
|
cause?: string;
|
|
1419
1458
|
}
|
|
1459
|
+
export interface ForgePRReadRequest {
|
|
1460
|
+
remote_urls: string[];
|
|
1461
|
+
number: number;
|
|
1462
|
+
}
|
|
1463
|
+
export interface ForgePRSearchRequest {
|
|
1464
|
+
remote_urls: string[];
|
|
1465
|
+
query?: string;
|
|
1466
|
+
page?: number;
|
|
1467
|
+
limit?: number;
|
|
1468
|
+
}
|
|
1469
|
+
export interface ForgePRSearchResponse {
|
|
1470
|
+
items: ForgePRCandidate[];
|
|
1471
|
+
has_more: boolean;
|
|
1472
|
+
}
|
|
1420
1473
|
export interface ForgeStatusRequest {
|
|
1421
1474
|
remote_urls: string[];
|
|
1422
1475
|
branch: string;
|
|
@@ -1430,8 +1483,29 @@ export interface ForgeChecks {
|
|
|
1430
1483
|
pending: number;
|
|
1431
1484
|
failed_names: string[];
|
|
1432
1485
|
}
|
|
1486
|
+
export interface ForgeReview {
|
|
1487
|
+
id: string;
|
|
1488
|
+
author?: string;
|
|
1489
|
+
is_bot?: boolean;
|
|
1490
|
+
state: string;
|
|
1491
|
+
submitted_at?: ISODateTime;
|
|
1492
|
+
commit?: string;
|
|
1493
|
+
}
|
|
1494
|
+
export interface ForgeReviewThread {
|
|
1495
|
+
id: string;
|
|
1496
|
+
commit?: string;
|
|
1497
|
+
}
|
|
1498
|
+
export interface ForgeReviews {
|
|
1499
|
+
items: ForgeReview[];
|
|
1500
|
+
threads?: ForgeReviewThread[];
|
|
1501
|
+
unresolved_threads: number;
|
|
1502
|
+
truncated?: boolean;
|
|
1503
|
+
}
|
|
1433
1504
|
export interface ForgeStatusResponse {
|
|
1505
|
+
title?: string;
|
|
1434
1506
|
checks?: ForgeChecks;
|
|
1507
|
+
reviews?: ForgeReviews;
|
|
1508
|
+
reviews_unavailable?: boolean;
|
|
1435
1509
|
review_decision?: string;
|
|
1436
1510
|
mergeable?: string;
|
|
1437
1511
|
updated_at?: ISODateTime;
|
|
@@ -1610,6 +1684,7 @@ export interface HeartbeatWakeEventPayload {
|
|
|
1610
1684
|
source: HeartbeatWakeSource;
|
|
1611
1685
|
result: HeartbeatWakeResult;
|
|
1612
1686
|
reason: HeartbeatWakeReason;
|
|
1687
|
+
detail?: string;
|
|
1613
1688
|
synthetic_prompt_id?: string;
|
|
1614
1689
|
created_at: ISODateTime;
|
|
1615
1690
|
expires_at: ISODateTime;
|
|
@@ -1722,7 +1797,7 @@ export interface HookDecl {
|
|
|
1722
1797
|
source: HookSource;
|
|
1723
1798
|
required?: boolean;
|
|
1724
1799
|
}
|
|
1725
|
-
export type HookEventFamily = "subagent" | "session" | "input" | "prompt" | "event" | "automation" | "
|
|
1800
|
+
export type HookEventFamily = "agent" | "subagent" | "session" | "input" | "prompt" | "event" | "automation" | "turn" | "message" | "tool" | "permission" | "context" | "coordinator" | "task" | "task.run" | "loop" | "spawn" | "window_manager" | "worktree" | "terminal";
|
|
1726
1801
|
export type HookRunOutcome = "applied" | "denied" | "failed" | "skipped" | "dropped" | "rejected";
|
|
1727
1802
|
export type HookSkillSource = "bundled" | "marketplace" | "user" | "profile" | "additional" | "workspace" | "workspace_profile";
|
|
1728
1803
|
export interface InitializeCapabilities {
|
|
@@ -3343,6 +3418,8 @@ export interface SessionQueueSummaryPayload {
|
|
|
3343
3418
|
}
|
|
3344
3419
|
export type Badge = "running" | "idle" | "unhealthy" | "hung" | "waiting-for-auth" | "waiting-for-input" | "done" | "stopped" | "failed" | "unknown" | "needs-attention" | "waiting";
|
|
3345
3420
|
export interface PendingInteractionPayload {
|
|
3421
|
+
expires_at?: ISODateTime;
|
|
3422
|
+
session_id: string;
|
|
3346
3423
|
interaction_id: string;
|
|
3347
3424
|
kind: string;
|
|
3348
3425
|
provider_request_id: string;
|
|
@@ -5685,6 +5762,11 @@ export interface WorktreePreRemovePayload {
|
|
|
5685
5762
|
deny_reason?: string;
|
|
5686
5763
|
}
|
|
5687
5764
|
export interface HookPayloadByEvent {
|
|
5765
|
+
"agent.instance.created": AgentInstancePayload;
|
|
5766
|
+
"agent.instance.paused": AgentInstancePayload;
|
|
5767
|
+
"agent.instance.resumed": AgentInstancePayload;
|
|
5768
|
+
"agent.instance.archived": AgentInstancePayload;
|
|
5769
|
+
"agent.instance.adopted": AgentInstancePayload;
|
|
5688
5770
|
"subagent.settled": SubagentSettledPayload;
|
|
5689
5771
|
"session.pre_create": SessionPreCreatePayload;
|
|
5690
5772
|
"session.post_create": SessionPostCreatePayload;
|
|
@@ -5787,6 +5869,11 @@ export interface HookPayloadByEvent {
|
|
|
5787
5869
|
"terminal.limit_rejected": TerminalLimitRejectedPayload;
|
|
5788
5870
|
}
|
|
5789
5871
|
export interface HookPatchByEvent {
|
|
5872
|
+
"agent.instance.created": AgentInstanceObservationPatch;
|
|
5873
|
+
"agent.instance.paused": AgentInstanceObservationPatch;
|
|
5874
|
+
"agent.instance.resumed": AgentInstanceObservationPatch;
|
|
5875
|
+
"agent.instance.archived": AgentInstanceObservationPatch;
|
|
5876
|
+
"agent.instance.adopted": AgentInstanceObservationPatch;
|
|
5790
5877
|
"subagent.settled": SubagentObservationPatch;
|
|
5791
5878
|
"session.pre_create": SessionCreatePatch;
|
|
5792
5879
|
"session.post_create": SessionPostCreatePatch;
|
|
@@ -5815,7 +5902,7 @@ export interface HookPatchByEvent {
|
|
|
5815
5902
|
"agent.soul.snapshot.resolved": AuthoredContextObservationPatch;
|
|
5816
5903
|
"agent.soul.mutation.after": AuthoredContextObservationPatch;
|
|
5817
5904
|
"agent.heartbeat.policy.resolved": AuthoredContextObservationPatch;
|
|
5818
|
-
"agent.heartbeat.wake.before":
|
|
5905
|
+
"agent.heartbeat.wake.before": AgentHeartbeatWakePatch;
|
|
5819
5906
|
"agent.heartbeat.wake.after": AuthoredContextObservationPatch;
|
|
5820
5907
|
"session.health.update.after": AuthoredContextObservationPatch;
|
|
5821
5908
|
"turn.start": TurnStartPatch;
|