tod-ai 0.1.0 → 0.1.1

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/dist/cli.js +73 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  // @bun
3
3
  var __defProp = Object.defineProperty;
4
4
  var __export = (target, all) => {
@@ -10,6 +10,58 @@ var __export = (target, all) => {
10
10
  set: (newValue) => all[name] = () => newValue
11
11
  });
12
12
  };
13
+ // package.json
14
+ var package_default = {
15
+ name: "tod-ai",
16
+ version: "0.1.1",
17
+ description: "An operator harness that turns any AGENTS.md-compatible coding agent into a software factory for non-technical builders.",
18
+ license: "MIT",
19
+ type: "module",
20
+ bin: {
21
+ tod: "./dist/cli.js"
22
+ },
23
+ files: [
24
+ "dist"
25
+ ],
26
+ repository: {
27
+ type: "git",
28
+ url: "git+https://github.com/tylerhogarth/tod.git"
29
+ },
30
+ homepage: "https://github.com/tylerhogarth/tod#readme",
31
+ bugs: "https://github.com/tylerhogarth/tod/issues",
32
+ keywords: [
33
+ "agents",
34
+ "agents-md",
35
+ "claude-code",
36
+ "codex",
37
+ "coding-agents",
38
+ "operator",
39
+ "harness"
40
+ ],
41
+ scripts: {
42
+ sandbox: "TOD_HOME=output bun src/cli.ts",
43
+ typecheck: "tsc --noEmit",
44
+ lint: "biome check .",
45
+ "lint:fix": "biome check --write .",
46
+ test: "bun test",
47
+ build: "bun run scripts/build.ts",
48
+ check: "bun run typecheck && bun run lint && bun test",
49
+ prepublishOnly: "bun run check && bun run build"
50
+ },
51
+ engines: {
52
+ bun: ">=1.3.0",
53
+ node: ">=20"
54
+ },
55
+ dependencies: {
56
+ "better-result": "3.0.1",
57
+ zod: "4.5.4"
58
+ },
59
+ devDependencies: {
60
+ "@biomejs/biome": "2.5.11",
61
+ "@types/bun": "1.4.0",
62
+ typescript: "7.0.2"
63
+ }
64
+ };
13
65
 
14
66
  // src/boundary.ts
15
67
  import { existsSync, realpathSync } from "node:fs";
@@ -19419,10 +19471,12 @@ tod is an operator harness layered on top of you, the coding agent. The operator
19419
19471
  - Assume the operator is non-technical at every setting below.
19420
19472
  - Explain technical decisions the way an engineering team explains them to a non-technical client: consequences, trade-offs, and product impact, without jargon or implementation detail unless asked.
19421
19473
  - Supply the product and engineering judgement the operator lacks. Make the engineering calls yourself; surface a decision only when it changes what the product does for its users. Present one voice.
19474
+ - When a technical term is unavoidable, define it in one plain sentence. Keep file paths, tool names, and internal mechanics out of replies unless asked.
19422
19475
 
19423
19476
  ## Requirement gathering (set to ${config3.requirementGathering} of 5)
19424
19477
 
19425
19478
  - ${requirementGatheringLines[config3.requirementGathering]}
19479
+ - At every setting, pair each question with a recommendation the operator can react to.
19426
19480
 
19427
19481
  ## Response detail (set to ${config3.responseDetail} of 5)
19428
19482
 
@@ -19433,6 +19487,22 @@ tod is an operator harness layered on top of you, the coding agent. The operator
19433
19487
  - When the operator repeatedly works against a configured behaviour (dismisses your questions, asks for shorter or fuller answers, asks you to pin down requirements first), tell them briefly that tod can be reconfigured and offer to run \`tod init\` again.
19434
19488
  - Reconfigure only through \`tod init\` and its two questions. Never change \`~/.tod/config.json\` from inferred behaviour alone.
19435
19489
 
19490
+ ## Decide by risk
19491
+
19492
+ - Build reversible work (new screens, content, styling, additive features), then show the result.
19493
+ - For hard-to-reverse work (deleting data, changing existing behaviour, anything touching money, accounts, or privacy), explain the consequence in plain language and wait for a yes.
19494
+ - When unsure which applies, treat it as risky.
19495
+
19496
+ ## Slice the work
19497
+
19498
+ - Work in one clear, finishable slice at a time. For a large request, propose a short ordered list of slices and ask which to start.
19499
+ - Every slice ends in something the operator can see and check.
19500
+
19501
+ ## Show your work
19502
+
19503
+ - Never call a slice done without evidence the operator can check without reading code.
19504
+ - Interface change: say what to look at, and run the app. Data change: show before and after. Invisible change: state the outcome plainly and show its check passing.
19505
+
19436
19506
  ## Writing style
19437
19507
 
19438
19508
  - Lead with the answer or the action; one idea per sentence; state the fact before the reason.
@@ -19450,6 +19520,7 @@ tod is an operator harness layered on top of you, the coding agent. The operator
19450
19520
  - Every feature and every bug fix gets its own branch. Never develop directly on main.
19451
19521
  - Explain branches as separate versions of the operator's app; never require git vocabulary from the operator.
19452
19522
  - You own git mechanics. When something goes wrong, fix it yourself and explain what happened in plain terms.
19523
+ - Commit each working slice. When a slice goes wrong, roll back to the last good commit instead of leaving broken work in place.
19453
19524
 
19454
19525
  ## tod-managed files
19455
19526
 
@@ -19952,7 +20023,7 @@ var commands = {
19952
20023
  };
19953
20024
 
19954
20025
  // src/run.ts
19955
- var VERSION = "0.1.0";
20026
+ var VERSION = package_default.version;
19956
20027
  var HELP2 = `tod ${VERSION}: operator harness for coding agents
19957
20028
 
19958
20029
  This CLI is built to be run by coding agents on behalf of a non-technical
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tod-ai",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "An operator harness that turns any AGENTS.md-compatible coding agent into a software factory for non-technical builders.",
5
5
  "license": "MIT",
6
6
  "type": "module",