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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# Promptbook self-update
|
|
2
2
|
|
|
3
|
-
[Main specification](../_main.md)
|
|
3
|
+
[Main specification](../_main.md) · [Configuration compatibility](configuration-migrations.md)
|
|
4
4
|
|
|
5
|
-
Self-update targets the
|
|
5
|
+
Self-update targets the installation actually running, independently of the destination project and [harness updates](harness-updates.md). Identify current version and local/global scope correctly. Do not update another project's copy or every installation on the machine.
|
|
6
6
|
|
|
7
|
-
Early
|
|
7
|
+
Early interactive init may check for a newer applicable release. New-project intent remains the first question; retain that draft through technical decisions. Offer an available optional update with Yes focused, showing current/target versions and affected installation. No may continue with the current engine **only when it is compatible with the project's configuration**.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
A saved `promptbookVersion` newer than the running engine is a separate required compatibility gate before project work/configuration writes. Explain both versions and offer this same update flow. Declining, unavailable updates or failure cannot downgrade the project or bypass the gate. Noninteractive use gives the actionable update/rerun requirement without silently accepting consent. Read-only inspection can still report incompatibility.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Yes updates the same installation: originating project dependency for local invocation, active global installation for global invocation. Preserve existing dependency versus devDependency placement. After success, end the invocation before target setup and ask for a rerun. Keep accepted intent/assets as a recoverable bounded draft without premature project publication; do not demand repasting or pretend the already-loaded engine changed in place.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Update failure can offer retry or continued current-version operation only where compatibility permits it. Noninteractive optional update/skip must be explicitly supplied; no hidden prompt or accepted interactive default. A requested successful update still ends with a rerun instruction.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Optional release lookup is bounded/best-effort: offline lookup is unknown, not up-to-date, and does not prevent compatible local initialization. The known project-version gate still applies offline. Unsupported update methods are diagnosed without mutating a different install. Read-only commands perform no update, and a live agenda never replaces its executing engine mid-task. Configuration migration after a compatible rerun preserves customized project Books.
|
|
16
16
|
|
|
17
17
|
See [installation](installation.md), [initialization experience](initialization-ui.md) and [version display](help.md).
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Windows installer
|
|
2
|
+
|
|
3
|
+
[Main specification](../_main.md) · [Installation](installation.md) · [Release publication](releasing.md) · [Initialization](initialization.md)
|
|
4
|
+
|
|
5
|
+
## Purpose and boundary
|
|
6
|
+
|
|
7
|
+
Give nontechnical users, initially a marketing agency, a short path from downloading Promptbook to the existing interactive `ptbk init`. They must not need to understand npm, install Git/Node.js manually, choose a project location from scratch or type the first command. Instructions and demonstration videos can begin with the initializer already open in a terminal.
|
|
8
|
+
|
|
9
|
+
This is an incremental onboarding aid, **not a complete graphical/customer-ready application**. Windows is the initial scope; installers for other operating systems are future work. Existing global/local npm installation and CLI workflows remain supported and unchanged.
|
|
10
|
+
|
|
11
|
+
The installer is a very thin bootstrap layer: prepare prerequisites, install the ordinary npm package, prepare an empty destination and launch the ordinary CLI. Do not fork the engine, reimplement the initialization wizard, configure project tools/authentication separately or introduce another scheduler/updater. Project semantics remain in the [shared domain logic](../coding-standards/shared-logic.md).
|
|
12
|
+
|
|
13
|
+
## Download and version contract
|
|
14
|
+
|
|
15
|
+
Every newly published Promptbook version includes a normal double-clickable Windows installer attached to its corresponding GitHub Release. An `.exe` bootstrapper or `.msi` is acceptable; the packaging framework and final format are implementation choices, not a requirement to maintain both. The entry point must work before Node.js, npm or Git is installed.
|
|
16
|
+
|
|
17
|
+
The artifact identifies its Promptbook version and supported Windows architecture/platform. Build it automatically from the same immutable release source as `ptbk`, as part of the ordinary release build/publication, not a separately maintained manual build. See [release checks and publication](releasing.md).
|
|
18
|
+
|
|
19
|
+
Install the exact advertised npm version, equivalent to `npm install -g ptbk@<release-version>`, rather than resolving an unpinned `latest`. Verify the installed version and executable that will be handed to the terminal. A different existing version is not silently accepted as the advertised version or silently downgraded; explain and obtain authorization for any replacement of the selected global installation. Leave other project-local installations alone. Subsequent optional CLI updates retain the existing [self-update](updates.md) rules.
|
|
20
|
+
|
|
21
|
+
The initial installer may download dependencies and the package; a fully offline bundle is not required. Explain network requirements and failures without presenting incomplete preparation as success.
|
|
22
|
+
|
|
23
|
+
## Prerequisite preparation
|
|
24
|
+
|
|
25
|
+
Inspect Node.js, npm and Git individually in the environment of the user who will run Promptbook. Verify executable usability and compatibility with the target package's declared requirements; finding a filename alone is insufficient. Reuse compatible existing installations without reinstalling them. Install only missing prerequisites, including npm when absent, using official distributions and validated downloads. Do not install a duplicate Node.js merely because npm is missing or an existing executable needs to be made available to the new terminal.
|
|
26
|
+
|
|
27
|
+
An unusable or incompatible existing installation needs an understandable repair/update decision, not a silent replacement of the user's toolchain. Preserve unrelated tools, package-manager settings, PATH entries and Git configuration. Do not invent a Git author or require a GitHub account in the installer; project Git setup belongs to init.
|
|
28
|
+
|
|
29
|
+
Prepare a usable global `ptbk` installation for the initiating user. Show concise progress and the planned dependencies/changes; technical output can be available as diagnostics rather than the main interface. Ordinary OS permission prompts are allowed where needed, but use elevation only for operations that require it. Project creation and CLI handoff run as the original user, not as an elevated administrator or a different administrator account.
|
|
30
|
+
|
|
31
|
+
Make the selected executables available immediately to the launched terminal, including fresh PATH changes, and to subsequent ordinary terminals. Do not require a log-out, manual environment-variable editing or a pre-existing Windows Terminal application. Never bypass OS security warnings or relax machine-wide execution policy to make launching work. An unavoidable platform/restart prerequisite is an explicit incomplete state with a recovery action, not a successful handoff.
|
|
32
|
+
|
|
33
|
+
## Project location
|
|
34
|
+
|
|
35
|
+
Propose a writable projects root beneath the initiating user's actual home, defaulting to `%USERPROFILE%\Promptbook`. Show the resolved path and allow a different location. Create it if missing, otherwise reuse it. This is an ordinary container for independent project directories, not itself a Promptbook project, Git repository or global engine workspace.
|
|
36
|
+
|
|
37
|
+
Offer **Create the first project** with an editable, sensible folder name and a way to skip it. Create one empty child directory for the accepted project. Folder naming is not a project brief; intent is still collected by init. Do not prepopulate Books, `ptbk.json`, package metadata or `.git` in either the projects root or its new child.
|
|
38
|
+
|
|
39
|
+
Validate writability and valid Windows names before handoff. A collision must not overwrite content: offer another name or explicit reuse of an existing empty directory. Do not silently initialize a nonempty directory, create a duplicate project on retry, or interpret a project name as a path escaping the selected root. Spaces, Unicode and shell-special characters in valid paths must be handled safely without changing their meaning or executing them as commands.
|
|
40
|
+
|
|
41
|
+
Skipping the first project leaves the CLI installed and reports that no project was initialized. It must not initialize the projects root as a fallback. Show how to return to ordinary project initialization; no separate graphical project manager is required.
|
|
42
|
+
|
|
43
|
+
## Terminal handoff
|
|
44
|
+
|
|
45
|
+
For an accepted first project, the normal completion action opens a visible interactive terminal **and starts `ptbk init` automatically** in that directory. Pass the same destination explicitly through the existing `--path` selection so init reuses it instead of asking the user to choose another current-directory/subfolder location. Resolve the intended installed CLI rather than accidentally invoking another version or downloading one through an unpinned command.
|
|
46
|
+
|
|
47
|
+
The terminal supports the existing interactive wizard with working input/output. Show the command being run, keep the terminal open after success, cancellation or error, and leave the user in the project directory. Users continue in the CLI; there is no requirement for a graphical version of init. From this point, the normal intent-first wizard owns local/global package choice, Git preparation, tools and login, configuration, setup commits and background start.
|
|
48
|
+
|
|
49
|
+
Installer completion does not mean project initialization, authentication or the first task has completed. Do not start a second engine or dashboard around init; its ordinary completion and `ptbk dashboard` hint remain authoritative. Closing the installer must not terminate the handed-off terminal or an engine subsequently started by init.
|
|
50
|
+
|
|
51
|
+
If automatic terminal launch is unavailable, report the failed handoff distinctly and provide Retry plus the exact project directory and correctly quoted command to run. A merely prepared/copied command is a recovery path, not the normal successful automatic-handoff experience. Cancelling init preserves its normal resumable behavior rather than causing an installer retry loop.
|
|
52
|
+
|
|
53
|
+
## Retry and preservation
|
|
54
|
+
|
|
55
|
+
Separate preparation, directory creation and terminal handoff outcomes. A failed download, denied permission or package installation must stop the dependent steps, show the failed stage and a useful retry action, and retain readable diagnostics without secrets. Never launch an initializer against missing/unverified dependencies or claim a project is ready merely because the installer finished.
|
|
56
|
+
|
|
57
|
+
Repeating setup rechecks and reuses satisfied prerequisites, the requested package version and approved empty destination. Do not duplicate PATH entries, reset project configuration, delete existing user files or launch duplicate initializers from repeated completion actions. Resume already-started project setup through ordinary CLI behavior with explicit user intent, not by treating its now-nonempty directory as a new empty project. Reinstallation, repair and any removal of the bootstrap layer preserve user projects and shared Node.js/npm/Git installations.
|
|
58
|
+
|
|
59
|
+
## Acceptance outcomes
|
|
60
|
+
|
|
61
|
+
- **Clean Windows:** Without Node.js, npm, Git or Windows Terminal, downloading and running the supported installer prepares the dependencies and exact released CLI, offers a home-based first project, and opens its working interactive initializer without manual shell commands.
|
|
62
|
+
- **Existing or partial prerequisites:** Compatible tools are unchanged; only missing prerequisites are installed. Missing npm, stale PATH, incompatible versions and an existing different `ptbk` version have explicit outcomes without silent toolchain replacement/downgrade.
|
|
63
|
+
- **Paths and collisions:** A home/project path containing spaces, Unicode and valid shell-special characters works; unwritable/invalid paths are diagnosed, nonempty collisions preserve every file, and the projects root never becomes an implicit Git/Promptbook project.
|
|
64
|
+
- **Normal CLI parity:** The selected directory is reused, intent remains the first project-setup input, and ordinary local-install, Git, authentication, update and completion behavior is retained. There is one initializer and at most the ordinary single project engine, with no installer-specific project format or extra start.
|
|
65
|
+
- **Interrupted/repeated setup:** Download failure, denied elevation, cancellation and a second installer run retain progress safely. No required failed step is reported as successful, no user data is removed, and retries do not duplicate projects or launches.
|
|
66
|
+
- **Handoff or skip:** The normal path executes init and keeps its terminal open; launch failure supplies a visible recovery action. Skipping project creation installs the CLI without initializing any directory. Closing the bootstrapper leaves an already-handed-off terminal/engine alone.
|
|
67
|
+
- **Release integration:** Every published version has a downloadable matching installer as well as the existing npm package. A missing, corrupt or mismatched artifact makes the release incomplete; clean-machine checks and retry behavior follow [release publication](releasing.md).
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
A project is an operating-system directory in a Git working tree. The default is the invocation's current working directory; `--path` selects another. Resolve relative CLI paths from the invocation directory and paths in `ptbk.json` from the selected project. Project, enclosing repository and installed package are distinct, including a project inside a repository subdirectory.
|
|
6
6
|
|
|
7
|
+
The optional [Windows installer](windows-installer.md) proposes a projects root beneath the user's home and creates an empty child for an accepted first project. That parent is only a filesystem container, not a shared Git repository, configuration scope or global engine workspace. Each child is initialized independently through ordinary `ptbk init`. This convenience default does not restrict manually selected project locations or change CLI path resolution.
|
|
8
|
+
|
|
7
9
|
Agents, tasks, chats, context, checks, traces and engine runtime state belong to that selected project. Promptbook uses files/Git, not a database. Project selection is consistent across interfaces. The versioned `ptbk.json` contains defaults, not runtime/evidence storage. Each project directory has at most one [engine owner](locking.md), independently of the number of attached dashboards or package installations.
|
|
8
10
|
|
|
9
11
|
The explicit exception to project selection is **`ptbk dashboard --global`**: it observes the [host-wide service registry](global-dashboard.md) from any directory without treating the launch directory as a project. Every listed engine still belongs to its own concrete project. There is no global engine or global task workspace.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Architecture and coding standards
|
|
2
|
+
|
|
3
|
+
[Main specification](../_main.md)
|
|
4
|
+
|
|
5
|
+
These are implementation constraints of the product specification, not a separate implementation or a claim that the current code already meets them. Keep functional behavior, shared domain rules and presentation distinct. Prefer small comprehensible contracts over duplicated special cases.
|
|
6
|
+
|
|
7
|
+
- [Naming and canonicalization](naming.md): JSON keys, booleans, user-defined identifiers and fixed enum values.
|
|
8
|
+
- [Shared logic and DRY](shared-logic.md): one implementation of domain operations behind initialization, CLI and dashboards.
|
|
9
|
+
- [Automatic repair](../concepts/automatic-repair.md): a first-class system principle, not an incidental detail of an agent implementation.
|
|
10
|
+
|
|
11
|
+
Changes to a shared contract must update its callers, documentation and acceptance scenarios together. Test observable behavior and failure recovery through every entry point; do not maintain competing definitions of the same rule in individual views.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Naming and canonicalization
|
|
2
|
+
|
|
3
|
+
[Architecture and coding standards](_index.md) · [Configuration](../cli/configuration.md) · [Automatic repair](../concepts/automatic-repair.md)
|
|
4
|
+
|
|
5
|
+
## Three distinct naming categories
|
|
6
|
+
|
|
7
|
+
| Meaning | Canonical notation | Examples |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| Promptbook-owned JSON property or ordinary variable name | lower camelCase, starting with a lowercase letter and usable as a JavaScript identifier; no spaces or hyphens | `promptbookVersion`, `tools`, `apiKey`, `profilePath` |
|
|
10
|
+
| Boolean property | lower camelCase with the `is` prefix | `isEnabled`, `isHeadless`, `isAutoSync` |
|
|
11
|
+
| User-defined configuration identifier | lowercase kebab-case | `work-browser`, `codex-company`, `personal-fallback` |
|
|
12
|
+
| Fixed system-defined enum value | SCREAMING_SNAKE_CASE | `BROWSER`, `HARNESS`, `OPENAI_CODEX`, `CLAUDE_CODE`, `API_KEY` |
|
|
13
|
+
|
|
14
|
+
The last two rows describe values, not JSON property spellings. A tool is therefore `{ "type": "HARNESS", "variant": "OPENAI_CODEX", "name": "codex-company", "isEnabled": true }`, never an object with `is-enabled` or a fixed variant stored as a user-defined name. `name` identifies an instance; `variant` identifies its implementation. `description` is optional free text and is not normalized as an identifier.
|
|
15
|
+
|
|
16
|
+
Apply these rules to Promptbook-owned configuration, including existing boolean fields when migrated. Do not rewrite arbitrary user prose, filesystem paths, URLs, provider model IDs, environment-variable names, externally specified protocol fields or Book name content to fit a configuration identifier convention. Agent/task/chat identity and reference normalization remain defined by the [Book language](../book-language/references.md); this change does not rename existing Books. CLI flags retain conventional dashed spelling and are not JSON keys. Provider adapters translate canonical configuration enums to a provider's required spelling at the boundary.
|
|
17
|
+
|
|
18
|
+
## Tolerant input, canonical saved output
|
|
19
|
+
|
|
20
|
+
Accept unambiguous spelling differences in known fields and enum values, including case and separator differences. For example, a known `type` value `browser` becomes `BROWSER`, `variant: "openai-codex"` becomes `OPENAI_CODEX`, and an unambiguous tool name `Work Browser` becomes `work-browser`. Use one shared normalizer across file loading, initialization, CLI and dashboard, not different guesses in each frontend.
|
|
21
|
+
|
|
22
|
+
On a mutating/runtime configuration load, save deterministic corrections in a scoped automatic commit with an understandable reason. A repeated load of canonical input is a no-op. Read-only inspection may report proposed corrections but must not modify files or Git. When an owned operation already creates the affected configuration, canonicalize inside that operation rather than generating a redundant second commit. Preserve explicit false values, unrelated fields and user edits.
|
|
23
|
+
|
|
24
|
+
Normalization is not permission to guess a different implementation, rename two colliding tools arbitrarily, merge conflicting values or redirect credentials. Detect duplicate keys/identifiers and reference collisions before accepting the corrected configuration. Hand unresolved or judgment-dependent problems to the ordinary Fixer under [automatic repair](../concepts/automatic-repair.md). Fixer uses available evidence to resolve what it can and asks its team only when needed; users are not automatically asked about every imperfect spelling.
|
|
25
|
+
|
|
26
|
+
The same canonicalization used for comparisons must be used for uniqueness and references. A deterministic identifier correction updates its known references as one operation. Unknown values remain diagnosed, never silently replaced with a convenient default or discarded. Secret values are never included in correction reports or commits.
|
|
27
|
+
|
|
28
|
+
## Acceptance outcomes
|
|
29
|
+
|
|
30
|
+
Round-trip canonical keys, booleans, tool names and enums without changes. Correct a uniquely recognizable noncanonical enum/name once, commit only that correction and preserve its references. Two names that normalize to the same identifier, conflicting alias keys and an unknown variant produce a repair problem rather than silent replacement. Read-only inspection creates no correction commit. Provider IDs, environment names, descriptions and free-form Book names retain their meaning.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Shared domain logic and DRY
|
|
2
|
+
|
|
3
|
+
[Architecture and coding standards](_index.md) · [Shared controls](../cli/controls.md) · [Git persistence](../cli/git-persistence.md)
|
|
4
|
+
|
|
5
|
+
Follow **Don't Repeat Yourself** for behavior, not merely for duplicated text. Initialization, `ptbk tool` commands and dashboard management are three entry points to one tool-management capability. They must not independently implement tool creation, validation, modification, activation, removal, credential edits or commit rules.
|
|
6
|
+
|
|
7
|
+
## One typed contract
|
|
8
|
+
|
|
9
|
+
Use the same domain types, objects, validation rules and operations behind every entry point. In TypeScript, tool records form a typed discriminated contract: `type` selects BROWSER or HARNESS and `variant` selects the variant-specific configuration. Invalid combinations are not represented as unrelated bags of optional properties. Extending a variant must not require copying its business rules into three interfaces.
|
|
10
|
+
|
|
11
|
+
The shared operations own canonicalization, uniqueness and reference checks, defaults, last-enabled-tool confirmation, in-use checks, configuration persistence, non-destructive environment-file edits, operation-scoped Git commits and notification of the running engine. A client gathers input and displays the shared result; it does not independently manipulate configuration, secrets, browser processes or Git. Browser and harness adapters may have different internals behind this common external tool model.
|
|
12
|
+
|
|
13
|
+
Init calls these same operations in its bounded setup transaction, with simple generated names/defaults instead of exposing every advanced option. It may group setup writes in the setup commit; do not create an extra worker or a second tool implementation. CLI and dashboard use the same operations for later incremental changes. Different confirmation presentation is allowed, different domain semantics are not.
|
|
14
|
+
|
|
15
|
+
With a running engine, route changes through coordinated project ownership. Without a running engine, commands use the same domain implementation with safe project/file/Git coordination, not a weaker duplicate. A second terminal is an ordinary supported client, not permission to overwrite the active task or its index state. Recheck relevant revisions and in-use status at application time, not only when a dialog opens.
|
|
16
|
+
|
|
17
|
+
## Presentation and scheduling boundaries
|
|
18
|
+
|
|
19
|
+
Keep UI-specific focus, key bindings, formatting and transport separate from shared business decisions. Inspection, configuration changes, runtime diagnostics and lifecycle actions are distinct operations. Enabling/disabling a tool persists configuration; restarting a browser or force-stopping the engine does not implicitly delete that tool.
|
|
20
|
+
|
|
21
|
+
One operation owns its authorized changes and its commit. Shared persistence must support a tool commit during an unrelated active task without sweeping that task's files into the commit or reverting the tool change at task completion. Secret storage and runtime ownership are not versioned merely because their associated configuration is committed.
|
|
22
|
+
|
|
23
|
+
Use the same approach for configuration migrations, canonicalization, synchronization controls and automatic repair: one source of truth with thin entry points. Exact classes, module layouts and concurrency primitives remain implementation choices, but observable consistency, isolation and recovery are mandatory.
|
|
24
|
+
|
|
25
|
+
## Acceptance outcomes
|
|
26
|
+
|
|
27
|
+
Apply equivalent add/modify/enable/disable/remove operations through initialization where applicable, CLI and dashboard. Verify equivalent canonical records, diagnostics, confirmation requirements, secret retention and persistence. Race a dashboard edit with a second-terminal edit and with task completion: preserve all authorized changes, reject stale conflicting intent actionably, and never mix operation ownership. Test both a running and a stopped project without separate behavior implementations.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Automatic repair is a core product principle
|
|
2
|
+
|
|
3
|
+
[Main specification](../_main.md) · [Unattended operation](../cli/autonomous-operation.md) · [Fixer](../agents/fixer.md) · [Core agents](../agents/core-agents.md)
|
|
4
|
+
|
|
5
|
+
**A started project should solve ordinary problems itself and involve the user as little as necessary.** This is a central system contract across configuration, migrations, tool availability, execution, persistence and synchronization, not a footnote in the definition of a maintenance agent. An alive engine that repeatedly waits for routine decisions does not satisfy this principle.
|
|
6
|
+
|
|
7
|
+
## Common problem-handling path
|
|
8
|
+
|
|
9
|
+
Detect a problem with its actual context, affected work, available evidence and attempted recovery. Apply safe deterministic corrections and bounded technical retries where their meaning is clear; do not spend a model call on every case-normalization or transient reconnect. Unresolved or judgment-dependent problems are handed to **Fixer** through ordinary agent work. Every subsystem can use this path rather than inventing its own human escalation subsystem.
|
|
10
|
+
|
|
11
|
+
Examples include configuration normalization collisions, failed migration steps, unavailable tools, recurring crashes, failed checks, persistence errors and merge conflicts. Routine conflict-free merges and exact known configuration transformations are deterministic operations. Fixer handles problems requiring project knowledge or judgment, including broader project problems, not only engine internals. Its mere involvement is not a reason to ask a person.
|
|
12
|
+
|
|
13
|
+
Fixer examines the context, can consult other agents and resolves authorized issues itself when evidence is sufficient. When it genuinely needs help, it asks its team, which includes User by default. This uses the normal TEAM/agent mechanism. This contract does not add a Fixer-specific question API, interactive wizard or communication channel; the channel carrying a question is outside this mechanism's scope.
|
|
14
|
+
|
|
15
|
+
## Ordinary, customizable agent policy
|
|
16
|
+
|
|
17
|
+
Fixer is required because the engine expects a problem-solving role in every project and routes certain failures to it. It is otherwise an ordinary editable core agent with ordinary Book instructions, TEAM, routing, learning and Git persistence. Other agents may consult Fixer; Fixer may consult them.
|
|
18
|
+
|
|
19
|
+
Initialize it with a small understandable Book, a general goal of solving problems and offloading decisions from the user, and TEAM access to User and Expert. Its default OPEN learning may retain verified user problem-solving preferences through the ordinary Teacher mechanism. Do not reset its learned policy on reinit or engine upgrade.
|
|
20
|
+
|
|
21
|
+
Minimal user involvement is the **default Book policy**, not a hardcoded escalation policy that overrides the project's instructions. Users may require all decisions to be consulted, specify detailed consultation rules, or remove User from Fixer's team and instruct it not to ask. Such customization does not grant authority to invent approvals, spend outside authorized limits, discard data or conceal an unresolved problem. A problem outside the remaining authority stays visible and recoverable.
|
|
22
|
+
|
|
23
|
+
## Safe progress and honest limits
|
|
24
|
+
|
|
25
|
+
Keep repair attempts bounded, retain useful diagnostics, deduplicate the same outstanding problem and avoid recursive repair loops. Repairs use the project's ordinary single-task/consultation ownership rules, not a second concurrent worker. Preserve the interrupted work and resume the correct phase without repeating completed external effects. Versioned repairs commit only their own changes; runtime-only recovery does not manufacture a commit.
|
|
26
|
+
|
|
27
|
+
A failed remote synchronization does not stop safe local work. Missing usable tools do not mean the engine has exited: report the wait, continue inspection/rechecking and use newly available resources without restart. Fixer also needs usable execution resources; if none are available, retain the repair context and explain the blocker instead of pretending an agent ran or launching an endless fallback loop. Read-only commands remain read-only.
|
|
28
|
+
|
|
29
|
+
Distinguish task-local problems from project-wide unsafe state. Continue independent work when ownership can be preserved; do not hide unsafe unresolved state to claim progress. Deliberate pause/stop and explicitly disabled tools remain intentional decisions, not errors to undo automatically. The user may also resolve problems manually; recognize the result and retire stale repair requests.
|
|
30
|
+
|
|
31
|
+
## Acceptance outcomes
|
|
32
|
+
|
|
33
|
+
Resolve unambiguous naming corrections without a human question and retain their scoped commit. Send a genuine ambiguity or difficult merge conflict to the normal Fixer; verify ordinary specialist/User consultations, learned preferences and no new communication mechanism. Exercise customized all/some/no-User consultation policies without resetting the Book. Recover from a transient fault without duplicate effects or repeated notifications. With no usable harness, keep the engine controllable and the repair pending; adding a usable tool enables recovery without a restart.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# Engine knowledge and evolving project knowledge
|
|
2
2
|
|
|
3
|
-
[Project model](project-model.md) · [Core agents](../agents/core-agents.md) · [Expert](../agents/expert.md)
|
|
3
|
+
[Project model](project-model.md) · [Core agents](../agents/core-agents.md) · [Expert](../agents/expert.md) · [Configuration migrations](../cli/configuration-migrations.md)
|
|
4
4
|
|
|
5
|
-
A running Promptbook engine and a user's project evolve on different timelines. **Engine-defined non-agents** such as `@Expert` belong to the invoked engine; their effective Book-like instructions may be internally embedded or generated. They can be comprehensive and change when that engine version changes. Expert
|
|
5
|
+
A running Promptbook engine and a user's project evolve on different timelines. **Engine-defined non-agents** such as `@Expert` belong to the invoked engine; their effective Book-like instructions may be internally embedded or generated. They can be comprehensive and change when that engine version changes. Expert describes the currently running Promptbook, not the version that originally initialized the project.
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Project configuration** evolves through the explicit versioned migration chain. `ptbk.json.promptbookVersion` records initialization or the last successful migration to an engine version, not an independent schema counter or permanently fixed creation version. A newer engine applies applicable sparse steps and commits the whole pass once; an older engine offers an update instead of downgrading the project. The fixed versionless baseline and actual first conversion are defined by [configuration migrations](../cli/configuration-migrations.md), not guessed from Book contents.
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**Core agents** are ordinary editable project Books required by the engine and initialized only when missing. Defaults are small and comprehensible. They then belong to the project and accumulate instructions, experience and learning like other agents. Reinit/upgrades preserve customized/learned Books; a new missing role may be created individually. A malformed existing file is diagnosed and repaired through normal authorized work, not overwritten with a boilerplate because its engine changed.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**Other project agents** have the same Book, runtime and learning behavior; the engine simply does not require every specialist in every project. Default OPEN/CLOSED semantics apply alike. Fixer is a normal OPEN core whose initial team includes User and Expert, and whose problem-solving/consultation policy can be customized. Teacher is CLOSED by its own policy, not by being core. The cross-system [automatic repair principle](automatic-repair.md) uses this normal Fixer rather than an independent privileged learning or communication subsystem.
|
|
12
|
+
|
|
13
|
+
*Illustrative analogy only:* a company's general framework may evolve centrally while its accountant learns local practice. This explains coexistence of engine evolution and project knowledge, not a new Promptbook object, service or legal guarantee.
|
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
[Main specification](_main.md)
|
|
4
4
|
|
|
5
|
-
**Promptbook / ptbk:** One npm package and CLI for operating agents over a project. **Engine version:** The version actually loaded by the service, not
|
|
5
|
+
**Promptbook / ptbk:** One npm package and CLI for operating agents over a project. **Engine version:** The version actually loaded by the service, not latest or the viewer's installation. **promptbookVersion:** Saved initializing/last-migrating engine version in project configuration. **Configuration migration:** An ordered version-targeted transformation; one coordinator commits the complete applicable pass and version advance, including zero-step upgrades. See [migrations](cli/configuration-migrations.md).
|
|
6
6
|
|
|
7
|
-
**APT:** Agent–Project–Task, a long-term context convention; the concrete project also includes Chat. **Agenda:** Its continuing responsibility, not the expansion of A.
|
|
7
|
+
**APT:** Agent–Project–Task, a long-term context convention; the concrete project also includes Chat. **Agenda:** Its continuing responsibility, not the expansion of A. **Project:** Selected directory/workspace in a Git working tree, with managed files/context. See [workspace](cli/workspace.md).
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**Agent:** Persistent project-owned role and knowledge. **Core agent:** Ordinary editable required Book: Adam, Manager, Teacher, Fixer or Chatter, initialized only if missing. **Fixer:** Default-OPEN general problem-solving core, with simple customizable instructions and initial User/Expert team. **Automatic repair:** Foundational cross-system principle using deterministic correction/retry and ordinary Fixer judgment to reduce unnecessary user decisions, not a privileged agent/channel. **Chatter:** Default human conversation entry with specialist advice/task creation. **Non-agent:** Engine-defined reference without project file: Void/Null, User or Expert. See [agents](agents/_index.md) and [automatic repair](concepts/automatic-repair.md).
|
|
10
10
|
|
|
11
|
-
**
|
|
11
|
+
**Book:** Named Agent, Task or Chat with ordered commitments. **Type-and-name commitment:** Opening AGENT/TASK/CHAT whose content names it. **Name resolution:** Normalize that content and apply deterministic single-winner lookup; keywords/filenames are not IDs and shadowed duplicates are diagnosed. **Commitment:** Line-initial uppercase, possibly multiword keyword with common syntax. Configuration naming conventions do not rewrite free-form Book names. See [language](book-language/_index.md).
|
|
12
12
|
|
|
13
|
-
**
|
|
13
|
+
**Generated task/chat name:** Readable title plus creation date/time and a normalized-distinct discriminator as needed. Preventive [authoring policy](cli/generated-names.md), not mandatory timestamp grammar or permission to rename existing Books. **FROM:** Inheritance. **IMPORT:** Instruction inclusion. **TEAM:** Natural-language consultation relationships, not inheritance/reporting hierarchy; advice can belong to a task or conversation without creating work.
|
|
14
14
|
|
|
15
|
-
**
|
|
15
|
+
**Task:** Bounded named work with result/completion. **Chat:** Persistent attributed exchanges for a human/agent or internal agent pair, with optional work/conversation links. **Occurrence:** One recurring execution. **Attempt:** A try/repair within work. **Task origin:** Provenance, not a separate execution mechanism.
|
|
16
16
|
|
|
17
|
-
**
|
|
17
|
+
**Tool:** Named configured resource in ordered `ptbk.json.tools`, not a fourth Book entity. **type:** Fixed category BROWSER or HARNESS. **variant:** Fixed adapter/implementation enum. **name:** User-editable unique lowercase kebab-case instance identifier. **isEnabled:** Whether the retained instance is available for new selection, default true. Configured, enabled, usable and in-use are distinct. **Retained use:** Original acquired context allowed to finish after an acknowledged saved change, not a frozen whole registry. See [tools](cli/tools.md) and [live use](cli/tool-runtime.md).
|
|
18
18
|
|
|
19
|
-
**
|
|
19
|
+
**Harness:** Global execution integration with one or more named native/API authentication instances and model capabilities. **Harness adapter/plugin:** Shared typed setup/execution/update contract. **Featured:** Prominent catalog display, not implicit enablement. **Same-variant fallback:** Ordered eligible instances, later used when earlier ones cannot serve work; distinct variants may be chosen for suitability. **Model/thinking level:** Actual provider inference/effort choice, distinct from agent identity, tool instance and saved defaults.
|
|
20
20
|
|
|
21
|
-
**
|
|
21
|
+
**Browser tool:** Named browser/profile context with coordinated ownership; normal init creates one dedicated managed-global profile choice, and project/personal/custom alternatives or multiple account/site profiles can be configured. Browser website sessions remain independent of harness authentication. Recovery targets the owned named instance, not every browser or the whole engine. See [browser](cli/browser.md).
|
|
22
22
|
|
|
23
|
-
**
|
|
23
|
+
**Environment reference:** `${{ env.NAME }}` in configuration, resolved at runtime, never an inline key or general expression language. **.env audit:** Timestamp/reason comments and preserved historical assignments in the ignored local file, because Git does not retain its edits. Shared/uncertain consumers keep their variables active; disabling a tool does not retire secrets. See [environment safety](cli/environment.md).
|
|
24
24
|
|
|
25
|
-
**Engine
|
|
25
|
+
**Engine/service:** Owner of scheduling, task/lifecycle state and execution for one concrete project. **Project lock:** Exclusive local owner across installations, not a distributed lock between clones. **Run:** Finite selected queue workflow. **Start:** Ongoing supervisor. **Daemon:** Background placement. **Persistence:** Restart/recovery across system restarts, separate from placement.
|
|
26
26
|
|
|
27
|
-
**Service states:**
|
|
27
|
+
**Service states:** running permits eligible claims; pausing drains to pause; pause stays alive without new/executing work; stopping drains to exit. Cancelling pending intent returns to running. Force stop is immediate and no hard pause exists. Stopped is observed absence, not a fifth live state. **Waiting for tools:** A running supervisor lacks usable resources, analogous to other legitimate waits; not technical stop/pause. See [lifecycle](cli/service-lifecycle.md).
|
|
28
28
|
|
|
29
|
-
**Project dashboard:** Lightweight live observer/controller, not
|
|
29
|
+
**Project dashboard/cockpit:** Lightweight live observer/controller, not owner/scheduler. Zero/many clients can attach and closing them does not stop the engine. **Detail panel:** Consistent drill-down into actual execution, named tools/browser diagnostics or enabled sync; main lifecycle controls remain visible. **Global dashboard:** CWD-independent host-wide live table, usable with zero entries, with attachment but no global engine. See [status](cli/status-view.md) and [global overview](cli/global-dashboard.md).
|
|
30
30
|
|
|
31
|
-
**
|
|
31
|
+
**isAutoSync:** Default-off saved Git synchronization opt-in. **Synchronization:** Periodic/boundary fetch and safe non-fast-forward integration plus publication through existing Git origin/tracking metadata, independent of safe local progress when remote attempts fail. **Synchronization panel:** Dedicated cockpit status/detail/manual-cycle access only when enabled. **Remote dashboard access:** Protected HTTP tunnel/pairing, a separate policy from Git autosync. See [Git synchronization](cli/git-synchronization.md) and [remote access](cli/remote-access.md).
|
|
32
32
|
|
|
33
|
-
**Check:** Project-defined verification. **Accepted result:** Work satisfying task/
|
|
33
|
+
**Interactive/noninteractive:** Whether terminal input/UI is available or choices are supplied in advance. **Wizard:** Finite setup, not an indefinitely running dashboard. **Check:** Project-defined verification. **Check placeholder:** Explicit successful informational command used for absent initial validation, not proof of tests passing or a startup gate. **Accepted result:** Work satisfying its actual task/validation requirements with truthful persistence, not universal correctness.
|
|
34
34
|
|
|
35
|
-
**Trace:** Observed evidence
|
|
35
|
+
**Trace:** Observed evidence in `traces/<task-file-basename>/`, literally the actual source filename without final .book/.md. Declared names/revisions/instances provide provenance, not directory identity. No-task diagnostics are separate. **Human request:** Ordinary actionable attributed agent/User conversation, not a new stored Request entity. **Channel:** Existing terminal/browser/CLI/API interfaces, not an autofix-specific mechanism.
|
|
36
36
|
|
|
37
|
-
**ptbk.json:**
|
|
37
|
+
**ptbk.json:** Git-versioned configuration with engine-version evolution, named tools, defaults and explicit temporary overrides. **.ptbk/:** Ignored runtime/ownership/recovery, logs, read markers and selected isolated browser profiles; not wholly disposable. **Host discovery registry:** Protected metadata linking viewers to existing engines across installations, not a project lock, credential store or task queue.
|
|
38
38
|
|
|
39
|
-
**Internal/external context:** Where APT components reside
|
|
39
|
+
**DRY/shared domain logic:** One implementation of tool types, validation, mutations, environment editing and scoped persistence used by init, CLI and dashboard; frontends differ only in interaction/presentation. See [coding standards](coding-standards/_index.md). **Internal/external context:** Where APT components reside independently of role; [whitepaper](whitepaper.md) separates concepts and long-term directions from current requirements.
|
|
@@ -16,8 +16,6 @@ async function inspect(context) {
|
|
|
16
16
|
return withAuthentication(inspection, false, 'none', plugin.loginHint);
|
|
17
17
|
}
|
|
18
18
|
catch {
|
|
19
|
-
if (context.env.ANTHROPIC_API_KEY)
|
|
20
|
-
return withAuthentication(inspection, true, 'api', plugin.loginHint);
|
|
21
19
|
return withAuthentication(inspection, 'unknown', 'unknown', plugin.loginHint, 'Installed; login state could not be read (older Claude Code).');
|
|
22
20
|
}
|
|
23
21
|
}
|
|
@@ -61,6 +59,10 @@ async function buildInvocation(request) {
|
|
|
61
59
|
*/
|
|
62
60
|
export const plugin = {
|
|
63
61
|
id: 'claude-code',
|
|
62
|
+
variant: 'CLAUDE_CODE',
|
|
63
|
+
apiKeyVariable: 'ANTHROPIC_API_KEY',
|
|
64
|
+
ambientApiKeyVariables: ['ANTHROPIC_API_KEY'],
|
|
65
|
+
accountHomeVariable: 'CLAUDE_CONFIG_DIR',
|
|
64
66
|
displayName: 'Claude Code',
|
|
65
67
|
featured: true,
|
|
66
68
|
executable: 'claude',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/harness/plugins/claude-code/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGvG;;GAEG;AACH,KAAK,UAAU,OAAO,CAAC,OAAuB;IAC1C,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7E,IAAI,CAAC,cAAc;QAAE,OAAO,UAAU,CAAC;IACvC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAClF,IAAI,CAAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAuE,CAAC;QAC/I,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,IAAI,EAAE,IAAI,IAAI,CAAC,YAAY,IAAI,EAAE,EAAE,CAAC,CAAC;YAC/E,OAAO,kBAAkB,CAAC,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;QAC3F,CAAC;QACD,OAAO,kBAAkB,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC3E,CAAC;IAAC,MAAM,CAAC;QACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/harness/plugins/claude-code/index.ts"],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S,EAAE,GAAG,EAAE,CAAC,EAAE;IACnB,sBAAsB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;CACjG,CAAC"}
|
|
@@ -53,7 +53,9 @@ async function listCodexModels(context) {
|
|
|
53
53
|
return [...new Set(models)];
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* Inspects installation and native login (`codex login status`), never running inference.
|
|
56
|
+
* Inspects installation and the native login (`codex login status`) of a NATIVE instance, never running inference.
|
|
57
|
+
* Ambient API keys never turn a native instance into API billing; explicit `API_KEY` instances are inspected by the
|
|
58
|
+
* shared instance layer.
|
|
57
59
|
*/
|
|
58
60
|
async function inspect(context) {
|
|
59
61
|
const { inspection, executablePath } = await baseInspection(plugin, context);
|
|
@@ -63,15 +65,13 @@ async function inspect(context) {
|
|
|
63
65
|
if (status.ok && /logged in using chatgpt/i.test(status.output)) {
|
|
64
66
|
return withAuthentication(inspection, true, 'account', plugin.loginHint, `Ready (ChatGPT account login${inspection.version ? `, v${inspection.version}` : ''}).`);
|
|
65
67
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
if (status.ok && /api key/i.test(status.output)) {
|
|
69
|
+
return {
|
|
70
|
+
...withAuthentication(inspection, false, 'none', plugin.loginHint, 'The native Codex login uses an API key; a NATIVE tool never switches to API billing.'),
|
|
71
|
+
nextAction: `Sign in with ChatGPT (\`codex login\`), or add an explicit API tool: ptbk tool add HARNESS --variant OPENAI_CODEX --name codex-api --authentication API_KEY --api-key-env OPENAI_API_KEY`,
|
|
72
|
+
};
|
|
70
73
|
}
|
|
71
|
-
|
|
72
|
-
? 'Logged in with an API key, but API billing requires PTBK_OPENAI_CODEX_USE_API_KEY=1.'
|
|
73
|
-
: 'Installed but not logged in.';
|
|
74
|
-
return withAuthentication(inspection, false, 'none', plugin.loginHint, detail);
|
|
74
|
+
return withAuthentication(inspection, false, 'none', plugin.loginHint, 'Installed but not logged in.');
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Builds `codex exec --json` with the workspace-write (or read-only) sandbox and no approvals.
|
|
@@ -182,6 +182,10 @@ function parseLine(line, state) {
|
|
|
182
182
|
*/
|
|
183
183
|
export const plugin = {
|
|
184
184
|
id: 'openai-codex',
|
|
185
|
+
variant: 'OPENAI_CODEX',
|
|
186
|
+
apiKeyVariable: 'CODEX_API_KEY',
|
|
187
|
+
ambientApiKeyVariables: API_KEY_VARIABLES,
|
|
188
|
+
accountHomeVariable: 'CODEX_HOME',
|
|
185
189
|
displayName: 'OpenAI Codex',
|
|
186
190
|
featured: true,
|
|
187
191
|
executable: 'codex',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/harness/plugins/openai-codex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGzH;;GAEG;AACH,MAAM,iBAAiB,GAAG,CAAC,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,CAAC,CAAC;AAEjF;;GAEG;AACH,SAAS,cAAc,CAAC,GAAsB;IAC1C,MAAM,IAAI,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;IACxB,KAAK,MAAM,IAAI,IAAI,iBAAiB;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;IACxD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,SAAS,IAAI,CAAC,KAAa;IACvB,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAED;;GAEG;AACH,KAAK,UAAU,eAAe,CAAC,OAAuB;IAClD,MAAM,MAAM,GAAa,EAAE,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