pi-ptc-subagents 7.6.0 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +12 -19
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,47 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [7.7.0] - 2026-11-02
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **The plugin now says so when a newer release exists** (Kimi face, ADR-0023): a
|
|
13
|
+
`UserPromptSubmit` hook compares the plugin's own manifest version against the latest
|
|
14
|
+
GitHub Release and, when they differ, attaches the notice to your next message — the
|
|
15
|
+
agent then says so in its reply, with the update command. Nothing to configure, no
|
|
16
|
+
marketplace to point at. Kimi Code has no plugin auto-update path: the update badge
|
|
17
|
+
only exists for plugins a marketplace catalog can match by id, and pointing Kimi Code
|
|
18
|
+
at a custom catalog _replaces_ the default one (measured: the default catalog has 7
|
|
19
|
+
entries — 3 official, 4 curated — a custom one has 1; the official plugins drop out of
|
|
20
|
+
the panel and lose their "update detected" notification, which requires the default
|
|
21
|
+
CDN catalog). The badge is also only visible when you open `/plugins`: the desktop
|
|
22
|
+
"installed" row shows version, toggle and delete, and no update button.
|
|
23
|
+
The check reads the latest release through `/releases/latest` (a redirect, so
|
|
24
|
+
`api.github.com` is never called), accepts plain `x.y.z` only, caches for 6 hours,
|
|
25
|
+
speaks once per version (again after 7 ignored days), and stays silent offline —
|
|
26
|
+
fail-open, it never blocks a turn. Probes: `tests/kimi/version-check.test.mjs`, 7/7 —
|
|
27
|
+
one of them caught a real bug while it was being written (the cache stored a parsed
|
|
28
|
+
array and re-parsed it as a string, so the check exited silently — exactly the failure
|
|
29
|
+
this feature exists to prevent).
|
|
30
|
+
|
|
31
|
+
- **Artifact import gate** (`scripts/check-artifact-imports.mjs`, wired into `pnpm test`): a
|
|
32
|
+
built artifact's bare imports must be declared by the package that produced them. The rule is
|
|
33
|
+
"the declaration follows the artifact, not just the source" — moving code between packages used
|
|
34
|
+
to carry the dependency declaration along with the source, while the built `dist/index.js` kept
|
|
35
|
+
importing the package: on a clean install the extension could not resolve it (7 probes red, CI
|
|
36
|
+
red too; the local tree only stayed green because a months-old symlink in the root
|
|
37
|
+
`node_modules` happened to cover it). `dependencies` / `peerDependencies` /
|
|
38
|
+
`optionalDependencies` count, `devDependencies` does not (they do not ship), and imports shown
|
|
39
|
+
inside comments or strings are not imports.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- **Marketplace catalog entry** (`plugin-marketplace.json`, ADR-0021): the entry's `tier`
|
|
44
|
+
must be `official` or `curated` — that is the parser's whitelist, which is stricter than
|
|
45
|
+
the response schema's enum. Writing `third-party` (read off the response schema) made the
|
|
46
|
+
whole catalog fail to load, taking the official entries with it. The entry now omits
|
|
47
|
+
`tier`, and `build:kimi` fails the build if a `tier` ever shows up.
|
|
48
|
+
|
|
8
49
|
## [7.6.0] - 2026-11-02
|
|
9
50
|
|
|
10
51
|
### Added
|
package/README.md
CHANGED
|
@@ -81,25 +81,18 @@ URL tracks the latest GitHub Release (pinned URLs get no update checks); run `/r
|
|
|
81
81
|
activate. A bundled `ptc` skill teaches the model when to write a program instead of
|
|
82
82
|
fanning out tool calls one by one.
|
|
83
83
|
|
|
84
|
-
**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
export KIMI_CODE_PLUGIN_MARKETPLACE_URL=https://raw.githubusercontent.com/a1121611810/pi-ptc-subagents/main/plugin-marketplace.json
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
The entry deliberately omits `version`: Kimi Code resolves it from the latest GitHub
|
|
100
|
-
Release, so the catalog never goes stale. A custom catalog **replaces** the official one
|
|
101
|
-
rather than adding to it, and updates stay one keystroke (`Enter` in `/plugins`) — Kimi
|
|
102
|
-
Code has no auto-download path.
|
|
84
|
+
**You get told when a new version lands.** The plugin ships a `UserPromptSubmit` hook that
|
|
85
|
+
compares its own version against the latest GitHub Release; when they differ, the notice is
|
|
86
|
+
attached to your next message and the agent says so in its reply. No marketplace setup, no
|
|
87
|
+
config, nothing to click. Update with
|
|
88
|
+
`/plugins install https://github.com/a1121611810/pi-ptc-subagents` — the bare repo URL
|
|
89
|
+
installs the latest release.
|
|
90
|
+
|
|
91
|
+
**Optional: the marketplace badge.** Kimi Code also shows "update 7.1.0 → 7.5.0" in `/plugins`
|
|
92
|
+
for plugins a marketplace catalog can match by id, and this repo ships such a catalog
|
|
93
|
+
(`plugin-marketplace.json`). But pointing Kimi Code at it _replaces_ the default catalog, so
|
|
94
|
+
the official plugins drop out of the panel and lose their update notifications. Treat it as
|
|
95
|
+
opt-in, not as a setup step.
|
|
103
96
|
|
|
104
97
|
## The engine on its own (no model, no pi)
|
|
105
98
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-ptc-subagents",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
4
4
|
"description": "Programmable tool calling (PTC) and subagent fan-out for pi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi",
|
|
@@ -39,8 +39,9 @@
|
|
|
39
39
|
"build:kimi": "pnpm --filter @pi-ptc/kimi-mcp run build && node scripts/assemble-kimi.mjs",
|
|
40
40
|
"prepack": "pnpm run build && rm -rf dist docs/routes && cp -R packages/entry/dist dist && cp -R packages/ptc/dist dist/ptc && cp -R packages/routes/docs/routes docs/routes",
|
|
41
41
|
"check": "pnpm -r --filter=!@pi-ptc/website run check",
|
|
42
|
+
"check:imports": "node scripts/check-artifact-imports.mjs",
|
|
42
43
|
"lint": "oxlint",
|
|
43
|
-
"test": "pnpm run test:pi && pnpm run test:output && pnpm run test:kimi && pnpm run test:standalone",
|
|
44
|
+
"test": "pnpm run check:imports && pnpm run test:pi && pnpm run test:output && pnpm run test:kimi && pnpm run test:standalone",
|
|
44
45
|
"test:pi": "node --test tests/pi/*.test.mjs",
|
|
45
46
|
"test:output": "node --test tests/output/*.test.mjs",
|
|
46
47
|
"test:kimi": "node --test tests/kimi/*.test.mjs",
|