@neurcode-ai/cli 0.16.4 → 0.16.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/.telemetry-bundle/dist/index.js +0 -0
- package/LICENSE +201 -0
- package/dist/api-client.d.ts +75 -0
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +43 -0
- package/dist/api-client.js.map +1 -1
- package/dist/commands/brain.d.ts.map +1 -1
- package/dist/commands/brain.js +151 -0
- package/dist/commands/brain.js.map +1 -1
- package/dist/commands/cursor.d.ts.map +1 -1
- package/dist/commands/cursor.js +72 -0
- package/dist/commands/cursor.js.map +1 -1
- package/dist/commands/eval.d.ts +19 -0
- package/dist/commands/eval.d.ts.map +1 -0
- package/dist/commands/eval.js +246 -0
- package/dist/commands/eval.js.map +1 -0
- package/dist/commands/onboard.d.ts +29 -0
- package/dist/commands/onboard.d.ts.map +1 -0
- package/dist/commands/onboard.js +247 -0
- package/dist/commands/onboard.js.map +1 -0
- package/dist/commands/runtime-doctor.d.ts.map +1 -1
- package/dist/commands/runtime-doctor.js +80 -9
- package/dist/commands/runtime-doctor.js.map +1 -1
- package/dist/commands/runtime-sync.d.ts.map +1 -1
- package/dist/commands/runtime-sync.js +22 -0
- package/dist/commands/runtime-sync.js.map +1 -1
- package/dist/commands/runtime.d.ts +18 -0
- package/dist/commands/runtime.d.ts.map +1 -1
- package/dist/commands/runtime.js +321 -1
- package/dist/commands/runtime.js.map +1 -1
- package/dist/commands/session-hook.d.ts +10 -2
- package/dist/commands/session-hook.d.ts.map +1 -1
- package/dist/commands/session-hook.js +533 -122
- package/dist/commands/session-hook.js.map +1 -1
- package/dist/commands/session.d.ts +34 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +243 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/index.js +84 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime-build.json +5 -5
- package/dist/utils/agent-guard-supervisor.d.ts.map +1 -1
- package/dist/utils/agent-guard-supervisor.js +0 -1
- package/dist/utils/agent-guard-supervisor.js.map +1 -1
- package/dist/utils/cursor-gate.d.ts +1 -0
- package/dist/utils/cursor-gate.d.ts.map +1 -1
- package/dist/utils/cursor-gate.js +34 -7
- package/dist/utils/cursor-gate.js.map +1 -1
- package/dist/utils/guided-eval.d.ts +251 -0
- package/dist/utils/guided-eval.d.ts.map +1 -0
- package/dist/utils/guided-eval.js +880 -0
- package/dist/utils/guided-eval.js.map +1 -0
- package/dist/utils/local-repo-brain.d.ts +158 -0
- package/dist/utils/local-repo-brain.d.ts.map +1 -0
- package/dist/utils/local-repo-brain.js +854 -0
- package/dist/utils/local-repo-brain.js.map +1 -0
- package/dist/utils/runtime-live.d.ts +25 -0
- package/dist/utils/runtime-live.d.ts.map +1 -1
- package/dist/utils/runtime-live.js +103 -4
- package/dist/utils/runtime-live.js.map +1 -1
- package/dist/utils/runtime-outbox.d.ts +2 -1
- package/dist/utils/runtime-outbox.d.ts.map +1 -1
- package/dist/utils/runtime-outbox.js +21 -16
- package/dist/utils/runtime-outbox.js.map +1 -1
- package/dist/utils/session-allowlist-rules.d.ts +12 -0
- package/dist/utils/session-allowlist-rules.d.ts.map +1 -1
- package/dist/utils/session-allowlist-rules.js +61 -1
- package/dist/utils/session-allowlist-rules.js.map +1 -1
- package/dist/utils/structural-understanding.d.ts +61 -1
- package/dist/utils/structural-understanding.d.ts.map +1 -1
- package/dist/utils/structural-understanding.js +534 -1
- package/dist/utils/structural-understanding.js.map +1 -1
- package/dist/utils/v0-governance.d.ts.map +1 -1
- package/dist/utils/v0-governance.js +10 -0
- package/dist/utils/v0-governance.js.map +1 -1
- package/package.json +7 -8
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `neurcode eval` — the guided enterprise evaluation runner.
|
|
4
|
+
*
|
|
5
|
+
* Turns the technical evaluation from a static checklist into an interactive,
|
|
6
|
+
* progress-aware flow a principal engineer can drive without a founder on the
|
|
7
|
+
* call. Subcommands:
|
|
8
|
+
*
|
|
9
|
+
* neurcode eval start [--fixture] [--agent <id>] — begin / scaffold the eval
|
|
10
|
+
* neurcode eval status [--json] — progress + per-step facts
|
|
11
|
+
* neurcode eval next [--json] — the single next command
|
|
12
|
+
* neurcode eval export [--json] [--out <path>] — source-free shareable report
|
|
13
|
+
*
|
|
14
|
+
* Everything here is source-free and read-only against the user's repo. The
|
|
15
|
+
* only thing that writes is `--fixture` mode (a controlled local demo repo) and
|
|
16
|
+
* the eval run-state / report under `.neurcode/eval/` (gitignored).
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.evalCommand = evalCommand;
|
|
20
|
+
const node_fs_1 = require("node:fs");
|
|
21
|
+
const node_path_1 = require("node:path");
|
|
22
|
+
const v0_governance_1 = require("../utils/v0-governance");
|
|
23
|
+
const guided_eval_1 = require("../utils/guided-eval");
|
|
24
|
+
let chalk;
|
|
25
|
+
try {
|
|
26
|
+
chalk = require('chalk');
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
chalk = {
|
|
30
|
+
green: (s) => s,
|
|
31
|
+
yellow: (s) => s,
|
|
32
|
+
red: (s) => s,
|
|
33
|
+
dim: (s) => s,
|
|
34
|
+
bold: (s) => s,
|
|
35
|
+
cyan: (s) => s,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
const EVAL_RUN_STATE_SCHEMA = 'neurcode.eval-run.v1';
|
|
39
|
+
function evalDir(repoRoot) {
|
|
40
|
+
return (0, node_path_1.join)(repoRoot, '.neurcode', 'eval');
|
|
41
|
+
}
|
|
42
|
+
function runStatePath(repoRoot) {
|
|
43
|
+
return (0, node_path_1.join)(evalDir(repoRoot), 'run-state.json');
|
|
44
|
+
}
|
|
45
|
+
function loadRunState(repoRoot) {
|
|
46
|
+
const p = runStatePath(repoRoot);
|
|
47
|
+
if (!(0, node_fs_1.existsSync)(p))
|
|
48
|
+
return null;
|
|
49
|
+
try {
|
|
50
|
+
return JSON.parse((0, node_fs_1.readFileSync)(p, 'utf8'));
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function saveRunState(repoRoot, state) {
|
|
57
|
+
const dir = evalDir(repoRoot);
|
|
58
|
+
if (!(0, node_fs_1.existsSync)(dir))
|
|
59
|
+
(0, node_fs_1.mkdirSync)(dir, { recursive: true });
|
|
60
|
+
(0, node_fs_1.writeFileSync)(runStatePath(repoRoot), JSON.stringify(state, null, 2) + '\n', 'utf8');
|
|
61
|
+
}
|
|
62
|
+
/** Resolve agent/mode from flags, falling back to the saved run-state. */
|
|
63
|
+
function resolveRun(options) {
|
|
64
|
+
const repoRoot = (0, v0_governance_1.resolveRepoRoot)(options.dir || process.cwd());
|
|
65
|
+
const saved = loadRunState(repoRoot);
|
|
66
|
+
const agent = options.agent ? (0, guided_eval_1.normalizeGuidedEvalAgent)(options.agent) : saved?.agent ?? 'claude';
|
|
67
|
+
const mode = options.fixture ? 'fixture' : saved?.mode ?? 'real';
|
|
68
|
+
const fixtureDir = (0, node_path_1.join)(repoRoot, '.neurcode', 'eval', 'fixture');
|
|
69
|
+
const gatherRoot = mode === 'fixture' && (0, node_fs_1.existsSync)(fixtureDir) ? fixtureDir : repoRoot;
|
|
70
|
+
return { repoRoot, agent, mode, gatherRoot };
|
|
71
|
+
}
|
|
72
|
+
function buildState(run) {
|
|
73
|
+
const ctx = (0, guided_eval_1.gatherGuidedEvalContext)(run.gatherRoot, { agent: run.agent, mode: run.mode });
|
|
74
|
+
return (0, guided_eval_1.buildGuidedEvalState)(ctx);
|
|
75
|
+
}
|
|
76
|
+
const STATUS_TONE = {
|
|
77
|
+
done: (s) => chalk.green(s),
|
|
78
|
+
pending: (s) => chalk.dim(s),
|
|
79
|
+
attention: (s) => chalk.yellow(s),
|
|
80
|
+
not_applicable: (s) => chalk.dim(s),
|
|
81
|
+
};
|
|
82
|
+
const STATUS_GLYPH = {
|
|
83
|
+
done: '✓',
|
|
84
|
+
pending: '○',
|
|
85
|
+
attention: '!',
|
|
86
|
+
not_applicable: '–',
|
|
87
|
+
};
|
|
88
|
+
function printState(state) {
|
|
89
|
+
const { summary } = state;
|
|
90
|
+
console.log('');
|
|
91
|
+
console.log(chalk.bold('Guided Enterprise Evaluation'));
|
|
92
|
+
console.log(chalk.dim(` agent ${state.agent} · ${state.enforcementLabel} · mode ${state.mode}`));
|
|
93
|
+
const bar = '█'.repeat(Math.round(summary.percent / 10)) + '░'.repeat(10 - Math.round(summary.percent / 10));
|
|
94
|
+
console.log(` ${bar} ${summary.percent}% ` +
|
|
95
|
+
chalk.dim(`(${summary.done}/${summary.applicable} done${summary.attention ? `, ${summary.attention} need attention` : ''})`));
|
|
96
|
+
console.log('');
|
|
97
|
+
for (const step of state.steps) {
|
|
98
|
+
const glyph = STATUS_TONE[step.status](STATUS_GLYPH[step.status]);
|
|
99
|
+
const tier = chalk.dim(`[${guided_eval_1.GUIDED_EVAL_TRUTH_TIERS[step.truthTier].label}]`);
|
|
100
|
+
const title = step.status === 'done' ? chalk.green(step.title) : step.title;
|
|
101
|
+
console.log(` ${glyph} ${title} ${tier}`);
|
|
102
|
+
if (step.fact)
|
|
103
|
+
console.log(chalk.dim(` ${step.fact}`));
|
|
104
|
+
}
|
|
105
|
+
console.log('');
|
|
106
|
+
if (state.nextAction) {
|
|
107
|
+
console.log(chalk.bold('Next action:') + ` ${state.nextAction.title}`);
|
|
108
|
+
console.log(chalk.dim(` why: ${state.nextAction.why}`));
|
|
109
|
+
for (const line of state.nextAction.command.split('\n'))
|
|
110
|
+
console.log(chalk.cyan(` ${line}`));
|
|
111
|
+
}
|
|
112
|
+
else if (summary.complete) {
|
|
113
|
+
console.log(chalk.green('All applicable steps complete. Run `neurcode eval export` for a shareable report.'));
|
|
114
|
+
}
|
|
115
|
+
console.log('');
|
|
116
|
+
}
|
|
117
|
+
function evalCommand(program) {
|
|
118
|
+
const evalCmd = program
|
|
119
|
+
.command('eval')
|
|
120
|
+
.description('Guided enterprise evaluation — progress-aware, source-free, agent-specific');
|
|
121
|
+
// ── start ──────────────────────────────────────────────────────────────────
|
|
122
|
+
evalCmd
|
|
123
|
+
.command('start')
|
|
124
|
+
.description('Begin the guided evaluation (optionally scaffold a safe local fixture)')
|
|
125
|
+
.option('--dir <path>', 'Repository root (default: current directory)')
|
|
126
|
+
.option('--agent <id>', 'Agent posture: claude | codex | cursor | vscode | copilot | action', 'claude')
|
|
127
|
+
.option('--fixture', 'Create/use a controlled local demo fixture (never touches your source)')
|
|
128
|
+
.option('--json', 'Output machine-readable JSON')
|
|
129
|
+
.action((options) => {
|
|
130
|
+
const repoRoot = (0, v0_governance_1.resolveRepoRoot)(options.dir || process.cwd());
|
|
131
|
+
const agent = (0, guided_eval_1.normalizeGuidedEvalAgent)(options.agent);
|
|
132
|
+
const mode = options.fixture ? 'fixture' : 'real';
|
|
133
|
+
let fixture = null;
|
|
134
|
+
if (mode === 'fixture')
|
|
135
|
+
fixture = (0, guided_eval_1.scaffoldEvalFixture)(repoRoot);
|
|
136
|
+
const runState = {
|
|
137
|
+
schemaVersion: EVAL_RUN_STATE_SCHEMA,
|
|
138
|
+
agent,
|
|
139
|
+
mode,
|
|
140
|
+
startedAt: new Date().toISOString(),
|
|
141
|
+
repoRootHash: '',
|
|
142
|
+
};
|
|
143
|
+
const run = resolveRun({ dir: options.dir, agent, fixture: options.fixture });
|
|
144
|
+
const state = buildState(run);
|
|
145
|
+
runState.repoRootHash = state.repoRootHash;
|
|
146
|
+
saveRunState(repoRoot, runState);
|
|
147
|
+
if (options.json) {
|
|
148
|
+
console.log(JSON.stringify({ ok: true, runState, fixture, state }, null, 2));
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
console.log('');
|
|
152
|
+
console.log(chalk.green('Guided evaluation started.'));
|
|
153
|
+
console.log(chalk.dim(` agent: ${agent} · mode: ${mode}`));
|
|
154
|
+
if (fixture) {
|
|
155
|
+
console.log('');
|
|
156
|
+
console.log(chalk.bold('Safe fixture ready:') + ` ${fixture.relativeDir}`);
|
|
157
|
+
console.log(chalk.dim(' A throwaway repo with a CODEOWNERS boundary. Edits here never touch your source.'));
|
|
158
|
+
console.log(chalk.dim(' Run the block / approve / neighbor steps against this directory.'));
|
|
159
|
+
}
|
|
160
|
+
printState(state);
|
|
161
|
+
console.log(chalk.dim('Run `neurcode eval status` anytime, or `neurcode eval next` for just the next step.'));
|
|
162
|
+
console.log('');
|
|
163
|
+
});
|
|
164
|
+
// ── status ─────────────────────────────────────────────────────────────────
|
|
165
|
+
evalCmd
|
|
166
|
+
.command('status')
|
|
167
|
+
.description('Show evaluation progress and per-step facts')
|
|
168
|
+
.option('--dir <path>', 'Repository root (default: current directory)')
|
|
169
|
+
.option('--agent <id>', 'Override the agent posture for this view')
|
|
170
|
+
.option('--fixture', 'Inspect the local fixture state')
|
|
171
|
+
.option('--json', 'Output machine-readable JSON (for dashboard consumption)')
|
|
172
|
+
.action((options) => {
|
|
173
|
+
const run = resolveRun(options);
|
|
174
|
+
const state = buildState(run);
|
|
175
|
+
if (options.json) {
|
|
176
|
+
console.log(JSON.stringify(state, null, 2));
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
printState(state);
|
|
180
|
+
});
|
|
181
|
+
// ── next ───────────────────────────────────────────────────────────────────
|
|
182
|
+
evalCmd
|
|
183
|
+
.command('next')
|
|
184
|
+
.description('Print exactly the next command to run for the selected agent')
|
|
185
|
+
.option('--dir <path>', 'Repository root (default: current directory)')
|
|
186
|
+
.option('--agent <id>', 'Override the agent posture')
|
|
187
|
+
.option('--fixture', 'Use the local fixture state')
|
|
188
|
+
.option('--json', 'Output machine-readable JSON')
|
|
189
|
+
.action((options) => {
|
|
190
|
+
const run = resolveRun(options);
|
|
191
|
+
const state = buildState(run);
|
|
192
|
+
if (options.json) {
|
|
193
|
+
console.log(JSON.stringify({ nextAction: state.nextAction, complete: state.summary.complete }, null, 2));
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
if (!state.nextAction) {
|
|
197
|
+
console.log(chalk.green('Nothing pending — all applicable steps are complete.'));
|
|
198
|
+
console.log(chalk.dim('Run `neurcode eval export` for a shareable source-free report.'));
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
console.log('');
|
|
202
|
+
console.log(chalk.bold(`Next: ${state.nextAction.title}`));
|
|
203
|
+
console.log(chalk.dim(` ${state.nextAction.why}`));
|
|
204
|
+
for (const line of state.nextAction.command.split('\n'))
|
|
205
|
+
console.log(chalk.cyan(` ${line}`));
|
|
206
|
+
console.log('');
|
|
207
|
+
});
|
|
208
|
+
// ── export ─────────────────────────────────────────────────────────────────
|
|
209
|
+
evalCmd
|
|
210
|
+
.command('export')
|
|
211
|
+
.description('Write a shareable, source-free evaluation report')
|
|
212
|
+
.option('--dir <path>', 'Repository root (default: current directory)')
|
|
213
|
+
.option('--agent <id>', 'Override the agent posture')
|
|
214
|
+
.option('--fixture', 'Export the local fixture evaluation')
|
|
215
|
+
.option('--out <path>', 'Output path for the JSON report (default: .neurcode/eval/guided-eval-report.json)')
|
|
216
|
+
.option('--json', 'Print the report JSON to stdout instead of a summary')
|
|
217
|
+
.action((options) => {
|
|
218
|
+
const run = resolveRun(options);
|
|
219
|
+
const ctx = (0, guided_eval_1.gatherGuidedEvalContext)(run.gatherRoot, { agent: run.agent, mode: run.mode });
|
|
220
|
+
const state = (0, guided_eval_1.buildGuidedEvalState)(ctx);
|
|
221
|
+
const report = (0, guided_eval_1.buildGuidedEvalReport)(state, ctx);
|
|
222
|
+
const markdown = (0, guided_eval_1.renderGuidedEvalReportMarkdown)(report);
|
|
223
|
+
// Source-free backstop before anything is written or printed.
|
|
224
|
+
(0, guided_eval_1.assertGuidedEvalSourceFree)(report, 'guided-eval report (json)');
|
|
225
|
+
(0, guided_eval_1.assertGuidedEvalSourceFree)(markdown, 'guided-eval report (markdown)');
|
|
226
|
+
const dir = evalDir(run.repoRoot);
|
|
227
|
+
if (!(0, node_fs_1.existsSync)(dir))
|
|
228
|
+
(0, node_fs_1.mkdirSync)(dir, { recursive: true });
|
|
229
|
+
const jsonPath = options.out ? (0, node_path_1.resolve)(run.repoRoot, options.out) : (0, node_path_1.join)(dir, 'guided-eval-report.json');
|
|
230
|
+
const mdPath = jsonPath.replace(/\.json$/, '.md');
|
|
231
|
+
(0, node_fs_1.writeFileSync)(jsonPath, JSON.stringify(report, null, 2) + '\n', 'utf8');
|
|
232
|
+
(0, node_fs_1.writeFileSync)(mdPath, markdown, 'utf8');
|
|
233
|
+
if (options.json) {
|
|
234
|
+
console.log(JSON.stringify(report, null, 2));
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
console.log('');
|
|
238
|
+
console.log(chalk.green('Evaluation report written (source-free).'));
|
|
239
|
+
console.log(` JSON: ${chalk.cyan(jsonPath)}`);
|
|
240
|
+
console.log(` Markdown: ${chalk.cyan(mdPath)}`);
|
|
241
|
+
console.log(chalk.dim(` ${report.result.done}/${report.result.applicable} applicable steps done (${report.result.percent}%) · agent ${report.agent}`));
|
|
242
|
+
console.log(chalk.dim(' Contains paths, owners, symbol names, hashes, verdicts, and tiers only — no source.'));
|
|
243
|
+
console.log('');
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=eval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval.js","sourceRoot":"","sources":["../../src/commands/eval.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AA4IH,kCA0IC;AAnRD,qCAA6E;AAC7E,yCAA0C;AAC1C,0DAAyD;AACzD,sDAa8B;AAE9B,IAAI,KAAU,CAAC;AACf,IAAI,CAAC;IACH,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC3B,CAAC;AAAC,MAAM,CAAC;IACP,KAAK,GAAG;QACN,KAAK,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,C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E,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC;QACxE,IAAA,uBAAa,EAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAExC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YACjB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAC7C,OAAO;QACT,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACnD,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACjD,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,GAAG,CACP,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,2BAA2B,MAAM,CAAC,MAAM,CAAC,OAAO,cAAc,MAAM,CAAC,KAAK,EAAE,CAChI,CACF,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,uFAAuF,CAAC,CAAC,CAAC;QAChH,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `neurcode onboard` — Self-serve enterprise onboarding walkthrough.
|
|
3
|
+
*
|
|
4
|
+
* Prints the step-by-step recipe for a first governed session, adapted to the
|
|
5
|
+
* selected agent. Covers: install, repo brain index, agent activation, health
|
|
6
|
+
* check, first governed session, boundary block, approval, evidence export.
|
|
7
|
+
*
|
|
8
|
+
* Use --agent to select the agent path. Defaults to claude.
|
|
9
|
+
* Use --json for machine-readable output.
|
|
10
|
+
*/
|
|
11
|
+
import type { Command } from 'commander';
|
|
12
|
+
export type OnboardAgent = 'claude' | 'codex' | 'cursor' | 'copilot' | 'vscode' | 'action';
|
|
13
|
+
export declare const ONBOARD_AGENTS: OnboardAgent[];
|
|
14
|
+
export interface OnboardStep {
|
|
15
|
+
id: string;
|
|
16
|
+
title: string;
|
|
17
|
+
command: string;
|
|
18
|
+
}
|
|
19
|
+
export interface OnboardWalkthrough {
|
|
20
|
+
agent: OnboardAgent;
|
|
21
|
+
label: string;
|
|
22
|
+
guarantee: string;
|
|
23
|
+
steps: OnboardStep[];
|
|
24
|
+
dashboardUrl: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function resolveOnboardAgent(value: string | undefined): OnboardAgent;
|
|
27
|
+
export declare function buildOnboardWalkthrough(agent: OnboardAgent): OnboardWalkthrough;
|
|
28
|
+
export declare function onboardCommand(program: Command): void;
|
|
29
|
+
//# sourceMappingURL=onboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboard.d.ts","sourceRoot":"","sources":["../../src/commands/onboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkBzC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3F,eAAO,MAAM,cAAc,EAAE,YAAY,EAExC,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAI3E;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,YAAY,GAAG,kBAAkB,CAkK/E;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0DrD"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `neurcode onboard` — Self-serve enterprise onboarding walkthrough.
|
|
4
|
+
*
|
|
5
|
+
* Prints the step-by-step recipe for a first governed session, adapted to the
|
|
6
|
+
* selected agent. Covers: install, repo brain index, agent activation, health
|
|
7
|
+
* check, first governed session, boundary block, approval, evidence export.
|
|
8
|
+
*
|
|
9
|
+
* Use --agent to select the agent path. Defaults to claude.
|
|
10
|
+
* Use --json for machine-readable output.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ONBOARD_AGENTS = void 0;
|
|
14
|
+
exports.resolveOnboardAgent = resolveOnboardAgent;
|
|
15
|
+
exports.buildOnboardWalkthrough = buildOnboardWalkthrough;
|
|
16
|
+
exports.onboardCommand = onboardCommand;
|
|
17
|
+
let chalk;
|
|
18
|
+
try {
|
|
19
|
+
chalk = require('chalk');
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
chalk = {
|
|
23
|
+
cyan: (s) => s,
|
|
24
|
+
green: (s) => s,
|
|
25
|
+
yellow: (s) => s,
|
|
26
|
+
bold: (s) => s,
|
|
27
|
+
dim: (s) => s,
|
|
28
|
+
gray: (s) => s,
|
|
29
|
+
white: (s) => s,
|
|
30
|
+
red: (s) => s,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
exports.ONBOARD_AGENTS = [
|
|
34
|
+
'claude', 'codex', 'cursor', 'copilot', 'vscode', 'action',
|
|
35
|
+
];
|
|
36
|
+
function resolveOnboardAgent(value) {
|
|
37
|
+
if (!value)
|
|
38
|
+
return 'claude';
|
|
39
|
+
const lower = value.toLowerCase();
|
|
40
|
+
return exports.ONBOARD_AGENTS.includes(lower) ? lower : 'claude';
|
|
41
|
+
}
|
|
42
|
+
function buildOnboardWalkthrough(agent) {
|
|
43
|
+
const brain = 'neurcode brain index\nneurcode brain inspect "billing auth payments"';
|
|
44
|
+
const exportEvidence = 'neurcode session export-admission <session-id> --explain';
|
|
45
|
+
const viewEvidence = '# Dashboard → Runtime Evidence → click session ID\n# Verify: boundary events, approval chain, replay hash, no source code';
|
|
46
|
+
let label;
|
|
47
|
+
let guarantee;
|
|
48
|
+
let steps;
|
|
49
|
+
if (agent === 'claude') {
|
|
50
|
+
label = 'Claude Code';
|
|
51
|
+
guarantee = 'Hard pre-write deny where Claude hooks are installed and healthy.';
|
|
52
|
+
steps = [
|
|
53
|
+
{ id: 'install', title: 'Verify CLI install', command: 'npx -y @neurcode-ai/cli@latest --version' },
|
|
54
|
+
{ id: 'brain', title: 'Build repo brain', command: brain },
|
|
55
|
+
{
|
|
56
|
+
id: 'activate',
|
|
57
|
+
title: 'Activate Claude Code',
|
|
58
|
+
command: 'npx -y @neurcode-ai/cli@latest activate claude --dir .\n' +
|
|
59
|
+
'# Or with token from Runtime Control Plane:\n' +
|
|
60
|
+
'npx -y @neurcode-ai/cli@latest activate claude --connect <short-lived-token> --dir .',
|
|
61
|
+
},
|
|
62
|
+
{ id: 'health', title: 'Verify health', command: 'neurcode doctor --runtime' },
|
|
63
|
+
{
|
|
64
|
+
id: 'session',
|
|
65
|
+
title: 'Start a governed session',
|
|
66
|
+
command: '# Open Claude Code in the paired repo.\n' +
|
|
67
|
+
'# Prompt normally — hooks run start/check/finish automatically.\n' +
|
|
68
|
+
'# Begin with a safe file to confirm no false blocks.',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 'block',
|
|
72
|
+
title: 'Trigger a boundary block',
|
|
73
|
+
command: '# Ask Claude to edit a CODEOWNERS-covered file:\n' +
|
|
74
|
+
'# > Update src/billing/charge.py with a network retry.\n' +
|
|
75
|
+
'# Block appears in Runtime Control Plane → block queue.',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 'approve',
|
|
79
|
+
title: 'Approve the exact path',
|
|
80
|
+
command: 'neurcode approve <approval-id>\n# Approves ONLY the exact path. Sibling files remain blocked.',
|
|
81
|
+
},
|
|
82
|
+
{ id: 'export', title: 'Export AI Change Record', command: exportEvidence },
|
|
83
|
+
{ id: 'view', title: 'View Runtime Evidence', command: viewEvidence },
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
else if (agent === 'cursor') {
|
|
87
|
+
label = 'Cursor';
|
|
88
|
+
guarantee = 'Cooperative checks plus local supervisor containment. No native hard pre-write denial.';
|
|
89
|
+
steps = [
|
|
90
|
+
{ id: 'install', title: 'Verify CLI install', command: 'npx -y @neurcode-ai/cli@latest --version' },
|
|
91
|
+
{ id: 'brain', title: 'Build repo brain', command: brain },
|
|
92
|
+
{
|
|
93
|
+
id: 'activate',
|
|
94
|
+
title: 'Activate Cursor',
|
|
95
|
+
command: 'npx -y @neurcode-ai/cli@latest cursor onboard --strict\nneurcode cursor gate install --hook both',
|
|
96
|
+
},
|
|
97
|
+
{ id: 'health', title: 'Verify health', command: 'neurcode cursor health --record' },
|
|
98
|
+
{
|
|
99
|
+
id: 'session',
|
|
100
|
+
title: 'Start a guarded session',
|
|
101
|
+
command: 'neurcode agent guard start cursor \\\n' +
|
|
102
|
+
' --goal "Add retry to export task" \\\n' +
|
|
103
|
+
' --plan "Edit src/tasks/export_task.ts only; keep billing untouched"',
|
|
104
|
+
},
|
|
105
|
+
{ id: 'block', title: 'Trigger a boundary check', command: 'neurcode agent check src/billing/charge.py --agent cursor' },
|
|
106
|
+
{
|
|
107
|
+
id: 'approve',
|
|
108
|
+
title: 'Approve and finish',
|
|
109
|
+
command: '# Dashboard → Approval Ledger → Approve\n' +
|
|
110
|
+
'neurcode agent guard finish --session-id <session-id> --fail-on-unverified\n' +
|
|
111
|
+
'neurcode agent report cursor --session-id <session-id>',
|
|
112
|
+
},
|
|
113
|
+
{ id: 'export', title: 'Export AI Change Record', command: exportEvidence },
|
|
114
|
+
{ id: 'view', title: 'View Runtime Evidence', command: viewEvidence },
|
|
115
|
+
];
|
|
116
|
+
}
|
|
117
|
+
else if (agent === 'action') {
|
|
118
|
+
label = 'GitHub Action';
|
|
119
|
+
guarantee = 'Post-PR advisory routing and admission display. Not live pre-write enforcement.';
|
|
120
|
+
steps = [
|
|
121
|
+
{ id: 'install', title: 'Verify CLI install', command: 'npx -y @neurcode-ai/cli@latest --version' },
|
|
122
|
+
{ id: 'brain', title: 'Build repo brain', command: brain },
|
|
123
|
+
{
|
|
124
|
+
id: 'activate',
|
|
125
|
+
title: 'Add GitHub Action',
|
|
126
|
+
command: '# .github/workflows/neurcode.yml\n- uses: sujit-jaunjal/neurcode-actions@v0.3.0-rc.5',
|
|
127
|
+
},
|
|
128
|
+
{ id: 'health', title: 'Verify Action runs', command: 'gh run list --workflow neurcode.yml --limit 3' },
|
|
129
|
+
{
|
|
130
|
+
id: 'session',
|
|
131
|
+
title: 'Open a PR',
|
|
132
|
+
command: '# Open a PR that edits non-sensitive files first.\n' +
|
|
133
|
+
'# Action comment shows: no boundary facts matched.',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: 'block',
|
|
137
|
+
title: 'Trigger boundary in PR',
|
|
138
|
+
command: '# Open a PR editing a CODEOWNERS-covered file.\n' +
|
|
139
|
+
'# Action comment shows: boundary facts, trust level.',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: 'approve',
|
|
143
|
+
title: 'Attach admission record',
|
|
144
|
+
command: 'neurcode session export-admission <session-id>\n' +
|
|
145
|
+
'git add .neurcode-admission/*.json\n' +
|
|
146
|
+
'git commit -m "Add Neurcode runtime admission context"',
|
|
147
|
+
},
|
|
148
|
+
{ id: 'export', title: 'Export AI Change Record', command: exportEvidence },
|
|
149
|
+
{
|
|
150
|
+
id: 'view',
|
|
151
|
+
title: 'View Action report',
|
|
152
|
+
command: '# GitHub PR → Checks → Neurcode Runtime Admission Advisory\n' +
|
|
153
|
+
'# Dashboard → Runtime Evidence',
|
|
154
|
+
},
|
|
155
|
+
];
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
// codex / copilot / vscode
|
|
159
|
+
const agentId = agent === 'vscode' ? 'vscode' : agent === 'copilot' ? 'copilot' : 'codex';
|
|
160
|
+
label =
|
|
161
|
+
agent === 'vscode' ? 'VS Code / Copilot' : agent === 'copilot' ? 'GitHub Copilot' : 'Codex';
|
|
162
|
+
guarantee = 'Cooperative guard plus supervisor evidence. No host-level hard pre-write deny is claimed.';
|
|
163
|
+
steps = [
|
|
164
|
+
{ id: 'install', title: 'Verify CLI install', command: 'npx -y @neurcode-ai/cli@latest --version' },
|
|
165
|
+
{ id: 'brain', title: 'Build repo brain', command: brain },
|
|
166
|
+
{
|
|
167
|
+
id: 'activate',
|
|
168
|
+
title: `Activate ${label}`,
|
|
169
|
+
command: `npx -y @neurcode-ai/cli@latest agent walkthrough ${agentId}\nneurcode agent bootstrap ${agentId}`,
|
|
170
|
+
},
|
|
171
|
+
{ id: 'health', title: 'Verify health', command: `neurcode agent doctor ${agentId}` },
|
|
172
|
+
{
|
|
173
|
+
id: 'session',
|
|
174
|
+
title: 'Start a guarded session',
|
|
175
|
+
command: `neurcode agent guard start ${agentId} \\\n` +
|
|
176
|
+
` --goal "Add retry to export task" \\\n` +
|
|
177
|
+
` --plan "Edit src/tasks/export_task.ts only; keep billing untouched"`,
|
|
178
|
+
},
|
|
179
|
+
{ id: 'block', title: 'Trigger a boundary check', command: `neurcode agent check src/billing/charge.py --agent ${agentId}` },
|
|
180
|
+
{
|
|
181
|
+
id: 'approve',
|
|
182
|
+
title: 'Approve and finish',
|
|
183
|
+
command: `# Dashboard → Approval Ledger → Approve\n` +
|
|
184
|
+
`neurcode agent guard finish --session-id <session-id> --fail-on-unverified\n` +
|
|
185
|
+
`neurcode agent report ${agentId} --session-id <session-id>`,
|
|
186
|
+
},
|
|
187
|
+
{ id: 'export', title: 'Export AI Change Record', command: exportEvidence },
|
|
188
|
+
{ id: 'view', title: 'View Runtime Evidence', command: viewEvidence },
|
|
189
|
+
];
|
|
190
|
+
}
|
|
191
|
+
return { agent, label, guarantee, steps, dashboardUrl: 'https://app.neurcode.com' };
|
|
192
|
+
}
|
|
193
|
+
function onboardCommand(program) {
|
|
194
|
+
program
|
|
195
|
+
.command('onboard')
|
|
196
|
+
.description('Step-by-step onboarding walkthrough for the selected AI agent.\n' +
|
|
197
|
+
'Covers: install, repo brain, activation, health check, governed session,\n' +
|
|
198
|
+
'boundary block, exact-path approval, AI Change Record export.')
|
|
199
|
+
.option('--agent <agent>', `Agent path: ${exports.ONBOARD_AGENTS.join(' | ')}`, 'claude')
|
|
200
|
+
.option('--json', 'Emit machine-readable JSON instead of the walkthrough')
|
|
201
|
+
.action((opts) => {
|
|
202
|
+
const agent = resolveOnboardAgent(opts.agent);
|
|
203
|
+
const walkthrough = buildOnboardWalkthrough(agent);
|
|
204
|
+
if (opts.json) {
|
|
205
|
+
console.log(JSON.stringify(walkthrough, null, 2));
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const yellow = chalk.yellow;
|
|
209
|
+
const dim = chalk.dim;
|
|
210
|
+
const green = chalk.green;
|
|
211
|
+
const bold = chalk.bold;
|
|
212
|
+
const gray = chalk.gray;
|
|
213
|
+
const SEP = dim('─'.repeat(72));
|
|
214
|
+
console.log('');
|
|
215
|
+
console.log(bold(yellow('Neurcode Self-Serve Onboarding')));
|
|
216
|
+
console.log(dim(`Agent: ${walkthrough.label}`));
|
|
217
|
+
console.log(dim(`Posture: ${walkthrough.guarantee}`));
|
|
218
|
+
console.log('');
|
|
219
|
+
console.log(SEP);
|
|
220
|
+
walkthrough.steps.forEach(({ title, command }, i) => {
|
|
221
|
+
console.log('');
|
|
222
|
+
console.log(bold(` Step ${i + 1}: ${title}`));
|
|
223
|
+
command.split('\n').forEach((line) => {
|
|
224
|
+
if (line.startsWith('#')) {
|
|
225
|
+
console.log(gray(` ${line}`));
|
|
226
|
+
}
|
|
227
|
+
else if (line.trim() === '') {
|
|
228
|
+
console.log('');
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
console.log(green(` ${line}`));
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
console.log('');
|
|
236
|
+
console.log(SEP);
|
|
237
|
+
console.log('');
|
|
238
|
+
console.log(bold(' Next steps'));
|
|
239
|
+
console.log(dim(' Dashboard: https://app.neurcode.com'));
|
|
240
|
+
console.log(dim(' Setup checklist: /w/me/setup'));
|
|
241
|
+
console.log(dim(' Tech eval: /w/me/enterprise-eval'));
|
|
242
|
+
console.log(dim(' Agent matrix: /w/me/integrations'));
|
|
243
|
+
console.log(dim(' CI setup: /w/me/onboarding/ci'));
|
|
244
|
+
console.log('');
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=onboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboard.js","sourceRoot":"","sources":["../../src/commands/onboard.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAwCH,kDAIC;AAED,0DAkKC;AAED,wCA0DC;AAxQD,IAAI,KAAU,CAAC;AACf,IAAI,CAAC;IACH,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC3B,CAAC;AAAC,MAAM,CAAC;IACP,KAAK,GAAG;QACN,IAAI,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC;QACtB,KAAK,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC;QACvB,MAAM,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC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O,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBAClB,CAAC;qBAAM,CAAC;oBACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;gBAClC,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC,CAAC;QAChE,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC,CAAC;QACnD,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC,CAAC;QAC7D,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC,CAAC;QAC1D,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC,CAAC;QAC3D,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-doctor.d.ts","sourceRoot":"","sources":["../../src/commands/runtime-doctor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime-doctor.d.ts","sourceRoot":"","sources":["../../src/commands/runtime-doctor.ts"],"names":[],"mappings":"AAoDA,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAsBD,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,oBAAyB,GAAG,IAAI,CA0f7E"}
|