crewhaus 0.1.5 → 0.1.6
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/index.js +9 -3
- package/package.json +64 -64
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
|
-
import { basename, dirname, join, resolve } from "node:path";
|
|
3
|
+
import { basename, dirname, join, relative, resolve } from "node:path";
|
|
4
4
|
import { SpecParseError, compile, lower } from "@crewhaus/compiler";
|
|
5
5
|
import { buildContextBundle, discoverRoots } from "@crewhaus/context-bundle";
|
|
6
6
|
import { CrewhausError } from "@crewhaus/errors";
|
|
@@ -537,7 +537,12 @@ agent:
|
|
|
537
537
|
`;
|
|
538
538
|
writeFileSync(targetFile, yamlText);
|
|
539
539
|
process.stdout.write(`wrote ${targetFile}\n`);
|
|
540
|
-
|
|
540
|
+
// The runtime resolves the spec and the `.crewhaus/` session store from
|
|
541
|
+
// the current working directory, so guide the user to run from inside
|
|
542
|
+
// the harness directory (where crewhaus.yaml lives), not from here.
|
|
543
|
+
const rel = relative(process.cwd(), targetDir);
|
|
544
|
+
const cd = rel === "" ? "" : `cd ${rel} && `;
|
|
545
|
+
process.stdout.write(`next: ${cd}crewhaus run crewhaus.yaml\n`);
|
|
541
546
|
logger.debug("init.success", { target: targetFile });
|
|
542
547
|
}
|
|
543
548
|
/**
|
|
@@ -753,7 +758,8 @@ async function runRunCli(args, ir, specPath) {
|
|
|
753
758
|
const sessions = await store.list();
|
|
754
759
|
const match = sessions.find((s) => s.name === ir.name);
|
|
755
760
|
if (match === undefined) {
|
|
756
|
-
|
|
761
|
+
const absSpec = resolve(specPath);
|
|
762
|
+
die(`no prior session for spec "${ir.name}" in ${process.cwd()}/.crewhaus/sessions/. Sessions are stored under the directory you run from — start one from the harness directory with: cd ${dirname(absSpec)} && crewhaus run ${basename(absSpec)}`);
|
|
757
763
|
}
|
|
758
764
|
resumeId = match.id;
|
|
759
765
|
process.stdout.write(`[continue] resuming session ${match.id} (last updated ${match.updatedAt})\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crewhaus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CrewHaus — the meta-harness compiler for AI agents. Compile one crewhaus.yaml spec into a CLI agent, channel bot, RAG pipeline, multi-agent crew, eval harness, voice or browser agent, and more.",
|
|
6
6
|
"keywords": [
|
|
@@ -31,69 +31,69 @@
|
|
|
31
31
|
"test": "bun test src"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@crewhaus/adapter-anthropic": "0.1.
|
|
35
|
-
"@crewhaus/agent-context-isolation": "0.1.
|
|
36
|
-
"@crewhaus/audit-log": "0.1.
|
|
37
|
-
"@crewhaus/eval-optimizer-orchestrator": "0.1.
|
|
38
|
-
"@crewhaus/prompt-optimizer": "0.1.
|
|
39
|
-
"@crewhaus/prompt-optimizer-claude": "0.1.
|
|
40
|
-
"@crewhaus/justification-judge-claude": "0.1.
|
|
41
|
-
"@crewhaus/spec-patch": "0.1.
|
|
42
|
-
"@crewhaus/canary-controller": "0.1.
|
|
43
|
-
"@crewhaus/compiler": "0.1.
|
|
44
|
-
"@crewhaus/computer-use-driver": "0.1.
|
|
45
|
-
"@crewhaus/context-bundle": "0.1.
|
|
46
|
-
"@crewhaus/deployment-controller": "0.1.
|
|
47
|
-
"@crewhaus/egress-classifier": "0.1.
|
|
48
|
-
"@crewhaus/egress-matcher-semantic": "0.1.
|
|
49
|
-
"@crewhaus/embedder": "0.1.
|
|
50
|
-
"@crewhaus/errors": "0.1.
|
|
51
|
-
"@crewhaus/eval-dataset": "0.1.
|
|
52
|
-
"@crewhaus/eval-grader": "0.1.
|
|
53
|
-
"@crewhaus/eval-report": "0.1.
|
|
54
|
-
"@crewhaus/eval-runner": "0.1.
|
|
55
|
-
"@crewhaus/hooks-engine": "0.1.
|
|
56
|
-
"@crewhaus/infra-utils": "0.1.
|
|
57
|
-
"@crewhaus/ir": "0.1.
|
|
58
|
-
"@crewhaus/logging": "0.1.
|
|
59
|
-
"@crewhaus/mcp-host": "0.1.
|
|
60
|
-
"@crewhaus/model-router": "0.1.
|
|
61
|
-
"@crewhaus/migration-engine": "0.1.
|
|
62
|
-
"@crewhaus/migration-runner": "0.1.
|
|
63
|
-
"@crewhaus/permission-engine": "0.1.
|
|
64
|
-
"@crewhaus/run-context": "0.1.
|
|
65
|
-
"@crewhaus/runtime-core": "0.1.
|
|
66
|
-
"@crewhaus/secrets-manager": "0.1.
|
|
67
|
-
"@crewhaus/session-store": "0.1.
|
|
68
|
-
"@crewhaus/spec-registry": "0.1.
|
|
69
|
-
"@crewhaus/skills-registry": "0.1.
|
|
70
|
-
"@crewhaus/slash-commands": "0.1.
|
|
71
|
-
"@crewhaus/spec": "0.1.
|
|
72
|
-
"@crewhaus/sub-agent-spawner": "0.1.
|
|
73
|
-
"@crewhaus/trace-event-bus": "0.1.
|
|
74
|
-
"@crewhaus/tool-bash": "0.1.
|
|
75
|
-
"@crewhaus/tool-builder": "0.1.
|
|
76
|
-
"@crewhaus/tool-catalog": "0.1.
|
|
77
|
-
"@crewhaus/tool-codegraph": "0.1.
|
|
78
|
-
"@crewhaus/tool-fetch": "0.1.
|
|
79
|
-
"@crewhaus/tool-fs": "0.1.
|
|
80
|
-
"@crewhaus/tool-image": "0.1.
|
|
81
|
-
"@crewhaus/tool-image-generation": "0.1.
|
|
82
|
-
"@crewhaus/tool-document-ingest": "0.1.
|
|
83
|
-
"@crewhaus/tool-mcp": "0.1.
|
|
84
|
-
"@crewhaus/tool-mouse-keyboard": "0.1.
|
|
85
|
-
"@crewhaus/tool-navigate": "0.1.
|
|
86
|
-
"@crewhaus/tool-screen-capture": "0.1.
|
|
87
|
-
"@crewhaus/tool-task": "0.1.
|
|
88
|
-
"@crewhaus/tool-todo": "0.1.
|
|
89
|
-
"@crewhaus/tool-vision-grounding": "0.1.
|
|
90
|
-
"@crewhaus/tool-web": "0.1.
|
|
91
|
-
"@crewhaus/docker-images": "0.1.
|
|
92
|
-
"@crewhaus/crewhaus-cloud": "0.1.
|
|
93
|
-
"@crewhaus/federation-discovery": "0.1.
|
|
94
|
-
"@crewhaus/sandbox": "0.1.
|
|
95
|
-
"@crewhaus/sandbox-image-registry": "0.1.
|
|
96
|
-
"@crewhaus/compliance-controls": "0.1.
|
|
34
|
+
"@crewhaus/adapter-anthropic": "0.1.6",
|
|
35
|
+
"@crewhaus/agent-context-isolation": "0.1.6",
|
|
36
|
+
"@crewhaus/audit-log": "0.1.6",
|
|
37
|
+
"@crewhaus/eval-optimizer-orchestrator": "0.1.6",
|
|
38
|
+
"@crewhaus/prompt-optimizer": "0.1.6",
|
|
39
|
+
"@crewhaus/prompt-optimizer-claude": "0.1.6",
|
|
40
|
+
"@crewhaus/justification-judge-claude": "0.1.6",
|
|
41
|
+
"@crewhaus/spec-patch": "0.1.6",
|
|
42
|
+
"@crewhaus/canary-controller": "0.1.6",
|
|
43
|
+
"@crewhaus/compiler": "0.1.6",
|
|
44
|
+
"@crewhaus/computer-use-driver": "0.1.6",
|
|
45
|
+
"@crewhaus/context-bundle": "0.1.6",
|
|
46
|
+
"@crewhaus/deployment-controller": "0.1.6",
|
|
47
|
+
"@crewhaus/egress-classifier": "0.1.6",
|
|
48
|
+
"@crewhaus/egress-matcher-semantic": "0.1.6",
|
|
49
|
+
"@crewhaus/embedder": "0.1.6",
|
|
50
|
+
"@crewhaus/errors": "0.1.6",
|
|
51
|
+
"@crewhaus/eval-dataset": "0.1.6",
|
|
52
|
+
"@crewhaus/eval-grader": "0.1.6",
|
|
53
|
+
"@crewhaus/eval-report": "0.1.6",
|
|
54
|
+
"@crewhaus/eval-runner": "0.1.6",
|
|
55
|
+
"@crewhaus/hooks-engine": "0.1.6",
|
|
56
|
+
"@crewhaus/infra-utils": "0.1.6",
|
|
57
|
+
"@crewhaus/ir": "0.1.6",
|
|
58
|
+
"@crewhaus/logging": "0.1.6",
|
|
59
|
+
"@crewhaus/mcp-host": "0.1.6",
|
|
60
|
+
"@crewhaus/model-router": "0.1.6",
|
|
61
|
+
"@crewhaus/migration-engine": "0.1.6",
|
|
62
|
+
"@crewhaus/migration-runner": "0.1.6",
|
|
63
|
+
"@crewhaus/permission-engine": "0.1.6",
|
|
64
|
+
"@crewhaus/run-context": "0.1.6",
|
|
65
|
+
"@crewhaus/runtime-core": "0.1.6",
|
|
66
|
+
"@crewhaus/secrets-manager": "0.1.6",
|
|
67
|
+
"@crewhaus/session-store": "0.1.6",
|
|
68
|
+
"@crewhaus/spec-registry": "0.1.6",
|
|
69
|
+
"@crewhaus/skills-registry": "0.1.6",
|
|
70
|
+
"@crewhaus/slash-commands": "0.1.6",
|
|
71
|
+
"@crewhaus/spec": "0.1.6",
|
|
72
|
+
"@crewhaus/sub-agent-spawner": "0.1.6",
|
|
73
|
+
"@crewhaus/trace-event-bus": "0.1.6",
|
|
74
|
+
"@crewhaus/tool-bash": "0.1.6",
|
|
75
|
+
"@crewhaus/tool-builder": "0.1.6",
|
|
76
|
+
"@crewhaus/tool-catalog": "0.1.6",
|
|
77
|
+
"@crewhaus/tool-codegraph": "0.1.6",
|
|
78
|
+
"@crewhaus/tool-fetch": "0.1.6",
|
|
79
|
+
"@crewhaus/tool-fs": "0.1.6",
|
|
80
|
+
"@crewhaus/tool-image": "0.1.6",
|
|
81
|
+
"@crewhaus/tool-image-generation": "0.1.6",
|
|
82
|
+
"@crewhaus/tool-document-ingest": "0.1.6",
|
|
83
|
+
"@crewhaus/tool-mcp": "0.1.6",
|
|
84
|
+
"@crewhaus/tool-mouse-keyboard": "0.1.6",
|
|
85
|
+
"@crewhaus/tool-navigate": "0.1.6",
|
|
86
|
+
"@crewhaus/tool-screen-capture": "0.1.6",
|
|
87
|
+
"@crewhaus/tool-task": "0.1.6",
|
|
88
|
+
"@crewhaus/tool-todo": "0.1.6",
|
|
89
|
+
"@crewhaus/tool-vision-grounding": "0.1.6",
|
|
90
|
+
"@crewhaus/tool-web": "0.1.6",
|
|
91
|
+
"@crewhaus/docker-images": "0.1.6",
|
|
92
|
+
"@crewhaus/crewhaus-cloud": "0.1.6",
|
|
93
|
+
"@crewhaus/federation-discovery": "0.1.6",
|
|
94
|
+
"@crewhaus/sandbox": "0.1.6",
|
|
95
|
+
"@crewhaus/sandbox-image-registry": "0.1.6",
|
|
96
|
+
"@crewhaus/compliance-controls": "0.1.6"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"zod": "^3.23.8"
|