ai-first-os 1.9.0

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 (90) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -0
  3. package/bin/ai-first-os.js +72 -0
  4. package/core/CLAUDE.md +148 -0
  5. package/core/VERSION +1 -0
  6. package/core/agents/ambiguous-spec.md +39 -0
  7. package/core/agents/complete-spec.md +36 -0
  8. package/core/agents/scout.md +25 -0
  9. package/core/install.sh +243 -0
  10. package/core/lib/archive.sh +347 -0
  11. package/core/lib/bootstrap.sh +276 -0
  12. package/core/lib/capture.sh +188 -0
  13. package/core/lib/check-resolvable.sh +172 -0
  14. package/core/lib/close-session.sh +741 -0
  15. package/core/lib/common.sh +1773 -0
  16. package/core/lib/focus-read.sh +282 -0
  17. package/core/lib/manual-link.sh +111 -0
  18. package/core/lib/markdown.py +304 -0
  19. package/core/lib/migrate-backlogs.sh +207 -0
  20. package/core/lib/migrate-canonicals.sh +523 -0
  21. package/core/lib/mount-repo.sh +543 -0
  22. package/core/lib/my-wiki-gates.sh +137 -0
  23. package/core/lib/my-wiki.sh +202 -0
  24. package/core/lib/my_wiki_build.py +548 -0
  25. package/core/lib/my_wiki_graph.py +137 -0
  26. package/core/lib/my_wiki_overview.py +392 -0
  27. package/core/lib/new-memory.sh +160 -0
  28. package/core/lib/new-product.sh +122 -0
  29. package/core/lib/new-workspace.sh +105 -0
  30. package/core/lib/pack-install.sh +114 -0
  31. package/core/lib/recall.sh +235 -0
  32. package/core/lib/recall_index.py +295 -0
  33. package/core/lib/remote-backup.sh +84 -0
  34. package/core/lib/rename-heads.sh +354 -0
  35. package/core/lib/rename-workspaces.sh +271 -0
  36. package/core/lib/session-read.sh +203 -0
  37. package/core/lib/session-start.sh +854 -0
  38. package/core/lib/supersede.sh +436 -0
  39. package/core/lib/sweep.sh +473 -0
  40. package/core/manual/COMO-FUNCIONA.md +251 -0
  41. package/core/manual/HOW-IT-WORKS.md +250 -0
  42. package/core/resolver.md +30 -0
  43. package/core/skills/archive.md +95 -0
  44. package/core/skills/bootstrap.md +226 -0
  45. package/core/skills/capture.md +65 -0
  46. package/core/skills/check-resolvable.md +38 -0
  47. package/core/skills/close-session.md +108 -0
  48. package/core/skills/grill.md +74 -0
  49. package/core/skills/mount-repo.md +97 -0
  50. package/core/skills/my-wiki.md +103 -0
  51. package/core/skills/new-memory.md +76 -0
  52. package/core/skills/new-product.md +55 -0
  53. package/core/skills/new-spec.md +114 -0
  54. package/core/skills/new-workspace.md +53 -0
  55. package/core/skills/recall.md +64 -0
  56. package/core/skills/rename-heads.md +72 -0
  57. package/core/skills/rename-workspaces.md +43 -0
  58. package/core/skills/supersede.md +83 -0
  59. package/core/skills/sweep.md +40 -0
  60. package/core/templates/my-wiki-graph.js +431 -0
  61. package/core/templates/my-wiki-overview.js +174 -0
  62. package/core/templates/my-wiki.html +1017 -0
  63. package/core/templates/node-folder/README.md +11 -0
  64. package/core/templates/node-folder/resolver.md +9 -0
  65. package/core/templates/node-light.md +22 -0
  66. package/core/templates/node-product/README.md +8 -0
  67. package/core/templates/node-repo/README.md +14 -0
  68. package/core/templates/node-repo/context/README.md +22 -0
  69. package/core/templates/node-repo/context/competitors.md +8 -0
  70. package/core/templates/node-repo/context/glossary.md +8 -0
  71. package/core/templates/node-repo/context/open-questions.md +9 -0
  72. package/core/templates/node-repo/context/opportunities.md +9 -0
  73. package/core/templates/node-repo/context/problem.md +8 -0
  74. package/core/templates/node-repo/context/scope.md +8 -0
  75. package/core/templates/node-repo/context/users.md +8 -0
  76. package/core/templates/node-repo/context/vision.md +8 -0
  77. package/core/templates/node-repo/resolver.md +14 -0
  78. package/core/templates/operator.md +17 -0
  79. package/core/templates/person.md +10 -0
  80. package/core/templates/repo-scaffold/ARCHITECTURE.md +3 -0
  81. package/core/templates/repo-scaffold/CLAUDE.md +23 -0
  82. package/core/templates/repo-scaffold/decisions.md +3 -0
  83. package/core/templates/repo-scaffold/evals-run.sh +14 -0
  84. package/core/templates/repo-scaffold/gitignore +3 -0
  85. package/core/templates/repo-scaffold/settings.json +8 -0
  86. package/core/templates/root-resolver.md +5 -0
  87. package/core/templates/strings.md +1361 -0
  88. package/core/templates/tree.md +59 -0
  89. package/core/templates/voice.md +5 -0
  90. package/package.json +23 -0
@@ -0,0 +1,11 @@
1
+ ---
2
+ role: {{ROLE}}
3
+ owner: {{OWNER}}
4
+ updated: {{DATE}}
5
+ ---
6
+
7
+ # {{NAME}}
8
+
9
+ {{IDENTITY}}
10
+
11
+ {{T_ORG_OPERATOR_HERE}} {{TITLE}}
@@ -0,0 +1,9 @@
1
+ # {{T_RESOLVER_TITLE_HEAD}} {{NAME}} {{T_RESOLVER_TITLE_TAIL}}
2
+
3
+ {{T_RESOLVER_INTRO}}
4
+
5
+ {{T_RESOLVER_TABLE_HEAD}}
6
+
7
+ ## {{T_RESOLVER_REFERENCES_HEADING}}
8
+
9
+ {{T_RESOLVER_REFERENCES_INTRO}}
@@ -0,0 +1,22 @@
1
+ ---
2
+ status: active
3
+ owner: {{OWNER}}
4
+ horizon: now
5
+ updated: {{DATE}}
6
+ ---
7
+
8
+ # {{NAME}}
9
+
10
+ ## Context
11
+
12
+ {{IDENTITY}}
13
+
14
+ ## Specs
15
+
16
+ ## Decisions
17
+
18
+ ## Stakeholders
19
+
20
+ ## Learnings
21
+
22
+ ## Resolver
@@ -0,0 +1,8 @@
1
+ ---
2
+ owner: {{OWNER}}
3
+ updated: {{DATE}}
4
+ ---
5
+
6
+ # {{NAME}}
7
+
8
+ {{IDENTITY}}
@@ -0,0 +1,14 @@
1
+ ---
2
+ role: {{ROLE}}
3
+ owner: {{OWNER}}
4
+ repo:
5
+ updated: {{DATE}}
6
+ ---
7
+
8
+ # {{NAME}}
9
+
10
+ {{IDENTITY}}
11
+
12
+ The body lives in the checkout declared in `repo:`: specs, technical decisions and the as-built. The
13
+ head stays here. The field is written by the command that mounts the repo — deciding to build and
14
+ mounting the repo are the same act.
@@ -0,0 +1,22 @@
1
+ # Strategic layer
2
+
3
+ > Index. The content lives broken down across this `context/`, so that an agent reads only what it
4
+ > needs.
5
+
6
+ ## The files
7
+
8
+ | # | File | What it answers | State |
9
+ |---|---|---|---|
10
+ | 1 | `problem.md` | What problem it solves, for whom, why now | ⬜ |
11
+ | 2 | `users.md` | Who it sells to, what they use instead today | ⬜ |
12
+ | 3 | `vision.md` | The finished system, where it gets to | ⬜ |
13
+ | 4 | `scope.md` | What it does NOT do, hard constraints, what goes into the first version | ⬜ |
14
+ | 5 | `competitors.md` | What it competes against and how it differs | ⬜ |
15
+ | 6 | `glossary.md` | The terms of the domain | ⬜ |
16
+ | 7 | `open-questions.md` | What is left to decide — live, it empties out | ⬜ |
17
+ | 8 | `opportunities.md` | What might be worth it and was not decided | ⬜ |
18
+
19
+ States: ⬜ empty · 🟡 partial · ✅ closed on [date]. Whoever completes each file updates them.
20
+
21
+ `scope.md` and `glossary.md` are the ones that keep an agent from deciding wrong: if they are empty,
22
+ no spec can be written yet.
@@ -0,0 +1,8 @@
1
+ ---
2
+ updated:
3
+ ---
4
+
5
+ # Competitors
6
+
7
+ What it competes against and how it differs. Filled in by the `prd` interview
8
+ (`packs/product-builder/skills/prd.md`).
@@ -0,0 +1,8 @@
1
+ ---
2
+ updated:
3
+ ---
4
+
5
+ # Glossary
6
+
7
+ The terms of the domain. Filled in by the `prd` interview
8
+ (`packs/product-builder/skills/prd.md`).
@@ -0,0 +1,9 @@
1
+ ---
2
+ updated:
3
+ ---
4
+
5
+ # Open questions
6
+
7
+ What is left to decide. Live: it empties out as each question closes, and it is never padded with an
8
+ inference to look tidy. Filled in by the `prd` interview
9
+ (`packs/product-builder/skills/prd.md`) and by `grill` (`core/skills/grill.md`).
@@ -0,0 +1,9 @@
1
+ ---
2
+ updated:
3
+ ---
4
+
5
+ # Opportunities
6
+
7
+ What might be worth it and has not been decided yet. It dies either turned into a spec or discarded
8
+ with the reason written down. Filled in by the `prd` interview
9
+ (`packs/product-builder/skills/prd.md`).
@@ -0,0 +1,8 @@
1
+ ---
2
+ updated:
3
+ ---
4
+
5
+ # Problem
6
+
7
+ What problem it solves, for whom, why now, and how you know whether it worked. Filled in by the
8
+ `prd` interview (`packs/product-builder/skills/prd.md`).
@@ -0,0 +1,8 @@
1
+ ---
2
+ updated:
3
+ ---
4
+
5
+ # Scope
6
+
7
+ What it does NOT do, who it does NOT sell to, hard constraints, and what goes into the first
8
+ version. Filled in by the `prd` interview (`packs/product-builder/skills/prd.md`).
@@ -0,0 +1,8 @@
1
+ ---
2
+ updated:
3
+ ---
4
+
5
+ # Users
6
+
7
+ Who it sells to, what they use instead today. Filled in by the `prd` interview
8
+ (`packs/product-builder/skills/prd.md`).
@@ -0,0 +1,8 @@
1
+ ---
2
+ updated:
3
+ ---
4
+
5
+ # Vision
6
+
7
+ The finished system, where it gets to. Filled in by the `prd` interview
8
+ (`packs/product-builder/skills/prd.md`).
@@ -0,0 +1,14 @@
1
+ # Resolver of {{NAME}} — where what gets written goes
2
+
3
+ Content → destination. One row per exception: whatever the structure already answers gets no row.
4
+ The boundary with the body is a row like any other.
5
+
6
+ It is born with no rows.
7
+
8
+ | Content | Destination |
9
+ |---|---|
10
+
11
+ ## References
12
+
13
+ What this node uses from outside, by path. If the agent cannot reach it, it says so instead of
14
+ assuming.
@@ -0,0 +1,17 @@
1
+ ---
2
+ language: {{LANGUAGE}}
3
+ ---
4
+
5
+ # {{NAME}}
6
+
7
+ {{T_OPERATOR_VOICE_POINTER}}
8
+
9
+ ## {{T_OPERATOR_PROFILE_HEADING}}
10
+
11
+ {{PROFILE}}
12
+
13
+ ## {{T_OPERATOR_REPLY_HEADING}}
14
+
15
+ {{T_OPERATOR_REPLY_MARK}}
16
+
17
+ {{T_OPERATOR_REPLY_DEFAULT}}
@@ -0,0 +1,10 @@
1
+ ---
2
+ employer:
3
+ title:
4
+ contact:
5
+ updated:
6
+ ---
7
+
8
+ # Full name
9
+
10
+ How it is best to deal with them: tone, what to avoid, what they respond to.
@@ -0,0 +1,3 @@
1
+ # {{NAME}} — {{T_REPO_ARCHITECTURE_TITLE}}
2
+
3
+ {{T_REPO_ARCHITECTURE_INTRO}}
@@ -0,0 +1,23 @@
1
+ # {{NAME}}
2
+
3
+ {{T_REPO_INTRO}}
4
+
5
+ ## {{T_REPO_LAYOUT_HEADING}}
6
+
7
+ {{T_REPO_LAYOUT}}
8
+
9
+ ## Gates
10
+
11
+ {{T_REPO_GATES}}
12
+
13
+ ## Definition of Done
14
+
15
+ {{T_REPO_DOD}}
16
+
17
+ ## {{T_REPO_WRITING_HEADING}}
18
+
19
+ {{T_REPO_WRITING}}
20
+
21
+ ## Gotchas
22
+
23
+ {{T_REPO_GOTCHAS}}
@@ -0,0 +1,3 @@
1
+ # {{NAME}} — {{T_REPO_DECISIONS_TITLE}}
2
+
3
+ {{T_REPO_DECISIONS_INTRO}}
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env bash
2
+ # {{T_REPO_EVALS_INTRO}}
3
+ set -u
4
+
5
+ passed=0
6
+ failed=0
7
+ ok() { printf 'PASS %s\n' "$1"; passed=$((passed + 1)); }
8
+ ko() { printf 'FAIL %s\n' "$1"; failed=$((failed + 1)); }
9
+ ev() { printf ' | %s\n' "$1"; }
10
+
11
+ # {{T_REPO_EVALS_SLOT}}
12
+
13
+ printf '{{T_REPO_EVALS_SUMMARY}}\n' "$passed" "$failed"
14
+ [ "$failed" = "0" ]
@@ -0,0 +1,3 @@
1
+ .DS_Store
2
+ .env
3
+ .env.*
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "deny": [
4
+ "Bash(git push *)",
5
+ "Bash(gh pr merge *)"
6
+ ]
7
+ }
8
+ }
@@ -0,0 +1,5 @@
1
+ # {{T_ROOT_RESOLVER_TITLE}}
2
+
3
+ {{T_ROOT_RESOLVER_INTRO}}
4
+
5
+ {{T_ROOT_RESOLVER_TABLE_HEAD}}