your-cto-jev 0.9.3 → 0.9.4

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/README.md CHANGED
@@ -411,8 +411,6 @@ node scripts/harvest-commands.mjs --rows 300 # real agent commands from a public
411
411
 
412
412
  `calibrate` uses exactly the questions and state builders that ship, prints every case's score, and reports how many cases the current threshold catches and wrongly blocks. Harvested candidates in `calibration/candidates/` (from nebius/SWE-rebench-openhands-trajectories, CC-BY-4.0) join the measurement once someone sets their `expect` label.
413
413
 
414
- The full design, including the measured results behind the defaults, is in [`your-cto-jev-spec.html`](./your-cto-jev-spec.html) (written in 繁體中文).
415
-
416
414
  ## License
417
415
 
418
416
  [MIT](./LICENSE)
package/dist/brief.js CHANGED
@@ -73,7 +73,7 @@ const unknownCount = (path) => {
73
73
  return 0;
74
74
  }
75
75
  };
76
- // Fixed headings, as the SPEC's 欄位 tables name them (docs/cto_jev/features/cto-flow/SPEC.md).
76
+ // Fixed headings, as the flow skill (FLOW_SKILL_TEXT in skill.ts) names them.
77
77
  const HEADINGS = [
78
78
  ['PRODUCT.md', ['一句話', '使用者角色', '怎麼賺錢', '方案與限制', '不做的事', '設計約束']],
79
79
  ['ARCHITECTURE.md', ['技術棧', '目錄地圖', '外部服務與資料', '驗證指令', '不變的原則']],
package/dist/flow.js CHANGED
@@ -2,7 +2,7 @@ import { existsSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
3
  import { BOX } from './turn.js';
4
4
  // docs/cto_jev/features/<slug>/TASKS.md: the one place the development flow keeps state. Everything else (INDEX,
5
- // ready list, feature dependencies, code ownership) is computed from it. Spec: docs/cto_jev/features/cto-flow/SPEC.md.
5
+ // ready list, feature dependencies, code ownership) is computed from it. Format: FLOW_SKILL_TEXT in skill.ts.
6
6
  export const FLOW_DIR = 'docs/cto_jev';
7
7
  export const FEATURE_FILES = ['CONCEPT.md', 'SPEC.md', 'TASKS.md', 'REVIEW.md'];
8
8
  const ID = /^([A-Z][A-Z0-9]*-\d+(?:\.\d+)*)\b\s*/;
package/dist/setup.js CHANGED
@@ -122,7 +122,7 @@ function uninstallHooks(settings) {
122
122
  return touched;
123
123
  }
124
124
  // docs/cto_jev/ skeleton, created only for files that do not exist. Headings are the fixed field names the flow checks
125
- // read (docs/cto_jev/features/cto-flow/SPEC.md); `unknown` is what the agent's first run fills in.
125
+ // read (FLOW_SKILL_TEXT in skill.ts); `unknown` is what the agent's first run fills in.
126
126
  const fields = (names) => names.map((n) => `## ${n}\n\nunknown\n`).join('\n');
127
127
  export const FLOW_SKELETON = {
128
128
  'docs/cto_jev/PRODUCT.md': `# PRODUCT\n\nStatus: draft\n\n${fields(['一句話', '使用者角色', '怎麼賺錢', '方案與限制', '不做的事', '設計約束'])}`,
@@ -142,7 +142,7 @@ export function planSetup(root, chosenAgents, flow, goal) {
142
142
  const out = [];
143
143
  const at = (p, change, abs = join(root, p)) => out.push({ path: p, change: change === 'remove' ? 'remove' : existsSync(abs) ? 'update' : 'new' });
144
144
  const chosen = new Set(chosenAgents);
145
- // git reports the hooks dir with long names; a Windows temp root may be 8.3 (ERICHS~1). Compare real paths.
145
+ // git reports the hooks dir with long names; a Windows temp root may be 8.3 (C:\Users\JOHNDO~1). Compare real paths.
146
146
  const real = (p) => { try {
147
147
  return realpathSync.native(p);
148
148
  }
package/dist/skill.js CHANGED
@@ -102,7 +102,7 @@ turns it into a calibration case; you do not run that yourself.
102
102
  - \`cto docs\`: list stale planning markdown outside \`docs/cto_jev/\` with a suggestion per file; changes nothing.
103
103
  `;
104
104
  // The flow skill: how the host agent plans, dispatches and accepts work under docs/cto_jev/. Written only when
105
- // `cto setup` chose the flow; the body mirrors docs/cto_jev/features/cto-flow/SPEC.md.
105
+ // `cto setup` chose the flow.
106
106
  export const FLOW_SKILL_TEXT = `---
107
107
  name: cto-jev
108
108
  description: The development flow of this repo, kept in docs/cto_jev/. Invoked by saying the job's name (in Claude Code: /cto-jev <job>; in Codex: $cto-jev). Its jobs are named so they cannot be confused with another skill's steps - "cto-jev init" (first-time setup, also "set up PRODUCT.md and ARCHITECTURE.md"), "cto-jev feature" (a request bigger than one edit), "cto-jev tasks" (break an approved spec down), "cto-jev work" (dispatch, accept, review, commit), "cto-jev release" (review everything unreleased, then merge to main), "cto-jev docs" (clean up old documents), "cto-jev decision" (record an architecture decision). Load it when the user names one of them, and whenever you are about to plan, dispatch, tick a task or commit.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "your-cto-jev",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "A sharp-tongued CTO gatekeeper for AI coding agents: blocks leaked secrets in git commits and destructive shell commands in Claude Code, Cursor, Gemini CLI and Codex, using TypeSafe Jev.",
5
5
  "keywords": [
6
6
  "claude-code",