@corenel/cli 0.9.4 → 0.9.5
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/main.js +7 -6
- package/package.json +7 -7
package/dist/main.js
CHANGED
|
@@ -28479,9 +28479,9 @@ ${firstUserMsg.content}`;
|
|
|
28479
28479
|
_MemoryFileSystem.MAX_PACKAGE_SIZE = 50 * 1024 * 1024;
|
|
28480
28480
|
MemoryFileSystem = _MemoryFileSystem;
|
|
28481
28481
|
HybridFileSystem = class {
|
|
28482
|
-
constructor(files = {},
|
|
28482
|
+
constructor(files = {}, backend) {
|
|
28483
28483
|
this.mem = new MemoryFileSystem(files);
|
|
28484
|
-
this.backend =
|
|
28484
|
+
this.backend = backend;
|
|
28485
28485
|
}
|
|
28486
28486
|
/** Add or update an in-memory (synchronously-served) file. */
|
|
28487
28487
|
addFile(filePath, content) {
|
|
@@ -28651,7 +28651,7 @@ var init_toolGuidance = __esm({
|
|
|
28651
28651
|
|
|
28652
28652
|
// ../tools-node/promptHost.ts
|
|
28653
28653
|
import { normalizeFilePath as normalizeFilePath2, flattenFiles as flattenFiles2 } from "@corenel/protocol";
|
|
28654
|
-
function
|
|
28654
|
+
function promptBackend(svc) {
|
|
28655
28655
|
return {
|
|
28656
28656
|
async readFile(p) {
|
|
28657
28657
|
try {
|
|
@@ -28668,9 +28668,10 @@ function backend(svc) {
|
|
|
28668
28668
|
}
|
|
28669
28669
|
};
|
|
28670
28670
|
}
|
|
28671
|
-
async function
|
|
28671
|
+
async function preloadPromptSources(svc, keep) {
|
|
28672
28672
|
const out = {};
|
|
28673
28673
|
for (const f of flattenFiles2(await svc.list())) {
|
|
28674
|
+
if (keep && !keep(f.path)) continue;
|
|
28674
28675
|
try {
|
|
28675
28676
|
out[f.path] = await svc.read(f.path);
|
|
28676
28677
|
} catch {
|
|
@@ -28702,10 +28703,10 @@ function nodePromptHost(workspace, project) {
|
|
|
28702
28703
|
parse: (source) => ({ meta: parser.parseContent(source).metadata ?? {} }),
|
|
28703
28704
|
compileBody: (source, values) => compile(source, values),
|
|
28704
28705
|
compileTemplate: async (path, liveSrc, values) => {
|
|
28705
|
-
const sources = await
|
|
28706
|
+
const sources = await preloadPromptSources(workspace);
|
|
28706
28707
|
const p = normalizeFilePath2(path);
|
|
28707
28708
|
sources[p] = liveSrc;
|
|
28708
|
-
return compile("", values, new HybridFileSystem(sources,
|
|
28709
|
+
return compile("", values, new HybridFileSystem(sources, promptBackend(workspace)), "/" + p);
|
|
28709
28710
|
},
|
|
28710
28711
|
siteIndex: () => "",
|
|
28711
28712
|
// no site index in node (the help chat is browser-only)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corenel/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Corenel CLI — runs the harness in node, in-proc, no transport. The headless proof the kernel is host-agnostic. (corenel run/ask/chat/login + start --sidecar to follow.)",
|
|
6
6
|
"bin": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"openai": "^4.77.0",
|
|
11
11
|
"ws": "^8.18.0",
|
|
12
|
-
"@corenel/mcp": "0.6.
|
|
13
|
-
"@corenel/
|
|
14
|
-
"@corenel/harness": "0.
|
|
15
|
-
"@corenel/
|
|
16
|
-
"@corenel/protocol": "0.
|
|
12
|
+
"@corenel/mcp": "0.6.3",
|
|
13
|
+
"@corenel/term": "0.8.4",
|
|
14
|
+
"@corenel/harness": "0.18.0",
|
|
15
|
+
"@corenel/config": "0.7.3",
|
|
16
|
+
"@corenel/protocol": "0.16.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"esbuild": "^0.21.5",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"tsx": "^4.19.2",
|
|
23
23
|
"typescript": "^5.9.3",
|
|
24
24
|
"@corenel/crew": "0.0.0",
|
|
25
|
-
"@corenel/tools-node": "0.8.
|
|
25
|
+
"@corenel/tools-node": "0.8.3"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|