@opencode/client 2.3.0 → 2.3.2
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-15p82y03.js → service-timing-15p82y03.js} +2 -2
- package/dist/chunks/{contract-ec62es4n.js → service-timing-57ewgbn2.js} +2 -2
- package/dist/chunks/{contract-sdjh9vmn.js → service-timing-6hqrj29e.js} +5 -3
- package/dist/chunks/{contract-8ye1ye6f.js → service-timing-8ye1ye6f.js} +2 -2
- package/dist/chunks/{contract-qdgaygb4.js → service-timing-d300ns9h.js} +51 -15
- package/dist/chunks/{contract-gecjxyvt.js → service-timing-gecjxyvt.js} +1 -1
- package/dist/chunks/{contract-2n8q20a3.js → service-timing-mghtrbnp.js} +5 -5
- package/dist/chunks/{contract-tztyfz1b.js → service-timing-mqnb71k6.js} +1 -1
- package/dist/chunks/{contract-yk5evh6f.js → service-timing-nr9zca37.js} +35 -21
- package/dist/chunks/{contract-ryy6kscr.js → service-timing-ryy6kscr.js} +1 -1
- package/dist/chunks/{contract-b5ykzypt.js → service-timing-srved1k0.js} +4 -4
- package/dist/chunks/{contract-xqwq6bgr.js → service-timing-xafd70ys.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +60 -38
- package/dist/effect/client.d.ts +11 -239
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +12 -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 +2 -2
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +14 -7
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +15 -8
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +11 -7
- package/dist/promise/generated/types.d.ts +209 -135
- package/dist/promise/generated/types.js +8 -4
- package/dist/promise/index.js +19 -15
- package/dist/promise/media.d.ts +14 -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 +1 -1
- 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-timing-3eaz3m83.js} +0 -0
- /package/dist/chunks/{contract-60xe5cbf.js → service-timing-60xe5cbf.js} +0 -0
- /package/dist/chunks/{contract-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-6mq2wh8y.js → service-timing-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{contract-6r38tsk5.js → service-timing-6r38tsk5.js} +0 -0
- /package/dist/chunks/{contract-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-mwrzahmf.js → service-timing-mwrzahmf.js} +0 -0
- /package/dist/chunks/{contract-nwcpakzx.js → service-timing-nwcpakzx.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-y2etg5bs.js → service-timing-y2etg5bs.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → service-timing-ydhz1zrh.js} +0 -0
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-timing-ryy6kscr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-timing-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
@@ -22,11 +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
|
+
var isVideoNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VideoNotFoundError";
|
|
25
27
|
var isIntegrationNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationNotFoundError";
|
|
26
28
|
var isIntegrationAttemptNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationAttemptNotFoundError";
|
|
27
29
|
var isIntegrationMethodNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationMethodNotFoundError";
|
|
28
30
|
var isMcpServerNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "McpServerNotFoundError";
|
|
29
|
-
var isForbiddenError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ForbiddenError";
|
|
30
31
|
var isProjectNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ProjectNotFoundError";
|
|
31
32
|
var isPermissionSavedNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PermissionSavedNotFoundError";
|
|
32
33
|
var isPermissionNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PermissionNotFoundError";
|
|
@@ -35,10 +36,11 @@ var isRpcError2 = (value) => typeof value === "object" && value !== null && ("_t
|
|
|
35
36
|
var isRpcInternalError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "RpcInternalError";
|
|
36
37
|
var isPtyNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyNotFoundError";
|
|
37
38
|
var isPtyFeatureUnsupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyFeatureUnsupportedError";
|
|
38
|
-
var
|
|
39
|
+
var isBlobNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "BlobNotFoundError";
|
|
40
|
+
var isAutomationNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "AutomationNotFoundError";
|
|
39
41
|
var isArtifactNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ArtifactNotFoundError";
|
|
40
42
|
var isShellNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ShellNotFoundError";
|
|
41
43
|
var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "WorktreeError";
|
|
42
44
|
var isVcsInitNotSupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VcsInitNotSupportedError";
|
|
43
45
|
|
|
44
|
-
export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2,
|
|
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-timing-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-timing-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-timing-nwcpakzx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-timing-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client4 = {};
|
|
@@ -648,6 +648,33 @@ function make6(options) {
|
|
|
648
648
|
declaredStatuses: [400, 401, 404, 422, 502, 503],
|
|
649
649
|
empty: false
|
|
650
650
|
}, requestOptions).then((value) => value.data),
|
|
651
|
+
video: {
|
|
652
|
+
create: (input, requestOptions) => request({
|
|
653
|
+
method: "POST",
|
|
654
|
+
path: `/api/experimental/generate/video`,
|
|
655
|
+
body: {
|
|
656
|
+
model: input["model"],
|
|
657
|
+
prompt: input["prompt"],
|
|
658
|
+
start: input["start"],
|
|
659
|
+
end: input["end"],
|
|
660
|
+
references: input["references"],
|
|
661
|
+
duration: input["duration"],
|
|
662
|
+
aspect: input["aspect"],
|
|
663
|
+
resolution: input["resolution"],
|
|
664
|
+
sound: input["sound"]
|
|
665
|
+
},
|
|
666
|
+
successStatus: 200,
|
|
667
|
+
declaredStatuses: [400, 401, 403, 404, 422, 502, 503],
|
|
668
|
+
empty: false
|
|
669
|
+
}, requestOptions).then((value) => value.data),
|
|
670
|
+
get: (input, requestOptions) => request({
|
|
671
|
+
method: "GET",
|
|
672
|
+
path: `/api/experimental/generate/video/${encodeURIComponent(input.id)}`,
|
|
673
|
+
successStatus: 200,
|
|
674
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
675
|
+
empty: false
|
|
676
|
+
}, requestOptions).then((value) => value.data)
|
|
677
|
+
},
|
|
651
678
|
decisions: (input, requestOptions) => request({
|
|
652
679
|
method: "POST",
|
|
653
680
|
path: `/api/experimental/generate/decisions`,
|
|
@@ -856,18 +883,27 @@ function make6(options) {
|
|
|
856
883
|
binary: true
|
|
857
884
|
}, requestOptions)
|
|
858
885
|
},
|
|
859
|
-
|
|
886
|
+
blob: {
|
|
887
|
+
get: (input, requestOptions) => request({
|
|
888
|
+
method: "GET",
|
|
889
|
+
path: `/api/experimental/blob/${encodeURIComponent(input.id)}`,
|
|
890
|
+
successStatus: 200,
|
|
891
|
+
declaredStatuses: [400, 401, 404],
|
|
892
|
+
empty: false,
|
|
893
|
+
binary: true
|
|
894
|
+
}, requestOptions)
|
|
895
|
+
},
|
|
896
|
+
automation: {
|
|
860
897
|
create: (input, requestOptions) => request({
|
|
861
898
|
method: "POST",
|
|
862
|
-
path: `/api/experimental/
|
|
899
|
+
path: `/api/experimental/automation`,
|
|
863
900
|
body: {
|
|
864
901
|
sessionID: input["sessionID"],
|
|
902
|
+
directory: input["directory"],
|
|
865
903
|
name: input["name"],
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
ends: input["ends"],
|
|
870
|
-
prompt: input["prompt"]
|
|
904
|
+
trigger: input["trigger"],
|
|
905
|
+
action: input["action"],
|
|
906
|
+
expires: input["expires"]
|
|
871
907
|
},
|
|
872
908
|
successStatus: 200,
|
|
873
909
|
declaredStatuses: [400, 401, 403, 404],
|
|
@@ -875,36 +911,36 @@ function make6(options) {
|
|
|
875
911
|
}, requestOptions).then((value) => value.data),
|
|
876
912
|
list: (input, requestOptions) => request({
|
|
877
913
|
method: "GET",
|
|
878
|
-
path: `/api/experimental/
|
|
879
|
-
query: { sessionID: input["sessionID"] },
|
|
914
|
+
path: `/api/experimental/automation`,
|
|
915
|
+
query: { sessionID: input?.["sessionID"], directory: input?.["directory"] },
|
|
880
916
|
successStatus: 200,
|
|
881
917
|
declaredStatuses: [400, 401, 403, 404],
|
|
882
918
|
empty: false
|
|
883
919
|
}, requestOptions).then((value) => value.data),
|
|
884
920
|
get: (input, requestOptions) => request({
|
|
885
921
|
method: "GET",
|
|
886
|
-
path: `/api/experimental/
|
|
922
|
+
path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}`,
|
|
887
923
|
successStatus: 200,
|
|
888
924
|
declaredStatuses: [400, 401, 403, 404],
|
|
889
925
|
empty: false
|
|
890
926
|
}, requestOptions).then((value) => value.data),
|
|
891
927
|
pause: (input, requestOptions) => request({
|
|
892
928
|
method: "POST",
|
|
893
|
-
path: `/api/experimental/
|
|
929
|
+
path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}/pause`,
|
|
894
930
|
successStatus: 200,
|
|
895
931
|
declaredStatuses: [400, 401, 403, 404],
|
|
896
932
|
empty: false
|
|
897
933
|
}, requestOptions).then((value) => value.data),
|
|
898
934
|
resume: (input, requestOptions) => request({
|
|
899
935
|
method: "POST",
|
|
900
|
-
path: `/api/experimental/
|
|
936
|
+
path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}/resume`,
|
|
901
937
|
successStatus: 200,
|
|
902
938
|
declaredStatuses: [400, 401, 403, 404],
|
|
903
939
|
empty: false
|
|
904
940
|
}, requestOptions).then((value) => value.data),
|
|
905
941
|
delete: (input, requestOptions) => request({
|
|
906
942
|
method: "DELETE",
|
|
907
|
-
path: `/api/experimental/
|
|
943
|
+
path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}`,
|
|
908
944
|
successStatus: 204,
|
|
909
945
|
declaredStatuses: [400, 401, 403, 404],
|
|
910
946
|
empty: true
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-timing-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-timing-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
8
|
make4
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-timing-nr9zca37.js";
|
|
10
10
|
import {
|
|
11
11
|
make3,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./service-timing-15p82y03.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./service-timing-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
19
|
var exports_client = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-timing-60xe5cbf.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-timing-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-timing-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client2 = {};
|
|
@@ -284,12 +284,27 @@ var EndpointExperimentalGenerateImage = (raw) => (input) => preserveEffect()(raw
|
|
|
284
284
|
resolution: input["resolution"]
|
|
285
285
|
}
|
|
286
286
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
287
|
+
var EndpointExperimentalGenerateVideoCreate = (raw) => (input) => preserveEffect()(raw["generate.video.create"]({
|
|
288
|
+
payload: {
|
|
289
|
+
model: input["model"],
|
|
290
|
+
prompt: input["prompt"],
|
|
291
|
+
start: input["start"],
|
|
292
|
+
end: input["end"],
|
|
293
|
+
references: input["references"],
|
|
294
|
+
duration: input["duration"],
|
|
295
|
+
aspect: input["aspect"],
|
|
296
|
+
resolution: input["resolution"],
|
|
297
|
+
sound: input["sound"]
|
|
298
|
+
}
|
|
299
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
300
|
+
var EndpointExperimentalGenerateVideoGet = (raw) => (input) => preserveEffect()(raw["generate.video.get"]({ params: { id: input["id"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
287
301
|
var EndpointExperimentalGenerateDecisions = (raw) => (input) => preserveEffect()(raw["generate.decisions"]({
|
|
288
302
|
payload: { model: input["model"], input: input["input"], questions: input["questions"] }
|
|
289
303
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
290
304
|
var adaptGroupExperimentalGenerate = (raw) => ({
|
|
291
305
|
text: EndpointExperimentalGenerateText(raw),
|
|
292
306
|
image: EndpointExperimentalGenerateImage(raw),
|
|
307
|
+
video: { create: EndpointExperimentalGenerateVideoCreate(raw), get: EndpointExperimentalGenerateVideoGet(raw) },
|
|
293
308
|
decisions: EndpointExperimentalGenerateDecisions(raw)
|
|
294
309
|
});
|
|
295
310
|
var EndpointExperimentalVoiceModels = (raw) => () => preserveEffect()(raw["voice.models"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
@@ -548,22 +563,21 @@ var EndpointExperimentalPersistentPtyConnectToken = (raw) => (input) => preserve
|
|
|
548
563
|
params: { ptyID: input["ptyID"] },
|
|
549
564
|
headers: { "x-opencode-ticket": input["x-opencode-ticket"] }
|
|
550
565
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
551
|
-
var
|
|
566
|
+
var EndpointExperimentalAutomationCreate = (raw) => (input) => preserveEffect()(raw["automation.create"]({
|
|
552
567
|
payload: {
|
|
553
568
|
sessionID: input["sessionID"],
|
|
569
|
+
directory: input["directory"],
|
|
554
570
|
name: input["name"],
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
ends: input["ends"],
|
|
559
|
-
prompt: input["prompt"]
|
|
571
|
+
trigger: input["trigger"],
|
|
572
|
+
action: input["action"],
|
|
573
|
+
expires: input["expires"]
|
|
560
574
|
}
|
|
561
575
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
562
|
-
var
|
|
563
|
-
var
|
|
564
|
-
var
|
|
565
|
-
var
|
|
566
|
-
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)));
|
|
567
581
|
var EndpointExperimentalArtifactsProviders = (raw) => (input) => preserveEffect()(raw["artifacts.providers"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
568
582
|
var EndpointExperimentalArtifactsList = (raw) => (input) => preserveEffect()(raw["artifacts.list"]({
|
|
569
583
|
query: { location: input?.["location"], sessionID: input?.["sessionID"], provider: input?.["provider"] }
|
|
@@ -612,13 +626,13 @@ var adaptGroupExperimental = (raw) => ({
|
|
|
612
626
|
remove: EndpointExperimentalPersistentPtyRemove(raw),
|
|
613
627
|
connectToken: EndpointExperimentalPersistentPtyConnectToken(raw)
|
|
614
628
|
},
|
|
615
|
-
|
|
616
|
-
create:
|
|
617
|
-
list:
|
|
618
|
-
get:
|
|
619
|
-
pause:
|
|
620
|
-
resume:
|
|
621
|
-
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)
|
|
622
636
|
},
|
|
623
637
|
artifacts: {
|
|
624
638
|
providers: EndpointExperimentalArtifactsProviders(raw),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-timing-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
make6
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-timing-d300ns9h.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-timing-xafd70ys.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-timing-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/promise/client.ts
|
|
15
15
|
var exports_client3 = {};
|
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";
|
|
@@ -1881,6 +1881,24 @@ export type ExperimentalGenerateImageInput = {
|
|
|
1881
1881
|
};
|
|
1882
1882
|
export type ExperimentalGenerateImageOutput = Generate.ImageResult;
|
|
1883
1883
|
export type ExperimentalGenerateImageOperation<E = never> = (input: ExperimentalGenerateImageInput) => Effect.Effect<ExperimentalGenerateImageOutput, E>;
|
|
1884
|
+
export type ExperimentalGenerateVideoCreateInput = {
|
|
1885
|
+
readonly model: Model.Ref;
|
|
1886
|
+
readonly prompt: string;
|
|
1887
|
+
readonly start?: Generate.ImageFile | undefined;
|
|
1888
|
+
readonly end?: Generate.ImageFile | undefined;
|
|
1889
|
+
readonly references?: ReadonlyArray<Generate.File> | undefined;
|
|
1890
|
+
readonly duration?: number | undefined;
|
|
1891
|
+
readonly aspect?: Generate.VideoAspect | undefined;
|
|
1892
|
+
readonly resolution?: Generate.VideoResolution | undefined;
|
|
1893
|
+
readonly sound?: boolean | undefined;
|
|
1894
|
+
};
|
|
1895
|
+
export type ExperimentalGenerateVideoCreateOutput = Generate.VideoRunning;
|
|
1896
|
+
export type ExperimentalGenerateVideoCreateOperation<E = never> = (input: ExperimentalGenerateVideoCreateInput) => Effect.Effect<ExperimentalGenerateVideoCreateOutput, E>;
|
|
1897
|
+
export type ExperimentalGenerateVideoGetInput = {
|
|
1898
|
+
readonly id: Generate.VideoID;
|
|
1899
|
+
};
|
|
1900
|
+
export type ExperimentalGenerateVideoGetOutput = Generate.VideoJob;
|
|
1901
|
+
export type ExperimentalGenerateVideoGetOperation<E = never> = (input: ExperimentalGenerateVideoGetInput) => Effect.Effect<ExperimentalGenerateVideoGetOutput, E>;
|
|
1884
1902
|
export type ExperimentalGenerateDecisionsInput = {
|
|
1885
1903
|
readonly model: Model.Ref;
|
|
1886
1904
|
readonly input: ReadonlyArray<Generate.DecisionPart>;
|
|
@@ -1891,6 +1909,10 @@ export type ExperimentalGenerateDecisionsOperation<E = never> = (input: Experime
|
|
|
1891
1909
|
export interface ExperimentalGenerateApi<E = never> {
|
|
1892
1910
|
readonly text: ExperimentalGenerateTextOperation<E>;
|
|
1893
1911
|
readonly image: ExperimentalGenerateImageOperation<E>;
|
|
1912
|
+
readonly video: {
|
|
1913
|
+
readonly create: ExperimentalGenerateVideoCreateOperation<E>;
|
|
1914
|
+
readonly get: ExperimentalGenerateVideoGetOperation<E>;
|
|
1915
|
+
};
|
|
1894
1916
|
readonly decisions: ExperimentalGenerateDecisionsOperation<E>;
|
|
1895
1917
|
}
|
|
1896
1918
|
export type ExperimentalVoiceModelsOutput = {
|
|
@@ -2728,42 +2750,42 @@ export type ExperimentalPersistentPtyConnectTokenInput = {
|
|
|
2728
2750
|
};
|
|
2729
2751
|
export type ExperimentalPersistentPtyConnectTokenOutput = PtyTicket.ConnectToken;
|
|
2730
2752
|
export type ExperimentalPersistentPtyConnectTokenOperation<E = never> = (input: ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<ExperimentalPersistentPtyConnectTokenOutput, E>;
|
|
2731
|
-
export type
|
|
2732
|
-
readonly sessionID
|
|
2733
|
-
readonly
|
|
2734
|
-
readonly
|
|
2735
|
-
readonly
|
|
2736
|
-
readonly
|
|
2737
|
-
readonly
|
|
2738
|
-
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;
|
|
2739
2760
|
};
|
|
2740
|
-
export type
|
|
2741
|
-
export type
|
|
2742
|
-
export type
|
|
2743
|
-
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;
|
|
2744
2766
|
};
|
|
2745
|
-
export type
|
|
2746
|
-
export type
|
|
2747
|
-
export type
|
|
2748
|
-
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;
|
|
2749
2771
|
};
|
|
2750
|
-
export type
|
|
2751
|
-
export type
|
|
2752
|
-
export type
|
|
2753
|
-
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;
|
|
2754
2776
|
};
|
|
2755
|
-
export type
|
|
2756
|
-
export type
|
|
2757
|
-
export type
|
|
2758
|
-
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;
|
|
2759
2781
|
};
|
|
2760
|
-
export type
|
|
2761
|
-
export type
|
|
2762
|
-
export type
|
|
2763
|
-
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;
|
|
2764
2786
|
};
|
|
2765
|
-
export type
|
|
2766
|
-
export type
|
|
2787
|
+
export type ExperimentalAutomationDeleteOutput = void;
|
|
2788
|
+
export type ExperimentalAutomationDeleteOperation<E = never> = (input: ExperimentalAutomationDeleteInput) => Effect.Effect<ExperimentalAutomationDeleteOutput, E>;
|
|
2767
2789
|
export type ExperimentalArtifactsProvidersInput = {
|
|
2768
2790
|
readonly location?: {
|
|
2769
2791
|
readonly directory?: string | undefined;
|
|
@@ -2860,13 +2882,13 @@ export interface ExperimentalApi<E = never> {
|
|
|
2860
2882
|
readonly remove: ExperimentalPersistentPtyRemoveOperation<E>;
|
|
2861
2883
|
readonly connectToken: ExperimentalPersistentPtyConnectTokenOperation<E>;
|
|
2862
2884
|
};
|
|
2863
|
-
readonly
|
|
2864
|
-
readonly create:
|
|
2865
|
-
readonly list:
|
|
2866
|
-
readonly get:
|
|
2867
|
-
readonly pause:
|
|
2868
|
-
readonly resume:
|
|
2869
|
-
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>;
|
|
2870
2892
|
};
|
|
2871
2893
|
readonly artifacts: {
|
|
2872
2894
|
readonly providers: ExperimentalArtifactsProvidersOperation<E>;
|