@opencode/client 2.3.2 → 2.4.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/chunks/{service-timing-d300ns9h.js → service-timing-2bkgs6c9.js} +34 -3
- package/dist/chunks/{service-timing-mqnb71k6.js → service-timing-99sx9v8v.js} +114 -4
- package/dist/chunks/{service-timing-6hqrj29e.js → service-timing-d8dhy2yj.js} +3 -2
- package/dist/chunks/{service-timing-mghtrbnp.js → service-timing-dsejcdh4.js} +1 -1
- package/dist/chunks/{service-timing-xafd70ys.js → service-timing-p88pr19t.js} +1 -1
- package/dist/chunks/{service-timing-srved1k0.js → service-timing-v9zwsg2r.js} +2 -2
- package/dist/chunks/{service-timing-nr9zca37.js → service-timing-zrgqmrbq.js} +10 -1
- package/dist/effect/api/api.d.ts +52 -1
- package/dist/effect/client.d.ts +81 -3
- package/dist/effect/client.js +3 -3
- package/dist/effect/generated/client.d.ts +81 -3
- package/dist/effect/generated/client.js +1 -1
- package/dist/effect/generated/index.js +1 -1
- package/dist/effect/index.js +2 -2
- package/dist/effect/service.js +1 -1
- package/dist/promise/client.d.ts +7 -1
- package/dist/promise/client.js +4 -4
- package/dist/promise/generated/client.d.ts +7 -1
- package/dist/promise/generated/client.js +1 -1
- package/dist/promise/generated/index.js +5 -3
- package/dist/promise/generated/types.d.ts +149 -58
- package/dist/promise/generated/types.js +4 -2
- package/dist/promise/index.js +7 -5
- package/dist/promise/media.d.ts +7 -1
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +1 -1
- package/dist/pty-handoff.js +1 -1
- package/dist/solid/data.d.ts +7 -1
- package/dist/solid/data.js +5 -5
- package/dist/solid/index.js +5 -5
- package/package.json +4 -4
- /package/dist/chunks/{service-timing-57ewgbn2.js → service-timing-bt02d992.js} +0 -0
|
@@ -664,14 +664,14 @@ function make6(options) {
|
|
|
664
664
|
sound: input["sound"]
|
|
665
665
|
},
|
|
666
666
|
successStatus: 200,
|
|
667
|
-
declaredStatuses: [400, 401,
|
|
667
|
+
declaredStatuses: [400, 401, 404, 422, 502, 503],
|
|
668
668
|
empty: false
|
|
669
669
|
}, requestOptions).then((value) => value.data),
|
|
670
670
|
get: (input, requestOptions) => request({
|
|
671
671
|
method: "GET",
|
|
672
672
|
path: `/api/experimental/generate/video/${encodeURIComponent(input.id)}`,
|
|
673
673
|
successStatus: 200,
|
|
674
|
-
declaredStatuses: [400, 401,
|
|
674
|
+
declaredStatuses: [400, 401, 404],
|
|
675
675
|
empty: false
|
|
676
676
|
}, requestOptions).then((value) => value.data)
|
|
677
677
|
},
|
|
@@ -1031,7 +1031,38 @@ function make6(options) {
|
|
|
1031
1031
|
successStatus: 200,
|
|
1032
1032
|
declaredStatuses: [400, 401, 404],
|
|
1033
1033
|
empty: false
|
|
1034
|
-
}, requestOptions).then((value) => value.data)
|
|
1034
|
+
}, requestOptions).then((value) => value.data),
|
|
1035
|
+
cancel: (input, requestOptions) => request({
|
|
1036
|
+
method: "POST",
|
|
1037
|
+
path: `/api/experimental/job/${encodeURIComponent(input.id)}/cancel`,
|
|
1038
|
+
successStatus: 204,
|
|
1039
|
+
declaredStatuses: [400, 401],
|
|
1040
|
+
empty: true
|
|
1041
|
+
}, requestOptions)
|
|
1042
|
+
},
|
|
1043
|
+
machine: {
|
|
1044
|
+
list: (requestOptions) => request({
|
|
1045
|
+
method: "GET",
|
|
1046
|
+
path: `/api/experimental/machine`,
|
|
1047
|
+
successStatus: 200,
|
|
1048
|
+
declaredStatuses: [400, 401, 403],
|
|
1049
|
+
empty: false
|
|
1050
|
+
}, requestOptions).then((value) => value.data),
|
|
1051
|
+
add: (input, requestOptions) => request({
|
|
1052
|
+
method: "POST",
|
|
1053
|
+
path: `/api/experimental/machine`,
|
|
1054
|
+
body: { name: input["name"], reach: input["reach"], replace: input["replace"] },
|
|
1055
|
+
successStatus: 200,
|
|
1056
|
+
declaredStatuses: [400, 401, 403, 404, 409],
|
|
1057
|
+
empty: false
|
|
1058
|
+
}, requestOptions).then((value) => value.data),
|
|
1059
|
+
remove: (input, requestOptions) => request({
|
|
1060
|
+
method: "DELETE",
|
|
1061
|
+
path: `/api/experimental/machine/${encodeURIComponent(input.name)}`,
|
|
1062
|
+
successStatus: 204,
|
|
1063
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
1064
|
+
empty: true
|
|
1065
|
+
}, requestOptions)
|
|
1035
1066
|
},
|
|
1036
1067
|
migration: {
|
|
1037
1068
|
v1: {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isFormNotFoundError2,
|
|
5
5
|
isFormAlreadySettledError2,
|
|
6
6
|
isPermissionNotFoundError2
|
|
7
|
-
} from "./service-timing-
|
|
7
|
+
} from "./service-timing-d8dhy2yj.js";
|
|
8
8
|
|
|
9
9
|
// src/solid/data.ts
|
|
10
10
|
import { Worktree } from "@opencode/schema/worktree";
|
|
@@ -132,6 +132,7 @@ function createSync() {
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
var CHILD_PAGE = 200;
|
|
135
|
+
var SEQUENCE_HANDOFF_MS = 250;
|
|
135
136
|
var DELETED_SESSION_LIMIT = 512;
|
|
136
137
|
function createData2(config) {
|
|
137
138
|
const api = config.api;
|
|
@@ -196,7 +197,9 @@ function createData2(config) {
|
|
|
196
197
|
info: {},
|
|
197
198
|
permission: {}
|
|
198
199
|
},
|
|
199
|
-
location: {}
|
|
200
|
+
location: {},
|
|
201
|
+
job: {},
|
|
202
|
+
jobTree: {}
|
|
200
203
|
});
|
|
201
204
|
const [defaultLocation, setDefaultLocation] = createSignal({ directory: config.directory });
|
|
202
205
|
const sessions = createMemo(() => Object.values(store.session.info).toSorted((a, b) => b.time.updated - a.time.updated));
|
|
@@ -205,6 +208,7 @@ function createData2(config) {
|
|
|
205
208
|
const stored = (message) => omitFiles() ? omitMessageFileData(message) : message;
|
|
206
209
|
const sync = createSync();
|
|
207
210
|
let activeUpdates;
|
|
211
|
+
const jobUpdates = new Map;
|
|
208
212
|
const pendingUpdates = new Map;
|
|
209
213
|
function setSessionActive(sessionID, status) {
|
|
210
214
|
activeUpdates?.set(sessionID, status);
|
|
@@ -276,11 +280,11 @@ function createData2(config) {
|
|
|
276
280
|
};
|
|
277
281
|
promise.then(settle, settle);
|
|
278
282
|
}
|
|
279
|
-
function sendAdmission(sessionID, send, gate) {
|
|
283
|
+
function sendAdmission(sessionID, send, gate, link) {
|
|
280
284
|
const created = creating.get(sessionID);
|
|
281
285
|
const previous = sending.get(sessionID);
|
|
282
286
|
const request = Promise.resolve().then(() => Promise.all([gate, created, previous])).then(send);
|
|
283
|
-
track(sending, sessionID, request.catch(() => {
|
|
287
|
+
track(sending, sessionID, (link?.(request) ?? request).catch(() => {
|
|
284
288
|
return;
|
|
285
289
|
}));
|
|
286
290
|
return request;
|
|
@@ -486,6 +490,7 @@ function createData2(config) {
|
|
|
486
490
|
}
|
|
487
491
|
function removeSession(sessionID) {
|
|
488
492
|
activeUpdates?.set(sessionID, undefined);
|
|
493
|
+
removeJobTree(sessionID);
|
|
489
494
|
store.session.pending[sessionID]?.forEach((item) => outbox.delete(item.id));
|
|
490
495
|
messageIndex.delete(sessionID);
|
|
491
496
|
sync.invalidate(`session:${sessionID}`);
|
|
@@ -542,6 +547,32 @@ function createData2(config) {
|
|
|
542
547
|
}));
|
|
543
548
|
refresh(() => result.location.vcs.sync());
|
|
544
549
|
refresh(() => result.project.sync());
|
|
550
|
+
Object.keys(store.jobTree).forEach((sessionID) => {
|
|
551
|
+
result.job.invalidate(sessionID);
|
|
552
|
+
refresh(() => result.job.sync(sessionID));
|
|
553
|
+
});
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
case "experimental.job.updated": {
|
|
557
|
+
const info = event.data.info;
|
|
558
|
+
const running = info.status === "running";
|
|
559
|
+
jobUpdates.forEach((updates) => updates.set(info.id, running ? info : undefined));
|
|
560
|
+
if (!running) {
|
|
561
|
+
if (!store.job[info.id])
|
|
562
|
+
return;
|
|
563
|
+
setStore(produce((draft) => {
|
|
564
|
+
delete draft.job[info.id];
|
|
565
|
+
Object.values(draft.jobTree).forEach((members) => delete members[info.id]);
|
|
566
|
+
}));
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
setStore(produce((draft) => {
|
|
570
|
+
draft.job[info.id] = info;
|
|
571
|
+
Object.entries(draft.jobTree).forEach(([rootID, members]) => {
|
|
572
|
+
if (jobWithin(info, rootID))
|
|
573
|
+
members[info.id] = true;
|
|
574
|
+
});
|
|
575
|
+
}));
|
|
545
576
|
return;
|
|
546
577
|
}
|
|
547
578
|
case "project.updated":
|
|
@@ -1266,6 +1297,31 @@ function createData2(config) {
|
|
|
1266
1297
|
data: Object.fromEntries(response.data.map((info) => [info.id, { ...info, location: ref }]))
|
|
1267
1298
|
};
|
|
1268
1299
|
});
|
|
1300
|
+
function withinTree(sessionID, ancestorID) {
|
|
1301
|
+
const seen = new Set;
|
|
1302
|
+
let current = sessionID;
|
|
1303
|
+
while (current && !seen.has(current)) {
|
|
1304
|
+
if (current === ancestorID)
|
|
1305
|
+
return true;
|
|
1306
|
+
seen.add(current);
|
|
1307
|
+
current = store.session.info[current]?.parentID;
|
|
1308
|
+
}
|
|
1309
|
+
return false;
|
|
1310
|
+
}
|
|
1311
|
+
function jobWithin(job, ancestorID) {
|
|
1312
|
+
return withinTree(job.sessionID, ancestorID) || job.kind === "subagent" && withinTree(job.childSessionID, ancestorID);
|
|
1313
|
+
}
|
|
1314
|
+
function removeJobTree(rootID) {
|
|
1315
|
+
jobUpdates.delete(rootID);
|
|
1316
|
+
sync.invalidate(`job:${rootID}`);
|
|
1317
|
+
const members = store.jobTree[rootID];
|
|
1318
|
+
if (!members)
|
|
1319
|
+
return;
|
|
1320
|
+
setStore(produce((draft) => {
|
|
1321
|
+
Object.keys(members).forEach((id) => delete draft.job[id]);
|
|
1322
|
+
delete draft.jobTree[rootID];
|
|
1323
|
+
}));
|
|
1324
|
+
}
|
|
1269
1325
|
const result = {
|
|
1270
1326
|
on: config.event.on,
|
|
1271
1327
|
listen: config.event.listen,
|
|
@@ -1466,6 +1522,18 @@ function createData2(config) {
|
|
|
1466
1522
|
compacting.set(input.sessionID, { id, observed, request });
|
|
1467
1523
|
return request;
|
|
1468
1524
|
},
|
|
1525
|
+
sequence(sessionID, send, prepare) {
|
|
1526
|
+
const left = Promise.withResolvers();
|
|
1527
|
+
return sendAdmission(sessionID, async () => {
|
|
1528
|
+
await prepare?.();
|
|
1529
|
+
const request = send();
|
|
1530
|
+
left.resolve();
|
|
1531
|
+
return request;
|
|
1532
|
+
}, undefined, (request) => Promise.race([
|
|
1533
|
+
request,
|
|
1534
|
+
left.promise.then(() => new Promise((resolve) => setTimeout(resolve, SEQUENCE_HANDOFF_MS)))
|
|
1535
|
+
]));
|
|
1536
|
+
},
|
|
1469
1537
|
prompt(input) {
|
|
1470
1538
|
const { gate, prepare, ...request } = input;
|
|
1471
1539
|
const id = request.id ?? SessionMessage.ID.create();
|
|
@@ -1750,6 +1818,48 @@ function createData2(config) {
|
|
|
1750
1818
|
sync: shells.sync,
|
|
1751
1819
|
invalidate: shells.invalidate
|
|
1752
1820
|
},
|
|
1821
|
+
job: {
|
|
1822
|
+
list(sessionID) {
|
|
1823
|
+
const members = store.jobTree[sessionID];
|
|
1824
|
+
return Object.values(store.job).filter((job) => members?.[job.id] || jobWithin(job, sessionID));
|
|
1825
|
+
},
|
|
1826
|
+
sync(sessionID) {
|
|
1827
|
+
return sync.run(`job:${sessionID}`, async () => {
|
|
1828
|
+
const updates = new Map;
|
|
1829
|
+
jobUpdates.set(sessionID, updates);
|
|
1830
|
+
const list = await api().experimental.job.list({ sessionID, descendants: true, status: "running" }).catch((error) => {
|
|
1831
|
+
if (jobUpdates.get(sessionID) === updates)
|
|
1832
|
+
jobUpdates.delete(sessionID);
|
|
1833
|
+
return evictMissing(error);
|
|
1834
|
+
});
|
|
1835
|
+
if (jobUpdates.get(sessionID) !== updates)
|
|
1836
|
+
return;
|
|
1837
|
+
jobUpdates.delete(sessionID);
|
|
1838
|
+
const listed = new Map(list.map((job) => [job.id, job]));
|
|
1839
|
+
const next = new Map(listed);
|
|
1840
|
+
updates.forEach((info, id) => {
|
|
1841
|
+
if (!info)
|
|
1842
|
+
return next.delete(id);
|
|
1843
|
+
if (listed.has(id) || jobWithin(info, sessionID))
|
|
1844
|
+
next.set(id, info);
|
|
1845
|
+
});
|
|
1846
|
+
const previous = store.jobTree[sessionID] ?? {};
|
|
1847
|
+
setStore(produce((draft) => {
|
|
1848
|
+
Object.values(draft.job).forEach((job) => {
|
|
1849
|
+
if (next.has(job.id))
|
|
1850
|
+
return;
|
|
1851
|
+
if (previous[job.id] || jobWithin(job, sessionID))
|
|
1852
|
+
delete draft.job[job.id];
|
|
1853
|
+
});
|
|
1854
|
+
next.forEach((job, id) => draft.job[id] = job);
|
|
1855
|
+
draft.jobTree[sessionID] = Object.fromEntries([...next.keys()].map((id) => [id, true]));
|
|
1856
|
+
}));
|
|
1857
|
+
});
|
|
1858
|
+
},
|
|
1859
|
+
invalidate(sessionID) {
|
|
1860
|
+
sync.invalidate(`job:${sessionID}`);
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1753
1863
|
location: {
|
|
1754
1864
|
info(ref) {
|
|
1755
1865
|
return store.location[locationKey2(ref ?? defaultLocation())]?.info;
|
|
@@ -22,12 +22,12 @@ var isProviderNotFoundError2 = (value) => typeof value === "object" && value !==
|
|
|
22
22
|
var isModelNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ModelNotFoundError";
|
|
23
23
|
var isUnsupportedModelError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "UnsupportedModelError";
|
|
24
24
|
var isProviderRequestError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ProviderRequestError";
|
|
25
|
-
var isForbiddenError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ForbiddenError";
|
|
26
25
|
var isVideoNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VideoNotFoundError";
|
|
27
26
|
var isIntegrationNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationNotFoundError";
|
|
28
27
|
var isIntegrationAttemptNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationAttemptNotFoundError";
|
|
29
28
|
var isIntegrationMethodNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationMethodNotFoundError";
|
|
30
29
|
var isMcpServerNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "McpServerNotFoundError";
|
|
30
|
+
var isForbiddenError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ForbiddenError";
|
|
31
31
|
var isProjectNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ProjectNotFoundError";
|
|
32
32
|
var isPermissionSavedNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PermissionSavedNotFoundError";
|
|
33
33
|
var isPermissionNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PermissionNotFoundError";
|
|
@@ -39,8 +39,9 @@ var isPtyFeatureUnsupportedError2 = (value) => typeof value === "object" && valu
|
|
|
39
39
|
var isBlobNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "BlobNotFoundError";
|
|
40
40
|
var isAutomationNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "AutomationNotFoundError";
|
|
41
41
|
var isArtifactNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ArtifactNotFoundError";
|
|
42
|
+
var isMachineNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "MachineNotFoundError";
|
|
42
43
|
var isShellNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ShellNotFoundError";
|
|
43
44
|
var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "WorktreeError";
|
|
44
45
|
var isVcsInitNotSupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VcsInitNotSupportedError";
|
|
45
46
|
|
|
46
|
-
export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2,
|
|
47
|
+
export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2, isVideoNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isForbiddenError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isPtyFeatureUnsupportedError2, isBlobNotFoundError2, isAutomationNotFoundError2, isArtifactNotFoundError2, isMachineNotFoundError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./service-timing-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
make6
|
|
6
|
-
} from "./service-timing-
|
|
6
|
+
} from "./service-timing-2bkgs6c9.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./service-timing-
|
|
9
|
+
} from "./service-timing-p88pr19t.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./service-timing-9rqn6x4v.js";
|
|
@@ -613,6 +613,10 @@ var EndpointExperimentalJobList = (raw) => (input) => preserveEffect()(raw["job.
|
|
|
613
613
|
descendants: input?.["descendants"]
|
|
614
614
|
}
|
|
615
615
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
616
|
+
var EndpointExperimentalJobCancel = (raw) => (input) => preserveEffect()(raw["job.cancel"]({ params: { id: input["id"] } }).pipe(Effect.mapError(mapClientError)));
|
|
617
|
+
var EndpointExperimentalMachineList = (raw) => () => preserveEffect()(raw["machine.list"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
618
|
+
var EndpointExperimentalMachineAdd = (raw) => (input) => preserveEffect()(raw["machine.add"]({ payload: { name: input["name"], reach: input["reach"], replace: input["replace"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
619
|
+
var EndpointExperimentalMachineRemove = (raw) => (input) => preserveEffect()(raw["machine.remove"]({ params: { name: input["name"] } }).pipe(Effect.mapError(mapClientError)));
|
|
616
620
|
var adaptGroupExperimental = (raw) => ({
|
|
617
621
|
persistentPty: {
|
|
618
622
|
read: EndpointExperimentalPersistentPtyRead(raw),
|
|
@@ -642,7 +646,12 @@ var adaptGroupExperimental = (raw) => ({
|
|
|
642
646
|
update: EndpointExperimentalArtifactsUpdate(raw),
|
|
643
647
|
delete: EndpointExperimentalArtifactsDelete(raw)
|
|
644
648
|
},
|
|
645
|
-
job: { list: EndpointExperimentalJobList(raw) }
|
|
649
|
+
job: { list: EndpointExperimentalJobList(raw), cancel: EndpointExperimentalJobCancel(raw) },
|
|
650
|
+
machine: {
|
|
651
|
+
list: EndpointExperimentalMachineList(raw),
|
|
652
|
+
add: EndpointExperimentalMachineAdd(raw),
|
|
653
|
+
remove: EndpointExperimentalMachineRemove(raw)
|
|
654
|
+
}
|
|
646
655
|
});
|
|
647
656
|
var EndpointShellList = (raw) => (input) => preserveEffect()(raw["shell.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
648
657
|
var EndpointShellCreate = (raw) => (input) => preserveEffect()(raw["shell.create"]({
|
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -1918,6 +1918,8 @@ export interface ExperimentalGenerateApi<E = never> {
|
|
|
1918
1918
|
export type ExperimentalVoiceModelsOutput = {
|
|
1919
1919
|
readonly models: ReadonlyArray<{
|
|
1920
1920
|
readonly model: string;
|
|
1921
|
+
readonly name: string;
|
|
1922
|
+
readonly engine: string;
|
|
1921
1923
|
readonly provider: string;
|
|
1922
1924
|
readonly transports: ReadonlyArray<"webrtc" | "websocket">;
|
|
1923
1925
|
readonly available: boolean;
|
|
@@ -2467,7 +2469,7 @@ export interface RpcApi<E = never> {
|
|
|
2467
2469
|
readonly call: RpcCallOperation<E>;
|
|
2468
2470
|
}
|
|
2469
2471
|
export type EventSubscribeInput = {
|
|
2470
|
-
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "artifact.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | `${"rpc."}${string}`> | undefined;
|
|
2472
|
+
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "artifact.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | `${"rpc."}${string}`> | undefined;
|
|
2471
2473
|
};
|
|
2472
2474
|
export type EventSubscribeOutput = OpenCodeEvent;
|
|
2473
2475
|
export type EventSubscribeOperation<E = never> = (input?: EventSubscribeInput) => Stream.Stream<EventSubscribeOutput, E>;
|
|
@@ -2869,6 +2871,49 @@ export type ExperimentalJobListInput = {
|
|
|
2869
2871
|
};
|
|
2870
2872
|
export type ExperimentalJobListOutput = ReadonlyArray<Job.Info>;
|
|
2871
2873
|
export type ExperimentalJobListOperation<E = never> = (input?: ExperimentalJobListInput) => Effect.Effect<ExperimentalJobListOutput, E>;
|
|
2874
|
+
export type ExperimentalJobCancelInput = {
|
|
2875
|
+
readonly id: string;
|
|
2876
|
+
};
|
|
2877
|
+
export type ExperimentalJobCancelOutput = void;
|
|
2878
|
+
export type ExperimentalJobCancelOperation<E = never> = (input: ExperimentalJobCancelInput) => Effect.Effect<ExperimentalJobCancelOutput, E>;
|
|
2879
|
+
export type ExperimentalMachineListOutput = ReadonlyArray<{
|
|
2880
|
+
readonly id: string;
|
|
2881
|
+
readonly online: boolean;
|
|
2882
|
+
readonly paired: boolean;
|
|
2883
|
+
readonly os?: string;
|
|
2884
|
+
readonly arch?: string;
|
|
2885
|
+
readonly connection?: {
|
|
2886
|
+
readonly kind: "websocket" | "iroh";
|
|
2887
|
+
readonly path?: "direct" | "relayed";
|
|
2888
|
+
readonly rtt?: number;
|
|
2889
|
+
};
|
|
2890
|
+
}>;
|
|
2891
|
+
export type ExperimentalMachineListOperation<E = never> = () => Effect.Effect<ExperimentalMachineListOutput, E>;
|
|
2892
|
+
export type ExperimentalMachineAddInput = {
|
|
2893
|
+
readonly name: string;
|
|
2894
|
+
readonly reach: ReadonlyArray<{
|
|
2895
|
+
readonly type: "url";
|
|
2896
|
+
readonly url: string;
|
|
2897
|
+
}>;
|
|
2898
|
+
readonly replace?: boolean | undefined;
|
|
2899
|
+
};
|
|
2900
|
+
export type ExperimentalMachineAddOutput = {
|
|
2901
|
+
readonly name: string;
|
|
2902
|
+
readonly join: string;
|
|
2903
|
+
readonly expires: number;
|
|
2904
|
+
readonly reach: ReadonlyArray<{
|
|
2905
|
+
readonly type: "url";
|
|
2906
|
+
readonly url: string;
|
|
2907
|
+
} | {
|
|
2908
|
+
readonly type: "iroh";
|
|
2909
|
+
}>;
|
|
2910
|
+
};
|
|
2911
|
+
export type ExperimentalMachineAddOperation<E = never> = (input: ExperimentalMachineAddInput) => Effect.Effect<ExperimentalMachineAddOutput, E>;
|
|
2912
|
+
export type ExperimentalMachineRemoveInput = {
|
|
2913
|
+
readonly name: string;
|
|
2914
|
+
};
|
|
2915
|
+
export type ExperimentalMachineRemoveOutput = void;
|
|
2916
|
+
export type ExperimentalMachineRemoveOperation<E = never> = (input: ExperimentalMachineRemoveInput) => Effect.Effect<ExperimentalMachineRemoveOutput, E>;
|
|
2872
2917
|
export interface ExperimentalApi<E = never> {
|
|
2873
2918
|
readonly persistentPty: {
|
|
2874
2919
|
readonly read: ExperimentalPersistentPtyReadOperation<E>;
|
|
@@ -2900,6 +2945,12 @@ export interface ExperimentalApi<E = never> {
|
|
|
2900
2945
|
};
|
|
2901
2946
|
readonly job: {
|
|
2902
2947
|
readonly list: ExperimentalJobListOperation<E>;
|
|
2948
|
+
readonly cancel: ExperimentalJobCancelOperation<E>;
|
|
2949
|
+
};
|
|
2950
|
+
readonly machine: {
|
|
2951
|
+
readonly list: ExperimentalMachineListOperation<E>;
|
|
2952
|
+
readonly add: ExperimentalMachineAddOperation<E>;
|
|
2953
|
+
readonly remove: ExperimentalMachineRemoveOperation<E>;
|
|
2903
2954
|
};
|
|
2904
2955
|
}
|
|
2905
2956
|
export type ShellListInput = {
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -59,6 +59,12 @@ export declare const make: (options?: {
|
|
|
59
59
|
};
|
|
60
60
|
job: {
|
|
61
61
|
list: (input?: import("./api.js").ExperimentalJobListInput) => Effect.Effect<import("./api.js").ExperimentalJobListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
62
|
+
cancel: (input: import("./api.js").ExperimentalJobCancelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
63
|
+
};
|
|
64
|
+
machine: {
|
|
65
|
+
list: () => Effect.Effect<import("./api.js").ExperimentalMachineListOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
66
|
+
add: (input: import("./api.js").ExperimentalMachineAddInput) => Effect.Effect<import("./api.js").ExperimentalMachineAddOutput, ClientError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MachineNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
67
|
+
remove: (input: import("./api.js").ExperimentalMachineRemoveInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MachineNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
62
68
|
};
|
|
63
69
|
session: {
|
|
64
70
|
stats: (input?: import("./api.js").ExperimentalSessionStatsInput) => Effect.Effect<import("./api.js").ExperimentalSessionStatsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
@@ -79,8 +85,8 @@ export declare const make: (options?: {
|
|
|
79
85
|
text: (input: import("./api.js").ExperimentalGenerateTextInput) => Effect.Effect<import("./api.js").ExperimentalGenerateTextOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
|
|
80
86
|
image: (input: import("./api.js").ExperimentalGenerateImageInput) => Effect.Effect<import("@opencode/schema/generate").ImageResult, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
|
|
81
87
|
video: {
|
|
82
|
-
create: (input: import("./api.js").ExperimentalGenerateVideoCreateInput) => Effect.Effect<import("@opencode/schema/generate").VideoRunning, ClientError | import("
|
|
83
|
-
get: (input: import("./api.js").ExperimentalGenerateVideoGetInput) => Effect.Effect<import("@opencode/schema/generate").VideoJob, ClientError | import("
|
|
88
|
+
create: (input: import("./api.js").ExperimentalGenerateVideoCreateInput) => Effect.Effect<import("@opencode/schema/generate").VideoRunning, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
|
|
89
|
+
get: (input: import("./api.js").ExperimentalGenerateVideoGetInput) => Effect.Effect<import("@opencode/schema/generate").VideoJob, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").VideoNotFoundError, never>;
|
|
84
90
|
};
|
|
85
91
|
decisions: (input: import("./api.js").ExperimentalGenerateDecisionsInput) => Effect.Effect<import("@opencode/schema/generate").DecisionResult, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
|
|
86
92
|
};
|
|
@@ -334,7 +340,7 @@ export declare const make: (options?: {
|
|
|
334
340
|
update: (input: import("./api.js").ExperimentalConfigUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
335
341
|
};
|
|
336
342
|
event: {
|
|
337
|
-
subscribe: <Type extends EventType = "agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "experimental.mcp.event" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.first-token" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`>(input?: {
|
|
343
|
+
subscribe: <Type extends EventType = "agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "experimental.job.updated" | "experimental.mcp.event" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.first-token" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`>(input?: {
|
|
338
344
|
readonly types?: ReadonlyArray<Type>;
|
|
339
345
|
}) => Stream.Stream<([Extract<Type, "session.agent.selected">] extends [never] ? never : {
|
|
340
346
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -1737,6 +1743,78 @@ export declare const make: (options?: {
|
|
|
1737
1743
|
readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
|
|
1738
1744
|
readonly credentialID: string & import("effect/Brand").Brand<"Credential.ID">;
|
|
1739
1745
|
};
|
|
1746
|
+
}) | ([Extract<Type, "experimental.job.updated">] extends [never] ? never : {
|
|
1747
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1748
|
+
readonly created: number;
|
|
1749
|
+
readonly metadata?: {
|
|
1750
|
+
readonly [x: string]: unknown;
|
|
1751
|
+
} | undefined;
|
|
1752
|
+
readonly type: "experimental.job.updated";
|
|
1753
|
+
readonly location?: {
|
|
1754
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1755
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1756
|
+
} | undefined;
|
|
1757
|
+
readonly data: {
|
|
1758
|
+
readonly info: {
|
|
1759
|
+
readonly id: string;
|
|
1760
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1761
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1762
|
+
readonly title?: string | undefined;
|
|
1763
|
+
readonly time: {
|
|
1764
|
+
readonly started: number;
|
|
1765
|
+
readonly completed?: number | undefined;
|
|
1766
|
+
};
|
|
1767
|
+
readonly kind: "shell";
|
|
1768
|
+
readonly shellID: string;
|
|
1769
|
+
readonly command: string;
|
|
1770
|
+
} | {
|
|
1771
|
+
readonly id: string;
|
|
1772
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1773
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1774
|
+
readonly title?: string | undefined;
|
|
1775
|
+
readonly time: {
|
|
1776
|
+
readonly started: number;
|
|
1777
|
+
readonly completed?: number | undefined;
|
|
1778
|
+
};
|
|
1779
|
+
readonly kind: "subagent";
|
|
1780
|
+
readonly childSessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1781
|
+
readonly agent: string;
|
|
1782
|
+
readonly description: string;
|
|
1783
|
+
} | {
|
|
1784
|
+
readonly id: string;
|
|
1785
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1786
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1787
|
+
readonly title?: string | undefined;
|
|
1788
|
+
readonly time: {
|
|
1789
|
+
readonly started: number;
|
|
1790
|
+
readonly completed?: number | undefined;
|
|
1791
|
+
};
|
|
1792
|
+
readonly kind: "image";
|
|
1793
|
+
readonly path: string;
|
|
1794
|
+
readonly model: string;
|
|
1795
|
+
} | {
|
|
1796
|
+
readonly id: string;
|
|
1797
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1798
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1799
|
+
readonly title?: string | undefined;
|
|
1800
|
+
readonly time: {
|
|
1801
|
+
readonly started: number;
|
|
1802
|
+
readonly completed?: number | undefined;
|
|
1803
|
+
};
|
|
1804
|
+
readonly kind: "video";
|
|
1805
|
+
readonly path: string;
|
|
1806
|
+
} | {
|
|
1807
|
+
readonly id: string;
|
|
1808
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1809
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1810
|
+
readonly title?: string | undefined;
|
|
1811
|
+
readonly time: {
|
|
1812
|
+
readonly started: number;
|
|
1813
|
+
readonly completed?: number | undefined;
|
|
1814
|
+
};
|
|
1815
|
+
readonly kind: "codemode";
|
|
1816
|
+
};
|
|
1817
|
+
};
|
|
1740
1818
|
}) | ([Extract<Type, "experimental.mcp.event">] extends [never] ? never : {
|
|
1741
1819
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1742
1820
|
readonly created: number;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/service-timing-
|
|
4
|
+
} from "../chunks/service-timing-dsejcdh4.js";
|
|
5
5
|
import"../chunks/service-timing-15p82y03.js";
|
|
6
6
|
import"../chunks/service-timing-6mptkzbc.js";
|
|
7
|
-
import"../chunks/service-timing-
|
|
7
|
+
import"../chunks/service-timing-zrgqmrbq.js";
|
|
8
8
|
import"../chunks/service-timing-y2etg5bs.js";
|
|
9
|
-
import"../chunks/service-timing-ryy6kscr.js";
|
|
10
9
|
import"../chunks/service-timing-60xe5cbf.js";
|
|
11
10
|
import"../chunks/service-timing-gecjxyvt.js";
|
|
11
|
+
import"../chunks/service-timing-ryy6kscr.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client as OpenCode,
|
|
14
14
|
make2 as make
|