teimmo 0.7.7 → 0.7.8
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 +7 -4
- package/cli.mjs +22 -10
- package/package.json +1 -1
- package/skillpack.mjs +3 -2
package/README.md
CHANGED
|
@@ -83,6 +83,12 @@ Use the provider's official installation/login flow: [Codex](https://developers.
|
|
|
83
83
|
|
|
84
84
|
## Install from npm
|
|
85
85
|
|
|
86
|
+
**One-command workspace setup (0.7.8+):** from the folder you want to work in, run `teimmo setup`. It prepares Git if necessary, a discovery record, the business gate and all eight project skills. An idea is optional: `teimmo setup "Your actual idea"`. Rerunning setup preserves existing decisions, configuration and checkpoints; it does not approve or run a plan.
|
|
87
|
+
|
|
88
|
+
Without a global installation, use `npx --yes teimmo@latest setup`. This executes the npm version from npm's cache; if you clear/move that cache, rerun setup to relink the skill bridge. With a local dependency use `npx teimmo setup` after updating that dependency to 0.7.8+. Installing TeImMo alone does not inject skills into every workspace automatically.
|
|
89
|
+
|
|
90
|
+
Open this product folder in Codex or Antigravity, reload skills/start a new chat, then send `$teimmo-brainstorm Your idea...` in Codex or `/teimmo-brainstorm Your idea...` in Antigravity. No model quota is used during setup. If discovery was initialized without an idea, the agent asks for your actual goal before defining scope.
|
|
91
|
+
|
|
86
92
|
The npm archive contains only the harness runtime, generated-skill support, dashboard, Python evidence adapter, README and licensing files. It has no production dependencies and includes no contributor tests, benchmarks, research docs, source scripts, cc-sdd or legacy workflow. The full contributor material remains on GitHub.
|
|
87
93
|
|
|
88
94
|
New projects receive `harness-spec/WORKSPACE.md` with the stage/output map. Private call artifacts are grouped under `.harness/calls/<stage>/`; the design must define a concrete product module/file tree before tasks implement it. Existing projects retain prior evidence paths; `stageFolders: true` opts future calls into grouping. Product directories follow the actual language/framework and are created for approved files, not as empty workflow folders.
|
|
@@ -100,11 +106,8 @@ Start in a new project directory:
|
|
|
100
106
|
mkdir my-app
|
|
101
107
|
cd my-app
|
|
102
108
|
git init
|
|
103
|
-
teimmo
|
|
104
|
-
teimmo domain init
|
|
105
|
-
teimmo skills install
|
|
109
|
+
teimmo setup
|
|
106
110
|
teimmo doctor codex
|
|
107
|
-
teimmo run
|
|
108
111
|
teimmo status
|
|
109
112
|
```
|
|
110
113
|
|
package/cli.mjs
CHANGED
|
@@ -497,6 +497,7 @@ function importSpec(source) {
|
|
|
497
497
|
}
|
|
498
498
|
const help = [
|
|
499
499
|
'TeImMo — The Immortal Moon (sddh remains a CLI alias)',
|
|
500
|
+
'teimmo setup [idea] (initialize discovery, business record and project skills; safe to rerun)',
|
|
500
501
|
'sddh new <idea> | discuss <answer> | run | approve | replan | status',
|
|
501
502
|
'sddh switch <agent> [model] | route <stage|review> <agent> [model]',
|
|
502
503
|
'sddh analyze | change <request> | import <spec-folder> | pause | recover | recheck',
|
|
@@ -596,13 +597,13 @@ async function main() {
|
|
|
596
597
|
let state;
|
|
597
598
|
try {
|
|
598
599
|
relativeFile(root, 'harness-spec');
|
|
599
|
-
|
|
600
|
-
recoverWrites(root);
|
|
601
|
-
recoverReplan(root);
|
|
600
|
+
if(command==='setup')assert(!fs.readdirSync(home).some(name=>name.startsWith('pending-')),'Pending transaction found; inspect and recover before setup');
|
|
601
|
+
else { recoverChange(); recoverWrites(root); recoverReplan(root); }
|
|
602
602
|
if(command==='skills'){console.log(JSON.stringify(installSkills(root),null,2));return;}
|
|
603
|
-
if (command === 'new') {
|
|
604
|
-
|
|
605
|
-
assert(
|
|
603
|
+
if (command === 'new' || command === 'setup') {
|
|
604
|
+
const setup=command==='setup',created=!fs.existsSync(stateFile);
|
|
605
|
+
assert(setup||created, 'Already initialized');
|
|
606
|
+
assert(setup||args.join(' ').trim(), 'Provide an idea');
|
|
606
607
|
const git = spawnSync('git', ['rev-parse','--show-toplevel'], { encoding: 'utf8' });
|
|
607
608
|
if (git.status === 0) {
|
|
608
609
|
// Windows short names and macOS /var aliases can name the same directory
|
|
@@ -612,13 +613,24 @@ async function main() {
|
|
|
612
613
|
assert(gitRoot.dev===cwd.dev&&gitRoot.ino===cwd.ino,'Run at Git root');
|
|
613
614
|
}
|
|
614
615
|
else assert(spawnSync('git', ['init','-q']).status === 0, 'Git init failed');
|
|
616
|
+
if(created){
|
|
615
617
|
assert(!fs.existsSync(spec), 'Existing harness-spec folder found; preserve it and use an empty workspace for new initialization');
|
|
618
|
+
assert(!fs.existsSync(path.join(home,'config.json')),'Existing local config without state; preserve it and restore the project before setup');
|
|
619
|
+
const idea=args.join(' ').trim();
|
|
616
620
|
write(path.join(home, '.gitignore'), '*\n');
|
|
617
|
-
write(path.join(spec, 'conversation.md'), '# Idea\n\n'
|
|
621
|
+
write(path.join(spec, 'conversation.md'), idea?'# Idea\n\n'+idea+'\n':'# Discovery\n\nNo product idea has been supplied. Ask the user through brainstorm before defining product scope or business decisions.\n');
|
|
618
622
|
write(path.join(spec,'WORKSPACE.md'),workspaceGuide);
|
|
619
623
|
write(path.join(home, 'config.json'), JSON.stringify({ maxAttempts: 5, agentTimeoutMs: 900000, repairTestTimeouts:true, stageFolders:true, maxCallsPerRun:30, maxRunMs:1800000, executionMode:'tasks', adapters: {}, routes: {} }, null, 2));
|
|
620
|
-
state = { version: 3, title:
|
|
621
|
-
save(state); report(state);
|
|
624
|
+
state = { version: 3, title: idea||'Project discovery: '+path.basename(root), phase: 'discussion', status: 'NEW', agent: 'codex', model: null, history: [], metrics: { calls: 0, agentMs: 0 } };
|
|
625
|
+
save(state); report(state);
|
|
626
|
+
}else state=readJson(stateFile);
|
|
627
|
+
if(!setup)return;
|
|
628
|
+
let domain='preserved';const domainFile=path.join(spec,'domain.json');
|
|
629
|
+
if(!fs.existsSync(domainFile)&&state.phase==='discussion'&&!state.contractHash){
|
|
630
|
+
write(domainFile,JSON.stringify(domainTemplate(),null,2));state.domainRequired=true;save(state);report(state);domain='initialized';
|
|
631
|
+
}else if(!fs.existsSync(domainFile))domain='not enabled: preserve current contract';
|
|
632
|
+
const skills=installSkills(root);
|
|
633
|
+
console.log(JSON.stringify({ready:true,created,domain,skills,ideaApplied:created&&Boolean(args.join(' ').trim()),next:{codex:'$teimmo-brainstorm',antigravity:'/teimmo-brainstorm'},note:'Open this project in your agent; reload skills or start a new chat. No model was called and no plan was approved.'},null,2));return;
|
|
622
634
|
}
|
|
623
635
|
state = readJson(stateFile);
|
|
624
636
|
if(command==='regressions'){
|
|
@@ -734,7 +746,7 @@ async function main() {
|
|
|
734
746
|
} catch (error) {
|
|
735
747
|
if (error instanceof PauseRequested) return;
|
|
736
748
|
if (error instanceof BudgetReached) {process.exitCode=1;return;}
|
|
737
|
-
if (state) event(state, state.phase, 'BLOCKED', error.message);
|
|
749
|
+
if (state && command!=='setup') event(state, state.phase, 'BLOCKED', error.message);
|
|
738
750
|
throw error;
|
|
739
751
|
} finally {
|
|
740
752
|
fs.closeSync(fd); fs.unlinkSync(lock);
|
package/package.json
CHANGED
package/skillpack.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import {fileURLToPath} from 'node:url';
|
|
|
5
5
|
import {assert,readJson,relativeFile,write,digest,applyFiles} from './artifacts.mjs';
|
|
6
6
|
|
|
7
7
|
const modes={
|
|
8
|
-
brainstorm:{description:'Discuss a new product idea or clarify business behavior in TeImMo. Capture scope, sourced decisions and unresolved questions before implementation.',procedure:`Start by loading context if this project exists.
|
|
8
|
+
brainstorm:{description:'Discuss a new product idea or clarify business behavior in TeImMo. Capture scope, sourced decisions and unresolved questions before implementation.',procedure:`Start by loading context if this project exists. If setup already prepared the workspace, do not run new or domain init again. For an uninitialized workspace use setup with the actual user idea. A Project discovery title is only a setup label: ask for the actual product idea and record it in brief and domain before defining scope. Discuss the problem, target actors, current alternatives and success criteria before choosing architecture. Ask at most three high-impact questions per turn, explain tradeoffs, and wait for answers. Do not answer business questions on the user's behalf. Small reversible technical defaults can be marked proposed.
|
|
9
9
|
|
|
10
10
|
Use the domain reference to record facts, vocabulary, actors, scope boundaries, business rules and Given/When/Then cases. Examine relevant state transitions, permission boundaries, failure and retry paths across the project; identify module dependencies without expanding the MVP. Mark irrelevant dimensions na with a reason. Leave unresolved dimensions unreviewed. Save known progress even when questions remain. Do not launch the unattended runner during brainstorming. End with what is confirmed, the most consequential unknowns and the next decision.`,next:'spec'},
|
|
11
11
|
spec:{description:'Turn confirmed TeImMo business decisions into measurable requirements and case coverage, without implementing product code.',procedure:`Read context and domain.json, including previously accepted behavior. Reconcile unresolved blocking questions before claiming specification readiness. Reuse existing IDs and sources; capture changes instead of silently rewriting confirmed policy. Each rule needs actor/preconditions/outcome and at least one observable case. Negative paths and boundaries need expected outcomes, not labels such as "handle errors".
|
|
@@ -62,7 +62,8 @@ The bridge reads .harness/skills.json in the project root to locate the local Te
|
|
|
62
62
|
|
|
63
63
|
If shell/bridge execution is unavailable, use the host's file-reading tools to inspect .harness/state.json, .harness/config.json and harness-spec records directly. Report that live snapshot verification or commands were unavailable. Do not request broader permissions merely to restore conversational context. If the user asked for a read-only check, do not run a mutating fallback.
|
|
64
64
|
|
|
65
|
-
-
|
|
65
|
+
- setup [idea]: initialize discovery, business record and project skills together; safe to rerun without resetting existing contracts. No model calls or approval. Reload host skills or start a new chat afterward.
|
|
66
|
+
- new "idea": advanced initialization without automatic business/skill setup; never reset an existing project.
|
|
66
67
|
- domain init / domain template / domain save <candidate.json> / domain check: business record lifecycle.
|
|
67
68
|
- context: reload durable project state, business record and docs; it does not require past chat memory.
|
|
68
69
|
- context-manifest [focus-path...]: inspect included, partial and omitted project text. source <path> [start-line] [count] reads a Git-visible text range (maximum 400 lines). Missing context is not permission to guess. Scoped AGENTS/CLAUDE/GEMINI instructions apply only to their directories.
|