@linzumi/cli 1.0.348 → 1.0.349

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linzumi/cli",
3
- "version": "1.0.348",
3
+ "version": "1.0.349",
4
4
  "description": "Linzumi CLI — point a Codex agent at the real code on your laptop, with your team watching and steering from shared threads.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,10 +21,8 @@
21
21
  --prompt 'I want to add tagging and search. Plan it first.'
22
22
  */
23
23
  import { query } from '@anthropic-ai/claude-agent-sdk';
24
- import { fileURLToPath } from 'node:url';
25
- import { existsSync } from 'node:fs';
24
+ import { fileURLToPath, pathToFileURL } from 'node:url';
26
25
  import path from 'node:path';
27
- import { spawnSync } from 'node:child_process';
28
26
 
29
27
  const args = process.argv.slice(2);
30
28
  const argValue = (flag) => {
@@ -48,33 +46,34 @@ const packageRoot = path.resolve(
48
46
 
49
47
  // Compile the exact production developer instructions for a project-bound
50
48
  // Claude Code job (planTool todo-write, projectBound true) via the real
51
- // compiler - no hand-written prompt text in this harness.
52
- // tsx may be hoisted to the workspace root by pnpm.
53
- const tsxBin = [
54
- path.join(packageRoot, 'node_modules', '.bin', 'tsx'),
55
- path.join(packageRoot, '..', '..', 'node_modules', '.bin', 'tsx'),
56
- ].find((candidate) => existsSync(candidate));
57
- const compiled = spawnSync(
58
- tsxBin,
59
- [
60
- '-e',
61
- `import { commanderDeveloperInstructions } from './src/commanderDeveloperInstructions';
62
- process.stdout.write(commanderDeveloperInstructions({
63
- cwd: ${JSON.stringify(cwd)},
49
+ // compiled ReScript compiler - no hand-written prompt text in this harness.
50
+ // Build it first: pnpm --filter @linzumi/cli-rescript build.
51
+ const { commanderDeveloperInstructions } = await import(
52
+ pathToFileURL(
53
+ path.join(
54
+ packageRoot,
55
+ '..',
56
+ 'linzumi-cli-rescript',
57
+ 'src',
58
+ 'core',
59
+ 'CommanderDeveloperInstructions.res.mjs'
60
+ )
61
+ ).href
62
+ );
63
+ const developerInstructions = commanderDeveloperInstructions({
64
+ cwd,
64
65
  agentLabel: 'Claude Code',
65
- planTool: 'todo-write',
66
+ agentNickname: undefined,
67
+ planTool: 'TodoWritePlanTool',
68
+ mcpAvailable: true,
69
+ devServicesAvailable: true,
66
70
  developerPrompt: undefined,
71
+ projectSharedInstructions: undefined,
72
+ projectPersonalInstructions: undefined,
73
+ projectMemory: undefined,
67
74
  projectBound: true,
68
75
  linzumiContext: undefined,
69
- }));`,
70
- ],
71
- { cwd: packageRoot, encoding: 'utf8' }
72
- );
73
- if (compiled.status !== 0) {
74
- console.error('failed to compile developer instructions:', compiled.stderr);
75
- process.exit(2);
76
- }
77
- const developerInstructions = compiled.stdout;
76
+ });
78
77
  console.log(
79
78
  `=== compiled developer instructions: ${developerInstructions.length} chars, ` +
80
79
  `projectBound directives present: ${developerInstructions.includes('project task DAG')}`