@daex-dev/sdk 0.0.0-stage → 0.8.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/LICENSE +21 -0
- package/README.md +478 -2
- package/dist/client-DVZHOtg6.d.cts +2635 -0
- package/dist/client-DVZHOtg6.d.ts +2635 -0
- package/dist/connect/browser.cjs +209 -0
- package/dist/connect/browser.d.cts +81 -0
- package/dist/connect/browser.d.ts +81 -0
- package/dist/connect/browser.js +183 -0
- package/dist/connect/index.cjs +1954 -0
- package/dist/connect/index.d.cts +433 -0
- package/dist/connect/index.d.ts +433 -0
- package/dist/connect/index.js +1888 -0
- package/dist/electron/global.cjs +18 -0
- package/dist/electron/global.d.cts +35 -0
- package/dist/electron/global.d.ts +35 -0
- package/dist/electron/global.js +0 -0
- package/dist/electron/index.cjs +1133 -0
- package/dist/electron/index.d.cts +510 -0
- package/dist/electron/index.d.ts +510 -0
- package/dist/electron/index.js +1073 -0
- package/dist/electron/preload-auto.cjs +38 -0
- package/dist/electron/preload.cjs +66 -0
- package/dist/electron/preload.d.cts +46 -0
- package/dist/electron/preload.d.ts +46 -0
- package/dist/electron/preload.js +43 -0
- package/dist/electron/protocol-DXRtliy3.d.cts +904 -0
- package/dist/electron/protocol-DXRtliy3.d.ts +904 -0
- package/dist/electron/renderer.cjs +631 -0
- package/dist/electron/renderer.d.cts +508 -0
- package/dist/electron/renderer.d.ts +508 -0
- package/dist/electron/renderer.global.js +634 -0
- package/dist/electron/renderer.js +608 -0
- package/dist/index.cjs +6731 -0
- package/dist/index.d.cts +316 -0
- package/dist/index.d.ts +316 -0
- package/dist/index.js +6661 -0
- package/dist/server.cjs +1019 -0
- package/dist/server.d.cts +118 -0
- package/dist/server.d.ts +118 -0
- package/dist/server.js +989 -0
- package/dist/testing.cjs +815 -0
- package/dist/testing.d.cts +29 -0
- package/dist/testing.d.ts +29 -0
- package/dist/testing.js +787 -0
- package/dist/types-DUGv-9QF.d.cts +166 -0
- package/dist/types-DUGv-9QF.d.ts +166 -0
- package/package.json +109 -4
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every type `@daex-dev/sdk/connect` shares between the server entry point and
|
|
3
|
+
* `connect/browser`. Types only: the browser bundle imports this with
|
|
4
|
+
* `import type`, which leaves no runtime import behind.
|
|
5
|
+
*/
|
|
6
|
+
type ConnectProviderId = "codex" | "cursor";
|
|
7
|
+
type ConnectProviderInfo = {
|
|
8
|
+
id: ConnectProviderId;
|
|
9
|
+
/** What a sign-in button calls the provider. */
|
|
10
|
+
name: string;
|
|
11
|
+
buttonLabel: string;
|
|
12
|
+
/**
|
|
13
|
+
* How the sign-in reaches the user:
|
|
14
|
+
* - `oauth-loopback`: the browser returns to `http://127.0.0.1:<port>/…`.
|
|
15
|
+
* On a device, `signInWithCodexOnThisDevice` listens there. From a web
|
|
16
|
+
* page, the user pastes the address the browser ended on.
|
|
17
|
+
* - `browser-poll`: the user opens a link; the server waits until they finish.
|
|
18
|
+
*/
|
|
19
|
+
signIn: "oauth-loopback" | "browser-poll";
|
|
20
|
+
/** What the credential spends. */
|
|
21
|
+
billing: string;
|
|
22
|
+
/** Where the user manages the plan or its usage. */
|
|
23
|
+
manageUrl: string;
|
|
24
|
+
/** How long a sign-in lasts without the user. */
|
|
25
|
+
lifetime: string;
|
|
26
|
+
};
|
|
27
|
+
/** A ChatGPT sign-in made through Sign in with ChatGPT (plan usage). */
|
|
28
|
+
type CodexCredential = {
|
|
29
|
+
version: 1;
|
|
30
|
+
provider: "codex";
|
|
31
|
+
/** The client ID OpenAI issued for this user's registration (`oaiapp_…`). */
|
|
32
|
+
clientId: string;
|
|
33
|
+
/** The stable host ID this registration was made under (`urn:uuid:…`). */
|
|
34
|
+
hostId: string;
|
|
35
|
+
/** The OpenAI account (`sub` of the ID token). */
|
|
36
|
+
accountId: string;
|
|
37
|
+
email?: string;
|
|
38
|
+
idToken: string;
|
|
39
|
+
accessToken: string;
|
|
40
|
+
refreshToken: string;
|
|
41
|
+
scopes: string[];
|
|
42
|
+
/** Epoch ms the access token expires. */
|
|
43
|
+
expiresAt: number;
|
|
44
|
+
/** Epoch ms of the token response this record came from. */
|
|
45
|
+
savedAt: number;
|
|
46
|
+
/** False when the user signed in but did not allow plan usage. */
|
|
47
|
+
planUsage: boolean;
|
|
48
|
+
/** Set when a refresh was refused for good: sign in again (the client ID stays). */
|
|
49
|
+
signedOut?: true;
|
|
50
|
+
};
|
|
51
|
+
/** A Cursor sign-in: the user API key Cursor minted for this app. */
|
|
52
|
+
type CursorCredential = {
|
|
53
|
+
version: 1;
|
|
54
|
+
provider: "cursor";
|
|
55
|
+
apiKey: string;
|
|
56
|
+
email?: string;
|
|
57
|
+
/** Epoch ms the key expires. */
|
|
58
|
+
expiresAt: number;
|
|
59
|
+
savedAt: number;
|
|
60
|
+
signedOut?: true;
|
|
61
|
+
};
|
|
62
|
+
type ConnectCredential = CodexCredential | CursorCredential;
|
|
63
|
+
/** What an app may show about a sign-in. Never contains a secret. */
|
|
64
|
+
type ConnectSignInStatus = {
|
|
65
|
+
provider: ConnectProviderId;
|
|
66
|
+
signedIn: boolean;
|
|
67
|
+
email?: string;
|
|
68
|
+
expiresAt?: number;
|
|
69
|
+
/** Codex only: whether the user allowed plan usage. */
|
|
70
|
+
planUsage?: boolean;
|
|
71
|
+
/** The sign-in existed and stopped working (or cannot be read); show "Sign in again". */
|
|
72
|
+
needsSignIn?: boolean;
|
|
73
|
+
};
|
|
74
|
+
/** One message of a conversation sent to `respond`. */
|
|
75
|
+
type ConnectMessage = {
|
|
76
|
+
role: "user" | "assistant";
|
|
77
|
+
content: string;
|
|
78
|
+
};
|
|
79
|
+
/** Ask for structured output. Codex enforces it natively; Cursor gets it as an instruction. */
|
|
80
|
+
type ConnectResponseFormat = {
|
|
81
|
+
type: "text";
|
|
82
|
+
} | {
|
|
83
|
+
type: "json_object";
|
|
84
|
+
} | {
|
|
85
|
+
type: "json_schema";
|
|
86
|
+
name: string;
|
|
87
|
+
schema: Record<string, unknown>;
|
|
88
|
+
strict?: boolean;
|
|
89
|
+
description?: string;
|
|
90
|
+
};
|
|
91
|
+
type ConnectRequest = {
|
|
92
|
+
provider: ConnectProviderId;
|
|
93
|
+
/** A model ID from `models()`. Omitted: ChatGPT's first listed model, Cursor's "Auto". */
|
|
94
|
+
model?: string;
|
|
95
|
+
/** System guidance for the model. */
|
|
96
|
+
instructions?: string;
|
|
97
|
+
/** The conversation so far, oldest first; the last message is the user's. */
|
|
98
|
+
messages?: ConnectMessage[];
|
|
99
|
+
/** Shorthand for a single user message. */
|
|
100
|
+
prompt?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Reasoning effort, passed as given ("low", "medium", "high", "xhigh", …).
|
|
103
|
+
* Codex: `reasoning.effort`. Cursor: the model's effort parameter, when it has one.
|
|
104
|
+
*/
|
|
105
|
+
effort?: string;
|
|
106
|
+
responseFormat?: ConnectResponseFormat;
|
|
107
|
+
/** Also yield every provider event untouched as `{ type: "raw" }`. */
|
|
108
|
+
rawEvents?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Codex: any OpenAI Responses API fields (`tools`, `tool_choice`, `reasoning`,
|
|
111
|
+
* `text`, `input`, `include`, `store`, …), merged over what this module
|
|
112
|
+
* builds, so they win. Only `stream` stays true (replies are read as a
|
|
113
|
+
* stream). OpenAI refuses what plan usage does not support.
|
|
114
|
+
*/
|
|
115
|
+
codex?: Record<string, unknown>;
|
|
116
|
+
cursor?: {
|
|
117
|
+
/** Model parameters (`{ id: "fast", value: "true" }`, `context`, …); they win over the defaults. */
|
|
118
|
+
params?: Array<{
|
|
119
|
+
id: string;
|
|
120
|
+
value: string;
|
|
121
|
+
}>;
|
|
122
|
+
/**
|
|
123
|
+
* Any `Agent.create` options (`systemPrompt`, `tools`, `disallowedTools`,
|
|
124
|
+
* `mcpServers`, `mode`, `local`, …), merged over this module's, so they win.
|
|
125
|
+
*/
|
|
126
|
+
agent?: Record<string, unknown>;
|
|
127
|
+
/** Any `agent.send` options (`mode`, `mcpServers`, `local`, …). */
|
|
128
|
+
send?: Record<string, unknown>;
|
|
129
|
+
};
|
|
130
|
+
signal?: AbortSignal;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* What `createConnectHandler` takes from a browser by default. The rest of
|
|
134
|
+
* `ConnectRequest` stays server-side: raw `codex` fields could replace the
|
|
135
|
+
* app's instructions and tools, and Cursor `agent` / `send` options can start
|
|
136
|
+
* MCP servers (processes) on the server. `prepareRequest` can still add them.
|
|
137
|
+
*/
|
|
138
|
+
type ConnectBrowserRequest = Omit<ConnectRequest, "codex" | "cursor" | "signal"> & {
|
|
139
|
+
cursor?: Pick<NonNullable<ConnectRequest["cursor"]>, "params">;
|
|
140
|
+
signal?: AbortSignal;
|
|
141
|
+
};
|
|
142
|
+
type ConnectDoneEvent = {
|
|
143
|
+
type: "done";
|
|
144
|
+
text: string;
|
|
145
|
+
model?: string;
|
|
146
|
+
/** Token usage as the provider reported it. */
|
|
147
|
+
usage?: unknown;
|
|
148
|
+
/** The provider's final response object (Codex `response`, Cursor run result). */
|
|
149
|
+
response?: unknown;
|
|
150
|
+
};
|
|
151
|
+
type ConnectEvent = {
|
|
152
|
+
type: "text";
|
|
153
|
+
delta: string;
|
|
154
|
+
} | {
|
|
155
|
+
type: "raw";
|
|
156
|
+
provider: ConnectProviderId;
|
|
157
|
+
event: unknown;
|
|
158
|
+
} | ConnectDoneEvent;
|
|
159
|
+
type ConnectModel = {
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
/** The provider's own catalog row: effort levels, parameters, variants. */
|
|
163
|
+
raw?: unknown;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export type { ConnectProviderInfo as C, ConnectSignInStatus as a, ConnectProviderId as b, ConnectModel as c, ConnectBrowserRequest as d, ConnectEvent as e, ConnectMessage as f, ConnectResponseFormat as g, CursorCredential as h, ConnectCredential as i, CodexCredential as j, ConnectRequest as k, ConnectDoneEvent as l };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every type `@daex-dev/sdk/connect` shares between the server entry point and
|
|
3
|
+
* `connect/browser`. Types only: the browser bundle imports this with
|
|
4
|
+
* `import type`, which leaves no runtime import behind.
|
|
5
|
+
*/
|
|
6
|
+
type ConnectProviderId = "codex" | "cursor";
|
|
7
|
+
type ConnectProviderInfo = {
|
|
8
|
+
id: ConnectProviderId;
|
|
9
|
+
/** What a sign-in button calls the provider. */
|
|
10
|
+
name: string;
|
|
11
|
+
buttonLabel: string;
|
|
12
|
+
/**
|
|
13
|
+
* How the sign-in reaches the user:
|
|
14
|
+
* - `oauth-loopback`: the browser returns to `http://127.0.0.1:<port>/…`.
|
|
15
|
+
* On a device, `signInWithCodexOnThisDevice` listens there. From a web
|
|
16
|
+
* page, the user pastes the address the browser ended on.
|
|
17
|
+
* - `browser-poll`: the user opens a link; the server waits until they finish.
|
|
18
|
+
*/
|
|
19
|
+
signIn: "oauth-loopback" | "browser-poll";
|
|
20
|
+
/** What the credential spends. */
|
|
21
|
+
billing: string;
|
|
22
|
+
/** Where the user manages the plan or its usage. */
|
|
23
|
+
manageUrl: string;
|
|
24
|
+
/** How long a sign-in lasts without the user. */
|
|
25
|
+
lifetime: string;
|
|
26
|
+
};
|
|
27
|
+
/** A ChatGPT sign-in made through Sign in with ChatGPT (plan usage). */
|
|
28
|
+
type CodexCredential = {
|
|
29
|
+
version: 1;
|
|
30
|
+
provider: "codex";
|
|
31
|
+
/** The client ID OpenAI issued for this user's registration (`oaiapp_…`). */
|
|
32
|
+
clientId: string;
|
|
33
|
+
/** The stable host ID this registration was made under (`urn:uuid:…`). */
|
|
34
|
+
hostId: string;
|
|
35
|
+
/** The OpenAI account (`sub` of the ID token). */
|
|
36
|
+
accountId: string;
|
|
37
|
+
email?: string;
|
|
38
|
+
idToken: string;
|
|
39
|
+
accessToken: string;
|
|
40
|
+
refreshToken: string;
|
|
41
|
+
scopes: string[];
|
|
42
|
+
/** Epoch ms the access token expires. */
|
|
43
|
+
expiresAt: number;
|
|
44
|
+
/** Epoch ms of the token response this record came from. */
|
|
45
|
+
savedAt: number;
|
|
46
|
+
/** False when the user signed in but did not allow plan usage. */
|
|
47
|
+
planUsage: boolean;
|
|
48
|
+
/** Set when a refresh was refused for good: sign in again (the client ID stays). */
|
|
49
|
+
signedOut?: true;
|
|
50
|
+
};
|
|
51
|
+
/** A Cursor sign-in: the user API key Cursor minted for this app. */
|
|
52
|
+
type CursorCredential = {
|
|
53
|
+
version: 1;
|
|
54
|
+
provider: "cursor";
|
|
55
|
+
apiKey: string;
|
|
56
|
+
email?: string;
|
|
57
|
+
/** Epoch ms the key expires. */
|
|
58
|
+
expiresAt: number;
|
|
59
|
+
savedAt: number;
|
|
60
|
+
signedOut?: true;
|
|
61
|
+
};
|
|
62
|
+
type ConnectCredential = CodexCredential | CursorCredential;
|
|
63
|
+
/** What an app may show about a sign-in. Never contains a secret. */
|
|
64
|
+
type ConnectSignInStatus = {
|
|
65
|
+
provider: ConnectProviderId;
|
|
66
|
+
signedIn: boolean;
|
|
67
|
+
email?: string;
|
|
68
|
+
expiresAt?: number;
|
|
69
|
+
/** Codex only: whether the user allowed plan usage. */
|
|
70
|
+
planUsage?: boolean;
|
|
71
|
+
/** The sign-in existed and stopped working (or cannot be read); show "Sign in again". */
|
|
72
|
+
needsSignIn?: boolean;
|
|
73
|
+
};
|
|
74
|
+
/** One message of a conversation sent to `respond`. */
|
|
75
|
+
type ConnectMessage = {
|
|
76
|
+
role: "user" | "assistant";
|
|
77
|
+
content: string;
|
|
78
|
+
};
|
|
79
|
+
/** Ask for structured output. Codex enforces it natively; Cursor gets it as an instruction. */
|
|
80
|
+
type ConnectResponseFormat = {
|
|
81
|
+
type: "text";
|
|
82
|
+
} | {
|
|
83
|
+
type: "json_object";
|
|
84
|
+
} | {
|
|
85
|
+
type: "json_schema";
|
|
86
|
+
name: string;
|
|
87
|
+
schema: Record<string, unknown>;
|
|
88
|
+
strict?: boolean;
|
|
89
|
+
description?: string;
|
|
90
|
+
};
|
|
91
|
+
type ConnectRequest = {
|
|
92
|
+
provider: ConnectProviderId;
|
|
93
|
+
/** A model ID from `models()`. Omitted: ChatGPT's first listed model, Cursor's "Auto". */
|
|
94
|
+
model?: string;
|
|
95
|
+
/** System guidance for the model. */
|
|
96
|
+
instructions?: string;
|
|
97
|
+
/** The conversation so far, oldest first; the last message is the user's. */
|
|
98
|
+
messages?: ConnectMessage[];
|
|
99
|
+
/** Shorthand for a single user message. */
|
|
100
|
+
prompt?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Reasoning effort, passed as given ("low", "medium", "high", "xhigh", …).
|
|
103
|
+
* Codex: `reasoning.effort`. Cursor: the model's effort parameter, when it has one.
|
|
104
|
+
*/
|
|
105
|
+
effort?: string;
|
|
106
|
+
responseFormat?: ConnectResponseFormat;
|
|
107
|
+
/** Also yield every provider event untouched as `{ type: "raw" }`. */
|
|
108
|
+
rawEvents?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Codex: any OpenAI Responses API fields (`tools`, `tool_choice`, `reasoning`,
|
|
111
|
+
* `text`, `input`, `include`, `store`, …), merged over what this module
|
|
112
|
+
* builds, so they win. Only `stream` stays true (replies are read as a
|
|
113
|
+
* stream). OpenAI refuses what plan usage does not support.
|
|
114
|
+
*/
|
|
115
|
+
codex?: Record<string, unknown>;
|
|
116
|
+
cursor?: {
|
|
117
|
+
/** Model parameters (`{ id: "fast", value: "true" }`, `context`, …); they win over the defaults. */
|
|
118
|
+
params?: Array<{
|
|
119
|
+
id: string;
|
|
120
|
+
value: string;
|
|
121
|
+
}>;
|
|
122
|
+
/**
|
|
123
|
+
* Any `Agent.create` options (`systemPrompt`, `tools`, `disallowedTools`,
|
|
124
|
+
* `mcpServers`, `mode`, `local`, …), merged over this module's, so they win.
|
|
125
|
+
*/
|
|
126
|
+
agent?: Record<string, unknown>;
|
|
127
|
+
/** Any `agent.send` options (`mode`, `mcpServers`, `local`, …). */
|
|
128
|
+
send?: Record<string, unknown>;
|
|
129
|
+
};
|
|
130
|
+
signal?: AbortSignal;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* What `createConnectHandler` takes from a browser by default. The rest of
|
|
134
|
+
* `ConnectRequest` stays server-side: raw `codex` fields could replace the
|
|
135
|
+
* app's instructions and tools, and Cursor `agent` / `send` options can start
|
|
136
|
+
* MCP servers (processes) on the server. `prepareRequest` can still add them.
|
|
137
|
+
*/
|
|
138
|
+
type ConnectBrowserRequest = Omit<ConnectRequest, "codex" | "cursor" | "signal"> & {
|
|
139
|
+
cursor?: Pick<NonNullable<ConnectRequest["cursor"]>, "params">;
|
|
140
|
+
signal?: AbortSignal;
|
|
141
|
+
};
|
|
142
|
+
type ConnectDoneEvent = {
|
|
143
|
+
type: "done";
|
|
144
|
+
text: string;
|
|
145
|
+
model?: string;
|
|
146
|
+
/** Token usage as the provider reported it. */
|
|
147
|
+
usage?: unknown;
|
|
148
|
+
/** The provider's final response object (Codex `response`, Cursor run result). */
|
|
149
|
+
response?: unknown;
|
|
150
|
+
};
|
|
151
|
+
type ConnectEvent = {
|
|
152
|
+
type: "text";
|
|
153
|
+
delta: string;
|
|
154
|
+
} | {
|
|
155
|
+
type: "raw";
|
|
156
|
+
provider: ConnectProviderId;
|
|
157
|
+
event: unknown;
|
|
158
|
+
} | ConnectDoneEvent;
|
|
159
|
+
type ConnectModel = {
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
/** The provider's own catalog row: effort levels, parameters, variants. */
|
|
163
|
+
raw?: unknown;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export type { ConnectProviderInfo as C, ConnectSignInStatus as a, ConnectProviderId as b, ConnectModel as c, ConnectBrowserRequest as d, ConnectEvent as e, ConnectMessage as f, ConnectResponseFormat as g, CursorCredential as h, ConnectCredential as i, CodexCredential as j, ConnectRequest as k, ConnectDoneEvent as l };
|
package/package.json
CHANGED
|
@@ -1,6 +1,111 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daex-dev/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Typed Node/Electron-main client that owns a slim DAEX runtime and exposes chat as durable named threads.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./server": {
|
|
17
|
+
"types": "./dist/server.d.ts",
|
|
18
|
+
"import": "./dist/server.js",
|
|
19
|
+
"require": "./dist/server.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./testing": {
|
|
22
|
+
"types": "./dist/testing.d.ts",
|
|
23
|
+
"import": "./dist/testing.js",
|
|
24
|
+
"require": "./dist/testing.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./connect": {
|
|
27
|
+
"types": "./dist/connect/index.d.ts",
|
|
28
|
+
"import": "./dist/connect/index.js",
|
|
29
|
+
"require": "./dist/connect/index.cjs"
|
|
30
|
+
},
|
|
31
|
+
"./connect/browser": {
|
|
32
|
+
"types": "./dist/connect/browser.d.ts",
|
|
33
|
+
"import": "./dist/connect/browser.js",
|
|
34
|
+
"require": "./dist/connect/browser.cjs"
|
|
35
|
+
},
|
|
36
|
+
"./electron": {
|
|
37
|
+
"types": "./dist/electron/index.d.ts",
|
|
38
|
+
"import": "./dist/electron/index.js",
|
|
39
|
+
"require": "./dist/electron/index.cjs"
|
|
40
|
+
},
|
|
41
|
+
"./electron/preload": {
|
|
42
|
+
"types": "./dist/electron/preload.d.ts",
|
|
43
|
+
"import": "./dist/electron/preload.js",
|
|
44
|
+
"require": "./dist/electron/preload.cjs"
|
|
45
|
+
},
|
|
46
|
+
"./electron/preload-auto": "./dist/electron/preload-auto.cjs",
|
|
47
|
+
"./electron/renderer": {
|
|
48
|
+
"types": "./dist/electron/renderer.d.ts",
|
|
49
|
+
"import": "./dist/electron/renderer.js",
|
|
50
|
+
"require": "./dist/electron/renderer.cjs"
|
|
51
|
+
},
|
|
52
|
+
"./electron/global": {
|
|
53
|
+
"types": "./dist/electron/global.d.ts",
|
|
54
|
+
"import": "./dist/electron/global.js",
|
|
55
|
+
"require": "./dist/electron/global.cjs"
|
|
56
|
+
},
|
|
57
|
+
"./electron/renderer.global.js": "./dist/electron/renderer.global.js"
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist",
|
|
61
|
+
"README.md",
|
|
62
|
+
"LICENSE"
|
|
63
|
+
],
|
|
64
|
+
"repository": {
|
|
65
|
+
"type": "git",
|
|
66
|
+
"url": "git+https://github.com/arul28/DAEX.git",
|
|
67
|
+
"directory": "packages/sdk"
|
|
68
|
+
},
|
|
69
|
+
"homepage": "https://github.com/arul28/DAEX/tree/main/packages/sdk",
|
|
70
|
+
"bugs": {
|
|
71
|
+
"url": "https://github.com/arul28/DAEX/issues"
|
|
72
|
+
},
|
|
73
|
+
"keywords": [
|
|
74
|
+
"daex",
|
|
75
|
+
"ade",
|
|
76
|
+
"sdk",
|
|
77
|
+
"agent",
|
|
78
|
+
"chat",
|
|
79
|
+
"mcp",
|
|
80
|
+
"claude",
|
|
81
|
+
"electron"
|
|
82
|
+
],
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public"
|
|
85
|
+
},
|
|
86
|
+
"engines": {
|
|
87
|
+
"node": ">=22.13.0"
|
|
88
|
+
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"build": "tsup",
|
|
91
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
92
|
+
"test": "vitest run",
|
|
93
|
+
"test:live": "vitest run test/live.integration.test.ts",
|
|
94
|
+
"prepack": "npm run build"
|
|
95
|
+
},
|
|
96
|
+
"dependencies": {},
|
|
97
|
+
"peerDependencies": {
|
|
98
|
+
"@cursor/sdk": ">=1.3.0"
|
|
99
|
+
},
|
|
100
|
+
"peerDependenciesMeta": {
|
|
101
|
+
"@cursor/sdk": {
|
|
102
|
+
"optional": true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"devDependencies": {
|
|
106
|
+
"@types/node": "^20.11.30",
|
|
107
|
+
"tsup": "^8.3.5",
|
|
108
|
+
"typescript": "^5.7.3",
|
|
109
|
+
"vitest": "^0.34.6"
|
|
110
|
+
}
|
|
111
|
+
}
|