ptbk 0.119.0-21 → 0.119.0-26
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 +16 -9
- package/dist/browser/browser.d.ts +50 -36
- package/dist/browser/browser.js +162 -118
- package/dist/browser/browser.js.map +1 -1
- package/dist/browser/fleet.d.ts +59 -0
- package/dist/browser/fleet.js +148 -0
- package/dist/browser/fleet.js.map +1 -0
- package/dist/browser/recording.js +2 -2
- package/dist/browser/recording.js.map +1 -1
- package/dist/chats/conversation.d.ts +1 -1
- package/dist/chats/conversation.js +8 -6
- package/dist/chats/conversation.js.map +1 -1
- package/dist/chats/local.js +5 -5
- package/dist/chats/local.js.map +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/add.js.map +1 -1
- package/dist/cli/commands/boilerplates.js +1 -1
- package/dist/cli/commands/boilerplates.js.map +1 -1
- package/dist/cli/commands/find.js +1 -1
- package/dist/cli/commands/find.js.map +1 -1
- package/dist/cli/commands/fix.js +9 -4
- package/dist/cli/commands/fix.js.map +1 -1
- package/dist/cli/commands/init.d.ts +5 -0
- package/dist/cli/commands/init.js +279 -118
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/migrate.js +1 -1
- package/dist/cli/commands/migrate.js.map +1 -1
- package/dist/cli/commands/ping.js +20 -12
- package/dist/cli/commands/ping.js.map +1 -1
- package/dist/cli/commands/plan.js +20 -12
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/recover.js +1 -1
- package/dist/cli/commands/recover.js.map +1 -1
- package/dist/cli/commands/restart.js +6 -5
- package/dist/cli/commands/restart.js.map +1 -1
- package/dist/cli/commands/run.js +26 -15
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/start.js +11 -7
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/commands/tool.d.ts +19 -0
- package/dist/cli/commands/tool.js +320 -0
- package/dist/cli/commands/tool.js.map +1 -0
- package/dist/cli/commands/verify.js +1 -1
- package/dist/cli/commands/verify.js.map +1 -1
- package/dist/cli/common.d.ts +7 -1
- package/dist/cli/common.js +37 -20
- package/dist/cli/common.js.map +1 -1
- package/dist/cli/compatibility.d.ts +8 -0
- package/dist/cli/compatibility.js +32 -0
- package/dist/cli/compatibility.js.map +1 -0
- package/dist/cli/parser.js +7 -3
- package/dist/cli/parser.js.map +1 -1
- package/dist/cli/registry.js +182 -7
- package/dist/cli/registry.js.map +1 -1
- package/dist/cli/service-view.js +1 -1
- package/dist/cli/service-view.js.map +1 -1
- package/dist/cli/sources.js +2 -0
- package/dist/cli/sources.js.map +1 -1
- package/dist/cli/spec.js +8 -6
- package/dist/cli/spec.js.map +1 -1
- package/dist/common/naming.d.ts +53 -0
- package/dist/common/naming.js +90 -0
- package/dist/common/naming.js.map +1 -0
- package/dist/engine/agenda.d.ts +70 -9
- package/dist/engine/agenda.js +294 -61
- package/dist/engine/agenda.js.map +1 -1
- package/dist/engine/executor.d.ts +5 -0
- package/dist/engine/executor.js +24 -11
- package/dist/engine/executor.js.map +1 -1
- package/dist/engine/harnesses.d.ts +82 -18
- package/dist/engine/harnesses.js +191 -39
- package/dist/engine/harnesses.js.map +1 -1
- package/dist/engine/preview.js +2 -2
- package/dist/engine/preview.js.map +1 -1
- package/dist/engine/routing.d.ts +10 -0
- package/dist/engine/routing.js +67 -28
- package/dist/engine/routing.js.map +1 -1
- package/dist/engine/snapshot.d.ts +107 -7
- package/dist/engine/state.d.ts +4 -2
- package/dist/engine/state.js.map +1 -1
- package/dist/engine/sync.d.ts +96 -0
- package/dist/engine/sync.js +199 -0
- package/dist/engine/sync.js.map +1 -0
- package/dist/engine/team.d.ts +1 -0
- package/dist/engine/team.js +12 -8
- package/dist/engine/team.js.map +1 -1
- package/dist/expert/_main.md +96 -67
- package/dist/expert/agents/_index.md +10 -7
- package/dist/expert/agents/core-agents.md +4 -2
- package/dist/expert/agents/fixer.md +15 -12
- package/dist/expert/cli/acceptance.md +96 -78
- package/dist/expert/cli/api.md +26 -14
- package/dist/expert/cli/autonomous-operation.md +17 -19
- package/dist/expert/cli/browser.md +24 -24
- package/dist/expert/cli/checks.md +18 -10
- package/dist/expert/cli/cli.md +48 -41
- package/dist/expert/cli/configuration-migrations.md +43 -0
- package/dist/expert/cli/configuration.md +24 -14
- package/dist/expert/cli/controls.md +23 -11
- package/dist/expert/cli/dashboard-details.md +28 -10
- package/dist/expert/cli/dashboard-layout.md +15 -15
- package/dist/expert/cli/dashboard.md +8 -10
- package/dist/expert/cli/environment.md +33 -0
- package/dist/expert/cli/execution.md +10 -8
- package/dist/expert/cli/git-persistence.md +27 -21
- package/dist/expert/cli/git-preflight.md +8 -4
- package/dist/expert/cli/git-synchronization.md +32 -6
- package/dist/expert/cli/harness-plugins.md +12 -12
- package/dist/expert/cli/harnesses.md +22 -16
- package/dist/expert/cli/initialization-ui.md +14 -14
- package/dist/expert/cli/initialization.md +31 -21
- package/dist/expert/cli/installation.md +6 -0
- package/dist/expert/cli/isolation.md +5 -3
- package/dist/expert/cli/releasing.md +17 -3
- package/dist/expert/cli/retries.md +10 -8
- package/dist/expert/cli/run.md +7 -5
- package/dist/expert/cli/start.md +21 -15
- package/dist/expert/cli/status-view.md +15 -17
- package/dist/expert/cli/synchronization-setup.md +24 -0
- package/dist/expert/cli/terminal.md +14 -16
- package/dist/expert/cli/tool-management.md +60 -0
- package/dist/expert/cli/tool-runtime.md +35 -0
- package/dist/expert/cli/tools-migration.md +50 -0
- package/dist/expert/cli/tools.md +73 -0
- package/dist/expert/cli/trace-configuration.md +9 -11
- package/dist/expert/cli/updates.md +7 -7
- package/dist/expert/cli/windows-installer.md +67 -0
- package/dist/expert/cli/workspace.md +2 -0
- package/dist/expert/coding-standards/_index.md +11 -0
- package/dist/expert/coding-standards/naming.md +30 -0
- package/dist/expert/coding-standards/shared-logic.md +27 -0
- package/dist/expert/concepts/automatic-repair.md +33 -0
- package/dist/expert/concepts/engine-and-project.md +7 -5
- package/dist/expert/dictionary.md +18 -18
- package/dist/harness/plugins/claude-code/index.js +4 -2
- package/dist/harness/plugins/claude-code/index.js.map +1 -1
- package/dist/harness/plugins/cline/index.js +1 -0
- package/dist/harness/plugins/cline/index.js.map +1 -1
- package/dist/harness/plugins/gemini/index.js +2 -0
- package/dist/harness/plugins/gemini/index.js.map +1 -1
- package/dist/harness/plugins/github-copilot/index.js +1 -0
- package/dist/harness/plugins/github-copilot/index.js.map +1 -1
- package/dist/harness/plugins/openai-codex/index.js +13 -9
- package/dist/harness/plugins/openai-codex/index.js.map +1 -1
- package/dist/harness/plugins/opencode/index.js +1 -0
- package/dist/harness/plugins/opencode/index.js.map +1 -1
- package/dist/harness/plugins/qwen-code/index.js +1 -0
- package/dist/harness/plugins/qwen-code/index.js.map +1 -1
- package/dist/harness/types.d.ts +16 -5
- package/dist/project/config.d.ts +135 -48
- package/dist/project/config.js +331 -119
- package/dist/project/config.js.map +1 -1
- package/dist/project/configuration.d.ts +43 -0
- package/dist/project/configuration.js +165 -0
- package/dist/project/configuration.js.map +1 -0
- package/dist/project/defaults.d.ts +4 -2
- package/dist/project/defaults.js +10 -5
- package/dist/project/defaults.js.map +1 -1
- package/dist/project/git.d.ts +28 -0
- package/dist/project/git.js +81 -0
- package/dist/project/git.js.map +1 -1
- package/dist/project/migrations.d.ts +96 -0
- package/dist/project/migrations.js +301 -0
- package/dist/project/migrations.js.map +1 -0
- package/dist/project/publication.d.ts +57 -0
- package/dist/project/publication.js +117 -0
- package/dist/project/publication.js.map +1 -0
- package/dist/project/readiness.d.ts +14 -5
- package/dist/project/readiness.js +23 -22
- package/dist/project/readiness.js.map +1 -1
- package/dist/project/setup.js +2 -0
- package/dist/project/setup.js.map +1 -1
- package/dist/service/actions.d.ts +12 -4
- package/dist/service/actions.js +32 -2
- package/dist/service/actions.js.map +1 -1
- package/dist/service/control.d.ts +1 -1
- package/dist/service/control.js +1 -1
- package/dist/service/host.d.ts +5 -2
- package/dist/service/host.js +26 -16
- package/dist/service/host.js.map +1 -1
- package/dist/service/http.js +7 -2
- package/dist/service/http.js.map +1 -1
- package/dist/service/launcher.d.ts +2 -1
- package/dist/service/launcher.js +1 -0
- package/dist/service/launcher.js.map +1 -1
- package/dist/service/records.d.ts +3 -0
- package/dist/service/records.js +1 -1
- package/dist/service/records.js.map +1 -1
- package/dist/service/spa/app.css +39 -0
- package/dist/service/spa/app.js +242 -39
- package/dist/service/worker.js +1 -0
- package/dist/service/worker.js.map +1 -1
- package/dist/tools/environment.d.ts +122 -0
- package/dist/tools/environment.js +199 -0
- package/dist/tools/environment.js.map +1 -0
- package/dist/tools/model.d.ts +180 -0
- package/dist/tools/model.js +111 -0
- package/dist/tools/model.js.map +1 -0
- package/dist/tools/normalize.d.ts +51 -0
- package/dist/tools/normalize.js +321 -0
- package/dist/tools/normalize.js.map +1 -0
- package/dist/tools/operations.d.ts +198 -0
- package/dist/tools/operations.js +378 -0
- package/dist/tools/operations.js.map +1 -0
- package/dist/tools/readiness.d.ts +72 -0
- package/dist/tools/readiness.js +160 -0
- package/dist/tools/readiness.js.map +1 -0
- package/dist/ui/dashboard.d.ts +3 -0
- package/dist/ui/dashboard.js +173 -2
- package/dist/ui/dashboard.js.map +1 -1
- package/dist/ui/details.d.ts +35 -1
- package/dist/ui/details.js +103 -2
- package/dist/ui/details.js.map +1 -1
- package/dist/ui/secret.d.ts +8 -0
- package/dist/ui/secret.js +41 -0
- package/dist/ui/secret.js.map +1 -0
- package/dist/ui/status-view.d.ts +1 -0
- package/dist/ui/status-view.js +33 -8
- package/dist/ui/status-view.js.map +1 -1
- package/dist/ui/tool-forms.d.ts +24 -0
- package/dist/ui/tool-forms.js +133 -0
- package/dist/ui/tool-forms.js.map +1 -0
- package/package.json +1 -1
package/dist/engine/team.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../src/engine/team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;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AAE,QAAQ,CAAC,CAAC;YAC1I,CAAC;SACJ;KACJ,CAAC;IACF,IAAI,WAAW,EAAE,CAAC;QACd,KAAK,CAAC,IAAI,CAAC;YACP,IAAI,EAAE,UAAU;YAChB,WAAW,EACP,ybAAyb;YAC7b,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uCAAuC,EAAE;oBAClF,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE;oBACjG,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sDAAsD,EAAE;oBAC/F,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,6CAA6C,EAAE;iBAC5F;gBACD,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;aACnC;YACD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;SAC3J,CAAC,CAAC;IACP,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
package/dist/expert/_main.md
CHANGED
|
@@ -1,106 +1,135 @@
|
|
|
1
1
|
# Promptbook (`ptbk`)
|
|
2
2
|
|
|
3
|
-
Promptbook is one npm package, `ptbk`, providing the `ptbk` command-line utility. It operates a Git-backed project of three Book entities: **agents**, **tasks** and **chats**.
|
|
3
|
+
Promptbook is one npm package, `ptbk`, providing the `ptbk` command-line utility. It operates a Git-backed project of three Book entities: **agents**, **tasks** and **chats**. Canonical Books start with `AGENT <name>`, `TASK <name>` or `CHAT <name>` and share commitment syntax. Normalized opening-name content is logical identity, not a generated ID or filename key. System-created task/chat names include readable creation date/time without mandatory timestamp grammar. `chats/` holds conversations, Git-versioned `ptbk.json` holds configuration, ignored `.ptbk/` holds runtime state and `traces/<task-file-basename>/` holds evidence under the literal source filename without final `.book` or legacy `.md`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Core operating principles
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Automatic repair and useful unattended operation are foundational.** A started project should progress authorized work and solve routine problems with as little unnecessary user involvement as possible. Deterministic corrections and bounded retries handle obvious cases; unresolved/judgment-dependent problems go to the ordinary editable OPEN **Fixer**. Its simple initial Book aims to solve general problems and offload decisions, with User and Expert in its team. Consultation and learning are normal agent mechanisms. Users may customize all/some/no-User consultation; no special Fixer channel, privileged worker or hardcoded escalation policy is introduced. See [automatic repair](concepts/automatic-repair.md), [Fixer](agents/fixer.md) and [unattended operation](cli/autonomous-operation.md).
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Every engine owns one concrete project directory; exclusive locking prevents two local owners across installations. It runs with zero or many observing clients. Shared lifecycle states remain **running, pausing, pause and stopping**. Pause/ordinary stop drain without new claims; pending intent can be cancelled/changed. Force stop is immediate with best-effort owner cleanup; external hard kill has no cleanup guarantee. A dashboard is a lightweight cockpit/view/controller, never an independent scheduler: opening/closing one does not start/stop the engine. A running engine can legitimately wait for tasks or tools without being technically paused or stopped.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**Configuration evolves explicitly.** `promptbookVersion` records the initializing/last-migrating engine version. Compare semantic versions, including numeric prereleases. An older engine offers its update without downgrading the project. A newer one applies applicable sparse steps in order, then sets its version and commits the entire migration pass once, even with no transformation steps. Missing version means one fixed pre-versioning baseline, without structural age analysis. The first migration converts separate browser/harness settings into named [tools](cli/tools.md). See [configuration migrations](cli/configuration-migrations.md) and [first conversion](cli/tools-migration.md).
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
**Tools are pluggable named project resources, not additional Book entities.** Ordered `tools` records have `type`, `variant`, required `name`, optional `description` and `isEnabled` (default true). Initial types are BROWSER and HARNESS, with variant-specific typed settings. Multiple browser profiles/accounts and harness instances are supported. Different harness variants can be chosen for suitability; same-variant instances form an ordered availability/quota fallback chain. API keys are symbolic `${{ env.NAME }}` references, never committed values. Shared safe `.env` editing preserves historical assignments and adds timestamp/reason comments.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Init, CLI and dashboard use **one shared implementation** of tool types, validation, management, secret editing and persistence. Saved tool changes commit immediately and independently from active task edits. Enable/disable is primary, permanent removal secondary. In-use changes require the shared acknowledgement: tool `--force` preserves already acquired work, while the separate `ptbk stop --force` terminates the whole engine without deleting a tool. Last-enabled-type removal/disable needs its own warning/confirmation. Configuration/env/readiness refresh before tasks and during work/waits; newly available tools may serve the current task, not only the next one. See [DRY](coding-standards/shared-logic.md), [management](cli/tool-management.md) and [live tool use](cli/tool-runtime.md).
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
**Git history is an audit trail.** Authorized versioned operations commit by default with `PTBK: ` and applicable name correlation. Tasks, human-facing messages, tool changes, normalization and whole migration passes have their proper separate boundaries. No blanket staging, history rewriting or accidental secret commits. Optional `isAutoSync` defaults false and uses the repository's configured origin and started branch without duplicated JSON destination settings. Enabled sync attempts pull every 60 seconds and before logical mutations/commits, then publishes completed local work. Failed remote operations do not stop safe local work; preserve dirty state and defer unsafe integration. Real integrations use visible non-fast-forward merges, with judgment-dependent conflicts routed through ordinary Fixer. See [persistence](cli/git-persistence.md) and [synchronization](cli/git-synchronization.md).
|
|
18
|
+
|
|
19
|
+
## Initialization, work and cockpit
|
|
20
|
+
|
|
21
|
+
Initialization is finite attended technical setup. Its first new-project input is intent, preserved verbatim with linked assets in the initialized project's `specs/_initial.md`. It prepares missing core roles and simple selected tools, saves one ordinary Expert bootstrap, commits setup by default and starts the background agenda. It does not expose advanced account-pooling choices or execute the bootstrap inline. The check-command question is removed: preserve real checks or create an explicit nonblocking informational placeholder, never claim it is actual validation. Add optional autosync setup: no asks nothing further; yes offers private-by-default GitHub publication or another supplied origin. New repositories use main; existing branch/history are preserved. Remote failure is separate from ready local work.
|
|
22
|
+
|
|
23
|
+
Init shows progress, Expert as visual guide and a brief truthful celebration, then returns without waiting for task completion or opening a dashboard; `ptbk dashboard` is the main next-action hint. Ongoing work fills missing routing through Manager, executes one task at a time, handles follow-ups and discovers useful goal-driven work when no backlog remains. Ordinary `--no-commit` workflows remain explicit exceptions, not permission to silently bypass required committed configuration evolution or saved tool management. `ptbk run` is a finite configured queue workflow, not an indefinite agenda.
|
|
24
|
+
|
|
25
|
+
The project dashboard is a cockpit with compact attention, work, visible lifecycle controls, tools, queue/results and connection regions. Details use consistent keyboard-accessible drill-down for actual execution context, named-tool management and browser diagnosis. **A synchronization panel, its details and manual Synchronize now action exist only while autosync is enabled.** Browser repair and synchronization call shared engine operations; clients do not duplicate business logic. Technical detail is collapsed initially while significant blockers remain visible. Terminal, lightweight browser SPA and independently usable API control the same service. Protected remote dashboard access defaults on with HTTP; `--no-tunnel` keeps it local and is unrelated to Git autosync.
|
|
26
|
+
|
|
27
|
+
`ptbk dashboard --global` is a separate refreshed host-wide table of running engines, across installations/versions and independent of CWD. It stays open at zero entries and attaches to a selected project without cd or starting work. There is no global engine. Ordinary project dashboard entry still diagnoses a missing service actionably.
|
|
28
|
+
|
|
29
|
+
Chatter is the editable core default for human-led project conversation. New chat first offers Chatter (Enter) or another agent; only the latter expands all valid targets. Initial TEAM includes the other initialized roles; specialist advice and execution use normal consultation/tasks. Existing chats/questions retain their real authors. Human-facing messages commit individually, task-internal consultations with their result, and conversation-only consultations through scoped authoring persistence.
|
|
30
|
+
|
|
31
|
+
Logical task identity, Git/source provenance and evidence location remain distinct. Trace directories exactly match source basenames, not normalized TASK names or opaque IDs. Evidence preserves declared names, revisions, actual tool instances, available harness output/events and enabled attributable browser recording. Init saves independent trace-commit, video-ignore and recording choices; runtime, secret stores and browser sessions stay ignored regardless.
|
|
18
32
|
|
|
19
33
|
## Reading this specification
|
|
20
34
|
|
|
21
|
-
The [whitepaper](whitepaper.md) explains APT principles and
|
|
35
|
+
These files define target behavior, **not a claim that implementation or tests already meet it**. The [whitepaper](whitepaper.md) explains APT principles and explicitly long-term directions; those do not implicitly become current requirements.
|
|
36
|
+
|
|
37
|
+
Keep specifications in English, concise and focused on observable behavior, important contracts and invariants. Internal representations/algorithms/module layout remain implementation choices unless explicitly necessary, such as the shared typed tool contract and prohibition of duplicated domain logic. Separate functional behavior from presentation and cross-link rather than copying full rules.
|
|
38
|
+
|
|
39
|
+
[Project model](concepts/project-model.md) · [Engine/project evolution](concepts/engine-and-project.md) · [Automatic repair](concepts/automatic-repair.md) · [Coding standards](coding-standards/_index.md) · [Naming](coding-standards/naming.md) · [Shared logic and DRY](coding-standards/shared-logic.md) · [Dictionary](dictionary.md)
|
|
40
|
+
|
|
41
|
+
[Agents](agents/_index.md) · [Book language](book-language/_index.md) · [References and lookup](book-language/references.md) · [Commitment index](book-language/commitments/_index.md)
|
|
22
42
|
|
|
23
|
-
|
|
43
|
+
## Configuration and tools
|
|
24
44
|
|
|
25
|
-
|
|
45
|
+
- [Configuration](cli/configuration.md): Versioned defaults, explicit overrides, live refresh and persistence boundaries.
|
|
46
|
+
- [Configuration migrations](cli/configuration-migrations.md): Version comparison, fixed versionless baseline, sparse ordered steps and one committed pass.
|
|
47
|
+
- [First tools migration](cli/tools-migration.md): Preserve existing browser/harness choices, canonical spellings and autosync off.
|
|
48
|
+
- [Tools](cli/tools.md): Named typed resources, multiple accounts/profiles and ordered same-variant fallback.
|
|
49
|
+
- [Tool management](cli/tool-management.md): Shared CLI/init/dashboard operations, immediate commits and confirmations.
|
|
50
|
+
- [Live tool use](cli/tool-runtime.md): Continuous readiness, current-task additions and retained acquired uses.
|
|
51
|
+
- [Environment references and editing](cli/environment.md): Symbolic secrets, non-destructive changes and local audit history.
|
|
52
|
+
- [Browser](cli/browser.md): Per-instance profile sources, account-aware selection, ownership and recovery.
|
|
53
|
+
- [Harnesses](cli/harnesses.md): Global executables, named authentication contexts, capabilities and authorized fallback.
|
|
54
|
+
- [Harness adapters](cli/harness-plugins.md): Common typed setup/execution/evidence contracts and featured/More catalog.
|
|
55
|
+
- [Harness updates](cli/harness-updates.md): Selected shared installations and safe maintenance.
|
|
26
56
|
|
|
27
57
|
## Installation and operation
|
|
28
58
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- [
|
|
32
|
-
- [
|
|
33
|
-
- [
|
|
34
|
-
- [
|
|
35
|
-
- [
|
|
36
|
-
- [
|
|
37
|
-
- [
|
|
38
|
-
- [
|
|
39
|
-
- [
|
|
40
|
-
- [
|
|
41
|
-
- [
|
|
42
|
-
- [
|
|
43
|
-
- [
|
|
59
|
+
The Windows installer is an additional release artifact, not a second engine or a replacement for npm. It prepares missing prerequisites, installs the corresponding `ptbk` version and hands an ordinary user-owned project to the existing interactive init.
|
|
60
|
+
|
|
61
|
+
- [Installation](cli/installation.md): Global/local package, Windows entry point and destination-specific dependency setup.
|
|
62
|
+
- [Windows installer](cli/windows-installer.md): Thin prerequisite bootstrap, home-based first project and automatic terminal/init handoff.
|
|
63
|
+
- [Checks and publication on GitHub Actions](cli/releasing.md): Required hosted validation, npm publication and matching Windows release artifact.
|
|
64
|
+
- [Engine updates](cli/updates.md): Invoked installation, compatibility gate, preserved setup input and rerun.
|
|
65
|
+
- [Commands](cli/cli.md): Command surface/options, named tools, lifecycle and global dashboard.
|
|
66
|
+
- [Workspace](cli/workspace.md): Source/specification/trace/runtime locations and external discovery metadata.
|
|
67
|
+
- [Initialization](cli/initialization.md): Intent preservation, simple tool setup, check placeholder and background start.
|
|
68
|
+
- [Initialization synchronization setup](cli/synchronization-setup.md): Opt-in GitHub/custom-origin publication, private default and local/remote outcome separation.
|
|
69
|
+
- [First runnable task](cli/first-task.md): Ordinary Expert bootstrap, without a duplicate starter or inline implementation phase.
|
|
70
|
+
- [Nested projects](cli/nested-projects.md): Explicit child Git boundaries.
|
|
71
|
+
- [Finite run](cli/run.md): Bounded queue workflow with selected execution constraints and live resources.
|
|
72
|
+
- [Start](cli/start.md): Automatic progression, running resource waits and one-shot launch output.
|
|
73
|
+
- [Unattended operation](cli/autonomous-operation.md): Sustained authorized work and ordinary automatic repair.
|
|
74
|
+
- [Process modes](cli/process-modes.md): Engine placement and independent clients.
|
|
75
|
+
- [Service lifecycle](cli/service-lifecycle.md): Four states, draining, cancellation, restart, force stop and signals.
|
|
76
|
+
- [Project locking](cli/locking.md): One local engine owner and controlled cleanup.
|
|
44
77
|
- [Startup persistence](cli/persistence.md): Recovery across operating-system restarts.
|
|
45
78
|
|
|
46
79
|
## Controls and interaction
|
|
47
80
|
|
|
48
|
-
- [CLI presentation
|
|
49
|
-
- [Initialization experience](cli/initialization-ui.md): Intent-first
|
|
50
|
-
- [Rich
|
|
51
|
-
- [Help, about and version](cli/help.md): Scoped help and actual running version.
|
|
52
|
-
- [Shared controls](cli/controls.md): One engine
|
|
53
|
-
- [
|
|
54
|
-
- [Dashboard
|
|
55
|
-
- [Dashboard details](cli/dashboard-details.md):
|
|
56
|
-
- [Terminal dashboard](cli/terminal.md): Independent
|
|
57
|
-
- [Global dashboard](cli/global-dashboard.md): Host-wide
|
|
58
|
-
- [Service API](cli/api.md):
|
|
59
|
-
- [Browser dashboard](cli/dashboard.md): Lightweight JavaScript SPA
|
|
60
|
-
- [Remote access](cli/remote-access.md): Protected tunnel,
|
|
81
|
+
- [CLI presentation](cli/interactive-ui.md): Pretty/raw, finite wizards, live views and one-shot results.
|
|
82
|
+
- [Initialization experience](cli/initialization-ui.md): Intent-first progress, simple choices, conditional sync and Expert guide.
|
|
83
|
+
- [Rich composer](cli/rich-input.md): Multiline input, pasted blocks, images and preserved attachments.
|
|
84
|
+
- [Help, about and version](cli/help.md): Scoped help and actual invoked/running version.
|
|
85
|
+
- [Shared controls](cli/controls.md): One engine/domain model for saved tools, runtime operations and sync.
|
|
86
|
+
- [Shared project status](cli/status-view.md): Live/snapshot cockpit, truthful waits and connection data.
|
|
87
|
+
- [Dashboard layout](cli/dashboard-layout.md): Main regions and consistent drill-down hierarchy.
|
|
88
|
+
- [Dashboard details](cli/dashboard-details.md): Execution, tool management, per-browser diagnostics and conditional synchronization.
|
|
89
|
+
- [Terminal dashboard](cli/terminal.md): Independent attachment and keyboard controls.
|
|
90
|
+
- [Global dashboard](cli/global-dashboard.md): Host-wide live discovery/table and project attachment.
|
|
91
|
+
- [Service API](cli/api.md): Independent authenticated state/control and shared management operations.
|
|
92
|
+
- [Browser dashboard](cli/dashboard.md): Lightweight JavaScript SPA using the same API.
|
|
93
|
+
- [Remote access](cli/remote-access.md): Protected tunnel, pairing, opt-out and lifetime.
|
|
61
94
|
- [Tunnel provider decision](cli/tunnel-options.md): Alternatives and stable-hostname tradeoffs.
|
|
62
|
-
- [Chats](cli/chats.md): Durable named conversations,
|
|
63
|
-
- [Chat UI](cli/chat-ui.md): Chatter-first entry,
|
|
64
|
-
- [Human interactions](cli/user-interactions.md):
|
|
95
|
+
- [Chats](cli/chats.md): Durable named conversations, attribution and commit boundaries.
|
|
96
|
+
- [Chat UI](cli/chat-ui.md): Chatter-first entry, existing threads and unread/actionable state.
|
|
97
|
+
- [Human interactions](cli/user-interactions.md): Ordinary attributed questions and once-only replies.
|
|
65
98
|
- [Channels](cli/channels.md): Terminal, CLI, browser and API.
|
|
66
|
-
- [Browser](cli/browser.md): Four profile sources, effective-profile inspection, safe ownership and automatic/manual recovery.
|
|
67
99
|
|
|
68
100
|
## Agents and work
|
|
69
101
|
|
|
70
102
|
- [Agent context](cli/agent-context.md): Effective role, task and project instructions.
|
|
71
|
-
- [Agent visual identity](agents/visual-identity.md):
|
|
72
|
-
- [Chatter](agents/chatter.md): Default
|
|
73
|
-
- [Fixer](agents/fixer.md): OPEN core
|
|
74
|
-
- [Harnesses](cli/harnesses.md): Selected setup, global installations, authentication and execution.
|
|
75
|
-
- [Harness plugins](cli/harness-plugins.md): Common setup/execution/evidence contract and featured/More presentation.
|
|
76
|
-
- [Harness updates](cli/harness-updates.md): Selected setup updates and safe maintenance.
|
|
103
|
+
- [Agent visual identity](agents/visual-identity.md): Mascots, name identity and truthful activity.
|
|
104
|
+
- [Chatter](agents/chatter.md): Default conversation, initial TEAM and ordinary delegation.
|
|
105
|
+
- [Fixer](agents/fixer.md): Ordinary editable OPEN problem-solving core and customizable consultation policy.
|
|
77
106
|
- [TEAM consultations](cli/team.md): Bounded task- or conversation-scoped specialist advice.
|
|
78
107
|
- [Authoring and saving](cli/authoring.md): Commit authorized versioned changes before dispatch.
|
|
79
|
-
- [Generated names](cli/generated-names.md):
|
|
80
|
-
- [Task Books](cli/task-books.md):
|
|
81
|
-
- [Markdown tasks](cli/task-markdown.md): Checkmark
|
|
82
|
-
- [Task identity](cli/task-identity.md): Opening
|
|
108
|
+
- [Generated names](cli/generated-names.md): Readable creation time, normalized collisions and separate filenames.
|
|
109
|
+
- [Task Books](cli/task-books.md): Bounded work and completion stamps.
|
|
110
|
+
- [Markdown tasks](cli/task-markdown.md): Checkmark compatibility sources.
|
|
111
|
+
- [Task identity](cli/task-identity.md): Opening name, collisions and provenance separate from trace filenames.
|
|
83
112
|
- [Task origins](cli/task-origins.md): Explicit, derived and goal-driven work.
|
|
84
113
|
- [Task relationships](cli/task-relationships.md): References, subtasks and prerequisites.
|
|
85
114
|
- [Eligibility](cli/eligibility.md): Ready work, assignment candidates and constraints.
|
|
86
|
-
- [Goal discovery](cli/goal-discovery.md): Due enquiries
|
|
115
|
+
- [Goal discovery](cli/goal-discovery.md): Due enquiries without an existing backlog.
|
|
87
116
|
- [Earliest start](cli/not-before.md): Time boundaries and timezone.
|
|
88
117
|
- [Recurrence](cli/recurrence.md): Repeated occurrences and downtime.
|
|
89
118
|
|
|
90
119
|
## Results, safety and service workflows
|
|
91
120
|
|
|
92
|
-
- [Execution](cli/execution.md):
|
|
93
|
-
- [Checks](cli/checks.md):
|
|
121
|
+
- [Execution](cli/execution.md): Shared task lifecycle, live tools, scoped result and no new claims while draining.
|
|
122
|
+
- [Checks](cli/checks.md): Honest placeholder versus real validation and ordinary repairs.
|
|
94
123
|
- [Errors](cli/errors.md): Understandable failures, evidence and next actions.
|
|
95
|
-
- [Retries](cli/retries.md): Bounded
|
|
96
|
-
- [Git preflight](cli/git-preflight.md):
|
|
97
|
-
- [Git persistence](cli/git-persistence.md):
|
|
98
|
-
- [Git synchronization](cli/git-synchronization.md):
|
|
124
|
+
- [Retries](cli/retries.md): Bounded recovery, authorized account fallback and waits.
|
|
125
|
+
- [Git preflight](cli/git-preflight.md): Safe setup, existing history and main for a new repository.
|
|
126
|
+
- [Git persistence](cli/git-persistence.md): Scoped/interleaved operations, immutable history and evidence inclusion.
|
|
127
|
+
- [Git synchronization](cli/git-synchronization.md): Opt-in 60-second/boundary attempts, visible merges and independent local progress.
|
|
99
128
|
- [Recovery](cli/recovery.md): Interrupted work without duplicate effects or data loss.
|
|
100
|
-
- [Isolation](cli/isolation.md): Optional worktrees and integration.
|
|
101
|
-
- [Task traces](cli/traces.md): Literal
|
|
102
|
-
- [Trace configuration](cli/trace-configuration.md): Independent recording and Git/video
|
|
103
|
-
- [Planning](cli/planning.md): Read-only discussion and approved task
|
|
104
|
-
- [
|
|
105
|
-
- [Operational quality](cli/operations.md): Cross-platform, bounded
|
|
106
|
-
- [Acceptance scenarios](cli/acceptance.md):
|
|
129
|
+
- [Isolation](cli/isolation.md): Optional task worktrees with preserved result commits and visible integration.
|
|
130
|
+
- [Task traces](cli/traces.md): Literal source basenames, provenance, available output, video and redaction.
|
|
131
|
+
- [Trace configuration](cli/trace-configuration.md): Independent recording and Git/video choices.
|
|
132
|
+
- [Planning](cli/planning.md): Read-only discussion and approved task saves.
|
|
133
|
+
- [Book migration](cli/migration.md): Lossless Markdown/legacy-header conversion, distinct from configuration evolution.
|
|
134
|
+
- [Operational quality](cli/operations.md): Cross-platform, bounded, observable operation.
|
|
135
|
+
- [Acceptance scenarios](cli/acceptance.md): Existing and new verifiable outcomes, supplemented by topic-specific acceptance.
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
# Agents
|
|
2
2
|
|
|
3
|
-
[Main specification](../_main.md) · [Project model](../concepts/project-model.md)
|
|
3
|
+
[Main specification](../_main.md) · [Project model](../concepts/project-model.md) · [Automatic repair](../concepts/automatic-repair.md)
|
|
4
4
|
|
|
5
|
-
An agent is a persistent role, goal, instructions and learned project knowledge, not a permanently running model call. Its Book starts with [AGENT](../book-language/commitments/agent.md), for example `AGENT Developer`;
|
|
5
|
+
An agent is a persistent role, goal, instructions and learned project knowledge, not a permanently running model call. Its Book starts with [AGENT](../book-language/commitments/agent.md), for example `AGENT Developer`; Developer supplies the name and later commitments develop the role. Agents, tasks and chats are distinct Book entities sharing syntax and [normalized name references](../book-language/references.md). Only one project task executes at a time; ordinary chats/read-only consultations do not by themselves execute queued work.
|
|
6
6
|
|
|
7
7
|
- [Core agents](core-agents.md): Minimal editable required roles Adam, Manager, Teacher, Fixer and Chatter.
|
|
8
|
-
- [Chatter](chatter.md): Default human
|
|
9
|
-
- [Non-agents](non-agents.md) and [Expert](expert.md): Engine-defined references/behavior, not project
|
|
10
|
-
- [Fixer](fixer.md):
|
|
8
|
+
- [Chatter](chatter.md): Default human conversation, with specialist TEAM consultation and ordinary tasks.
|
|
9
|
+
- [Non-agents](non-agents.md) and [Expert](expert.md): Engine-defined references/behavior, not project Books.
|
|
10
|
+
- [Fixer](fixer.md): Ordinary OPEN general problem solver, expected for system-routed problems and customizable like other agents.
|
|
11
|
+
- [Automatic repair principle](../concepts/automatic-repair.md): First-class cross-system recovery and minimal unnecessary user decisions, not a special Fixer implementation/channel.
|
|
11
12
|
- [Manager](manager.md): Automatic task assignment.
|
|
12
|
-
- [Teacher](teacher.md) and [learning](learning.md): Ordinary
|
|
13
|
+
- [Teacher](teacher.md) and [learning](learning.md): Ordinary OPEN/CLOSED learning.
|
|
13
14
|
- [References](../book-language/references.md): One ordered resolver across all entity kinds.
|
|
14
15
|
- [Visual identity](visual-identity.md) and [consistency](consistency.md): Stable presentation and guarded execution.
|
|
15
16
|
|
|
16
|
-
Project agents normally live under
|
|
17
|
+
Project agents normally live under agents/ and required core Books under agents/.core/. Location never substitutes for AGENT. Required presence does not grant privilege or different learning/communication. Fixer's initial simple Book includes User and Expert in TEAM, but users can customize consultation policy or remove User; reinit preserves such changes. Tool/account configuration and available capabilities constrain every agent, including Fixer, rather than giving cores a hidden execution route.
|
|
18
|
+
|
|
19
|
+
Void/Null, User and Expert come from the running engine. Chatter's promoted default [chat picker](../cli/chat-ui.md) is an entry policy, not another agent kind or automatic scheduler. See [engine/project evolution](../concepts/engine-and-project.md).
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
The engine expects five editable project roles: **Adam, Manager, Teacher, Fixer and Chatter**, materialized only if missing under `agents/.core/` as `adam.book`, `manager.book`, `teacher.book`, `fixer.book` and `chatter.book`. Their opening commitments are `AGENT <role name>`; core names do not acquire task/chat date-time decoration. A core has ordinary Book, routing, TEAM, learning, Git and runtime behavior. Being required does not grant a special inference mechanism or extra authority.
|
|
6
6
|
|
|
7
|
-
Initialize each missing role individually with a small comprehensible boilerplate, not an embedded encyclopedia. Existing Books belong to the project: never reset, replace or bulk-regenerate them during reinit/upgrade, including learned/customized versions. Adding a required Chatter preserves all previously present roles. Invalid/colliding sources
|
|
7
|
+
Initialize each missing role individually with a small comprehensible boilerplate, not an embedded encyclopedia. Existing Books belong to the project: never reset, replace or bulk-regenerate them during reinit/upgrade, including learned/customized versions. Adding a required Chatter preserves all previously present roles. Invalid/colliding sources use the normal resolver and [automatic repair](../concepts/automatic-repair.md), not silent overwriting.
|
|
8
8
|
|
|
9
|
-
Initial policies: Adam is the common inheritance foundation (`FROM @Void`, initially CLOSED); Manager inherits Adam; Teacher inherits Expert and must remain CLOSED against recursive teaching
|
|
9
|
+
Initial policies: Adam is the common inheritance foundation (`FROM @Void`, initially CLOSED); Manager inherits Adam; Teacher inherits Expert and must remain CLOSED against recursive teaching. Fixer is OPEN, has User and Expert in its initial TEAM, and has a simple general problem-solving goal. Chatter uses ordinary Adam inheritance/default OPEN learning and focuses on user conversation. These are individual Book policies, not restrictions imposed on every core agent.
|
|
10
|
+
|
|
11
|
+
Fixer is expected because system problems are routed to it, not because it has a special escalation channel. Its ordinary TEAM and learning support increasingly project-specific decisions. Users may change consultation policy or remove User from its team; reinit does not undo that customization. See [Fixer](fixer.md) and the separate first-class [automatic repair contract](../concepts/automatic-repair.md).
|
|
10
12
|
|
|
11
13
|
At Chatter creation, its readable TEAM relationships include all other initialized/selected agents, both core and specialist, and access to Expert for engine questions. Do not include itself. Users can customize or extend that team later; initializing a missing role does not rewrite existing teams. See [Chatter](chatter.md).
|
|
12
14
|
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
# Fixer:
|
|
1
|
+
# Fixer: ordinary core problem-solving agent
|
|
2
2
|
|
|
3
|
-
[Agents](_index.md) · [Core agents](core-agents.md) · [Learning](learning.md)
|
|
3
|
+
[Agents](_index.md) · [Core agents](core-agents.md) · [Automatic repair principle](../concepts/automatic-repair.md) · [Learning](learning.md)
|
|
4
4
|
|
|
5
|
-
**Fixer is an ordinary editable, default-OPEN core agent**, initialized as a small `agents/.core/fixer.book`. Its
|
|
5
|
+
**Fixer is an ordinary editable, default-OPEN core agent**, initialized as a small `agents/.core/fixer.book`. Its general purpose is to solve problems and offload decisions from the user. It is not restricted to Promptbook internals: project health, broken workflows, configuration, recurring failures and other authorized project problems are all within that general role.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The engine expects Fixer in every project because it automatically routes certain problems, such as merge conflicts and crash/recovery failures, to this role. That required presence is why it is a core agent; it does not confer special inference, privileged execution or a separate communication mechanism. Other agents can consult Fixer, and Fixer can consult other agents through ordinary TEAM relationships.
|
|
8
|
+
|
|
9
|
+
A deliberately minimal initial example:
|
|
8
10
|
|
|
9
11
|
```book
|
|
10
|
-
Fixer
|
|
11
|
-
ENTITY AGENT
|
|
12
|
+
AGENT Fixer
|
|
12
13
|
FROM @Adam
|
|
13
|
-
GOAL
|
|
14
|
+
GOAL Solve problems and reduce the decisions the user needs to make.
|
|
15
|
+
RULE Resolve routine authorized problems yourself; consult the team when you genuinely need help.
|
|
16
|
+
TEAM @User
|
|
14
17
|
TEAM Consult @Expert for current Promptbook syntax and capabilities.
|
|
15
|
-
OPEN Learn verified project-specific
|
|
18
|
+
OPEN Learn verified project-specific problem-solving practices and user preferences.
|
|
16
19
|
```
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
User is in the initial team, not hardwired into every future escalation. The Book and its TEAM are customizable: a user can require consultation on everything, define detailed thresholds, or remove User and request autonomous resolution. These are ordinary agent instructions subject to the project's authority and safety rules. Preserve existing and learned Books during reinit/upgrade; do not reinsert a deliberately removed team member. Expert remains general and engine-owned, while Fixer applies current engine knowledge to local context.
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
Fixer can inspect available logs, task traces, actual diagnostics and project sources without inventing evidence or disclosing secrets. Examples include malformed Books, normalized-name collisions, unresolved references, failed migrations, unavailable tools and difficult Git conflicts. Safe deterministic corrections/retries are part of the shared [automatic repair path](../concepts/automatic-repair.md); not every fault needs a model call or user question.
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
Run justified health enquiries at a bounded persisted cadence and after relevant diagnostic changes. They are ordinary scheduled/derived work in the project's single-task agenda, not an additional permanent privileged service. Diagnose source, impact and confidence; repair/check authorized work and ask the team only as needed under the current Book policy. The mechanism does not prescribe a special prompt, dashboard category or transport for those questions.
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
Fixer uses precisely the same OPEN/CLOSED and Teacher mechanisms as other agents. Verified outcomes and user replies can teach useful repair preferences through ordinary work committed to its own Book. Suppress repeated unresolved requests for the same condition and avoid repair loops. If no work is justified, no model call or manufactured modification is needed. If execution resources are unavailable, retain the issue visibly until normal work can proceed; being core does not make Fixer runnable without a harness.
|