@deepailab/dal-remote-daemon 0.1.0 → 0.1.1

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.
Files changed (59) hide show
  1. package/NOTICE +21 -1
  2. package/THIRD-PARTY-NOTICES.md +192 -0
  3. package/node_modules/@deepailab/dal-remote-server/NOTICE +21 -1
  4. package/node_modules/@deepailab/dal-remote-server/dist/server/server/agent/providers/acp-agent.js +9 -5
  5. package/node_modules/@deepailab/dal-remote-server/dist/server/server/agent/providers/claude/query.js +3 -2
  6. package/node_modules/@deepailab/dal-remote-server/dist/server/server/agent/providers/claude/rewind.js +2 -2
  7. package/node_modules/@deepailab/dal-remote-server/dist/server/server/agent/providers/cursor-acp-agent.js +13 -9
  8. package/node_modules/@deepailab/dal-remote-server/dist/server/server/agent/providers/opencode/event-consumer.js +2 -2
  9. package/node_modules/@deepailab/dal-remote-server/dist/server/server/agent/providers/opencode/v2/runtime.js +2 -1
  10. package/node_modules/@deepailab/dal-remote-server/dist/server/server/agent/providers/opencode-agent.js +2 -2
  11. package/node_modules/@deepailab/dal-remote-server/dist/server/server/agent/providers/provider-sdk.js +46 -0
  12. package/node_modules/@deepailab/dal-remote-server/package.json +2 -5
  13. package/node_modules/@getpaseo/client/NOTICE +21 -1
  14. package/node_modules/@getpaseo/client/package.json +2 -1
  15. package/node_modules/@getpaseo/highlight/NOTICE +21 -1
  16. package/node_modules/@getpaseo/highlight/package.json +2 -1
  17. package/node_modules/@getpaseo/plugin/NOTICE +21 -1
  18. package/node_modules/@getpaseo/plugin/package.json +2 -1
  19. package/node_modules/@getpaseo/protocol/NOTICE +21 -1
  20. package/node_modules/@getpaseo/protocol/package.json +2 -1
  21. package/node_modules/@getpaseo/relay/NOTICE +21 -1
  22. package/node_modules/@getpaseo/relay/package.json +2 -1
  23. package/package.json +3 -8
  24. package/node_modules/@agentclientprotocol/sdk/LICENSE +0 -191
  25. package/node_modules/@agentclientprotocol/sdk/dist/acp.js +0 -1001
  26. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +0 -32
  27. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +0 -2054
  28. package/node_modules/@agentclientprotocol/sdk/dist/stream.js +0 -64
  29. package/node_modules/@agentclientprotocol/sdk/package.json +0 -33
  30. package/node_modules/@anthropic-ai/claude-agent-sdk/LICENSE.md +0 -1
  31. package/node_modules/@anthropic-ai/claude-agent-sdk/package.json +0 -74
  32. package/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +0 -165
  33. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/error-interceptor.js +0 -43
  34. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/client.js +0 -78
  35. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/client/client.gen.js +0 -232
  36. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/client/index.js +0 -6
  37. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/client/utils.gen.js +0 -226
  38. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/client.gen.js +0 -3
  39. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/core/auth.gen.js +0 -14
  40. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/core/bodySerializer.gen.js +0 -57
  41. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/core/params.gen.js +0 -102
  42. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/core/pathSerializer.gen.js +0 -106
  43. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/core/queryKeySerializer.gen.js +0 -93
  44. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/core/serverSentEvents.gen.js +0 -139
  45. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/core/utils.gen.js +0 -87
  46. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/sdk.gen.js +0 -3176
  47. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/dist/v2/gen/types.gen.js +0 -2
  48. package/node_modules/@deepailab/dal-remote-server/node_modules/@opencode-ai/sdk/package.json +0 -43
  49. package/node_modules/@opencode/client/dist/chunks/service-contender-1tbj6z39.js +0 -81
  50. package/node_modules/@opencode/client/dist/chunks/service-contender-4tveyqeh.js +0 -34
  51. package/node_modules/@opencode/client/dist/chunks/service-contender-7p1wryha.js +0 -30
  52. package/node_modules/@opencode/client/dist/chunks/service-contender-9rqn6x4v.js +0 -16
  53. package/node_modules/@opencode/client/dist/chunks/service-contender-frbwqjmf.js +0 -145
  54. package/node_modules/@opencode/client/dist/chunks/service-contender-m2eywc8w.js +0 -0
  55. package/node_modules/@opencode/client/dist/chunks/service-contender-n3c99vt5.js +0 -11
  56. package/node_modules/@opencode/client/dist/chunks/service-contender-radw39tv.js +0 -1402
  57. package/node_modules/@opencode/client/dist/chunks/service-contender-vyas3vgt.js +0 -0
  58. package/node_modules/@opencode/client/dist/promise/index.js +0 -79
  59. package/node_modules/@opencode/client/package.json +0 -54
@@ -1,2 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export {};
@@ -1,43 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/package.json",
3
- "name": "@opencode-ai/sdk",
4
- "version": "1.14.46",
5
- "type": "module",
6
- "license": "MIT",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/index.js",
10
- "types": "./dist/index.d.ts"
11
- },
12
- "./client": {
13
- "import": "./dist/client.js",
14
- "types": "./dist/client.d.ts"
15
- },
16
- "./server": {
17
- "import": "./dist/server.js",
18
- "types": "./dist/server.d.ts"
19
- },
20
- "./v2": {
21
- "import": "./dist/v2/index.js",
22
- "types": "./dist/v2/index.d.ts"
23
- },
24
- "./v2/client": {
25
- "import": "./dist/v2/client.js",
26
- "types": "./dist/v2/client.d.ts"
27
- },
28
- "./v2/gen/client": {
29
- "import": "./dist/v2/gen/client/index.js",
30
- "types": "./dist/v2/gen/client/index.d.ts"
31
- },
32
- "./v2/server": {
33
- "import": "./dist/v2/server.js",
34
- "types": "./dist/v2/server.d.ts"
35
- }
36
- },
37
- "files": [
38
- "dist"
39
- ],
40
- "dependencies": {
41
- "cross-spawn": "7.0.6"
42
- }
43
- }
@@ -1,81 +0,0 @@
1
- import {
2
- isRpcError2,
3
- isRpcInternalError2
4
- } from "./service-contender-4tveyqeh.js";
5
-
6
- // src/promise/rpc.ts
7
- function makeRpc2(raw, events) {
8
- return (definition) => {
9
- const subscribe = (name, options) => {
10
- if (!Object.hasOwn(definition.events, name))
11
- throw new Error(`Unknown RPC event: ${definition.id}.${name}`);
12
- const type = eventType(definition, name);
13
- return {
14
- [Symbol.asyncIterator]() {
15
- const controller = new AbortController;
16
- const signal = options?.signal ? AbortSignal.any([controller.signal, options.signal]) : controller.signal;
17
- const iterator = async function* () {
18
- try {
19
- for await (const published of events.subscribe({ signal })) {
20
- if (signal.aborted)
21
- return;
22
- if (published.type !== type)
23
- continue;
24
- yield published;
25
- }
26
- } catch (error) {
27
- if (!signal.aborted)
28
- throw error;
29
- } finally {
30
- controller.abort();
31
- }
32
- }();
33
- return {
34
- next: () => iterator.next(),
35
- return: () => {
36
- controller.abort();
37
- return iterator.return();
38
- }
39
- };
40
- }
41
- };
42
- };
43
- return Object.assign(Object.fromEntries(Object.keys(definition.methods).map((name) => [
44
- name,
45
- async (input, options) => {
46
- try {
47
- const result = await raw.rpc.call({
48
- rpcID: definition.id,
49
- method: name,
50
- input,
51
- location: options?.location
52
- }, { signal: options?.signal, headers: options?.headers });
53
- return result.output;
54
- } catch (error) {
55
- if (!isRpcError2(error) && !isRpcInternalError2(error))
56
- throw error;
57
- throw error.data === undefined ? { type: error.type, message: error.message } : { type: error.type, message: error.message, data: error.data };
58
- }
59
- }
60
- ])), {
61
- events: {
62
- subscribe,
63
- on: (name, handler, options) => {
64
- const controller = new AbortController;
65
- const signal = options?.signal ? AbortSignal.any([controller.signal, options.signal]) : controller.signal;
66
- const source = subscribe(name, { signal });
67
- (async () => {
68
- for await (const event of source)
69
- await handler(event);
70
- })().catch((error) => console.error(error));
71
- return () => controller.abort();
72
- }
73
- }
74
- });
75
- };
76
- }
77
- function eventType(definition, name) {
78
- return `rpc.${definition.id}.${name}`;
79
- }
80
-
81
- export { makeRpc2 };
@@ -1,34 +0,0 @@
1
- // src/promise/generated/types.ts
2
- var isInvalidRequestError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "InvalidRequestError";
3
- var isUnauthorizedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "UnauthorizedError";
4
- var isServiceUnavailableError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ServiceUnavailableError";
5
- var isAgentNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "AgentNotFoundError";
6
- var isInvalidCursorError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "InvalidCursorError";
7
- var isSessionNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "SessionNotFoundError";
8
- var isConflictError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ConflictError";
9
- var isUnknownError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "UnknownError";
10
- var isMessageNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "MessageNotFoundError";
11
- var isCommandNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "CommandNotFoundError";
12
- var isCommandExecutionError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "CommandExecutionError";
13
- var isSkillNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "SkillNotFoundError";
14
- var isSessionBusyError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "SessionBusyError";
15
- var isInstructionEntryValueTooLargeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "InstructionEntryValueTooLargeError";
16
- var isFormNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "FormNotFoundError";
17
- var isFormInvalidAnswerError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "FormInvalidAnswerError";
18
- var isFormAlreadySettledError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "FormAlreadySettledError";
19
- var isProviderNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ProviderNotFoundError";
20
- var isIntegrationNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationNotFoundError";
21
- var isIntegrationAttemptNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationAttemptNotFoundError";
22
- var isIntegrationMethodNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationMethodNotFoundError";
23
- var isMcpServerNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "McpServerNotFoundError";
24
- var isProjectNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ProjectNotFoundError";
25
- var isPermissionNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PermissionNotFoundError";
26
- var isFileNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "FileNotFoundError";
27
- var isRpcError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "RpcError";
28
- var isRpcInternalError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "RpcInternalError";
29
- var isPtyNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyNotFoundError";
30
- var isForbiddenError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ForbiddenError";
31
- var isShellNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ShellNotFoundError";
32
- var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("name" in value) && value["name"] === "WorktreeError";
33
-
34
- export { isInvalidRequestError2, isUnauthorizedError2, isServiceUnavailableError2, isAgentNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isConflictError2, isUnknownError2, isMessageNotFoundError2, isCommandNotFoundError2, isCommandExecutionError2, isSkillNotFoundError2, isSessionBusyError2, isInstructionEntryValueTooLargeError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isProviderNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isForbiddenError2, isShellNotFoundError2, isWorktreeError2 };
@@ -1,30 +0,0 @@
1
- import {
2
- make7
3
- } from "./service-contender-frbwqjmf.js";
4
- import {
5
- make6
6
- } from "./service-contender-radw39tv.js";
7
- import {
8
- makeRpc2
9
- } from "./service-contender-1tbj6z39.js";
10
- import {
11
- __export
12
- } from "./service-contender-9rqn6x4v.js";
13
-
14
- // src/promise/client.ts
15
- var exports_client3 = {};
16
- __export(exports_client3, {
17
- OpenCode: () => exports_client3,
18
- make: () => make5
19
- });
20
- function make5(options) {
21
- const raw = make6(options);
22
- const events = make7((signal, onActivity) => raw.event.subscribe({ signal, onActivity }));
23
- return {
24
- ...raw,
25
- rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
26
- event: events
27
- };
28
- }
29
-
30
- export { make5, exports_client3 };
@@ -1,16 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __returnValue = (v) => v;
3
- function __exportSetter(name, newValue) {
4
- this[name] = __returnValue.bind(null, newValue);
5
- }
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true,
11
- configurable: true,
12
- set: __exportSetter.bind(all, name)
13
- });
14
- };
15
-
16
- export { __export };
@@ -1,145 +0,0 @@
1
- import {
2
- __export
3
- } from "./service-contender-9rqn6x4v.js";
4
-
5
- // src/shared-events.ts
6
- var exports_shared_events = {};
7
- __export(exports_shared_events, {
8
- SharedEvents: () => exports_shared_events,
9
- make: () => make7
10
- });
11
- function make7(connect) {
12
- let current;
13
- const capacity = 4096;
14
- function stop(connection) {
15
- connection.connected = undefined;
16
- connection.controller.abort();
17
- if (current === connection)
18
- current = undefined;
19
- }
20
- async function run(connection) {
21
- let iterator;
22
- let completion = {};
23
- try {
24
- if (connection.controller.signal.aborted)
25
- return;
26
- iterator = connect(connection.controller.signal, () => {
27
- connection.subscribers.forEach((subscriber) => subscriber.activity?.());
28
- })[Symbol.asyncIterator]();
29
- while (!connection.controller.signal.aborted) {
30
- const item = await iterator.next();
31
- if (item.done || connection.controller.signal.aborted)
32
- break;
33
- if (item.value.type === "server.connected")
34
- connection.connected = item.value;
35
- connection.subscribers.forEach((subscriber) => subscriber.push(item.value));
36
- }
37
- } catch (error) {
38
- completion = { error };
39
- } finally {
40
- stop(connection);
41
- try {
42
- await iterator?.return?.();
43
- } catch (error) {
44
- if (!("error" in completion))
45
- completion = { error };
46
- }
47
- connection.subscribers.forEach((subscriber) => subscriber.finish(completion));
48
- }
49
- }
50
- return {
51
- subscribe(options) {
52
- return {
53
- [Symbol.asyncIterator]() {
54
- const pending = [];
55
- const queued = [];
56
- let started = false;
57
- let completion;
58
- let connection;
59
- function finish(result, discard = true) {
60
- completion = result;
61
- if (discard)
62
- queued.length = 0;
63
- options?.signal?.removeEventListener("abort", abort);
64
- if (connection?.subscribers.delete(subscriber) && !connection.subscribers.size)
65
- stop(connection);
66
- pending.splice(0).forEach((request) => {
67
- if ("error" in result)
68
- request.reject(result.error);
69
- else
70
- request.resolve({ done: true, value: undefined });
71
- });
72
- }
73
- function abort() {
74
- finish({});
75
- }
76
- const subscriber = {
77
- activity: options?.onActivity,
78
- finish(result) {
79
- finish(result, false);
80
- },
81
- push(value) {
82
- if (completion)
83
- return;
84
- const request = pending.shift();
85
- if (request) {
86
- request.resolve({ done: false, value });
87
- return;
88
- }
89
- if (queued.length === capacity) {
90
- finish({ error: new Error(`Event subscriber exceeded its ${capacity}-event capacity`) });
91
- return;
92
- }
93
- queued.push(value);
94
- }
95
- };
96
- function start() {
97
- if (completion)
98
- return;
99
- const fresh = !current;
100
- connection = current ?? {
101
- controller: new AbortController,
102
- subscribers: new Set
103
- };
104
- current = connection;
105
- connection.subscribers.add(subscriber);
106
- if (connection.connected)
107
- subscriber.push(connection.connected);
108
- if (fresh)
109
- run(connection);
110
- }
111
- return {
112
- next() {
113
- const value = queued.shift();
114
- if (value)
115
- return Promise.resolve({ done: false, value });
116
- if (completion) {
117
- if ("error" in completion)
118
- return Promise.reject(completion.error);
119
- return Promise.resolve({ done: true, value: undefined });
120
- }
121
- if (options?.signal?.aborted) {
122
- abort();
123
- return Promise.resolve({ done: true, value: undefined });
124
- }
125
- const request = Promise.withResolvers();
126
- pending.push(request);
127
- if (!started) {
128
- started = true;
129
- options?.signal?.addEventListener("abort", abort, { once: true });
130
- start();
131
- }
132
- return request.promise;
133
- },
134
- return() {
135
- finish({});
136
- return Promise.resolve({ done: true, value: undefined });
137
- }
138
- };
139
- }
140
- };
141
- }
142
- };
143
- }
144
-
145
- export { make7, exports_shared_events };
@@ -1,11 +0,0 @@
1
- // src/promise/generated/client-error.ts
2
- class ClientError3 extends Error {
3
- reason;
4
- name = "ClientError";
5
- constructor(reason, options) {
6
- super(reason, options);
7
- this.reason = reason;
8
- }
9
- }
10
-
11
- export { ClientError3 };