@v1nvn/agentic-core 0.44.0 → 0.45.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.
- package/README.md +1 -1
- package/package.json +10 -15
- package/src/cli.js +194 -0
- package/src/cli.ts +252 -38
- package/src/dev.js +25 -0
- package/src/dev.ts +3 -8
- package/src/draw.js +244 -0
- package/src/draw.ts +332 -0
- package/src/index.js +8 -0
- package/src/index.ts +8 -6
- package/src/input.js +25 -0
- package/src/last-reply.js +75 -0
- package/src/logger.js +50 -0
- package/src/logger.ts +21 -1
- package/src/mcp.js +29 -0
- package/src/mcp.ts +69 -0
- package/src/shutdown.js +23 -0
- package/src/vite.js +63 -0
- package/src/vite.ts +78 -60
- package/dist/index.js +0 -214
- package/dist/index.js.map +0 -1
- package/dist/vite.js +0 -54
- package/dist/vite.js.map +0 -1
package/dist/vite.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { configDefaults } from "vitest/config";
|
|
2
|
-
//#region src/vite.ts
|
|
3
|
-
/**
|
|
4
|
-
* The one two-mode build every mod home runs — a home's `vite.config.ts` is a
|
|
5
|
-
* thin wrapper handing `modVite` its standalone mode name and extra entries.
|
|
6
|
-
*/
|
|
7
|
-
function modVite(mode, { standalone, entries = {} }) {
|
|
8
|
-
if (mode === standalone.mode) return {
|
|
9
|
-
ssr: { noExternal: true },
|
|
10
|
-
build: {
|
|
11
|
-
outDir: "dist",
|
|
12
|
-
emptyOutDir: false,
|
|
13
|
-
sourcemap: true,
|
|
14
|
-
minify: false,
|
|
15
|
-
ssr: true,
|
|
16
|
-
rollupOptions: {
|
|
17
|
-
input: { [standalone.name]: "src/index.ts" },
|
|
18
|
-
output: {
|
|
19
|
-
banner: "#!/usr/bin/env node",
|
|
20
|
-
entryFileNames: `${standalone.name}.mjs`
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
return {
|
|
26
|
-
build: {
|
|
27
|
-
outDir: "dist",
|
|
28
|
-
emptyOutDir: true,
|
|
29
|
-
sourcemap: true,
|
|
30
|
-
minify: false,
|
|
31
|
-
ssr: true,
|
|
32
|
-
rollupOptions: {
|
|
33
|
-
input: {
|
|
34
|
-
index: "src/index.ts",
|
|
35
|
-
...entries
|
|
36
|
-
},
|
|
37
|
-
output: { banner: (chunk) => chunk.isEntry && chunk.facadeModuleId?.endsWith("src/index.ts") ? "#!/usr/bin/env node" : "" }
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
test: {
|
|
41
|
-
globals: true,
|
|
42
|
-
environment: "node",
|
|
43
|
-
exclude: [
|
|
44
|
-
...configDefaults.exclude,
|
|
45
|
-
"dist/**",
|
|
46
|
-
"tests/**"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
export { modVite };
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=vite.js.map
|
package/dist/vite.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite.js","names":[],"sources":["../src/vite.ts"],"sourcesContent":["/**\n * The one two-mode build every mod home runs — a home's `vite.config.ts` is a\n * thin wrapper handing `modVite` its standalone mode name and extra entries.\n */\nimport { configDefaults } from 'vitest/config';\n\nexport interface ModViteOptions {\n /** Extra CLI-pass entries beside the CLI itself, e.g. tokens' `text` library chunk. */\n entries?: Record<string, string>;\n /** The `--mode` that builds the standalone artifact, and the `bin/<name>.mjs` it emits. */\n standalone: { mode: string; name: string };\n}\n\nexport function modVite(\n mode: string,\n { standalone, entries = {} }: ModViteOptions,\n) {\n // The standalone pass emits the artifact the plugin folder carries — the\n // mod execs it through the session's Bash tool, where no node_modules\n // exists, so it inlines every dependency. Only ever run under `node`, where\n // the banner is inert.\n if (mode === standalone.mode) {\n return {\n ssr: { noExternal: true },\n build: {\n outDir: 'dist',\n emptyOutDir: false,\n sourcemap: true,\n minify: false,\n ssr: true,\n rollupOptions: {\n input: { [standalone.name]: 'src/index.ts' },\n output: {\n banner: '#!/usr/bin/env node',\n entryFileNames: `${standalone.name}.mjs`,\n },\n },\n },\n };\n }\n // The CLI pass builds the default way: external deps, installed beside it\n // by npx. SSR/Node build: Vite externalizes node built-ins AND package.json\n // `dependencies` (`@v1nvn/agentic-core` stays a real dep), so only source\n // is bundled; ESM out matches \"type\":\"module\".\n return {\n build: {\n outDir: 'dist',\n emptyOutDir: true,\n sourcemap: true,\n minify: false,\n ssr: true,\n rollupOptions: {\n input: { index: 'src/index.ts', ...entries },\n // `bin` (dist/index.js) is exec'd by the kernel; without a shebang\n // the OS runs it under /bin/sh and `npx <bin>` dies parsing `import`.\n // Library chunks carry none.\n output: {\n banner: (chunk: { facadeModuleId?: string; isEntry: boolean }) =>\n chunk.isEntry && chunk.facadeModuleId?.endsWith('src/index.ts')\n ? '#!/usr/bin/env node'\n : '',\n },\n },\n },\n test: {\n globals: true,\n environment: 'node',\n exclude: [...configDefaults.exclude, 'dist/**', 'tests/**'],\n },\n };\n}\n"],"mappings":";;;;;;AAaA,SAAgB,QACd,MACA,EAAE,YAAY,UAAU,CAAC,KACzB;CAKA,IAAI,SAAS,WAAW,MACtB,OAAO;EACL,KAAK,EAAE,YAAY,KAAK;EACxB,OAAO;GACL,QAAQ;GACR,aAAa;GACb,WAAW;GACX,QAAQ;GACR,KAAK;GACL,eAAe;IACb,OAAO,GAAG,WAAW,OAAO,eAAe;IAC3C,QAAQ;KACN,QAAQ;KACR,gBAAgB,GAAG,WAAW,KAAK;IACrC;GACF;EACF;CACF;CAMF,OAAO;EACL,OAAO;GACL,QAAQ;GACR,aAAa;GACb,WAAW;GACX,QAAQ;GACR,KAAK;GACL,eAAe;IACb,OAAO;KAAE,OAAO;KAAgB,GAAG;IAAQ;IAI3C,QAAQ,EACN,SAAS,UACP,MAAM,WAAW,MAAM,gBAAgB,SAAS,cAAc,IAC1D,wBACA,GACR;GACF;EACF;EACA,MAAM;GACJ,SAAS;GACT,aAAa;GACb,SAAS;IAAC,GAAG,eAAe;IAAS;IAAW;GAAU;EAC5D;CACF;AACF"}
|