@jadelclemens/pi-forge 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -114,7 +114,7 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
114
114
  - **Reviewed documentation and examples:** adopt bilingual README B and continuous Context/Capability/Draft diff media. Add the small Read-first Worker + Write tools pair: default reading, explicitly authorized model-selected `bash`/`edit`, and documented non-sandbox/ownership limits.
115
115
  - **CLI naming:** document `/forge ui`, `/forge payload`, and optional `/forge subagent plan` as the recommended Forge commands; `/capability` is the capability command. `/preset` and `/profile` roots are unchanged. The legacy `/subagent` smoke helper remains distinct from the `/forge subagent` execution-plan command.
116
116
  - **Payload capture boundaries:** document `next save="path with spaces.json" [--overwrite]`, `status`, and `cancel`; capture is taken at `before_provider_request`, does not itself call a model, and does not overwrite without the explicit flag. Cancellation only clears pending capture state, not retained history.
117
- - **Command-contribution source surface:** Forge 0.5.5 provides the intentional `@zihanw/pi-forge/command-contribution` entry from `src/command-contribution/index.ts`: synchronous local discovery, callback metadata, explicit unsubscribe, main-owned `/forge` root, and fail-closed duplicate children. It has no singleton registry, persistent format, or authorization boundary. The optional package remains an independent upcoming release and must raise its Forge dependency floor to `^0.5.5`; no optional publication is implied here.
117
+ - **Command-contribution source surface:** Forge 0.5.5 provides the intentional `@jadelclemens/pi-forge/command-contribution` entry from `src/command-contribution/index.ts`: synchronous local discovery, callback metadata, explicit unsubscribe, main-owned `/forge` root, and fail-closed duplicate children. It has no singleton registry, persistent format, or authorization boundary. The optional package remains an independent upcoming release and must raise its Forge dependency floor to `^0.5.5`; no optional publication is implied here.
118
118
  - **Provider support snapshot:** add bilingual docs recording, for Pi 0.87.1, how each API sends mid-conversation system updates and tool changes, which catalog models were flagged, and observed cache behavior. README and the capability reference explain that the current model's catalog flags choose native or fallback delivery.
119
119
  - **Delegation distinction:** document that `/forge-agent run` always requests approval and may write through its backend, while model-callable `forge_subagent` unattended authorization is separate.
120
120
 
@@ -220,7 +220,7 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
220
220
  output and repository text files are pinned to LF so tracked `dist/` checks
221
221
  remain deterministic across operating systems.
222
222
  - **UI contribution framework (Lane 1).** Optional packages can now contribute schema-driven configuration pages to the web editor without shipping any UI code into the main package:
223
- - New versioned `@zihanw/pi-forge/ui-contribution` entry point: a generic RPC contract over the Pi event bus (`UI_CONTRIBUTION_PORT_VERSION = 1`, with its own version counter separate from the `/subagent` host port) exposing exactly two operations — `listContributions` and `writeValues` — over discover/available/request/reply/unavailable channels. Wire messages carry `hostId` + `generation` binding, version negotiation (`minVersion`/`maxVersion`), bounded discovery timeouts, explicit duplicate-provider failure, and recursive JSON-compatibility validators. All payloads are plain data: no functions, components, or live contexts cross the bus. See the [UI contribution port contract](docs/reference/ui-contribution-port.md).
223
+ - New versioned `@jadelclemens/pi-forge/ui-contribution` entry point: a generic RPC contract over the Pi event bus (`UI_CONTRIBUTION_PORT_VERSION = 1`, with its own version counter separate from the `/subagent` host port) exposing exactly two operations — `listContributions` and `writeValues` — over discover/available/request/reply/unavailable channels. Wire messages carry `hostId` + `generation` binding, version negotiation (`minVersion`/`maxVersion`), bounded discovery timeouts, explicit duplicate-provider failure, and recursive JSON-compatibility validators. All payloads are plain data: no functions, components, or live contexts cross the bus. See the [UI contribution port contract](docs/reference/ui-contribution-port.md).
224
224
  - Web server routes: `GET /api/contrib` returns discovered tab descriptors at page load, and `PUT /api/contrib/<tabId>` proxies submitted values to the contributing package over the bus. The forge side is fully generic and knows nothing about subagents; it never owns the schema, validation, or persistence of contributed tabs (the provider writes its own config files), and with no provider discovered there is no contributed tab and zero cost.
225
225
  - Contribution discovery tolerates provider churn across sessions: providers that appear after startup surface their tabs, departed providers are cleared, and service stop cancels pending discovery.
226
226
  - Data-driven stack-tab registry replaces the stack editor's hardcoded `"policy" | "regex" | "stack"` tab union. Built-in tabs keep their existing hosts (including the legacy imperative items workspace as an ordinary tab), while contributed configuration renders through a self-contained host on a separate top-level **Settings** surface.
@@ -260,7 +260,7 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
260
260
  - SillyTavern importer, `/preset import-silly`, its reports, guide, example, and tests are removed. 0.4 is the last supported conversion path.
261
261
  - Mutable turn/session variable stores, `pi-forge-variable-state` session entries, set/get/clear variable macros, and the `variables` slot are removed. Static reusable values now live on stack `parameters` in schema v2 or legacy `variables` in v1.
262
262
  - Regex `display` and `both` effects are removed and rejected as validation errors; only `outgoing` and `finalize` remain.
263
- - **Breaking (Lane 4b): legacy package surfaces.** All `@zihanw/pi-forge/src/*` compatibility aliases and the `./examples/*` subpath export are removed. The package root now exports exactly the default Pi extension factory plus `registerMacro`/`registerSlot` and their contract types (`PromptEnvironment`, `PromptRenderHelpers`, macro/slot definition and renderer types, option-schema types, and the trusted project extension API types). `@zihanw/pi-forge/subagent` is the only other entry point. `check-package` enforces the allowlist and forbids legacy aliases.
263
+ - **Breaking (Lane 4b): legacy package surfaces.** All `@jadelclemens/pi-forge/src/*` compatibility aliases and the `./examples/*` subpath export are removed. The package root now exports exactly the default Pi extension factory plus `registerMacro`/`registerSlot` and their contract types (`PromptEnvironment`, `PromptRenderHelpers`, macro/slot definition and renderer types, option-schema types, and the trusted project extension API types). `@jadelclemens/pi-forge/subagent` is the only other entry point. `check-package` enforces the allowlist and forbids legacy aliases.
264
264
 
265
265
  ### Changed
266
266
 
@@ -272,9 +272,9 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
272
272
  - Compiler/extension conformance (Lane 1d): custom slots share the pure `{ item, options, env, helpers }` contract with declared `dependencies` and the 16,384-character output limit; `env.extensions` is resolved for slots; a shared dependency analysis and one compilation context keep preview/runtime/subagent consistent; extension values resolve lazily per active branch; nested `{% if %}` and empty-string comparisons are supported.
273
273
  - Subagent extraction (Lane 3): the `forge_subagent`/`/forge-agent` execution surface, the web-editor delegation UI, and all subagent configuration reads/writes are removed from the main package and move to the optional `@zihanw/pi-forge-subagents` package, which discovers the active host through the versioned `/subagent` port and owns its own `subagents.json`. Packed-install smoke tests cover main-only and main-plus-optional installs (`check:packed`).
274
274
  - Host-neutralization (Lane 3.5): the prompt compiler's rendering and preflight contract is fully host-neutral (capability-driven, no subagent-specific branches), `ForgeWorkspace` is the single owner of resource state and compilation contexts (no second loader/registry path), and subagent documentation/configuration alignment was completed for the optional package split. The packed-install smoke was made portable across checkouts.
275
- - Forge-native host contract (Lane 4a): the main package no longer depends on `@zihanw/pi-subagent-runtime` at all. `@zihanw/pi-forge/subagent` is now exactly the minimal Forge DTO host contract — host-port wire messages, recursive validators, transport, client/host lifecycle, and Forge-owned canonical fingerprint helpers (byte-compatible with the runtime's `sha256:v1` canonical JSON, pinned by golden vectors). The 0.4 execution contract (request, preflight, plan, response, context budgeting, tool negotiation, and validators) moves to `@zihanw/pi-forge-subagents` with names unchanged, importing portable leaves from the runtime directly. Host-owned preparation no longer synthesizes runtime request/preflight/prompt-runtime artifacts: the workspace resolves the profile and stack from its snapshot, filters the client tool catalog through stack policy, and compiles through the shared compilation context directly. **Breaking:** the package root no longer re-exports subagent contract or host-resolution names (the `/subagent` entry point is the only subagent surface); client-side snapshot validation keeps structural and fingerprint checks while deep profile schema validation remains host-owned.
275
+ - Forge-native host contract (Lane 4a): the main package no longer depends on `@zihanw/pi-subagent-runtime` at all. `@jadelclemens/pi-forge/subagent` is now exactly the minimal Forge DTO host contract — host-port wire messages, recursive validators, transport, client/host lifecycle, and Forge-owned canonical fingerprint helpers (byte-compatible with the runtime's `sha256:v1` canonical JSON, pinned by golden vectors). The 0.4 execution contract (request, preflight, plan, response, context budgeting, tool negotiation, and validators) moves to `@zihanw/pi-forge-subagents` with names unchanged, importing portable leaves from the runtime directly. Host-owned preparation no longer synthesizes runtime request/preflight/prompt-runtime artifacts: the workspace resolves the profile and stack from its snapshot, filters the client tool catalog through stack policy, and compiles through the shared compilation context directly. **Breaking:** the package root no longer re-exports subagent contract or host-resolution names (the `/subagent` entry point is the only subagent surface); client-side snapshot validation keeps structural and fingerprint checks while deep profile schema validation remains host-owned.
276
276
  - Minimum repositories and codecs (Lane 2a): prompt-stack and agent-profile parse/normalize/validate/serialize are centralized in `src/codecs/`, and reads, writes, and deletes all go through scoped repositories (`src/repositories/`) with containment and symlink checks; the loaders and profile service delegate to the repositories, so domain resources are never read or written directly at the adapter layer. Replacement semantics are unchanged and characterized by tests (no fingerprint conflict or atomic replace yet). Legacy stack migration is a documented byte-preserving exception whose raw IO lives inside the repository.
277
- - ForgeWorkspace and host port v1 (Lane 2b): a minimal `ForgeWorkspace` snapshot owner (genuinely immutable, deep-frozen snapshots) over the repositories/codecs, plus a versioned `@zihanw/pi-forge/subagent` host-port protocol over the Pi event bus with the three minimal operations (discovery, profile listing, prepare). Mandatory lifecycle semantics are enforced and covered by tests: bounded timeouts, explicit duplicate-host failure, `hostId`+`generation`-bound request/reply so stale/foreign requests are rejected, disposal/`unavailable`, listener cleanup, host-owned prompt preparation (client sends only profile selector + task + backend facts), and recursive JSON-compatible operation validators. The host is wired into the real extension lifecycle via `pi.events` (host can only start after the first snapshot exists, so availability implies a loaded workspace; `reload` honors project trust; disposal runs before subagent teardown; the base system prompt is host-owned and empty for delegated subagents), with integration tests that discover, list, prepare, and observe disposal through the published `/subagent` surface — including that the host is not advertised before any session start. Operation validators are strict and recursive: exact nested field sets, typed enums, plain-object-only JSON compatibility, and unknown-field rejection — so `allowProcess` is the only process fact and no runtime access/limit/execution material crosses.
277
+ - ForgeWorkspace and host port v1 (Lane 2b): a minimal `ForgeWorkspace` snapshot owner (genuinely immutable, deep-frozen snapshots) over the repositories/codecs, plus a versioned `@jadelclemens/pi-forge/subagent` host-port protocol over the Pi event bus with the three minimal operations (discovery, profile listing, prepare). Mandatory lifecycle semantics are enforced and covered by tests: bounded timeouts, explicit duplicate-host failure, `hostId`+`generation`-bound request/reply so stale/foreign requests are rejected, disposal/`unavailable`, listener cleanup, host-owned prompt preparation (client sends only profile selector + task + backend facts), and recursive JSON-compatible operation validators. The host is wired into the real extension lifecycle via `pi.events` (host can only start after the first snapshot exists, so availability implies a loaded workspace; `reload` honors project trust; disposal runs before subagent teardown; the base system prompt is host-owned and empty for delegated subagents), with integration tests that discover, list, prepare, and observe disposal through the published `/subagent` surface — including that the host is not advertised before any session start. Operation validators are strict and recursive: exact nested field sets, typed enums, plain-object-only JSON compatibility, and unknown-field rejection — so `allowProcess` is the only process fact and no runtime access/limit/execution material crosses.
278
278
 
279
279
  - Documentation and migration notes (Lane 4d): the [public API policy](docs/reference/public-api.md) was rewritten for the three intentional entry points; the 0.4 subagent adapter contract reference was replaced by the [subagent host port contract](docs/reference/subagent-host-port.md); the [0.5 migration guide](docs/guides/migrating-to-0.5.md) now covers Lanes 1–4 with a [zh-CN translation](docs/zh-CN/guides/migrating-to-0.5.md); README, setup, getting-started, web-editor, features, and configuration docs were aligned with the optional-package split (EN + zh-CN).
280
280
 
@@ -323,7 +323,7 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
323
323
 
324
324
  ### Removed
325
325
 
326
- - **Breaking: legacy subagent compatibility surfaces.** Removed the `src/subagent-contract.ts` compatibility barrel (import the identical surface from `@zihanw/pi-forge/subagent` or the package root), the `subagentExecutionFingerprint` host fingerprint helper (execution fingerprints are runtime-issued), and the `scripts/subagent-sdk-spike*` diagnostic harness with its `spike:subagent` npm script and test. The spike's media-transport and trusted-extension preparation diagnostics are recorded as coverage debt in `docs/development/roadmap.md` and return with productized delegated media tasks.
326
+ - **Breaking: legacy subagent compatibility surfaces.** Removed the `src/subagent-contract.ts` compatibility barrel (import the identical surface from `@jadelclemens/pi-forge/subagent` or the package root), the `subagentExecutionFingerprint` host fingerprint helper (execution fingerprints are runtime-issued), and the `scripts/subagent-sdk-spike*` diagnostic harness with its `spike:subagent` npm script and test. The spike's media-transport and trusted-extension preparation diagnostics are recorded as coverage debt in `docs/development/roadmap.md` and return with productized delegated media tasks.
327
327
 
328
328
  ### Fixed
329
329
 
@@ -343,7 +343,7 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
343
343
  - **Read-only Pi subprocess backend.** Added the experimental `pi-subprocess-readonly` backend as the extension default. It runs one sequential foreground Pi subprocess with a clean conversation and only stack-filtered `read`, `grep`, `find`, and `ls` tools; write, edit, shell, skills, templates, context files, and third-party extensions are disabled.
344
344
  - **Inspectable subagent reports.** Foreground progress and bounded output now return through a normal Pi tool call result. Expandable result details retain the approval receipt, plan summary, normalized response, diagnostics, usage, bounded transcript tail, and tool calls/results while the full compiled prompt remains transient unless the user explicitly opens it before approval.
345
345
  - **Explicit shared-user execution boundary.** Access receipts can now distinguish isolated execution from a shared-user subprocess. The latter cannot claim mount, symlink, process, or network isolation and documents that read-only model tools do not reduce the child process's operating-system permissions.
346
- - **Public API classification.** Added a dedicated experimental `@zihanw/pi-forge/subagent` entry point and documented stable, experimental, and internal compatibility surfaces while preserving existing package-root exports.
346
+ - **Public API classification.** Added a dedicated experimental `@jadelclemens/pi-forge/subagent` entry point and documented stable, experimental, and internal compatibility surfaces while preserving existing package-root exports.
347
347
  - **Optional subagent backend registry.** Added empty-by-default validated backend registration, accepted-preflight binding, exact/backend-assisted preparation dispatch, execution and cancellation arbitration, host-abort timeout handling, failure normalization, and authorization-scoped trace routing. Deterministic fake-backend conformance tests cover the full adapter status and enforcement matrix.
348
348
  - **Experimental isolated Pi SDK backend.** Added a pi-forge-owned, text-only `pi-sdk-isolated` adapter backed by an in-memory Pi `AgentSession`. It accepts only access `none`, advertises no agent tools or stored artifacts/traces, blocks provider transport until exact host preparation and immutable-plan validation complete, and cleans up temporary runtime state after execution or discard.
349
349
  - **Human subagent test commands.** Added `/forge-agent backends`, `/forge-agent plan <profile> <task>`, and `/forge-agent run <profile> <task>`. Dry planning exercises the complete request pipeline without provider transport; TUI execution requires explicit provider-egress confirmation and returns a compact normalized response.
@@ -373,10 +373,10 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
373
373
 
374
374
  ### Changed
375
375
 
376
- - The npm tarball no longer includes physical `src/` files and uses compiled runtime entries. Legacy `@zihanw/pi-forge/src/*` imports continue to resolve to compiled modules, while development documentation directs source modifications through a repository clone and explicit local TypeScript extension entry.
376
+ - The npm tarball no longer includes physical `src/` files and uses compiled runtime entries. Legacy `@jadelclemens/pi-forge/src/*` imports continue to resolve to compiled modules, while development documentation directs source modifications through a repository clone and explicit local TypeScript extension entry.
377
377
  - The extension entry point is now a small composition root; prompt-stack state, one-shot profile activation, tool-policy/preview behavior, and shared web-editor lifecycle live in focused runtime modules.
378
378
  - The web editor client is authored as strict TypeScript/Vue source with a dedicated browser typecheck. A build-only Vite pipeline emits self-contained JavaScript and CSS strings for the localhost editor, and verification rejects stale generated output without publishing browser-only source modules.
379
- - **Breaking: browser-client compatibility paths.** `@zihanw/pi-forge/src/web-editor/client/*` imports are now explicitly blocked instead of matching the broad legacy `src/*` export wildcard. Browser implementation modules are build inputs rather than runtime integration surfaces; the supported editor delivery remains the generated embedded bundle.
379
+ - **Breaking: browser-client compatibility paths.** `@jadelclemens/pi-forge/src/web-editor/client/*` imports are now explicitly blocked instead of matching the broad legacy `src/*` export wildcard. Browser implementation modules are build inputs rather than runtime integration surfaces; the supported editor delivery remains the generated embedded bundle.
380
380
  - The subagent contract implementation is split into focused type, canonicalization, request, preflight, tool, context, plan, response, and diagnostic modules. Existing package-root and `src/subagent-contract.ts` exports remain compatibility barrels with an exact import-surface test.
381
381
  - Backend-assisted preparation now makes the adapter, rather than the caller, provide the complete runtime compiler inputs. The registry fingerprints and validates that runtime, invokes the host compiler exactly once, binds the resulting prompt/messages/tools to execution, routes discard through the owning backend, and rejects adapters or callers that bypass, alter, or refingerprint a substitute host result.
382
382
  - Profile commands now consume shared typed repository, application, preview, provenance, and drift-status services, establishing one behavioral core for profile UI and future subagent preparation.
@@ -387,7 +387,7 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
387
387
 
388
388
  ### Added
389
389
 
390
- - **Global forge extensions.** pi-forge now loads trusted macro/slot registration modules from `~/.pi/forge/extensions` before project-local `.pi/forge/extensions`, so users can keep personal custom macros and slots available across projects without importing `@zihanw/pi-forge`.
390
+ - **Global forge extensions.** pi-forge now loads trusted macro/slot registration modules from `~/.pi/forge/extensions` before project-local `.pi/forge/extensions`, so users can keep personal custom macros and slots available across projects without importing `@jadelclemens/pi-forge`.
391
391
 
392
392
  ### Changed
393
393
 
@@ -413,7 +413,7 @@ In 0.x development, breaking changes may occur in minor releases and will be exp
413
413
 
414
414
  ### Fixed
415
415
 
416
- - **Package install exports.** Installs now load compiled `dist` JavaScript instead of raw `.ts` files under `node_modules`, so `import { registerMacro, registerSlot } from "@zihanw/pi-forge"` works for reusable trusted extension packages without relying on Node TypeScript stripping. Git installs include the compiled output and do not require TypeScript during Pi's `npm install --omit=dev` step.
416
+ - **Package install exports.** Installs now load compiled `dist` JavaScript instead of raw `.ts` files under `node_modules`, so `import { registerMacro, registerSlot } from "@jadelclemens/pi-forge"` works for reusable trusted extension packages without relying on Node TypeScript stripping. Git installs include the compiled output and do not require TypeScript during Pi's `npm install --omit=dev` step.
417
417
  - **Preview policy simulation.** Web preview now compiles with the edited stack's tool policy applied to selected tools, snippets, and tool guidelines. This prevents preview from showing unrelated tool guidelines from the current Pi tool state.
418
418
  - **Empty-project web editor UX.** Empty stack directories now show a create/import path instead of leaving the editor in a dead-end state.
419
419
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # pi-forge
1
+ # @jadelclemens/pi-forge
2
2
 
3
3
  [English](README.md) | [简体中文](README.zh-CN.md) · [Documentation](docs/README.md) · [Quick start](#install-and-first-run)
4
4
 
@@ -40,7 +40,7 @@ the detection latch. See [unsupported-host boundaries](docs/guides/pi-1-compatib
40
40
  > [compatibility requirement](docs/reference/subagent-host-port.md#tool-selection-compatibility).
41
41
 
42
42
  ```bash
43
- pi install npm:@zihanw/pi-forge
43
+ pi install npm:@jadelclemens/pi-forge
44
44
  ```
45
45
 
46
46
  Restart Pi after installing or updating. In a trusted project:
package/README.zh-CN.md CHANGED
@@ -1,4 +1,4 @@
1
- # pi-forge
1
+ # @jadelclemens/pi-forge
2
2
 
3
3
  [English](README.md) | [简体中文](README.zh-CN.md) · [中文文档](docs/zh-CN/README.md) · [快速开始](#安装与第一次使用)
4
4
 
@@ -25,7 +25,7 @@ Forge 需要 **上游 Pi**。oh-my-pi 等缺少 `systemPromptOptions` / `context
25
25
  > **版本提示:** 本文介绍 Forge **0.5.13** 兼容更新:在 0.5.12 修复上下文差异内存问题的基础上增加 Pi 1.6 支持。工具策略和 Capability 执行语义保持不变。能力与可配置默认工具需要 0.5.5;可选 subagents 另有[兼容要求(英文)](docs/reference/subagent-host-port.md#tool-selection-compatibility)。
26
26
 
27
27
  ```bash
28
- pi install npm:@zihanw/pi-forge
28
+ pi install npm:@jadelclemens/pi-forge
29
29
  ```
30
30
 
31
31
  安装或更新后重启 Pi。然后在已信任的项目中:
package/docs/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # pi-forge documentation
1
+ # @jadelclemens/pi-forge documentation
2
2
 
3
3
  [Project README](../README.md) · [简体中文](zh-CN/README.md)
4
4
 
@@ -1,4 +1,4 @@
1
- # pi-forge 0.5.1 — Combined Release Plan
1
+ # @jadelclemens/pi-forge 0.5.1 — Combined Release Plan
2
2
 
3
3
  Status: active. Target release: 0.5.1 (first feature release after 0.5.0).
4
4
  Owner of truth: this document. Supersedes/folds in:
@@ -1,4 +1,4 @@
1
- # pi-forge 0.5.0 architecture plan (lean)
1
+ # @jadelclemens/pi-forge 0.5.0 architecture plan (lean)
2
2
 
3
3
  [Documentation](../README.md) · [Roadmap](../development/roadmap.md) · [Architecture rules](../development/architecture-rules.md)
4
4
 
@@ -27,20 +27,20 @@ It is not a platformization release.
27
27
  3. **`forge-v1` replaces the macro implementation.** One parsed grammar with interpolation, a finite filter set, and `if`/`else` over documented environment predicates. No includes, loops, function calls, general expressions, or ambient access.
28
28
  4. **The trusted extension port is retained and redesigned in this release.** `registerMacro` and `registerSlot` survive with a pure contract. The contract is specified in [Extension port contract](#extension-port-contract-050).
29
29
  5. **Regex `display` and `both` are removed.** Valid effects become `outgoing` and `finalize`. `finalize` behavior is retained with explicit ownership in [Finalize regex ownership](#finalize-regex-ownership-050).
30
- 6. **Subagents move to an optional `pi-forge-subagents` package.** The main package removes the hard dependency on `@zihanw/pi-subagent-runtime`. The main package keeps `@zihanw/pi-forge/subagent` as a versioned host port with data-only event-bus messages. The `/subagent` entry owns a minimal Forge DTO host contract — wire messages, recursive validators, transport, and client/host lifecycle — plus a Forge-owned canonical fingerprint helper that stays byte-compatible with the runtime's `sha256:v1` canonical JSON. The 0.4 execution contract (the Forge host product types layered over the runtime's portable contract: request, preflight, plan, response, context, tool negotiation, and their validators) moves to the optional package with names unchanged; the optional package imports the runtime's portable leaves directly.
30
+ 6. **Subagents move to an optional `pi-forge-subagents` package.** The main package removes the hard dependency on `@zihanw/pi-subagent-runtime`. The main package keeps `@jadelclemens/pi-forge/subagent` as a versioned host port with data-only event-bus messages. The `/subagent` entry owns a minimal Forge DTO host contract — wire messages, recursive validators, transport, and client/host lifecycle — plus a Forge-owned canonical fingerprint helper that stays byte-compatible with the runtime's `sha256:v1` canonical JSON. The 0.4 execution contract (the Forge host product types layered over the runtime's portable contract: request, preflight, plan, response, context, tool negotiation, and their validators) moves to the optional package with names unchanged; the optional package imports the runtime's portable leaves directly.
31
31
  7. **The 0.5.0 host port has a minimal operation catalogue and mandatory lifecycle rules.** Operations are discovery, profile listing/snapshot, and prompt preparation. Correlation IDs, payload validation, timeouts, host generation, duplicate-host failure, disposal/`unavailable`, and listener cleanup are part of host port v1, not deferred.
32
32
  8. **`ForgeWorkspace` is the minimal resource-state owner, and all stack/profile persistence goes through minimal repositories and codecs in 0.5.0.** Repositories own scoped discovery and mutation; codecs own parse/normalize/validate/serialize. Expected-fingerprint writes and guaranteed atomic replacement are 0.5.x work.
33
33
  9. **Configuration ownership uses dedicated optional-package files.** Main package owns `webEditor.*` in `.pi/forge/config.json` and its global equivalent. The optional package owns `.pi/forge/subagents.json` and `~/.pi/forge/subagents.json`. Main pi-forge does not read, write, validate, or clean subagent configuration. Legacy `config.json.subagents` is read-only fallback material for the optional package, with warnings and no automatic migration.
34
34
  10. **Web editor delegation UI is removed from the main package in 0.5.0.** The optional package ships config-only for delegation. A small standalone optional-package editor page is the 0.5.x path; a main-editor contribution port is not designed now.
35
35
  11. **Pi session custom entries:** newly written stack/profile entries use a `schemaVersion` envelope. Unversioned 0.4 entries are decoded through legacy readers. `pi-forge-variable-state` is never restored or written; one bounded diagnostic is emitted per restoration.
36
- 12. **Public surfaces are exactly three intentional entry points:** package root default factory, package root named extension API (`registerMacro`, `registerSlot`, and their contract types), and `@zihanw/pi-forge/subagent`. All other root re-exports and `src/*` aliases are removed. `check-package` enforces this allowlist.
36
+ 12. **Public surfaces are exactly three intentional entry points:** package root default factory, package root named extension API (`registerMacro`, `registerSlot`, and their contract types), and `@jadelclemens/pi-forge/subagent`. All other root re-exports and `src/*` aliases are removed. `check-package` enforces this allowlist.
37
37
  13. **Migration is a small utility plus release notes, not a framework.** A v1-to-v2 script converts mechanical `variables`/macro fields with explicit diagnostics; removed behavior is never silently approximated.
38
38
 
39
39
  ## Accepted 0.5.1 amendment: generic settings contributions
40
40
 
41
41
  Dogfooding invalidated decisions 10 and 12 as forward-looking constraints, while preserving their 0.5.0 historical outcome. The accepted 0.5.1 amendment is:
42
42
 
43
- 1. `@zihanw/pi-forge/ui-contribution` is a fourth intentional, experimental entry point. It is a generic, versioned, data-only event-bus port; main pi-forge owns the renderer and HTTP proxy but has no subagent-specific schema or persistence logic.
43
+ 1. `@jadelclemens/pi-forge/ui-contribution` is a fourth intentional, experimental entry point. It is a generic, versioned, data-only event-bus port; main pi-forge owns the renderer and HTTP proxy but has no subagent-specific schema or persistence logic.
44
44
  2. Optional packages may contribute restricted schema-driven Settings pages. Schemas and values are recursively validated JSON data; provider handlers may be asynchronous and receive generation-bound cancellation before side effects.
45
45
  3. `pi-forge-subagents` remains the sole owner of both `subagents.json` files. It obtains profile choices only through `/subagent`, contributes plain settings descriptors through `/ui-contribution`, and performs all subagent validation and persistence itself.
46
46
  4. This amendment does not authorize a general plugin UI/component runtime, arbitrary browser code, a second resource registry, or main-package reads/writes of optional-package configuration.
@@ -177,7 +177,7 @@ Archive the full proposal, make this lean plan active, and simplify repository g
177
177
  ### Lane 2b: ForgeWorkspace and host port v1
178
178
 
179
179
  - Introduce `ForgeWorkspace` as the minimal snapshot owner over the Lane 2a repositories: one immutable scoped stack/profile snapshot plus active selection/provenance, owning host registration/generation/disposal.
180
- - Publish `@zihanw/pi-forge/subagent` host port v1 over the Pi event bus with mandatory lifecycle rules and the three minimal operations (discovery, profile listing/snapshot, and prompt preparation). The port is transport-neutral (`ForgeHostTransport`), uses plain validated data messages, and never crosses live contexts or internal registries.
180
+ - Publish `@jadelclemens/pi-forge/subagent` host port v1 over the Pi event bus with mandatory lifecycle rules and the three minimal operations (discovery, profile listing/snapshot, and prompt preparation). The port is transport-neutral (`ForgeHostTransport`), uses plain validated data messages, and never crosses live contexts or internal registries.
181
181
  - Mandatory lifecycle semantics: clients subscribe before announcing/discovering and use bounded timeouts; duplicate live hosts fail with an explicit `host.duplicate` error; disposal sends `unavailable` and invalidates connections; all transient and persistent listeners are cleaned up. `request`/`reply` wire messages carry `hostId` + `generation`, so stale-generation and wrong-host requests are rejected server-side and mismatched replies are ignored client-side.
182
182
  - Host-owned preparation: the client sends only a profile selector, task, prompt-compilation access facts (`level`/`network`/`allowProcess`) and backend facts (model/thinking/tool catalog); the workspace resolves the profile + stack from its snapshot and compiles the prompt itself, returning an immutable preparation artifact (system prompt, messages, effective tools, diagnostics, and profile snapshot). No execution/runtime material (access workspace model, limits, `resultProjection`/`parent`/`remoteEgressConsent`, or a base prompt) crosses the boundary. Each operation has a recursive, exact-field, JSON-compatible validator (plain objects only, enums enforced) at the wire boundary.
183
183
  - `ForgeWorkspace` snapshots are genuinely immutable (deep-frozen clones), and the host port is wired into the real extension lifecycle (`pi.events` transport; reload on session start/tree/compact; dispose on session shutdown, before subagent teardown). The host can only be started after the first snapshot exists (`startHostPort` throws otherwise), so `host available` ⇒ `snapshotKnown`; `reload` honors project trust (untrusted workspaces expose global resources only). The base system prompt is host-owned and intentionally empty for delegated subagents — the prompt stack composes the system prompt, and the host rejects unknown request fields so no prompt-runtime material can be smuggled across the boundary.
@@ -19,20 +19,20 @@ consumer exists.
19
19
  | Surface | Known consumer / evidence | Confidence | 0.5 implication |
20
20
  |---|---|---|---|
21
21
  | Default package entry | `pi.extensions` in the published manifest | High | Retain as main extension entry |
22
- | `@zihanw/pi-forge/subagent` | Public-API packaged-import test; reference documentation | High | Retain only as the deliberate versioned host port |
22
+ | `@jadelclemens/pi-forge/subagent` | Public-API packaged-import test; reference documentation | High | Retain only as the deliberate versioned host port |
23
23
  | Root macro/slot registration | Custom-system-status example, user guide, and Pi package listing | High | Acknowledge a real documented integration path; publish a migration or replacement contract |
24
24
  | Root profile/resource helper exports | Repository tests and root barrel only | Medium | No named external consumer found; do not preserve by default |
25
- | `@zihanw/pi-forge/src/*` aliases | Compatibility documentation and package manifest | Medium | No named external consumer found; announce removal and retain no new alias |
25
+ | `@jadelclemens/pi-forge/src/*` aliases | Compatibility documentation and package manifest | Medium | No named external consumer found; announce removal and retain no new alias |
26
26
  | Root documentation pointers | Package `files` allowlist, root `PUBLIC_API.md`, root `SUBAGENT_ADAPTER_CONTRACT.md` | High | Decide whether to retain as offline redirect files |
27
27
  | SillyTavern converter/command | Released docs, examples, and tests | High | User-facing migration obligation, but planned removal is explicit |
28
28
 
29
29
  The local repository contains no package-style import other than its own
30
- `@zihanw/pi-forge/subagent` public-surface test. It contains no downstream
30
+ `@jadelclemens/pi-forge/subagent` public-surface test. It contains no downstream
31
31
  repository or fixture that imports a `src/*` alias.
32
32
 
33
33
  ## Published-package observations
34
34
 
35
- - npm reported `@zihanw/pi-forge` 0.4.1 as `latest` on 2026-08-17. Its manifest
35
+ - npm reported `@jadelclemens/pi-forge` 0.4.1 as `latest` on 2026-08-17. Its manifest
36
36
  contains the root and `/subagent` exports, the three `src/*` compatibility
37
37
  patterns, and `@zihanw/pi-subagent-runtime` as a hard dependency.
38
38
  - The same manifest identifies Pi SDK packages and `typebox` as wildcard peers.
@@ -43,8 +43,8 @@ repository or fixture that imports a `src/*` alias.
43
43
 
44
44
  ## Search results and limitations
45
45
 
46
- - Exact public-web searches for `@zihanw/pi-forge`,
47
- `@zihanw/pi-forge/subagent`, and `@zihanw/pi-forge/src/` found the package
46
+ - Exact public-web searches for `@jadelclemens/pi-forge`,
47
+ `@jadelclemens/pi-forge/subagent`, and `@jadelclemens/pi-forge/src/` found the package
48
48
  listing and this repository's published material, but no independent source
49
49
  import.
50
50
  - Unauthenticated GitHub code search rejected the exact-import query with HTTP
@@ -32,9 +32,9 @@ consumers; that check remains a Phase 6 release task.
32
32
 
33
33
  ### Package manifest
34
34
 
35
- - Package: `@zihanw/pi-forge` 0.4.1; Pi entry: `dist/index.js`.
36
- - Public exports: package root, `@zihanw/pi-forge/subagent`, examples, and broad
37
- compiled `@zihanw/pi-forge/src/*` compatibility aliases. Browser client paths
35
+ - Package: `@jadelclemens/pi-forge` 0.4.1; Pi entry: `dist/index.js`.
36
+ - Public exports: package root, `@jadelclemens/pi-forge/subagent`, examples, and broad
37
+ compiled `@jadelclemens/pi-forge/src/*` compatibility aliases. Browser client paths
38
38
  are explicitly blocked.
39
39
  - Pi SDK packages and `typebox` are optional wildcard peers. The repository's
40
40
  development fixture is Pi 0.83.0; no minimum or tested Pi range is published.
@@ -55,7 +55,7 @@ consumers; that check remains a Phase 6 release task.
55
55
  | `src/*` aliases | Documentation and package checks | Remove in Phase 6 after consumer audit and migration notice |
56
56
 
57
57
  The only in-repository package-style import is the public-API test of
58
- `@zihanw/pi-forge/subagent`. Documentation identifies trusted macro/slot
58
+ `@jadelclemens/pi-forge/subagent`. Documentation identifies trusted macro/slot
59
59
  extension authors as intended consumers. No external consumer audit is recorded.
60
60
 
61
61
  ### Phase-0 public-surface decision register
@@ -71,7 +71,7 @@ exports.
71
71
  | Macro/slot and trusted Forge extension registration | Stable or experimental | Deliberate main-package extension port | Custom-system-status example; documented trusted extension authors | Pending compiler-extension contract |
72
72
  | Resource identity/catalog/loader helpers | Internal unless a named consumer requires a domain port | No `src/*` replacement by default | Root barrel and tests only | Pending consumer audit |
73
73
  | Profile repository/resolution/application helpers | Experimental or internal | Deliberate service/domain entry only if justified | Root barrel and tests only | Pending service boundary and consumer audit |
74
- | `/subagent` host contract | Versioned experimental host port | `@zihanw/pi-forge/subagent` | Public-API test; future optional extension | Pending host-discovery decision |
74
+ | `/subagent` host contract | Versioned experimental host port | `@jadelclemens/pi-forge/subagent` | Public-API test; future optional extension | Pending host-discovery decision |
75
75
  | Root re-exports of subagent names | Remove or retain only as one-release migration shim | Direct consumers to `/subagent` | 0.4 compatibility policy | Pending consumer audit and migration decision |
76
76
  | `src/*` aliases | Remove | Intentional entries only | Compatibility documentation | Planned removal in Phase 6 |
77
77
  | `PUBLIC_API.md` and `SUBAGENT_ADAPTER_CONTRACT.md` | Retain as package pointers or replace with package-local index | Decide published-file policy with the final entries | `files` allowlist and current documentation | Pending Phase 6 public-doc decision |
@@ -189,9 +189,9 @@ repeated runs are idempotent, and every removed field is reported. The final
189
189
  ### Candidate decision
190
190
 
191
191
  Do not publish `pi-forge-core` in 0.5. Establish its boundaries as enforced
192
- internal modules first. Publish only `@zihanw/pi-forge` and the optional
192
+ internal modules first. Publish only `@jadelclemens/pi-forge` and the optional
193
193
  `pi-forge-subagents` package in Phase 5. The optional package uses documented
194
- `@zihanw/pi-forge/subagent` host-port messages and Pi wildcard peers; it has no
194
+ `@jadelclemens/pi-forge/subagent` host-port messages and Pi wildcard peers; it has no
195
195
  dependency on core internals, web-editor modules, or a private copy of runtime
196
196
  state. Extract core as a third package only after 0.5 if a named consumer proves
197
197
  that package boundary necessary.
@@ -1,4 +1,4 @@
1
- # pi-forge 0.5.0 architecture plan
1
+ # @jadelclemens/pi-forge 0.5.0 architecture plan
2
2
 
3
3
  [Documentation](../../../README.md) · [Development rules](../../../development/architecture-rules.md) · [Roadmap](../../../development/roadmap.md)
4
4
 
@@ -67,7 +67,7 @@ The extraction must use a versioned Forge host port. It may not import internal
67
67
 
68
68
  Confirmed decisions:
69
69
 
70
- - `@zihanw/pi-forge/subagent` remains a main-package entry point, but is cleaned into a versioned host port / host-neutral contract rather than re-exporting internal host preparation modules.
70
+ - `@jadelclemens/pi-forge/subagent` remains a main-package entry point, but is cleaned into a versioned host port / host-neutral contract rather than re-exporting internal host preparation modules.
71
71
  - The main package removes the hard dependency on `@zihanw/pi-subagent-runtime`; that dependency moves to `pi-forge-subagents` or becomes an optional peer dependency.
72
72
  - The optional package may depend on the main package only through documented public ports.
73
73
 
@@ -88,7 +88,7 @@ The following decisions were confirmed while this plan was in proposed status. I
88
88
 
89
89
  ### Component ownership
90
90
 
91
- - B1: `@zihanw/pi-forge/subagent` remains in the main package as a versioned host port / host-neutral contract, but its internal implementation surface is cleaned.
91
+ - B1: `@jadelclemens/pi-forge/subagent` remains in the main package as a versioned host port / host-neutral contract, but its internal implementation surface is cleaned.
92
92
  - B2: Remove the main package hard dependency on `@zihanw/pi-subagent-runtime`.
93
93
  - B3: Forge extension loading/unloading and registry coordination are owned by `ForgeWorkspace`.
94
94
  - B4: Tool-policy synchronization is defined as a port (`ToolPolicyPort`), called by `PromptStackService`; Pi adapter implements it.
@@ -153,7 +153,7 @@ The high-risk connections are shared state ownership, circular stack/profile coo
153
153
 
154
154
  ```mermaid
155
155
  flowchart TB
156
- subgraph Main["@zihanw/pi-forge"]
156
+ subgraph Main["@jadelclemens/pi-forge"]
157
157
  PiAdapters["Pi lifecycle + command adapters"]
158
158
  WebAdapters["HTTP + browser adapters"]
159
159
  Workspace["ForgeWorkspace"]
@@ -300,7 +300,7 @@ Moving to a workspace is an implementation choice, not permission to move files
300
300
  | SillyTavern fidelity importer and regex emulation | Remove completely; 0.4 is the last supported conversion path |
301
301
  | Regex history/compiled transforms | Keep initially; no new modes during 0.5 |
302
302
  | Destructive finalized-transcript regex | Audit separately before schema v2 is frozen |
303
- | Foreground subagent integration | Move to optional `pi-forge-subagents`; `@zihanw/pi-forge/subagent` remains as a versioned host port/contract |
303
+ | Foreground subagent integration | Move to optional `pi-forge-subagents`; `@jadelclemens/pi-forge/subagent` remains as a versioned host port/contract |
304
304
  | `src/*` package exports | Remove; update `check-package.mjs`, public API docs/tests in the same change |
305
305
  | Legacy prompt-stack storage migration command | Remove after documenting the required pre-0.5 migration path |
306
306
 
@@ -358,7 +358,7 @@ Exit: dependency checks show adapters pointing inward with no direct resource pe
358
358
  ### Phase 5: subagent extraction and packages
359
359
 
360
360
  - Validate cross-extension capability discovery with a focused spike.
361
- - Publish the versioned Forge host port and clean `@zihanw/pi-forge/subagent` into that stable surface.
361
+ - Publish the versioned Forge host port and clean `@jadelclemens/pi-forge/subagent` into that stable surface.
362
362
  - Remove the main package hard dependency on `@zihanw/pi-subagent-runtime`.
363
363
  - Move subagent configuration, commands, tools, UI, and runtime adaptation into `pi-forge-subagents`.
364
364
  - Ensure main pi-forge installs and runs without subagent dependencies.
@@ -60,12 +60,12 @@ or the return value of `emit()`. A minimal protocol has these message families:
60
60
 
61
61
  | Channel family | Direction | Required behavior |
62
62
  |---|---|---|
63
- | `@zihanw/pi-forge/host/v1/discover` | Client → host | Carries request ID, client identity/version, and supported protocol range |
64
- | `@zihanw/pi-forge/host/v1/available` | Host → clients | Announces host ID, protocol version, capability set, and lifecycle generation after discovery listener registration |
65
- | `@zihanw/pi-forge/host/v1/reply` | Host → client | Correlates discovery or operation result with request ID; carries typed success/failure data |
66
- | `@zihanw/pi-forge/host/v1/request` | Client → host | Invokes only documented operations using validated request data |
67
- | `@zihanw/pi-forge/host/v1/update` | Host → client | Optional bounded progress/resource-change events correlated to subscription or run IDs |
68
- | `@zihanw/pi-forge/host/v1/unavailable` | Host → clients | Invalidates host ID/generation during disposal or replacement |
63
+ | `@jadelclemens/pi-forge/host/v1/discover` | Client → host | Carries request ID, client identity/version, and supported protocol range |
64
+ | `@jadelclemens/pi-forge/host/v1/available` | Host → clients | Announces host ID, protocol version, capability set, and lifecycle generation after discovery listener registration |
65
+ | `@jadelclemens/pi-forge/host/v1/reply` | Host → client | Correlates discovery or operation result with request ID; carries typed success/failure data |
66
+ | `@jadelclemens/pi-forge/host/v1/request` | Client → host | Invokes only documented operations using validated request data |
67
+ | `@jadelclemens/pi-forge/host/v1/update` | Host → client | Optional bounded progress/resource-change events correlated to subscription or run IDs |
68
+ | `@jadelclemens/pi-forge/host/v1/unavailable` | Host → clients | Invalidates host ID/generation during disposal or replacement |
69
69
 
70
70
  The final operation catalogue is still open, but must expose results and
71
71
  snapshots—not Pi contexts, `ForgeWorkspace`, loaded resource objects, web-editor
@@ -1,4 +1,4 @@
1
- # pi-forge `system_update` Design Notes
1
+ # @jadelclemens/pi-forge `system_update` Design Notes
2
2
 
3
3
  **Status:** Current plan (revised 2026-09-12). Supersedes the 2026-09-10
4
4
  exploration draft, which assumed pi-forge would implement the full
@@ -49,7 +49,7 @@ The previous 1,373-line `src/subagent-contract.ts` implementation is now a seven
49
49
 
50
50
  ### Package and API boundaries
51
51
 
52
- The [public API policy](../reference/public-api.md) classifies stable, experimental, and compatibility surfaces. `@zihanw/pi-forge/subagent` is the preferred experimental integration entry point, while legacy `src/*` aliases resolve to compiled modules without publishing source files.
52
+ The [public API policy](../reference/public-api.md) classifies stable, experimental, and compatibility surfaces. `@jadelclemens/pi-forge/subagent` is the preferred experimental integration entry point, while legacy `src/*` aliases resolve to compiled modules without publishing source files.
53
53
 
54
54
  ## Current Complexity Hotspots
55
55
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## Independent packages
6
6
 
7
- The main `@zihanw/pi-forge` package has **no** dependency on `@zihanw/pi-forge-subagents` or `@zihanw/pi-subagent-runtime`. It can release independently; unfinished optional features do not block ordinary Forge use or a main-package release.
7
+ The main `@jadelclemens/pi-forge` package has **no** dependency on `@zihanw/pi-forge-subagents` or `@zihanw/pi-subagent-runtime`. It can release independently; unfinished optional features do not block ordinary Forge use or a main-package release.
8
8
 
9
9
  The optional package is tested against the released Forge host before its own publication. Any required runtime version must be published and smoke-tested before publishing the optional package that depends on it. Backend, continuation, background-task, and nested-usage producer acceptance belong to that companion release, not to the main package.
10
10
 
@@ -5,7 +5,7 @@
5
5
  ## Build from source
6
6
 
7
7
  ```bash
8
- git clone https://github.com/MacroSony/pi-forge.git
8
+ git clone https://git.jadelclemens.xyz/pi-plugins/pi-forge.git
9
9
  cd pi-forge
10
10
  npm install
11
11
  npm run build
@@ -85,8 +85,8 @@ Document the tested range separately from peer constraints. Pi-coupled experimen
85
85
 
86
86
  ## Package boundaries
87
87
 
88
- - `@zihanw/pi-forge` is the Pi extension (default export) and the stable macro/slot registration surface; no other root exports or `src/*` aliases exist.
89
- - `@zihanw/pi-forge/subagent` is the experimental versioned host-port entry point (wire DTOs, validators, transport, client/host lifecycle, canonical fingerprints).
88
+ - `@jadelclemens/pi-forge` is the Pi extension (default export) and the stable macro/slot registration surface; no other root exports or `src/*` aliases exist.
89
+ - `@jadelclemens/pi-forge/subagent` is the experimental versioned host-port entry point (wire DTOs, validators, transport, client/host lifecycle, canonical fingerprints).
90
90
  - `@zihanw/pi-forge-subagents` is the optional package owning subagent execution, configuration, and the 0.4 execution contract.
91
91
  - `@zihanw/pi-subagent-runtime` owns execution lifecycle and fresh-process backends (a dependency of the optional package, not of the main package).
92
92
 
@@ -7,7 +7,7 @@
7
7
  pi-forge requires Node.js 22.19 or newer and runs as a Pi extension.
8
8
 
9
9
  ```bash
10
- pi install npm:@zihanw/pi-forge
10
+ pi install npm:@jadelclemens/pi-forge
11
11
  ```
12
12
 
13
13
  Restart Pi after installing or updating. The running Pi host supplies its SDK packages; see [Pi compatibility](development/setup.md#pi-compatibility) for the tested-version policy.
@@ -60,7 +60,7 @@ Use the slot declaratively:
60
60
 
61
61
  The API provides `forgeDir`, `extensionPath`, helpers, registration functions, and `getRegisteredMacros()` / `getRegisteredSlots()`. Custom macro renderers receive a frozen `{ env, helpers }` and dependencies from the declaration. Global `forgeDir` is `~/.pi/forge`; project `forgeDir` is `<project>/.pi/forge`.
62
62
 
63
- Reusable Pi packages may import `registerMacro` and `registerSlot` from `@zihanw/pi-forge`. The directory loaders are intended for small trusted customizations without package boilerplate.
63
+ Reusable Pi packages may import `registerMacro` and `registerSlot` from `@jadelclemens/pi-forge`. The directory loaders are intended for small trusted customizations without package boilerplate.
64
64
 
65
65
  ## Security
66
66
 
@@ -75,7 +75,7 @@ stored assistant message.
75
75
 
76
76
  ## Lane 3: subagent package split
77
77
 
78
- Subagent execution moved out of the main package into the optional `@zihanw/pi-forge-subagents` package (requires `@zihanw/pi-forge@^0.5.0`). Install it separately to keep foreground delegation.
78
+ Subagent execution moved out of the main package into the optional `@zihanw/pi-forge-subagents` package (requires `@jadelclemens/pi-forge@^0.5.0`). Install it separately to keep foreground delegation.
79
79
 
80
80
  - **Commands:** `/subagents` and `/subagent-run` were removed from the main package. The optional package registers `/forge-agent backends|plan|run`.
81
81
  - **Model tools:** `forge_subagent_profiles` and `forge_subagent` are registered by the optional package.
@@ -86,19 +86,19 @@ Subagent execution moved out of the main package into the optional `@zihanw/pi-f
86
86
  ## Lane 4: Forge-native host contract and public surface
87
87
 
88
88
  - The main package no longer depends on `@zihanw/pi-subagent-runtime` and no longer exports the 0.4 execution contract. That contract (`AgentRequest`, `createAgentExecutionPlan`, `validateAgentRequest`, `negotiateSubagentTools`, preflight/plan/response validators, …) now lives in `@zihanw/pi-forge-subagents` for its own runtime wiring; it is not a public surface of either package for third-party consumers.
89
- - `@zihanw/pi-forge/subagent` now exports only the versioned host port: wire DTOs and validators, `ForgeHostTransport`, `ForgeHost`/`ForgeHostClient`, lifecycle constants, and the Forge-owned canonical fingerprint helpers. `resolveSubagentHostProfile` / `prepareSubagentHostPlan` were replaced by the host-port operations `resolveProfile` and `prepare`.
89
+ - `@jadelclemens/pi-forge/subagent` now exports only the versioned host port: wire DTOs and validators, `ForgeHostTransport`, `ForgeHost`/`ForgeHostClient`, lifecycle constants, and the Forge-owned canonical fingerprint helpers. `resolveSubagentHostProfile` / `prepareSubagentHostPlan` were replaced by the host-port operations `resolveProfile` and `prepare`.
90
90
  - The package root exports only the default extension factory, `registerMacro`/`registerSlot`, and their contract types. All other root re-exports (loader, agent-profile, profile-service, catalog, resource-identity, render-helper values, the `forge-v1` engine, registry readers) were removed.
91
- - All `@zihanw/pi-forge/src/*` subpath aliases and the `./examples/*` export were removed; `check-package` rejects them.
91
+ - All `@jadelclemens/pi-forge/src/*` subpath aliases and the `./examples/*` export were removed; `check-package` rejects them.
92
92
 
93
93
  ### Import migration table
94
94
 
95
95
  | 0.4 import | 0.5 replacement |
96
96
  |---|---|
97
- | `@zihanw/pi-forge` (default, `registerMacro`, `registerSlot`) | unchanged |
98
- | `@zihanw/pi-forge/subagent` host-port names (`ForgeHost*`, validators, fingerprints) | unchanged |
99
- | `@zihanw/pi-forge/subagent` execution contract (`AgentRequest`, `createAgentExecutionPlan`, …) | internal to `@zihanw/pi-forge-subagents`; no public replacement |
100
- | `@zihanw/pi-forge/subagent` `resolveSubagentHostProfile` / `prepareSubagentHostPlan` | host-port operations via `ForgeHostClient` |
101
- | `@zihanw/pi-forge/src/*` aliases | removed; no replacement (internals) |
97
+ | `@jadelclemens/pi-forge` (default, `registerMacro`, `registerSlot`) | unchanged |
98
+ | `@jadelclemens/pi-forge/subagent` host-port names (`ForgeHost*`, validators, fingerprints) | unchanged |
99
+ | `@jadelclemens/pi-forge/subagent` execution contract (`AgentRequest`, `createAgentExecutionPlan`, …) | internal to `@zihanw/pi-forge-subagents`; no public replacement |
100
+ | `@jadelclemens/pi-forge/subagent` `resolveSubagentHostProfile` / `prepareSubagentHostPlan` | host-port operations via `ForgeHostClient` |
101
+ | `@jadelclemens/pi-forge/src/*` aliases | removed; no replacement (internals) |
102
102
  | root loader/profile/catalog/engine re-exports | removed; no replacement (internals) |
103
103
 
104
104
  ## Upstream Pi 0.87 migration
@@ -72,7 +72,7 @@ The 0.5.8 section below records the previous release's policy (peers through `<1
72
72
 
73
73
  ## Forge 0.5.8 versus older packages
74
74
 
75
- This guide covers the **Forge 0.5.8** compatibility patch. Installing the older `@zihanw/pi-forge@0.5.7` does not install these changes: that artifact still declares Pi peers `>=0.87.0 <0.88.0`.
75
+ This guide covers the **Forge 0.5.8** compatibility patch. Installing the older `@jadelclemens/pi-forge@0.5.7` does not install these changes: that artifact still declares Pi peers `>=0.87.0 <0.88.0`.
76
76
 
77
77
  Forge 0.5.8 declares the following peer policy for the four Pi SDK packages:
78
78
 
@@ -6,8 +6,8 @@ Status: neutral, versioned. This is an optional appearance/session metadata seam
6
6
 
7
7
  ## Channels
8
8
 
9
- - Snapshot/change: `@zihanw/pi-forge/active-state/v1`
10
- - Snapshot request: `@zihanw/pi-forge/active-state/request/v1`
9
+ - Snapshot/change: `@jadelclemens/pi-forge/active-state/v1`
10
+ - Snapshot request: `@jadelclemens/pi-forge/active-state/request/v1`
11
11
 
12
12
  The production publisher is the main pi-forge extension. It registers the request listener on attach and removes it on disposal/session switch. No unbounded retries or timers are used.
13
13
 
@@ -5,7 +5,7 @@ This file tracks the currently implemented feature surface for agent profiles, t
5
5
  ## Package and Runtime
6
6
 
7
7
  - Pi package manifest with compiled `dist/index.js` exposed through `package.json` `pi.extensions`.
8
- - Public npm package configuration for `@zihanw/pi-forge`.
8
+ - Public npm package configuration for `@jadelclemens/pi-forge`.
9
9
  - Compiled npm runtime containing JavaScript, declarations, documentation, and examples without physical `src/` files; repository source remains available for clone-based development.
10
10
  - Tarball verification rejects physical `src/` entries and requires the root and subagent compiled entry points.
11
11
  - The web editor's HTML page shell and static styles are maintained separately from its browser behavior modules.
@@ -35,7 +35,7 @@ This file tracks the currently implemented feature surface for agent profiles, t
35
35
 
36
36
  ## Subagent Host Port
37
37
 
38
- - Experimental versioned `@zihanw/pi-forge/subagent` entry point: the minimal Forge DTO host contract (wire messages, recursive exact-field validators, transport-neutral `ForgeHostTransport`, `ForgeHost`/`ForgeHostClient` lifecycle) plus Forge-owned canonical `sha256:v1` fingerprint helpers byte-compatible with the runtime's canonical JSON.
38
+ - Experimental versioned `@jadelclemens/pi-forge/subagent` entry point: the minimal Forge DTO host contract (wire messages, recursive exact-field validators, transport-neutral `ForgeHostTransport`, `ForgeHost`/`ForgeHostClient` lifecycle) plus Forge-owned canonical `sha256:v1` fingerprint helpers byte-compatible with the runtime's canonical JSON.
39
39
  - Mandatory lifecycle semantics: bounded discovery timeouts, explicit duplicate-host failure, `hostId`+`generation`-bound request/reply with stale/foreign rejection, disposal with `unavailable` and full listener cleanup. The host starts only after the first workspace snapshot exists, so an advertised host implies a loaded workspace; reload honors project trust (untrusted workspaces expose global resources only).
40
40
  - Three minimal operations: `listProfiles` (loaded profile summaries with diagnostics), `resolveProfile` (immutable host-owned profile snapshot artifact with content fingerprints), and `prepare` (host-owned prompt compilation).
41
41
  - Host-owned preparation: the client sends only a profile selector, the task text, prompt-compilation access facts (`level`/`network`/`allowProcess`), and backend facts (model, thinking level, tool catalog). The workspace resolves the profile and stack from its snapshot, filters the tool catalog through stack policy and access facts, and compiles through the same compilation context as runtime and preview. Responses return the system prompt, messages ending with the protected delegated task, effective tool IDs/names, diagnostics, the profile snapshot, and `preparedAt`.
@@ -11,7 +11,7 @@ pi-forge is pre-1.0. This document defines the intentional integration surfaces
11
11
  ### 1. Package root: extension factory
12
12
 
13
13
  ```ts
14
- import piForge from "@zihanw/pi-forge";
14
+ import piForge from "@jadelclemens/pi-forge";
15
15
  ```
16
16
 
17
17
  The default export is the Pi extension entry point declared by `pi.extensions`. Most users install the package and never import it directly.
@@ -19,7 +19,7 @@ The default export is the Pi extension entry point declared by `pi.extensions`.
19
19
  ### 2. Package root: trusted extension API
20
20
 
21
21
  ```ts
22
- import { registerMacro, registerSlot } from "@zihanw/pi-forge";
22
+ import { registerMacro, registerSlot } from "@jadelclemens/pi-forge";
23
23
  import type {
24
24
  ForgeExtensionApi,
25
25
  ForgeExtensionRegister,
@@ -37,12 +37,12 @@ import type {
37
37
  PromptSlotDefinition,
38
38
  PromptSlotRenderContext,
39
39
  PromptSlotRenderer,
40
- } from "@zihanw/pi-forge";
40
+ } from "@jadelclemens/pi-forge";
41
41
  ```
42
42
 
43
43
  Supported for trusted reusable and project-local extensions. The contract (pure renderers, declared dependencies, immutable `PromptEnvironment`, bounded output) is specified in the [0.5.0 architecture plan](../design/architecture-0.5.md#extension-port-contract-050) and the [custom macros and slots guide](../guides/custom-macros-and-slots.md).
44
44
 
45
- ### 3. `@zihanw/pi-forge/subagent`: versioned host port
45
+ ### 3. `@jadelclemens/pi-forge/subagent`: versioned host port
46
46
 
47
47
  ```ts
48
48
  import {
@@ -53,7 +53,7 @@ import {
53
53
  validatePrepareRequest, validatePrepareResponse,
54
54
  canonicalSubagentJson, subagentFingerprint,
55
55
  subagentSourceProfileFingerprint, subagentPromptStackFingerprint,
56
- } from "@zihanw/pi-forge/subagent";
56
+ } from "@jadelclemens/pi-forge/subagent";
57
57
  ```
58
58
 
59
59
  The experimental host port over the Pi event bus: discovery, profile listing/snapshot, and host-owned prompt preparation with mandatory lifecycle semantics (correlation IDs, payload validation, bounded timeouts, host generation, duplicate-host failure, disposal/`unavailable`, listener cleanup). The wire DTOs and validators are self-contained Forge data contracts; the main package has no dependency on `@zihanw/pi-subagent-runtime`. The canonical `sha256:v1` fingerprint helpers are Forge-owned and byte-compatible with the runtime's canonical JSON.
@@ -69,7 +69,7 @@ import {
69
69
  FORGE_NESTED_USAGE_KEY,
70
70
  parseForgeNestedUsage,
71
71
  type ForgeNestedUsage,
72
- } from "@zihanw/pi-forge/subagent";
72
+ } from "@jadelclemens/pi-forge/subagent";
73
73
  ```
74
74
 
75
75
  - `FORGE_NESTED_USAGE_KEY`: constant string key (`"forgeNestedUsage"`).
@@ -78,30 +78,30 @@ import {
78
78
 
79
79
  See the [session cache usage reference](session-cache.md) for full contract rules, ingestion boundaries, and hit-rate aggregation semantics.
80
80
 
81
- ### 4. `@zihanw/pi-forge/ui-contribution`: versioned settings port
81
+ ### 4. `@jadelclemens/pi-forge/ui-contribution`: versioned settings port
82
82
 
83
83
  ```ts
84
84
  import {
85
85
  UiContributionProvider,
86
86
  UiContributionClient,
87
87
  UI_CONTRIBUTION_PORT_VERSION,
88
- } from "@zihanw/pi-forge/ui-contribution";
88
+ } from "@jadelclemens/pi-forge/ui-contribution";
89
89
  ```
90
90
 
91
91
  The experimental generic Settings integration surface. Optional packages contribute recursively validated, JSON-compatible schemas and values over the Pi event bus; pi-forge owns only the renderer and web proxy. Providers own validation and persistence, may resolve operations asynchronously, and receive an abort signal tied to provider generation so stale requests can stop before side effects. The full contract is documented in the [UI contribution port reference](ui-contribution-port.md).
92
92
 
93
- ### 5. `@zihanw/pi-forge/command-contribution`: Forge child-command contribution
93
+ ### 5. `@jadelclemens/pi-forge/command-contribution`: Forge child-command contribution
94
94
 
95
95
  ```ts
96
96
  import {
97
97
  FORGE_COMMAND_DISCOVERY_EVENT,
98
98
  contributeForgeCommand,
99
- } from "@zihanw/pi-forge/command-contribution";
99
+ } from "@jadelclemens/pi-forge/command-contribution";
100
100
  import type {
101
101
  ForgeCommandContribution,
102
102
  ForgeCommandDiscovery,
103
103
  ForgeCommandEvents,
104
- } from "@zihanw/pi-forge/command-contribution";
104
+ } from "@jadelclemens/pi-forge/command-contribution";
105
105
  ```
106
106
 
107
107
  This is a local, synchronous discovery surface for contributing one child command below the main `/forge` root. A contribution supplies callback metadata (`name`, `description`, `handler`, and optional argument completions); `contributeForgeCommand` returns an explicit unsubscribe function. Discovery is an in-process callback exchange, not an RPC, authorization boundary, execution sandbox, singleton registry, or persistent format. The main package owns the sole `/forge` root. Reserved names are rejected and duplicate child contributors fail closed rather than being selected arbitrarily.
@@ -114,9 +114,9 @@ Forge 0.5.5 provides this main-package subpath. The optional package remains an
114
114
 
115
115
  Optional cosmetic consumers integrate over the Pi event bus instead of importing the package:
116
116
 
117
- - Active-state snapshot/change uses `@zihanw/pi-forge/active-state/v1` and `@zihanw/pi-forge/active-state/request/v1`. See the [active-state bus contract](active-state.md).
117
+ - Active-state snapshot/change uses `@jadelclemens/pi-forge/active-state/v1` and `@jadelclemens/pi-forge/active-state/request/v1`. See the [active-state bus contract](active-state.md).
118
118
 
119
- These channels carry only plain JSON scalars. They are not `@zihanw/pi-forge` import surfaces and consumers must not depend on package internals.
119
+ These channels carry only plain JSON scalars. They are not `@jadelclemens/pi-forge` import surfaces and consumers must not depend on package internals.
120
120
 
121
121
  ## Compatibility policy
122
122
 
@@ -126,7 +126,7 @@ These channels carry only plain JSON scalars. They are not `@zihanw/pi-forge` im
126
126
 
127
127
  ## Removed in 0.5.0
128
128
 
129
- - All `@zihanw/pi-forge/src/*` compatibility aliases and the `./examples/*` subpath export.
129
+ - All `@jadelclemens/pi-forge/src/*` compatibility aliases and the `./examples/*` subpath export.
130
130
  - Root re-exports of loader, agent-profile, profile-service, catalog, resource-identity, render-helper values, the `forge-v1` engine, and registry readers.
131
131
  - Root and `/subagent` re-exports of the 0.4 execution contract (`AgentRequest`, `createAgentExecutionPlan`, `validateAgentRequest`, `negotiateSubagentTools`, `resolveSubagentHostProfile`, `prepareSubagentHostPlan`, and friends). The execution contract now belongs to `@zihanw/pi-forge-subagents`.
132
132
 
@@ -62,7 +62,7 @@ import {
62
62
  FORGE_NESTED_USAGE_KEY,
63
63
  parseForgeNestedUsage,
64
64
  type ForgeNestedUsage,
65
- } from "@zihanw/pi-forge/subagent";
65
+ } from "@jadelclemens/pi-forge/subagent";
66
66
  ```
67
67
 
68
68
  ### JSON payload example
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Documentation](../README.md)
4
4
 
5
- Status: experimental, versioned (`UI_CONTRIBUTION_PORT_VERSION = 1`). The `@zihanw/pi-forge/ui-contribution` entry point is the generic cross-extension port that lets optional packages contribute schema-driven pages to the pi-forge web editor's top-level **Settings** surface. The forge side knows nothing about specific providers; the first consumer is [`@zihanw/pi-forge-subagents`](https://github.com/MacroSony/pi-forge-subagents), which contributes its Subagent Settings page when installed.
5
+ Status: experimental, versioned (`UI_CONTRIBUTION_PORT_VERSION = 1`). The `@jadelclemens/pi-forge/ui-contribution` entry point is the generic cross-extension port that lets optional packages contribute schema-driven pages to the pi-forge web editor's top-level **Settings** surface. The forge side knows nothing about specific providers; the first consumer is [`@zihanw/pi-forge-subagents`](https://github.com/MacroSony/pi-forge-subagents), which contributes its Subagent Settings page when installed.
6
6
 
7
7
  ## Ownership boundary
8
8
 
@@ -12,7 +12,7 @@ Status: experimental, versioned (`UI_CONTRIBUTION_PORT_VERSION = 1`). The `@ziha
12
12
 
13
13
  ## Transport and lifecycle
14
14
 
15
- `UiContributionTransport` is a minimal `{ emit(channel, data), on(channel, handler) }` interface; the production wiring is `pi.events`. Messages travel on the dedicated `@zihanw/pi-forge/ui-contribution/v1` channel namespace with its own version counter, separate from the `/subagent` host port. Wire messages are plain JSON-compatible data validated recursively at both boundaries (exact field sets, typed enums, plain objects only, unknown fields rejected).
15
+ `UiContributionTransport` is a minimal `{ emit(channel, data), on(channel, handler) }` interface; the production wiring is `pi.events`. Messages travel on the dedicated `@jadelclemens/pi-forge/ui-contribution/v1` channel namespace with its own version counter, separate from the `/subagent` host port. Wire messages are plain JSON-compatible data validated recursively at both boundaries (exact field sets, typed enums, plain objects only, unknown fields rejected).
16
16
 
17
17
  Channels: `discover`, `available`, `request`, `reply`, `unavailable`.
18
18
 
@@ -1,4 +1,4 @@
1
- # pi-forge 中文文档
1
+ # @jadelclemens/pi-forge 中文文档
2
2
 
3
3
  [项目首页](../../README.zh-CN.md) · [English docs](../README.md)
4
4
 
@@ -7,7 +7,7 @@
7
7
  pi-forge 需要 Node.js 22.19 或更高版本,并作为 Pi extension 运行:
8
8
 
9
9
  ```bash
10
- pi install npm:@zihanw/pi-forge
10
+ pi install npm:@jadelclemens/pi-forge
11
11
  ```
12
12
 
13
13
  安装或更新后请重启 Pi。Pi host 会提供运行时 SDK;精确 package 版本只用于可复现的开发测试。用户全局 stack/profile 始终可以浏览;项目 stack、profile 和 config 只在 Pi 信任项目后加载和写入。
@@ -60,7 +60,7 @@ node scripts/migrate-stack-v2.mjs .pi/forge/prompt-stacks/default.json --write
60
60
 
61
61
  ## Lane 3:subagent 包拆分
62
62
 
63
- Subagent 执行功能从主包移入可选包 `@zihanw/pi-forge-subagents`(要求 `@zihanw/pi-forge@^0.5.0`)。如需保留前台 delegation,请单独安装该包。
63
+ Subagent 执行功能从主包移入可选包 `@zihanw/pi-forge-subagents`(要求 `@jadelclemens/pi-forge@^0.5.0`)。如需保留前台 delegation,请单独安装该包。
64
64
 
65
65
  - **命令:** `/subagents` 和 `/subagent-run` 已从主包移除。可选包注册 `/forge-agent backends|plan|run`。
66
66
  - **模型工具:** `forge_subagent_profiles` 和 `forge_subagent` 由可选包注册。
@@ -71,19 +71,19 @@ Subagent 执行功能从主包移入可选包 `@zihanw/pi-forge-subagents`(要
71
71
  ## Lane 4:Forge 原生 host 契约与公开 surface
72
72
 
73
73
  - 主包不再依赖 `@zihanw/pi-subagent-runtime`,也不再导出 0.4 执行契约。该契约(`AgentRequest`、`createAgentExecutionPlan`、`validateAgentRequest`、`negotiateSubagentTools`、preflight/plan/response 校验器等)现在位于 `@zihanw/pi-forge-subagents` 内部,供其自身 runtime 接线使用;两个包都不把它作为第三方可用的公开 surface。
74
- - `@zihanw/pi-forge/subagent` 现在只导出带版本的 host port:wire DTO 与校验器、`ForgeHostTransport`、`ForgeHost`/`ForgeHostClient`、生命周期常量,以及 Forge 持有的规范指纹辅助函数。`resolveSubagentHostProfile` / `prepareSubagentHostPlan` 已被 host port 的 `resolveProfile` 和 `prepare` 操作取代。
74
+ - `@jadelclemens/pi-forge/subagent` 现在只导出带版本的 host port:wire DTO 与校验器、`ForgeHostTransport`、`ForgeHost`/`ForgeHostClient`、生命周期常量,以及 Forge 持有的规范指纹辅助函数。`resolveSubagentHostProfile` / `prepareSubagentHostPlan` 已被 host port 的 `resolveProfile` 和 `prepare` 操作取代。
75
75
  - 包根只导出默认扩展工厂、`registerMacro`/`registerSlot` 及其契约类型。其余根导出(loader、agent-profile、profile-service、catalog、resource-identity、render-helper 值、`forge-v1` 引擎、registry 读取器)已全部移除。
76
- - 所有 `@zihanw/pi-forge/src/*` 子路径别名和 `./examples/*` 导出均已移除;`check-package` 会拒绝它们。
76
+ - 所有 `@jadelclemens/pi-forge/src/*` 子路径别名和 `./examples/*` 导出均已移除;`check-package` 会拒绝它们。
77
77
 
78
78
  ### 导入迁移表
79
79
 
80
80
  | 0.4 导入 | 0.5 替代 |
81
81
  |---|---|
82
- | `@zihanw/pi-forge`(默认导出、`registerMacro`、`registerSlot`) | 不变 |
83
- | `@zihanw/pi-forge/subagent` host-port 名称(`ForgeHost*`、校验器、指纹) | 不变 |
84
- | `@zihanw/pi-forge/subagent` 执行契约(`AgentRequest`、`createAgentExecutionPlan` 等) | 已内置于 `@zihanw/pi-forge-subagents`;无公开替代 |
85
- | `@zihanw/pi-forge/subagent` 的 `resolveSubagentHostProfile` / `prepareSubagentHostPlan` | 通过 `ForgeHostClient` 使用 host-port 操作 |
86
- | `@zihanw/pi-forge/src/*` 别名 | 已移除;无替代(内部实现) |
82
+ | `@jadelclemens/pi-forge`(默认导出、`registerMacro`、`registerSlot`) | 不变 |
83
+ | `@jadelclemens/pi-forge/subagent` host-port 名称(`ForgeHost*`、校验器、指纹) | 不变 |
84
+ | `@jadelclemens/pi-forge/subagent` 执行契约(`AgentRequest`、`createAgentExecutionPlan` 等) | 已内置于 `@zihanw/pi-forge-subagents`;无公开替代 |
85
+ | `@jadelclemens/pi-forge/subagent` 的 `resolveSubagentHostProfile` / `prepareSubagentHostPlan` | 通过 `ForgeHostClient` 使用 host-port 操作 |
86
+ | `@jadelclemens/pi-forge/src/*` 别名 | 已移除;无替代(内部实现) |
87
87
  | 根部的 loader/profile/catalog/engine 再导出 | 已移除;无替代(内部实现) |
88
88
 
89
89
  ## 上游 Pi 0.87 迁移
@@ -70,7 +70,7 @@ Pi 1.3 内部 SDK/codemode/MCP/telemetry 改为精确版本依赖,普通消费
70
70
 
71
71
  ## Forge 0.5.8 与旧版本
72
72
 
73
- 本指南介绍 **Forge 0.5.8** 兼容补丁。安装旧版 `@zihanw/pi-forge@0.5.7` 不会获得这些改动;该 artifact 的 Pi peer 范围仍为 `>=0.87.0 <0.88.0`。
73
+ 本指南介绍 **Forge 0.5.8** 兼容补丁。安装旧版 `@jadelclemens/pi-forge@0.5.7` 不会获得这些改动;该 artifact 的 Pi peer 范围仍为 `>=0.87.0 <0.88.0`。
74
74
 
75
75
  Forge 0.5.8 为四个 Pi SDK 包声明的 peer 策略为:
76
76
 
@@ -62,7 +62,7 @@ import {
62
62
  FORGE_NESTED_USAGE_KEY,
63
63
  parseForgeNestedUsage,
64
64
  type ForgeNestedUsage,
65
- } from "@zihanw/pi-forge/subagent";
65
+ } from "@jadelclemens/pi-forge/subagent";
66
66
  ```
67
67
 
68
68
  ### JSON 载荷示例
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@jadelclemens/pi-forge",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Pi extension for editable context presets, one-shot agent profiles, tool policy, and request debugging.",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/MacroSony/pi-forge.git"
7
+ "url": "https://git.jadelclemens.xyz/pi-plugins/pi-forge.git"
8
8
  },
9
9
  "type": "module",
10
10
  "exports": {