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.
Files changed (2) hide show
  1. package/dist/index.js +9 -3
  2. 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
- process.stdout.write(`next: bun crewhaus run ${targetFile}\n`);
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
- die(`no prior session for spec "${ir.name}" in ${process.cwd()}/.crewhaus/sessions/. Start one with: crewhaus run ${specPath}`);
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.5",
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.5",
35
- "@crewhaus/agent-context-isolation": "0.1.5",
36
- "@crewhaus/audit-log": "0.1.5",
37
- "@crewhaus/eval-optimizer-orchestrator": "0.1.5",
38
- "@crewhaus/prompt-optimizer": "0.1.5",
39
- "@crewhaus/prompt-optimizer-claude": "0.1.5",
40
- "@crewhaus/justification-judge-claude": "0.1.5",
41
- "@crewhaus/spec-patch": "0.1.5",
42
- "@crewhaus/canary-controller": "0.1.5",
43
- "@crewhaus/compiler": "0.1.5",
44
- "@crewhaus/computer-use-driver": "0.1.5",
45
- "@crewhaus/context-bundle": "0.1.5",
46
- "@crewhaus/deployment-controller": "0.1.5",
47
- "@crewhaus/egress-classifier": "0.1.5",
48
- "@crewhaus/egress-matcher-semantic": "0.1.5",
49
- "@crewhaus/embedder": "0.1.5",
50
- "@crewhaus/errors": "0.1.5",
51
- "@crewhaus/eval-dataset": "0.1.5",
52
- "@crewhaus/eval-grader": "0.1.5",
53
- "@crewhaus/eval-report": "0.1.5",
54
- "@crewhaus/eval-runner": "0.1.5",
55
- "@crewhaus/hooks-engine": "0.1.5",
56
- "@crewhaus/infra-utils": "0.1.5",
57
- "@crewhaus/ir": "0.1.5",
58
- "@crewhaus/logging": "0.1.5",
59
- "@crewhaus/mcp-host": "0.1.5",
60
- "@crewhaus/model-router": "0.1.5",
61
- "@crewhaus/migration-engine": "0.1.5",
62
- "@crewhaus/migration-runner": "0.1.5",
63
- "@crewhaus/permission-engine": "0.1.5",
64
- "@crewhaus/run-context": "0.1.5",
65
- "@crewhaus/runtime-core": "0.1.5",
66
- "@crewhaus/secrets-manager": "0.1.5",
67
- "@crewhaus/session-store": "0.1.5",
68
- "@crewhaus/spec-registry": "0.1.5",
69
- "@crewhaus/skills-registry": "0.1.5",
70
- "@crewhaus/slash-commands": "0.1.5",
71
- "@crewhaus/spec": "0.1.5",
72
- "@crewhaus/sub-agent-spawner": "0.1.5",
73
- "@crewhaus/trace-event-bus": "0.1.5",
74
- "@crewhaus/tool-bash": "0.1.5",
75
- "@crewhaus/tool-builder": "0.1.5",
76
- "@crewhaus/tool-catalog": "0.1.5",
77
- "@crewhaus/tool-codegraph": "0.1.5",
78
- "@crewhaus/tool-fetch": "0.1.5",
79
- "@crewhaus/tool-fs": "0.1.5",
80
- "@crewhaus/tool-image": "0.1.5",
81
- "@crewhaus/tool-image-generation": "0.1.5",
82
- "@crewhaus/tool-document-ingest": "0.1.5",
83
- "@crewhaus/tool-mcp": "0.1.5",
84
- "@crewhaus/tool-mouse-keyboard": "0.1.5",
85
- "@crewhaus/tool-navigate": "0.1.5",
86
- "@crewhaus/tool-screen-capture": "0.1.5",
87
- "@crewhaus/tool-task": "0.1.5",
88
- "@crewhaus/tool-todo": "0.1.5",
89
- "@crewhaus/tool-vision-grounding": "0.1.5",
90
- "@crewhaus/tool-web": "0.1.5",
91
- "@crewhaus/docker-images": "0.1.5",
92
- "@crewhaus/crewhaus-cloud": "0.1.5",
93
- "@crewhaus/federation-discovery": "0.1.5",
94
- "@crewhaus/sandbox": "0.1.5",
95
- "@crewhaus/sandbox-image-registry": "0.1.5",
96
- "@crewhaus/compliance-controls": "0.1.5"
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"