@opencode/client 0.0.0-dev-1302 → 0.0.0-dev-1304
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/{contract-xc262c29.js → service-2xxned0e.js} +6 -6
- package/dist/chunks/{contract-k08hsd4a.js → service-49q9zpks.js} +9 -9
- package/dist/chunks/{contract-5a9sek8y.js → service-5bwjzgt1.js} +20 -21
- package/dist/chunks/{contract-b6kzr061.js → service-6hqrj29e.js} +2 -2
- package/dist/chunks/{contract-2ny4vxct.js → service-8ye1ye6f.js} +2 -2
- package/dist/chunks/{contract-sqcsh66p.js → service-gecjxyvt.js} +4 -4
- package/dist/chunks/{contract-7fbxmab6.js → service-hymesegy.js} +2 -2
- package/dist/chunks/{contract-dvkthykg.js → service-mqnb71k6.js} +1 -1
- package/dist/chunks/{contract-18xz77sd.js → service-myz4ngx9.js} +5 -5
- package/dist/chunks/{contract-10v1erad.js → service-nmmc7qpz.js} +14 -15
- package/dist/chunks/{contract-ryy6kscr.js → service-ryy6kscr.js} +1 -1
- package/dist/chunks/{contract-j9cqx0dj.js → service-xafd70ys.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +38 -38
- package/dist/effect/client.d.ts +7 -239
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +8 -240
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +7 -7
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +8 -8
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +6 -6
- package/dist/promise/generated/types.d.ts +110 -124
- package/dist/promise/generated/types.js +3 -3
- package/dist/promise/index.js +11 -11
- package/dist/promise/media.d.ts +7 -7
- package/dist/promise/media.js +1 -1
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +4 -4
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +3 -3
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +10 -10
- package/dist/solid/index.js +14 -14
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- /package/dist/chunks/{contract-3eaz3m83.js → service-3eaz3m83.js} +0 -0
- /package/dist/chunks/{contract-60xe5cbf.js → service-60xe5cbf.js} +0 -0
- /package/dist/chunks/{contract-6mptkzbc.js → service-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-6mq2wh8y.js → service-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{contract-6r38tsk5.js → service-6r38tsk5.js} +0 -0
- /package/dist/chunks/{contract-7f0py9js.js → service-7f0py9js.js} +0 -0
- /package/dist/chunks/{contract-8s2anffy.js → service-8s2anffy.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-js54wxgp.js → service-js54wxgp.js} +0 -0
- /package/dist/chunks/{contract-mwrzahmf.js → service-mwrzahmf.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → service-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → service-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-ve4aws36.js → service-ve4aws36.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → service-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → service-ydhz1zrh.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
make7
|
|
3
|
+
} from "./service-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
make3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-nmmc7qpz.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-xafd70ys.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/promise/client.ts
|
|
15
15
|
var exports_client = {};
|
|
@@ -19,7 +19,7 @@ __export(exports_client, {
|
|
|
19
19
|
});
|
|
20
20
|
function make2(options) {
|
|
21
21
|
const raw = make3(options);
|
|
22
|
-
const events =
|
|
22
|
+
const events = make7((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
|
|
23
23
|
return {
|
|
24
24
|
...raw,
|
|
25
25
|
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
make7
|
|
3
|
+
} from "./service-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
make5
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-5bwjzgt1.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make6,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./service-myz4ngx9.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./service-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
19
|
var exports_client3 = {};
|
|
@@ -40,12 +40,12 @@ var make4 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
40
40
|
this.cause = cause;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const shared =
|
|
43
|
+
const shared = make7((signal) => Stream.toAsyncIterableWith(native.pipe(Stream.interruptWhen(aborted2(signal)), Stream.catchCause((cause) => Stream.fail(new EventFailure(cause)))), context));
|
|
44
44
|
const subscribe = (input) => Stream.fromAsyncIterable(shared.subscribe({ types: input?.types }), (error) => error).pipe(Stream.catch((error) => Stream.failCause(error instanceof EventFailure ? error.cause : Cause.fail(new ClientError3({ cause: error })))));
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
47
47
|
event: { ...raw.event, subscribe },
|
|
48
|
-
rpc: Object.assign(
|
|
48
|
+
rpc: Object.assign(make6((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-60xe5cbf.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client4 = {};
|
|
@@ -563,22 +563,21 @@ var EndpointExperimentalPersistentPtyConnectToken = (raw) => (input) => preserve
|
|
|
563
563
|
params: { ptyID: input["ptyID"] },
|
|
564
564
|
headers: { "x-opencode-ticket": input["x-opencode-ticket"] }
|
|
565
565
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
566
|
-
var
|
|
566
|
+
var EndpointExperimentalAutomationCreate = (raw) => (input) => preserveEffect()(raw["automation.create"]({
|
|
567
567
|
payload: {
|
|
568
568
|
sessionID: input["sessionID"],
|
|
569
|
+
directory: input["directory"],
|
|
569
570
|
name: input["name"],
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
ends: input["ends"],
|
|
574
|
-
prompt: input["prompt"]
|
|
571
|
+
trigger: input["trigger"],
|
|
572
|
+
action: input["action"],
|
|
573
|
+
expires: input["expires"]
|
|
575
574
|
}
|
|
576
575
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
577
|
-
var
|
|
578
|
-
var
|
|
579
|
-
var
|
|
580
|
-
var
|
|
581
|
-
var
|
|
576
|
+
var EndpointExperimentalAutomationList = (raw) => (input) => preserveEffect()(raw["automation.list"]({ query: { sessionID: input?.["sessionID"], directory: input?.["directory"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
577
|
+
var EndpointExperimentalAutomationGet = (raw) => (input) => preserveEffect()(raw["automation.get"]({ params: { automationID: input["automationID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
578
|
+
var EndpointExperimentalAutomationPause = (raw) => (input) => preserveEffect()(raw["automation.pause"]({ params: { automationID: input["automationID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
579
|
+
var EndpointExperimentalAutomationResume = (raw) => (input) => preserveEffect()(raw["automation.resume"]({ params: { automationID: input["automationID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
580
|
+
var EndpointExperimentalAutomationDelete = (raw) => (input) => preserveEffect()(raw["automation.delete"]({ params: { automationID: input["automationID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
582
581
|
var EndpointExperimentalArtifactsProviders = (raw) => (input) => preserveEffect()(raw["artifacts.providers"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
583
582
|
var EndpointExperimentalArtifactsList = (raw) => (input) => preserveEffect()(raw["artifacts.list"]({
|
|
584
583
|
query: { location: input?.["location"], sessionID: input?.["sessionID"], provider: input?.["provider"] }
|
|
@@ -627,13 +626,13 @@ var adaptGroupExperimental = (raw) => ({
|
|
|
627
626
|
remove: EndpointExperimentalPersistentPtyRemove(raw),
|
|
628
627
|
connectToken: EndpointExperimentalPersistentPtyConnectToken(raw)
|
|
629
628
|
},
|
|
630
|
-
|
|
631
|
-
create:
|
|
632
|
-
list:
|
|
633
|
-
get:
|
|
634
|
-
pause:
|
|
635
|
-
resume:
|
|
636
|
-
delete:
|
|
629
|
+
automation: {
|
|
630
|
+
create: EndpointExperimentalAutomationCreate(raw),
|
|
631
|
+
list: EndpointExperimentalAutomationList(raw),
|
|
632
|
+
get: EndpointExperimentalAutomationGet(raw),
|
|
633
|
+
pause: EndpointExperimentalAutomationPause(raw),
|
|
634
|
+
resume: EndpointExperimentalAutomationResume(raw),
|
|
635
|
+
delete: EndpointExperimentalAutomationDelete(raw)
|
|
637
636
|
},
|
|
638
637
|
artifacts: {
|
|
639
638
|
providers: EndpointExperimentalArtifactsProviders(raw),
|
|
@@ -37,10 +37,10 @@ var isRpcInternalError2 = (value) => typeof value === "object" && value !== null
|
|
|
37
37
|
var isPtyNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyNotFoundError";
|
|
38
38
|
var isPtyFeatureUnsupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyFeatureUnsupportedError";
|
|
39
39
|
var isBlobNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "BlobNotFoundError";
|
|
40
|
-
var
|
|
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
42
|
var isShellNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ShellNotFoundError";
|
|
43
43
|
var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "WorktreeError";
|
|
44
44
|
var isVcsInitNotSupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VcsInitNotSupportedError";
|
|
45
45
|
|
|
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, isForbiddenError2, isVideoNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isPtyFeatureUnsupportedError2, isBlobNotFoundError2,
|
|
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, isForbiddenError2, isVideoNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isPtyFeatureUnsupportedError2, isBlobNotFoundError2, isAutomationNotFoundError2, isArtifactNotFoundError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultEnsureTiming2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/shared-events.ts
|
|
6
6
|
var exports_shared_events = {};
|
|
7
7
|
__export(exports_shared_events, {
|
|
8
8
|
SharedEvents: () => exports_shared_events,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make7
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make7(connect) {
|
|
12
12
|
let current;
|
|
13
13
|
const capacity = 4096;
|
|
14
14
|
function stop(connection) {
|
|
@@ -146,4 +146,4 @@ function make6(connect) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export {
|
|
149
|
+
export { make7, exports_shared_events };
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-ryy6kscr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
13
13
|
__export(exports_rpc, {
|
|
14
14
|
RpcClientRuntime: () => exports_rpc,
|
|
15
15
|
aborted: () => aborted2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make6
|
|
17
17
|
});
|
|
18
18
|
import { Effect, Stream } from "effect";
|
|
19
|
-
function
|
|
19
|
+
function make6(call, subscribe) {
|
|
20
20
|
return (definition) => {
|
|
21
21
|
const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
|
|
22
22
|
name,
|
|
@@ -59,4 +59,4 @@ function aborted2(signal) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export {
|
|
62
|
+
export { make6, aborted2, exports_rpc };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-js54wxgp.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client2 = {};
|
|
@@ -893,18 +893,17 @@ function make3(options) {
|
|
|
893
893
|
binary: true
|
|
894
894
|
}, requestOptions)
|
|
895
895
|
},
|
|
896
|
-
|
|
896
|
+
automation: {
|
|
897
897
|
create: (input, requestOptions) => request({
|
|
898
898
|
method: "POST",
|
|
899
|
-
path: `/api/experimental/
|
|
899
|
+
path: `/api/experimental/automation`,
|
|
900
900
|
body: {
|
|
901
901
|
sessionID: input["sessionID"],
|
|
902
|
+
directory: input["directory"],
|
|
902
903
|
name: input["name"],
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
ends: input["ends"],
|
|
907
|
-
prompt: input["prompt"]
|
|
904
|
+
trigger: input["trigger"],
|
|
905
|
+
action: input["action"],
|
|
906
|
+
expires: input["expires"]
|
|
908
907
|
},
|
|
909
908
|
successStatus: 200,
|
|
910
909
|
declaredStatuses: [400, 401, 403, 404],
|
|
@@ -912,36 +911,36 @@ function make3(options) {
|
|
|
912
911
|
}, requestOptions).then((value) => value.data),
|
|
913
912
|
list: (input, requestOptions) => request({
|
|
914
913
|
method: "GET",
|
|
915
|
-
path: `/api/experimental/
|
|
916
|
-
query: { sessionID: input["sessionID"] },
|
|
914
|
+
path: `/api/experimental/automation`,
|
|
915
|
+
query: { sessionID: input?.["sessionID"], directory: input?.["directory"] },
|
|
917
916
|
successStatus: 200,
|
|
918
917
|
declaredStatuses: [400, 401, 403, 404],
|
|
919
918
|
empty: false
|
|
920
919
|
}, requestOptions).then((value) => value.data),
|
|
921
920
|
get: (input, requestOptions) => request({
|
|
922
921
|
method: "GET",
|
|
923
|
-
path: `/api/experimental/
|
|
922
|
+
path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}`,
|
|
924
923
|
successStatus: 200,
|
|
925
924
|
declaredStatuses: [400, 401, 403, 404],
|
|
926
925
|
empty: false
|
|
927
926
|
}, requestOptions).then((value) => value.data),
|
|
928
927
|
pause: (input, requestOptions) => request({
|
|
929
928
|
method: "POST",
|
|
930
|
-
path: `/api/experimental/
|
|
929
|
+
path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}/pause`,
|
|
931
930
|
successStatus: 200,
|
|
932
931
|
declaredStatuses: [400, 401, 403, 404],
|
|
933
932
|
empty: false
|
|
934
933
|
}, requestOptions).then((value) => value.data),
|
|
935
934
|
resume: (input, requestOptions) => request({
|
|
936
935
|
method: "POST",
|
|
937
|
-
path: `/api/experimental/
|
|
936
|
+
path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}/resume`,
|
|
938
937
|
successStatus: 200,
|
|
939
938
|
declaredStatuses: [400, 401, 403, 404],
|
|
940
939
|
empty: false
|
|
941
940
|
}, requestOptions).then((value) => value.data),
|
|
942
941
|
delete: (input, requestOptions) => request({
|
|
943
942
|
method: "DELETE",
|
|
944
|
-
path: `/api/experimental/
|
|
943
|
+
path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}`,
|
|
945
944
|
successStatus: 204,
|
|
946
945
|
declaredStatuses: [400, 401, 403, 404],
|
|
947
946
|
empty: true
|
package/dist/contract.js
CHANGED
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import type { FileSystem } from "@opencode/schema/filesystem";
|
|
|
36
36
|
import type { Command } from "@opencode/schema/command";
|
|
37
37
|
import type { OpenCodeEvent } from "@opencode/protocol/groups/event";
|
|
38
38
|
import type { Pty } from "@opencode/schema/pty";
|
|
39
|
-
import type {
|
|
39
|
+
import type { Automation } from "@opencode/schema/automation";
|
|
40
40
|
import type { Artifact } from "@opencode/schema/artifact";
|
|
41
41
|
import type { Job } from "@opencode/schema/job";
|
|
42
42
|
import type { Reference } from "@opencode/schema/reference";
|
|
@@ -2750,42 +2750,42 @@ export type ExperimentalPersistentPtyConnectTokenInput = {
|
|
|
2750
2750
|
};
|
|
2751
2751
|
export type ExperimentalPersistentPtyConnectTokenOutput = PtyTicket.ConnectToken;
|
|
2752
2752
|
export type ExperimentalPersistentPtyConnectTokenOperation<E = never> = (input: ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<ExperimentalPersistentPtyConnectTokenOutput, E>;
|
|
2753
|
-
export type
|
|
2754
|
-
readonly sessionID
|
|
2755
|
-
readonly
|
|
2756
|
-
readonly
|
|
2757
|
-
readonly
|
|
2758
|
-
readonly
|
|
2759
|
-
readonly
|
|
2760
|
-
readonly prompt: string;
|
|
2753
|
+
export type ExperimentalAutomationCreateInput = {
|
|
2754
|
+
readonly sessionID?: Session.ID | undefined;
|
|
2755
|
+
readonly directory?: string | undefined;
|
|
2756
|
+
readonly name: string;
|
|
2757
|
+
readonly trigger: Automation.Trigger;
|
|
2758
|
+
readonly action: Automation.ActionInput;
|
|
2759
|
+
readonly expires?: string | undefined;
|
|
2761
2760
|
};
|
|
2762
|
-
export type
|
|
2763
|
-
export type
|
|
2764
|
-
export type
|
|
2765
|
-
readonly sessionID
|
|
2761
|
+
export type ExperimentalAutomationCreateOutput = Automation.Info;
|
|
2762
|
+
export type ExperimentalAutomationCreateOperation<E = never> = (input: ExperimentalAutomationCreateInput) => Effect.Effect<ExperimentalAutomationCreateOutput, E>;
|
|
2763
|
+
export type ExperimentalAutomationListInput = {
|
|
2764
|
+
readonly sessionID?: Session.ID | undefined;
|
|
2765
|
+
readonly directory?: string | undefined;
|
|
2766
2766
|
};
|
|
2767
|
-
export type
|
|
2768
|
-
export type
|
|
2769
|
-
export type
|
|
2770
|
-
readonly
|
|
2767
|
+
export type ExperimentalAutomationListOutput = ReadonlyArray<Automation.Info>;
|
|
2768
|
+
export type ExperimentalAutomationListOperation<E = never> = (input?: ExperimentalAutomationListInput) => Effect.Effect<ExperimentalAutomationListOutput, E>;
|
|
2769
|
+
export type ExperimentalAutomationGetInput = {
|
|
2770
|
+
readonly automationID: Automation.ID;
|
|
2771
2771
|
};
|
|
2772
|
-
export type
|
|
2773
|
-
export type
|
|
2774
|
-
export type
|
|
2775
|
-
readonly
|
|
2772
|
+
export type ExperimentalAutomationGetOutput = Automation.Info;
|
|
2773
|
+
export type ExperimentalAutomationGetOperation<E = never> = (input: ExperimentalAutomationGetInput) => Effect.Effect<ExperimentalAutomationGetOutput, E>;
|
|
2774
|
+
export type ExperimentalAutomationPauseInput = {
|
|
2775
|
+
readonly automationID: Automation.ID;
|
|
2776
2776
|
};
|
|
2777
|
-
export type
|
|
2778
|
-
export type
|
|
2779
|
-
export type
|
|
2780
|
-
readonly
|
|
2777
|
+
export type ExperimentalAutomationPauseOutput = Automation.Info;
|
|
2778
|
+
export type ExperimentalAutomationPauseOperation<E = never> = (input: ExperimentalAutomationPauseInput) => Effect.Effect<ExperimentalAutomationPauseOutput, E>;
|
|
2779
|
+
export type ExperimentalAutomationResumeInput = {
|
|
2780
|
+
readonly automationID: Automation.ID;
|
|
2781
2781
|
};
|
|
2782
|
-
export type
|
|
2783
|
-
export type
|
|
2784
|
-
export type
|
|
2785
|
-
readonly
|
|
2782
|
+
export type ExperimentalAutomationResumeOutput = Automation.Info;
|
|
2783
|
+
export type ExperimentalAutomationResumeOperation<E = never> = (input: ExperimentalAutomationResumeInput) => Effect.Effect<ExperimentalAutomationResumeOutput, E>;
|
|
2784
|
+
export type ExperimentalAutomationDeleteInput = {
|
|
2785
|
+
readonly automationID: Automation.ID;
|
|
2786
2786
|
};
|
|
2787
|
-
export type
|
|
2788
|
-
export type
|
|
2787
|
+
export type ExperimentalAutomationDeleteOutput = void;
|
|
2788
|
+
export type ExperimentalAutomationDeleteOperation<E = never> = (input: ExperimentalAutomationDeleteInput) => Effect.Effect<ExperimentalAutomationDeleteOutput, E>;
|
|
2789
2789
|
export type ExperimentalArtifactsProvidersInput = {
|
|
2790
2790
|
readonly location?: {
|
|
2791
2791
|
readonly directory?: string | undefined;
|
|
@@ -2882,13 +2882,13 @@ export interface ExperimentalApi<E = never> {
|
|
|
2882
2882
|
readonly remove: ExperimentalPersistentPtyRemoveOperation<E>;
|
|
2883
2883
|
readonly connectToken: ExperimentalPersistentPtyConnectTokenOperation<E>;
|
|
2884
2884
|
};
|
|
2885
|
-
readonly
|
|
2886
|
-
readonly create:
|
|
2887
|
-
readonly list:
|
|
2888
|
-
readonly get:
|
|
2889
|
-
readonly pause:
|
|
2890
|
-
readonly resume:
|
|
2891
|
-
readonly delete:
|
|
2885
|
+
readonly automation: {
|
|
2886
|
+
readonly create: ExperimentalAutomationCreateOperation<E>;
|
|
2887
|
+
readonly list: ExperimentalAutomationListOperation<E>;
|
|
2888
|
+
readonly get: ExperimentalAutomationGetOperation<E>;
|
|
2889
|
+
readonly pause: ExperimentalAutomationPauseOperation<E>;
|
|
2890
|
+
readonly resume: ExperimentalAutomationResumeOperation<E>;
|
|
2891
|
+
readonly delete: ExperimentalAutomationDeleteOperation<E>;
|
|
2892
2892
|
};
|
|
2893
2893
|
readonly artifacts: {
|
|
2894
2894
|
readonly providers: ExperimentalArtifactsProvidersOperation<E>;
|