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,59 @@
1
+ # Tree — which paths a scan walks
2
+
3
+ Three classes of line, each with its prefix. No scan discovers the tree and none assumes depth: it
4
+ reads these lines. Adding a level is adding a line here, not touching scripts.
5
+
6
+ - `glob:` — what a scan reads as a head: frontmatter with `status`, `horizon`, and so on.
7
+ - `content:` — what a scan counts as reached but **never** reads as a head: the voice, a record, the
8
+ `context/` and the `research/` of a product node, the body of an initiative next to its `README.md`,
9
+ the body of a decision or a learning next to its index (`decisions.md`/`learnings.md`, spec 043), a
10
+ workspace's `people/` (spec 058) — who a person is, never a node, and never what the scan or the
11
+ focus load on their own.
12
+ Without this line, that file gets flagged as unreached by any glob even when it is written correctly.
13
+ - `archive:` — what a scan counts as reached, never reads as a head, and **never loads**: the
14
+ `archive/` of a node (spec 048). The focus prints the names of these files and opens none of them;
15
+ `recall` still searches inside them and `supersede --check` still audits them. A document gets here
16
+ because the operator ran `archive`, never on its own.
17
+
18
+ The commands that create a level add their glob or their content line. A file that neither of the
19
+ two reaches is a finding of the check, not a case to ignore.
20
+
21
+ The first `content:` line is the system's user manual, in the language of this brain: it is part of
22
+ the product, it lives at the root so it can be read from Obsidian, and it is never work.
23
+
24
+ glob: operator.md
25
+ glob: resolver.md
26
+ glob: inbox.md
27
+ glob: mounts.md
28
+ glob: initiatives/*/README.md
29
+ glob: backlog.md
30
+ glob: decisions.md
31
+ glob: learnings.md
32
+ glob: workspaces/*/README.md
33
+ glob: workspaces/*/resolver.md
34
+ glob: workspaces/*/backlog.md
35
+ glob: workspaces/*/decisions.md
36
+ glob: workspaces/*/learnings.md
37
+ glob: workspaces/*/initiatives/*/README.md
38
+ glob: workspaces/*/products/*/README.md
39
+ glob: workspaces/*/products/*/resolver.md
40
+ glob: workspaces/*/products/*/decisions.md
41
+
42
+ content: {{MANUAL}}
43
+ content: voice.md
44
+ content: voice/*.md
45
+ content: workspaces/*/voice.md
46
+ content: workspaces/*/records/*.md
47
+ content: workspaces/*/people/*.md
48
+ content: workspaces/*/products/*/context/*.md
49
+ content: workspaces/*/products/*/research/*.md
50
+ content: initiatives/*/*.md
51
+ content: workspaces/*/initiatives/*/*.md
52
+ content: decisions/*.md
53
+ content: learnings/*.md
54
+ content: workspaces/*/decisions/*.md
55
+ content: workspaces/*/learnings/*.md
56
+
57
+ archive: workspaces/*/products/*/archive/*.md
58
+ archive: workspaces/*/initiatives/*/archive/*.md
59
+ archive: initiatives/*/archive/*.md
@@ -0,0 +1,5 @@
1
+ # {{T_VOICE_TITLE}} {{NAME}}
2
+
3
+ {{T_VOICE_INTRO}}
4
+
5
+ {{VOICE}}
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "ai-first-os",
3
+ "version": "1.9.0",
4
+ "description": "A product operating system for working with agents. Install with npx, no clone required.",
5
+ "license": "MIT",
6
+ "homepage": "https://github.com/pedroromeroluna/ai-first-os",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/pedroromeroluna/ai-first-os.git"
10
+ },
11
+ "bin": {
12
+ "ai-first-os": "bin/ai-first-os.js"
13
+ },
14
+ "files": [
15
+ "core/",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "dependencies": {},
20
+ "engines": {
21
+ "node": ">=18"
22
+ }
23
+ }