nanocodex 0.4.0 → 0.6.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/README.md +944 -78
- package/actions/events.mjs +14 -25
- package/actions/index.d.mts +1 -0
- package/actions/index.mjs +11 -1
- package/actions/session.d.mts +29 -1
- package/actions/session.mjs +22 -0
- package/actions/turn.d.mts +15 -6
- package/actions/turn.mjs +10 -0
- package/actions/voice.d.mts +26 -0
- package/actions/voice.mjs +54 -0
- package/browser/Agent.d.mts +41 -24
- package/browser/Agent.mjs +7 -84
- package/browser/ChatGptSubscription.d.mts +7 -0
- package/browser/ChatGptSubscription.mjs +19 -0
- package/browser/InlineAgent.mjs +267 -0
- package/browser/Transport.d.mts +80 -0
- package/browser/Transport.mjs +63 -0
- package/browser/Voice.d.mts +86 -0
- package/browser/Voice.mjs +316 -0
- package/browser/VoiceSession.mjs +763 -0
- package/browser/WorkerAgent.d.mts +65 -0
- package/browser/WorkerAgent.mjs +1467 -0
- package/browser/agent.worker.mjs +3 -0
- package/browser/config.d.mts +36 -0
- package/browser/config.mjs +439 -0
- package/browser/engine.mjs +13 -0
- package/browser/harness.mjs +55 -0
- package/browser/host.d.mts +33 -5
- package/browser/host.mjs +320 -26
- package/browser/hostManagedWebSocket.d.mts +14 -0
- package/browser/hostManagedWebSocket.mjs +110 -0
- package/browser/index.d.mts +64 -1
- package/browser/index.mjs +22 -1
- package/browser/indexeddb-durability-store.mjs +210 -0
- package/browser/workspace.d.mts +16 -0
- package/browser/workspace.mjs +107 -0
- package/cloud/Client.d.mts +83 -0
- package/cloud/Client.mjs +231 -0
- package/cloud/Decorator.d.mts +31 -0
- package/cloud/Decorator.mjs +37 -0
- package/cloud/Dialog.d.mts +113 -0
- package/cloud/Dialog.mjs +366 -0
- package/cloud/Errors.d.mts +22 -0
- package/cloud/Errors.mjs +39 -0
- package/cloud/Principal.d.mts +26 -0
- package/cloud/Principal.mjs +88 -0
- package/cloud/RemoteProvider.mjs +88 -0
- package/cloud/Transport.d.mts +47 -0
- package/cloud/Transport.mjs +454 -0
- package/cloud/actions/account.d.mts +9 -0
- package/cloud/actions/account.mjs +19 -0
- package/cloud/actions/agent.d.mts +18 -0
- package/cloud/actions/agent.mjs +429 -0
- package/cloud/actions/connection.d.mts +133 -0
- package/cloud/actions/connection.mjs +580 -0
- package/cloud/actions/grant.d.mts +10 -0
- package/cloud/actions/grant.mjs +12 -0
- package/cloud/actions/index.d.mts +7 -0
- package/cloud/actions/index.mjs +7 -0
- package/cloud/actions/machineUsd.d.mts +23 -0
- package/cloud/actions/machineUsd.mjs +37 -0
- package/cloud/actions/model.d.mts +12 -0
- package/cloud/actions/model.mjs +50 -0
- package/cloud/actions/mpp.d.mts +28 -0
- package/cloud/actions/mpp.mjs +39 -0
- package/cloud/index.d.mts +30 -0
- package/cloud/index.mjs +9 -0
- package/cloud/internal.mjs +533 -0
- package/cloud/mercator.mjs +108 -0
- package/cloud/server/HostPrincipal.d.mts +34 -0
- package/cloud/server/HostPrincipal.mjs +202 -0
- package/cloud/server/index.d.mts +1 -0
- package/cloud/server/index.mjs +1 -0
- package/cloud/types.d.mts +212 -0
- package/cloudflare/Agent.d.mts +136 -0
- package/cloudflare/Agent.mjs +784 -0
- package/cloudflare/egress-subject.mjs +19 -0
- package/cloudflare/egress.d.mts +41 -0
- package/cloudflare/egress.mjs +119 -0
- package/cloudflare/event-socket.mjs +316 -0
- package/cloudflare/index.d.mts +7 -0
- package/cloudflare/index.mjs +6 -0
- package/host/Agent.d.mts +55 -0
- package/host/Agent.mjs +1 -0
- package/host/index.d.mts +71 -0
- package/host/index.mjs +10 -0
- package/index.d.mts +46 -0
- package/index.mjs +11 -0
- package/internal.mjs +673 -61
- package/managed/Agent.d.mts +459 -0
- package/managed/Agent.mjs +1824 -0
- package/managed/ManagedError.d.mts +9 -0
- package/managed/ManagedError.mjs +8 -0
- package/managed/README.md +244 -0
- package/managed/Voice.mjs +209 -0
- package/managed/index.d.mts +22 -0
- package/managed/index.mjs +2 -0
- package/managed/internal.mjs +119 -0
- package/node/Agent.d.mts +35 -8
- package/node/Agent.mjs +116 -25
- package/node/ChatGptSubscription.d.mts +9 -0
- package/node/ChatGptSubscription.mjs +17 -0
- package/node/Transport.d.mts +41 -0
- package/node/Transport.mjs +46 -0
- package/node/host.mjs +99 -17
- package/node/index.d.mts +45 -1
- package/node/index.mjs +16 -1
- package/node/workspace.d.mts +10 -0
- package/node/workspace.mjs +198 -0
- package/package.json +145 -11
- package/pkg-node/nanocodex.d.ts +523 -11
- package/pkg-node/nanocodex.js +2038 -179
- package/pkg-node/nanocodex_bg.wasm.d.ts +100 -29
- package/pkg-web/.nanocodex-bindgen-stamp +6 -0
- package/pkg-web/nanocodex-build.json +1 -0
- package/pkg-web/nanocodex.d.ts +623 -40
- package/pkg-web/nanocodex.js +2031 -178
- package/pkg-web/nanocodex_bg.js +2667 -0
- package/pkg-web/nanocodex_bg.wasm +0 -0
- package/pkg-web/nanocodex_bg.wasm.d.ts +100 -29
- package/pkg-web/nanocodex_worker.js +9 -0
- package/runtime/chatgpt-subscription.mjs +212 -0
- package/runtime/cloudflare-durability-store.d.mts +26 -0
- package/runtime/cloudflare-durability-store.mjs +14 -0
- package/runtime/code-evaluator.worker.mjs +137 -0
- package/runtime/code-runtime.mjs +1 -243
- package/runtime/durability-store.d.mts +85 -0
- package/runtime/durability-store.mjs +752 -0
- package/runtime/durability.mjs +174 -0
- package/runtime/managed-transport.mjs +461 -0
- package/runtime/mcp-runtime.mjs +534 -0
- package/runtime/postgres-durability-store.d.mts +64 -0
- package/runtime/postgres-durability-store.mjs +581 -0
- package/runtime/quickjs-evaluator.d.mts +17 -0
- package/runtime/quickjs-evaluator.mjs +236 -0
- package/runtime/response-controls.mjs +42 -0
- package/runtime/response-lanes.mjs +72 -0
- package/runtime/responses-transport.mjs +22 -0
- package/runtime/subagents.d.mts +107 -0
- package/runtime/subagents.mjs +54 -0
- package/runtime/subscription-store.d.mts +8 -0
- package/runtime/subscription-store.mjs +42 -0
- package/runtime/tempo-provider.d.mts +125 -0
- package/runtime/tempo-provider.mjs +264 -0
- package/runtime/tool-configuration.mjs +1 -0
- package/runtime/tool-router.mjs +1 -0
- package/runtime/utf8.mjs +1 -0
- package/runtime/worker-evaluator.mjs +162 -0
- package/runtime/workspace.d.mts +1 -0
- package/runtime/workspace.mjs +1 -0
- package/tools/Tools.d.mts +56 -0
- package/tools/Tools.mjs +136 -0
- package/tools/artifact.d.mts +1 -0
- package/tools/artifact.mjs +1 -0
- package/tools/attachment.mjs +1 -0
- package/tools/bash.d.mts +1 -0
- package/tools/bash.mjs +1 -0
- package/tools/browser/accountInfo.mjs +795 -0
- package/tools/browser/browserBuffer.mjs +18 -0
- package/tools/browser/browserCompiler.mjs +155 -0
- package/tools/browser/browserEgress.mjs +161 -0
- package/tools/browser/browserPython.mjs +133 -0
- package/tools/browser/browserShell.mjs +1075 -0
- package/tools/browser/browserSprintf.mjs +4 -0
- package/tools/browser/browserSsh.mjs +201 -0
- package/tools/browser/browserZlib.mjs +136 -0
- package/tools/browser/compiler.worker.mjs +160 -0
- package/tools/browser/devTunnelsSshBrowser.mjs +13 -0
- package/tools/browser/index.d.mts +209 -0
- package/tools/browser/index.mjs +174 -0
- package/tools/browser/opfsGit.mjs +248 -0
- package/tools/browser/python.worker.mjs +114 -0
- package/tools/browser/threadGit.mjs +197 -0
- package/tools/browser/unsupportedNodeRsa.mjs +5 -0
- package/tools/browser/workspace.mjs +83 -0
- package/tools/dataset.d.mts +1 -0
- package/tools/dataset.mjs +1 -0
- package/tools/datasetContract.mjs +1 -0
- package/tools/datasetEngine.mjs +1 -0
- package/tools/hostedCatalog.d.mts +1 -0
- package/tools/hostedCatalog.mjs +1 -0
- package/tools/index.d.mts +49 -0
- package/tools/index.mjs +19 -0
- package/tools/namedTool.mjs +1 -0
- package/tools/repository-workspace.d.mts +1 -0
- package/tools/repository-workspace.mjs +1 -0
- package/tools/ssh.d.mts +1 -0
- package/tools/ssh.mjs +1 -0
- package/tools/standard.mjs +1 -0
- package/tools/standardDescriptions.mjs +1 -0
- package/types.d.mts +431 -16
- package/worker/ChatGptSubscription.d.mts +9 -0
- package/worker/ChatGptSubscription.mjs +29 -0
- package/worker/index.d.mts +18 -0
- package/worker/index.mjs +5 -0
- package/pkg-node/nanocodex_bg.wasm +0 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import {
|
|
3
|
+
lstat,
|
|
4
|
+
mkdir,
|
|
5
|
+
open as openFile,
|
|
6
|
+
readdir,
|
|
7
|
+
readFile,
|
|
8
|
+
rename,
|
|
9
|
+
rm,
|
|
10
|
+
unlink,
|
|
11
|
+
} from "node:fs/promises";
|
|
12
|
+
import { isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
13
|
+
|
|
14
|
+
import { createWorkspace, normalizeRelativePath, tools } from "../runtime/workspace.mjs";
|
|
15
|
+
|
|
16
|
+
export { tools };
|
|
17
|
+
|
|
18
|
+
export async function open(options = {}) {
|
|
19
|
+
if (typeof options.path !== "string" || !options.path) {
|
|
20
|
+
throw new TypeError("Node workspace path must be a non-empty string");
|
|
21
|
+
}
|
|
22
|
+
const directory = resolve(options.path);
|
|
23
|
+
const logicalRoot = options.root ?? "/workspace";
|
|
24
|
+
try {
|
|
25
|
+
await mkdir(directory, { recursive: true });
|
|
26
|
+
} catch (error) {
|
|
27
|
+
throw privatePathError(error, directory, logicalRoot);
|
|
28
|
+
}
|
|
29
|
+
let metadata;
|
|
30
|
+
try {
|
|
31
|
+
metadata = await lstat(directory);
|
|
32
|
+
} catch (error) {
|
|
33
|
+
throw privatePathError(error, directory, logicalRoot);
|
|
34
|
+
}
|
|
35
|
+
if (!metadata.isDirectory() || metadata.isSymbolicLink()) {
|
|
36
|
+
throw new Error("Node workspace path must be a real directory");
|
|
37
|
+
}
|
|
38
|
+
return createWorkspace({
|
|
39
|
+
root: logicalRoot,
|
|
40
|
+
backend: nodeBackend(directory, logicalRoot),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function nodeBackend(root, logicalRoot) {
|
|
45
|
+
const backend = {
|
|
46
|
+
async list(path, { recursive, maxEntries }) {
|
|
47
|
+
const directory = await resolveDirectory(root, path, false);
|
|
48
|
+
const output = [];
|
|
49
|
+
await listDirectory(root, directory, path, recursive, maxEntries, output);
|
|
50
|
+
return output.sort((left, right) => left.path.localeCompare(right.path));
|
|
51
|
+
},
|
|
52
|
+
async readFile(path) {
|
|
53
|
+
return new Uint8Array(await readFile(await resolveFile(root, path)));
|
|
54
|
+
},
|
|
55
|
+
async writeFile(path, contents) {
|
|
56
|
+
const { directory, name } = await resolveParent(root, path, true);
|
|
57
|
+
const target = join(directory, name);
|
|
58
|
+
await rejectSymlink(target, { displayPath: path, optional: true });
|
|
59
|
+
const temporary = join(directory, `.nanocodex-${randomUUID()}.tmp`);
|
|
60
|
+
const handle = await openFile(temporary, "wx", 0o600);
|
|
61
|
+
try {
|
|
62
|
+
await handle.writeFile(contents);
|
|
63
|
+
await handle.close();
|
|
64
|
+
await rename(temporary, target);
|
|
65
|
+
} catch (error) {
|
|
66
|
+
await handle.close().catch(() => {});
|
|
67
|
+
await unlink(temporary).catch(() => {});
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
async remove(path, { recursive }) {
|
|
72
|
+
const { directory, name } = await resolveParent(root, path, false);
|
|
73
|
+
const target = join(directory, name);
|
|
74
|
+
await rejectSymlink(target, { displayPath: path });
|
|
75
|
+
await rm(target, { recursive, force: false });
|
|
76
|
+
},
|
|
77
|
+
async mkdir(path) {
|
|
78
|
+
await resolveDirectory(root, path, true);
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
return Object.fromEntries(Object.entries(backend).map(([name, operation]) => [
|
|
82
|
+
name,
|
|
83
|
+
async (...args) => {
|
|
84
|
+
try {
|
|
85
|
+
return await operation(...args);
|
|
86
|
+
} catch (error) {
|
|
87
|
+
throw privatePathError(error, root, logicalRoot);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
]));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async function listDirectory(root, directory, prefix, recursive, maxEntries, output) {
|
|
94
|
+
const entries = await readdir(directory, { withFileTypes: true });
|
|
95
|
+
for (const entry of entries) {
|
|
96
|
+
if (output.length >= maxEntries) {
|
|
97
|
+
throw new RangeError(`workspace listing exceeds ${maxEntries} entries`);
|
|
98
|
+
}
|
|
99
|
+
if (entry.isSymbolicLink()) {
|
|
100
|
+
throw new Error(`workspace refuses symbolic link: ${displayRelative(prefix, entry.name)}`);
|
|
101
|
+
}
|
|
102
|
+
const path = displayRelative(prefix, entry.name);
|
|
103
|
+
const absolute = join(directory, entry.name);
|
|
104
|
+
if (entry.isDirectory()) {
|
|
105
|
+
output.push({ kind: "directory", path });
|
|
106
|
+
if (recursive) await listDirectory(root, absolute, path, true, maxEntries, output);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (!entry.isFile()) throw new Error(`unsupported workspace entry: ${path}`);
|
|
110
|
+
const metadata = await lstat(absolute);
|
|
111
|
+
output.push({
|
|
112
|
+
kind: "file",
|
|
113
|
+
modifiedAt: metadata.mtimeMs,
|
|
114
|
+
path,
|
|
115
|
+
size: metadata.size,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
async function resolveFile(root, path) {
|
|
121
|
+
const { directory, name } = await resolveParent(root, path, false);
|
|
122
|
+
const target = join(directory, name);
|
|
123
|
+
const metadata = await rejectSymlink(target, { displayPath: path });
|
|
124
|
+
if (!metadata.isFile()) throw new Error(`workspace path is not a file: ${path}`);
|
|
125
|
+
return target;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
async function resolveParent(root, path, create) {
|
|
129
|
+
const relative = normalizeRelativePath(path);
|
|
130
|
+
const segments = relative.split("/");
|
|
131
|
+
const name = segments.pop();
|
|
132
|
+
if (!name) throw new Error("workspace file path cannot be empty");
|
|
133
|
+
return {
|
|
134
|
+
directory: await resolveDirectory(root, segments.join("/"), create),
|
|
135
|
+
name,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
async function resolveDirectory(root, path, create) {
|
|
140
|
+
let directory = root;
|
|
141
|
+
const relative = normalizeRelativePath(path);
|
|
142
|
+
if (!relative) return directory;
|
|
143
|
+
for (const segment of relative.split("/")) {
|
|
144
|
+
directory = join(directory, segment);
|
|
145
|
+
let metadata;
|
|
146
|
+
try {
|
|
147
|
+
metadata = await lstat(directory);
|
|
148
|
+
} catch (error) {
|
|
149
|
+
if (error?.code !== "ENOENT" || !create) throw error;
|
|
150
|
+
await mkdir(directory);
|
|
151
|
+
metadata = await lstat(directory);
|
|
152
|
+
}
|
|
153
|
+
if (metadata.isSymbolicLink() || !metadata.isDirectory()) {
|
|
154
|
+
throw new Error(`workspace directory path is unsafe: ${path}`);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
assertInside(root, directory);
|
|
158
|
+
return directory;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
async function rejectSymlink(path, { displayPath = path, optional = false } = {}) {
|
|
162
|
+
try {
|
|
163
|
+
const metadata = await lstat(path);
|
|
164
|
+
if (metadata.isSymbolicLink()) {
|
|
165
|
+
throw new Error(`workspace refuses symbolic link: ${displayPath}`);
|
|
166
|
+
}
|
|
167
|
+
return metadata;
|
|
168
|
+
} catch (error) {
|
|
169
|
+
if (optional && error?.code === "ENOENT") return undefined;
|
|
170
|
+
throw error;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function assertInside(root, path) {
|
|
175
|
+
const descendant = relative(root, path);
|
|
176
|
+
if (
|
|
177
|
+
!isAbsolute(root)
|
|
178
|
+
|| descendant === ".."
|
|
179
|
+
|| descendant.startsWith(`..${sep}`)
|
|
180
|
+
|| isAbsolute(descendant)
|
|
181
|
+
) {
|
|
182
|
+
throw new Error("workspace path escaped its root");
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function privatePathError(error, nativeRoot, logicalRoot) {
|
|
187
|
+
if (!(error instanceof Error) || !error.message.includes(nativeRoot)) return error;
|
|
188
|
+
const sanitized = new Error(error.message.split(nativeRoot).join(logicalRoot));
|
|
189
|
+
sanitized.name = error.name;
|
|
190
|
+
for (const property of ["code", "errno", "syscall"]) {
|
|
191
|
+
if (property in error) sanitized[property] = error[property];
|
|
192
|
+
}
|
|
193
|
+
return sanitized;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function displayRelative(prefix, name) {
|
|
197
|
+
return prefix ? `${prefix}/${name}` : name;
|
|
198
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nanocodex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Viem-style Node and browser bindings for the Nanocodex WASM agent",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"./tools/browser/browserBuffer.mjs"
|
|
8
|
+
],
|
|
7
9
|
"exports": {
|
|
8
10
|
".": {
|
|
9
11
|
"types": "./index.d.mts",
|
|
@@ -13,10 +15,114 @@
|
|
|
13
15
|
"types": "./node/index.d.mts",
|
|
14
16
|
"import": "./node/index.mjs"
|
|
15
17
|
},
|
|
18
|
+
"./node/workspace": {
|
|
19
|
+
"types": "./node/workspace.d.mts",
|
|
20
|
+
"import": "./node/workspace.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./node/transport": {
|
|
23
|
+
"types": "./node/Transport.d.mts",
|
|
24
|
+
"import": "./node/Transport.mjs"
|
|
25
|
+
},
|
|
16
26
|
"./browser": {
|
|
17
27
|
"types": "./browser/index.d.mts",
|
|
18
28
|
"import": "./browser/index.mjs"
|
|
19
29
|
},
|
|
30
|
+
"./browser/workspace": {
|
|
31
|
+
"types": "./browser/workspace.d.mts",
|
|
32
|
+
"import": "./browser/workspace.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./browser/transport": {
|
|
35
|
+
"types": "./browser/Transport.d.mts",
|
|
36
|
+
"import": "./browser/Transport.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./browser/voice": {
|
|
39
|
+
"types": "./browser/Voice.d.mts",
|
|
40
|
+
"import": "./browser/Voice.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./workspace": {
|
|
43
|
+
"types": "./runtime/workspace.d.mts",
|
|
44
|
+
"import": "./runtime/workspace.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./host": {
|
|
47
|
+
"types": "./host/index.d.mts",
|
|
48
|
+
"import": "./host/index.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./cloudflare": {
|
|
51
|
+
"types": "./cloudflare/index.d.mts",
|
|
52
|
+
"import": "./cloudflare/index.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./cloudflare/egress": {
|
|
55
|
+
"types": "./cloudflare/egress.d.mts",
|
|
56
|
+
"import": "./cloudflare/egress.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./managed": {
|
|
59
|
+
"types": "./managed/index.d.mts",
|
|
60
|
+
"import": "./managed/index.mjs"
|
|
61
|
+
},
|
|
62
|
+
"./connect": {
|
|
63
|
+
"types": "./cloud/index.d.mts",
|
|
64
|
+
"import": "./cloud/index.mjs"
|
|
65
|
+
},
|
|
66
|
+
"./connect/actions": {
|
|
67
|
+
"types": "./cloud/actions/index.d.mts",
|
|
68
|
+
"import": "./cloud/actions/index.mjs"
|
|
69
|
+
},
|
|
70
|
+
"./connect/server": {
|
|
71
|
+
"types": "./cloud/server/index.d.mts",
|
|
72
|
+
"import": "./cloud/server/index.mjs"
|
|
73
|
+
},
|
|
74
|
+
"./durability": {
|
|
75
|
+
"types": "./runtime/durability-store.d.mts",
|
|
76
|
+
"import": "./runtime/durability-store.mjs"
|
|
77
|
+
},
|
|
78
|
+
"./durability/postgres": {
|
|
79
|
+
"types": "./runtime/postgres-durability-store.d.mts",
|
|
80
|
+
"import": "./runtime/postgres-durability-store.mjs"
|
|
81
|
+
},
|
|
82
|
+
"./durability/cloudflare": {
|
|
83
|
+
"types": "./runtime/cloudflare-durability-store.d.mts",
|
|
84
|
+
"import": "./runtime/cloudflare-durability-store.mjs"
|
|
85
|
+
},
|
|
86
|
+
"./subagents": {
|
|
87
|
+
"types": "./runtime/subagents.d.mts",
|
|
88
|
+
"import": "./runtime/subagents.mjs"
|
|
89
|
+
},
|
|
90
|
+
"./tools": {
|
|
91
|
+
"types": "./tools/index.d.mts",
|
|
92
|
+
"import": "./tools/index.mjs"
|
|
93
|
+
},
|
|
94
|
+
"./tools/hosted-catalog": {
|
|
95
|
+
"types": "./tools/hostedCatalog.d.mts",
|
|
96
|
+
"import": "./tools/hostedCatalog.mjs"
|
|
97
|
+
},
|
|
98
|
+
"./tools/dataset": {
|
|
99
|
+
"types": "./tools/dataset.d.mts",
|
|
100
|
+
"import": "./tools/dataset.mjs"
|
|
101
|
+
},
|
|
102
|
+
"./tools/artifact": {
|
|
103
|
+
"types": "./tools/artifact.d.mts",
|
|
104
|
+
"import": "./tools/artifact.mjs"
|
|
105
|
+
},
|
|
106
|
+
"./tools/bash": {
|
|
107
|
+
"types": "./tools/bash.d.mts",
|
|
108
|
+
"import": "./tools/bash.mjs"
|
|
109
|
+
},
|
|
110
|
+
"./tools/ssh": {
|
|
111
|
+
"types": "./tools/ssh.d.mts",
|
|
112
|
+
"import": "./tools/ssh.mjs"
|
|
113
|
+
},
|
|
114
|
+
"./tools/repository-workspace": {
|
|
115
|
+
"types": "./tools/repository-workspace.d.mts",
|
|
116
|
+
"import": "./tools/repository-workspace.mjs"
|
|
117
|
+
},
|
|
118
|
+
"./tools/browser": {
|
|
119
|
+
"types": "./tools/browser/index.d.mts",
|
|
120
|
+
"import": "./tools/browser/index.mjs"
|
|
121
|
+
},
|
|
122
|
+
"./worker": {
|
|
123
|
+
"types": "./worker/index.d.mts",
|
|
124
|
+
"import": "./worker/index.mjs"
|
|
125
|
+
},
|
|
20
126
|
"./wasm": {
|
|
21
127
|
"types": "./wasm.d.mts",
|
|
22
128
|
"import": "./pkg-web/nanocodex_bg.wasm"
|
|
@@ -25,10 +131,16 @@
|
|
|
25
131
|
"files": [
|
|
26
132
|
"actions",
|
|
27
133
|
"browser",
|
|
134
|
+
"cloudflare",
|
|
135
|
+
"cloud",
|
|
136
|
+
"host",
|
|
137
|
+
"managed",
|
|
28
138
|
"node",
|
|
139
|
+
"worker",
|
|
29
140
|
"pkg-node",
|
|
30
141
|
"pkg-web",
|
|
31
142
|
"runtime",
|
|
143
|
+
"tools",
|
|
32
144
|
"internal.mjs",
|
|
33
145
|
"index.d.mts",
|
|
34
146
|
"index.mjs",
|
|
@@ -40,18 +152,32 @@
|
|
|
40
152
|
"access": "public",
|
|
41
153
|
"provenance": true
|
|
42
154
|
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"check:package": "node scripts/check-package.mjs",
|
|
45
|
-
"prepack": "npm run check:package",
|
|
46
|
-
"test": "node --test test/*.test.mjs && npm run test:performance && npm run test:typecheck && npm run check:package",
|
|
47
|
-
"test:performance": "node --test test/performance.bench.mjs",
|
|
48
|
-
"test:typecheck": "tsc -p test/tsconfig.json"
|
|
49
|
-
},
|
|
50
155
|
"dependencies": {
|
|
156
|
+
"@cfworker/json-schema": "4.1.1",
|
|
157
|
+
"@eduoj/wasm-clang": "1.0.0",
|
|
158
|
+
"@microsoft/dev-tunnels-ssh": "3.12.40",
|
|
159
|
+
"@microsoft/dev-tunnels-ssh-keys": "3.12.40",
|
|
160
|
+
"@modelcontextprotocol/sdk": "1.30.0",
|
|
161
|
+
"buffer": "6.0.3",
|
|
162
|
+
"diff": "^9.0.0",
|
|
163
|
+
"isomorphic-git": "^1.41.5",
|
|
164
|
+
"minisearch": "7.2.0",
|
|
165
|
+
"mppx": "0.9.1",
|
|
166
|
+
"nanocodex-tools": "0.6.0",
|
|
167
|
+
"ox": "1.6.2",
|
|
168
|
+
"pako": "2.1.0",
|
|
169
|
+
"pyodide": "314.0.5",
|
|
170
|
+
"sprintf-js": "1.1.3",
|
|
171
|
+
"viem": "2.55.13",
|
|
172
|
+
"wata": "0.4.0",
|
|
51
173
|
"ws": "^8.18.3"
|
|
52
174
|
},
|
|
53
175
|
"devDependencies": {
|
|
176
|
+
"@jitl/quickjs-wasmfile-release-asyncify": "0.32.0",
|
|
177
|
+
"binaryen": "132.0.0",
|
|
178
|
+
"hyparquet-writer": "0.16.6",
|
|
54
179
|
"pkg-pr-new": "0.0.79",
|
|
180
|
+
"quickjs-emscripten-core": "0.32.0",
|
|
55
181
|
"typescript": "5.9.3"
|
|
56
182
|
},
|
|
57
183
|
"engines": {
|
|
@@ -61,6 +187,14 @@
|
|
|
61
187
|
"repository": {
|
|
62
188
|
"type": "git",
|
|
63
189
|
"url": "git+https://github.com/gakonst/nanocodex.git",
|
|
64
|
-
"directory": "js/
|
|
190
|
+
"directory": "js/nanocodex"
|
|
191
|
+
},
|
|
192
|
+
"scripts": {
|
|
193
|
+
"build": "pnpm --filter nanocodex-vite run build:wasm:release",
|
|
194
|
+
"check:package": "node scripts/check-package.mjs",
|
|
195
|
+
"test": "node --test test/*.test.mjs && npm run test:performance && npm run test:typecheck && npm run check:package",
|
|
196
|
+
"test:performance": "node --expose-gc --test test/performance.bench.mjs",
|
|
197
|
+
"bench:dataset": "node scripts/dataset.bench.mjs",
|
|
198
|
+
"test:typecheck": "tsc -p test/tsconfig.json"
|
|
65
199
|
}
|
|
66
|
-
}
|
|
200
|
+
}
|