dreamteamer 0.32.0 → 0.33.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.
- package/README.md +4 -2
- package/collections/agents.collection.yaml +41 -32
- package/collections/collections.collection.yaml +68 -230
- package/collections/command-bindings.collection.yaml +37 -43
- package/collections/commands.collection.yaml +50 -35
- package/collections/mixins.collection.yaml +49 -0
- package/collections/modules.collection.yaml +76 -122
- package/collections/repos.collection.yaml +53 -56
- package/collections/skills.collection.yaml +32 -21
- package/collections/ui-views.collection.yaml +57 -46
- package/mixins/docs.mixin.yaml +21 -0
- package/mixins/entity.mixin.yaml +22 -0
- package/package.json +5 -3
- package/scripts/migrate-descriptors-v2.mjs +795 -0
- package/skills/using-dreamteamer/SKILL.md +27 -24
- package/skills/using-dreamteamer/references/agents.md +1 -1
- package/skills/using-dreamteamer/references/before-you-build.md +1 -5
- package/skills/using-dreamteamer/references/collections.md +450 -348
- package/skills/using-dreamteamer/references/commands.md +49 -35
- package/skills/using-dreamteamer/references/data-modeling.md +342 -319
- package/skills/using-dreamteamer/references/extensions.md +8 -5
- package/skills/using-dreamteamer/references/getting-started.md +6 -4
- package/skills/using-dreamteamer/references/records.md +43 -34
- package/skills/using-dreamteamer/references/skills.md +4 -3
- package/skills/using-dreamteamer/references/ui-components.md +30 -32
- package/skills/using-dreamteamer/references/ui-views.md +122 -124
- package/src/api.d.ts +22 -2
- package/src/api.js +16 -1
- package/src/check.js +55 -40
- package/src/checkout.js +14 -13
- package/src/cli.js +118 -71
- package/src/collections-cli.js +136 -144
- package/src/commit.js +9 -8
- package/src/compile-collections.js +346 -0
- package/src/compile.js +232 -1068
- package/src/descriptor-v2.js +165 -0
- package/src/descriptor.js +90 -0
- package/src/doctor.js +57 -0
- package/src/events.js +11 -10
- package/src/extensions.js +48 -10
- package/src/field-values.js +7 -6
- package/src/fields.js +254 -0
- package/src/filter.js +45 -1
- package/src/fractional-index.js +2 -2
- package/src/harnesses.js +80 -52
- package/src/history.js +3 -3
- package/src/init.js +74 -46
- package/src/namespace.js +23 -9
- package/src/placement.js +26 -16
- package/src/presentation.js +153 -299
- package/src/record-commands.js +12 -12
- package/src/records-api.d.ts +106 -7
- package/src/records-api.js +2 -1
- package/src/records.js +20 -14
- package/src/ref.js +3 -39
- package/src/relations.js +23 -24
- package/src/runtime.js +12 -35
- package/src/schema-ops.js +1181 -1275
- package/src/store.js +212 -82
- package/src/template.js +100 -24
- package/src/temporal.js +11 -3
- package/src/views.js +176 -0
- package/src/workspace.js +14 -0
- package/src/yaml.js +66 -5
- package/collection-templates/docs.collection-template.yaml +0 -17
- package/collection-templates/entity.collection-template.yaml +0 -20
- package/collections/collection-templates.collection.yaml +0 -20
|
@@ -25,7 +25,8 @@ unsure which skill owns the job in front of you.
|
|
|
25
25
|
|---|---|---|
|
|
26
26
|
| schemas (read) | `.dreamteamer/collections/*.collection.yaml` | the single source of truth for what exists and its shape. **never edit under `.dreamteamer/`** — generated and gitignored |
|
|
27
27
|
| provenance | `.dreamteamer/manifest.yaml` | which module shipped which entry |
|
|
28
|
-
| sources (write) | `modules/<module>/<kind>/` — **including the workspace's own**, the `dreamteamer.
|
|
28
|
+
| sources (write) | `modules/<module>/<kind>/` — **including the workspace's own**, the `dreamteamer.workspace_module` named in `package.json` | a source folder at the workspace ROOT is a compile error (whenever `workspace_module` is set — every `dt init` workspace); same-name collisions across modules too. after ANY source change: `dt compile` |
|
|
29
|
+
| instructions (write) | `DREAMTEAMER.md` at the root | compiled into `CLAUDE.md`, `AGENTS.md` and `GEMINI.md` below the generated block; those three are gitignored, so a rule written into them reaches no clone |
|
|
29
30
|
| records (write) | `data/…`, per each descriptor's `storage.path` | the CLI writes them validated; hand-edits are legal and owe `dt check` |
|
|
30
31
|
|
|
31
32
|
- a record is a `<id>.<suffix>.<ext>` file (or a folder, for folder-shape collections). **the id
|
|
@@ -38,9 +39,10 @@ unsure which skill owns the job in front of you.
|
|
|
38
39
|
and never a file path.
|
|
39
40
|
|
|
40
41
|
**lifecycle:** `dt init` writes a new workspace's skeleton (it never compiles). a FRESH CLONE owes
|
|
41
|
-
`dt install` (restores `git_modules/`) then `dt compile` before anything reads — `.dreamteamer
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
`dt install` (restores `git_modules/`) then `dt compile` before anything reads — `.dreamteamer/`,
|
|
43
|
+
the harness folders and the root `CLAUDE.md`/`AGENTS.md`/`GEMINI.md` are gitignored build output,
|
|
44
|
+
so a clone has no runtime and no orientation until compile writes them — and `.env` is
|
|
45
|
+
per-machine (declared keys: `references/records.md`). `dt status` says
|
|
44
46
|
whether the runtime is fresh. the workspace's own switches live in `package.json`'s `dreamteamer`
|
|
45
47
|
block (`references/collections.md`, the workspace manifest) — and the guided path from nothing,
|
|
46
48
|
or from existing data, is `references/getting-started.md`.
|
|
@@ -64,13 +66,14 @@ dispatch, so it cannot drift):
|
|
|
64
66
|
|
|
65
67
|
- a collection may be spelled in the SINGULAR on any of these (`dt add task "call the bank"` — one bare positional is the title); references inside records still spell the full name
|
|
66
68
|
- read & measure — `list` `get` `values` `history` `diff` `next` `relations` `resolve`
|
|
67
|
-
- write & publish — `add` `set` `rm` `rename` `
|
|
68
|
-
- fields (sources, through the compile gate) — `add-field` `set-field` `rm-field` `rename-field` (system entities — modules, collections, skills, ui-views… — take the RECORD verbs above)
|
|
69
|
-
- workspace — `init` `install` `update` `compile` `check` `status` `changes` `help`
|
|
69
|
+
- write & publish — `add` `set` `rm` `rename` `reorder` `revert` `commit` `relocate`
|
|
70
|
+
- fields (sources, through the compile gate) — `add-field` `set-field` `rm-field` `rename-field` `rename-value` (system entities — modules, collections, skills, ui-views… — take the RECORD verbs above)
|
|
71
|
+
- workspace — `init` `install` `update` `compile` `check` `doctor` `status` `changes` `help`
|
|
72
|
+
- format descriptor sources (opt-in; block style, canonical key order, through the compile gate) — `fmt`
|
|
70
73
|
- an EXTENSION (a workspace module or a dependency declaring `dreamteamer.extension`) adds verbs of
|
|
71
|
-
its own, and `dt help` lists them under its name; each ships the skill that teaches it. A verb
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
its own, and `dt help` lists them under its name; each ships the skill that teaches it. A verb core
|
|
75
|
+
does not know (`dt prove` · `dt land` · `dt worktree` · `dt serve` · `dt notebooklm`) belongs to an
|
|
76
|
+
extension — see `references/extensions.md`.
|
|
74
77
|
|
|
75
78
|
don't learn syntax from prose, this skill included: prose drifts, and `help` ships in
|
|
76
79
|
the same file as the dispatch it documents. run it once before your first write of a session.
|
|
@@ -107,7 +110,7 @@ Load by the map; nothing here is loaded "just in case".
|
|
|
107
110
|
| read, create, update, rename, delete, commit — or UNDO — a record | `references/records.md` |
|
|
108
111
|
| "what changed while I was away" | `references/changes.md` |
|
|
109
112
|
| the workspace seems unable to do something — a new kind of thing, a missing capability, "don't we already have this?" | `references/before-you-build.md` (look first); a new model then continues `references/data-modeling.md` (decide) → `references/collections.md` (write it) |
|
|
110
|
-
| a collection or field, mechanically — the descriptor, the system and field verbs, `
|
|
113
|
+
| a collection or field, mechanically — the descriptor and its field vocabulary, ids, `display`, the system and field verbs, mixins and overlays, the `package.json` block, a compile or check message | `references/collections.md` |
|
|
111
114
|
| "keep a company's meetings in the company's folder" — records stored beside the record they belong to, a `placed … but` check report, `dt relocate` | `references/collections.md` (declaring it) · `references/records.md` (working with it) |
|
|
112
115
|
| knowledge a session should find on its own | `references/skills.md` |
|
|
113
116
|
| "let me type one word and have this done" | `references/commands.md` |
|
|
@@ -131,14 +134,14 @@ three act-two tie-breakers, because they are the ones that go wrong:
|
|
|
131
134
|
|
|
132
135
|
domain work — meetings, patients, invoices, whatever this workspace is about — is owned by the
|
|
133
136
|
**module** that ships those collections; read that module's own skills. core knows entity kinds
|
|
134
|
-
and `repos`, and deliberately nothing else. workspace-level rules live in `
|
|
137
|
+
and `repos`, and deliberately nothing else. workspace-level rules live in `DREAMTEAMER.md`, and a
|
|
135
138
|
workspace's decision log (where one exists) wins over older documents.
|
|
136
139
|
|
|
137
140
|
## system entities take the RECORD verbs
|
|
138
141
|
|
|
139
|
-
Modules, collections, skills, agents, commands, command-bindings, ui-views,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
Modules, collections, skills, agents, commands, command-bindings, ui-views, mixins — and any kind
|
|
143
|
+
an installed extension contributes — are collections in the runtime, and the ordinary verbs write
|
|
144
|
+
them:
|
|
142
145
|
|
|
143
146
|
```
|
|
144
147
|
dt add modules --name core --description "The shared nouns."
|
|
@@ -150,11 +153,9 @@ dt set modules/hr namespaces=hr dependencies=modules/core
|
|
|
150
153
|
dt rm modules/hr --force # --dry-run first; it prints its plan
|
|
151
154
|
```
|
|
152
155
|
|
|
153
|
-
⚠ **`add` scaffolds skills
|
|
154
|
-
hand-authored — `dt add agents` is refused, naming the file to
|
|
155
|
-
|
|
156
|
-
`dt schema <op>` is **gone** since 0.19.0 and fails with the translation printed. `UPDATING.md` has
|
|
157
|
-
the complete mapping table.
|
|
156
|
+
⚠ **`add` scaffolds modules, collections, skills and ui-views.** Agents, commands, bindings,
|
|
157
|
+
mixins and contributed kinds are hand-authored — `dt add agents` is refused, naming the file to
|
|
158
|
+
write. Every other verb works on them.
|
|
158
159
|
|
|
159
160
|
⚠ **ONE difference, and it is POLICY rather than spelling: a SYSTEM write commits itself; a RECORD
|
|
160
161
|
write does not.** An uncompilable or unpublished schema is not a state a workspace should sit in, so
|
|
@@ -183,9 +184,10 @@ unmeasured (where a number genuinely cannot be known before the run, the plan sa
|
|
|
183
184
|
source is rejected and the previous runtime stands; check reports and never modifies.
|
|
184
185
|
5. **a running session does not see new sources.** a new skill, command or agent is live in the
|
|
185
186
|
operator's NEXT session — say so rather than letting them wonder.
|
|
186
|
-
6. **never edit generated output.** `.dreamteamer/`, `.claude/`, `.agents/`, `.cursor/`
|
|
187
|
-
|
|
188
|
-
in
|
|
187
|
+
6. **never edit generated output.** `.dreamteamer/`, `.claude/`, `.agents/`, `.cursor/` and the
|
|
188
|
+
blocks in the root `CLAUDE.md`/`AGENTS.md`/`GEMINI.md` are rewritten on the next compile — and
|
|
189
|
+
those root files are gitignored, so nothing written in them reaches a clone. if you found the
|
|
190
|
+
thing to change there, you are in the wrong file.
|
|
189
191
|
7. **the CLI refuses system-stored records on purpose** (`dt set skills/<id>` — no): edit the
|
|
190
192
|
module source and compile. the SYSTEM verbs are the sanctioned exception — they write
|
|
191
193
|
sources *through* a compile gate, so an uncompilable source can never land.
|
|
@@ -208,7 +210,8 @@ unmeasured (where a number genuinely cannot be known before the run, the plan sa
|
|
|
208
210
|
| changing a source and not compiling | the CLI, `check` and every harness still read the stale runtime |
|
|
209
211
|
| hand-writing a record the CLI could add | skips validation, id generation and defaults |
|
|
210
212
|
| bare refs (`ada`, `data/contacts/x.contact.md`) | refs are `<collection>/<id>`; anything else fails check |
|
|
211
|
-
| assuming a write was committed | it was not (unless `
|
|
213
|
+
| assuming a write was committed | it was not (unless `auto_commit` is on) — `dt status` shows pending |
|
|
214
|
+
| editing `CLAUDE.md` for a workspace rule | it is compiled output — the rule goes in `DREAMTEAMER.md` |
|
|
212
215
|
| learning flags from prose or memory | `dt help` is the surface; prose carries judgment only |
|
|
213
216
|
| a new module folder compile ignores | its `package.json` needs a `dreamteamer` key |
|
|
214
217
|
| `git add -A` in a shared tree | steals another session's uncommitted work, invisibly |
|
|
@@ -70,7 +70,7 @@ a *feature* — independence, enforcement, parallelism — rather than an overhe
|
|
|
70
70
|
| `model` | no | override (`sonnet`, `opus`, …); omit to inherit the session's |
|
|
71
71
|
| `skills` | no | qualified `skills/<id>` refs, verified at compile — loaded before the agent acts |
|
|
72
72
|
|
|
73
|
-
The body is the `instructions` field (`
|
|
73
|
+
The body is the `instructions` field (`body: true`) and becomes the subagent's system prompt.
|
|
74
74
|
|
|
75
75
|
## the description — written for the dispatcher
|
|
76
76
|
|
|
@@ -19,10 +19,6 @@ Every rule below is that asymmetry applied.
|
|
|
19
19
|
| how do I put it to the operator | the proposal |
|
|
20
20
|
| nothing exists anywhere | build it — in the module that owns the concept (`data-modeling.md` Part III), after proposing (Part II §7) |
|
|
21
21
|
|
|
22
|
-
This replaced a standalone `discovering-new-capabilities` skill on 2026-07-31, whose premise — "find
|
|
23
|
-
and propose an **installable** module" — had been reversed: domain modules are no longer packages you
|
|
24
|
-
install. The looking still matters; the taking changed shape.
|
|
25
|
-
|
|
26
22
|
## why looking wins
|
|
27
23
|
|
|
28
24
|
- **A duplicate is worse than a gap.** Two collections holding one concept under two names split
|
|
@@ -41,7 +37,7 @@ install. The looking still matters; the taking changed shape.
|
|
|
41
37
|
| # | look at | how, concretely | what you get |
|
|
42
38
|
|---|---|---|---|
|
|
43
39
|
| 1 | **this workspace's own modules** | the orientation block's MODULES AND THEIR COLLECTIONS list is already in your context — find the module whose sentence owns the concept, then reread its collections with the concept's *synonyms* in mind, `use when` clauses included; then read the candidate's DESCRIPTOR, not its records; `dt help` shows the verbs and `dt next <collection>` the bound ones; the module's skills line names the techniques | the thing may already exist under a name you didn't guess. This is where misses actually happen, because it is the place you assume you already know |
|
|
44
|
-
| 2 | **a recipes repo — where this workspace's own
|
|
40
|
+
| 2 | **a recipes repo — where this workspace's own instructions (`DREAMTEAMER.md`) name one** (reference modules maintained to be **copied and adapted**) | read that repo's own instructions first; they ARE the adoption procedure. no recipes repo declared → skip this row | a working module with its reasoning attached — descriptors, skills, and the trap notes that each cost someone a day |
|
|
45
41
|
| 3 | **a sibling workspace — where the operator has named one** | read-only; grep its `modules/` for the concept. none named → skip | another vault may have solved it concretely. That is a *reference*, not a source — it holds real personal data, so read the shape, never lift the content |
|
|
46
42
|
| 4 | **the engine's own surface** | `dt help` — the complete verb surface, system and field verbs included; read it rather than recalling it | the capability may already be a verb (`relations rebuild`, `resolve`, `install repos/<id>`) rather than a missing module |
|
|
47
43
|
|