@crewhaus/target-crew 0.1.1 → 0.1.2

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/package.json +8 -13
  2. package/src/index.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/target-crew",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Codegen for the CRW target — emits a daemon + per-role agent files driven by crew-orchestrator (Section 22)",
6
6
  "main": "src/index.ts",
@@ -12,15 +12,15 @@
12
12
  "test": "bun test src"
13
13
  },
14
14
  "dependencies": {
15
- "@crewhaus/errors": "0.1.1",
16
- "@crewhaus/infra-utils": "0.1.1",
17
- "@crewhaus/ir": "0.1.1"
15
+ "@crewhaus/errors": "0.1.2",
16
+ "@crewhaus/infra-utils": "0.1.2",
17
+ "@crewhaus/ir": "0.1.2"
18
18
  },
19
19
  "license": "Apache-2.0",
20
20
  "author": {
21
21
  "name": "Max Meier",
22
- "email": "max@studiomax.io",
23
- "url": "https://studiomax.io"
22
+ "email": "max@crewhaus.ai",
23
+ "url": "https://crewhaus.ai"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",
@@ -32,12 +32,7 @@
32
32
  "url": "https://github.com/crewhaus/factory/issues"
33
33
  },
34
34
  "publishConfig": {
35
- "access": "restricted"
35
+ "access": "public"
36
36
  },
37
- "files": [
38
- "src",
39
- "README.md",
40
- "LICENSE",
41
- "NOTICE"
42
- ]
37
+ "files": ["src", "README.md", "LICENSE", "NOTICE"]
43
38
  }
package/src/index.ts CHANGED
@@ -187,7 +187,7 @@ function renderRoleAgent(ir: IrCrewV0, role: IrCrewRole): string {
187
187
  const initLines = inits.length > 0 ? `${inits.join("\n")}\n` : "";
188
188
  const toolsArrayLiteral = registrations.length > 0 ? `[${registrations.join(", ")}]` : "[]";
189
189
  return `// Generated by crewhaus. DO NOT EDIT.
190
- // Source spec: ${ir.name} (target: crew, ir version: ${ir.version}, role: ${role.name})
190
+ // Source spec: ${escapeJsonString(ir.name)} (target: crew, ir version: ${ir.version}, role: ${escapeJsonString(role.name)})
191
191
  ${importBlock}import type { RoleDefinition } from "@crewhaus/crew-orchestrator";
192
192
 
193
193
  ${initLines}
@@ -234,7 +234,7 @@ ${tableLit};
234
234
  }
235
235
 
236
236
  return `// Generated by crewhaus. DO NOT EDIT.
237
- // Source spec: ${ir.name} (target: crew, ir version: ${ir.version}, file: orchestrator.ts)
237
+ // Source spec: ${escapeJsonString(ir.name)} (target: crew, ir version: ${ir.version}, file: orchestrator.ts)
238
238
  import { Crew, type RunnableCrew } from "@crewhaus/crew-orchestrator";
239
239
  ${roleImports}
240
240
 
@@ -264,7 +264,7 @@ function renderDaemon(ir: IrCrewV0): string {
264
264
  const permField = renderPermissionsField(ir);
265
265
  return `#!/usr/bin/env bun
266
266
  // Generated by crewhaus. DO NOT EDIT.
267
- // Source spec: ${ir.name} (target: crew, ir version: ${ir.version}, file: daemon.ts)
267
+ // Source spec: ${escapeJsonString(ir.name)} (target: crew, ir version: ${ir.version}, file: daemon.ts)
268
268
  ${permImport}import { buildCrew } from "./orchestrator.js";
269
269
 
270
270
  async function main(): Promise<void> {