dsh-plugin-upgrade 0.1.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/AGENTS.md +102 -0
- package/CHANGELOG.md +19 -0
- package/LICENSE +201 -0
- package/README.es.md +172 -0
- package/README.hi.md +172 -0
- package/README.md +172 -0
- package/README.pt.md +172 -0
- package/README.zh.md +172 -0
- package/SECURITY.md +43 -0
- package/THIRD_PARTY_NOTICES.md +21 -0
- package/cordis.patch.yml +23 -0
- package/index.mjs +105 -0
- package/lib/scan.mjs +288 -0
- package/package.json +95 -0
- package/scripts/changelog-section.mjs +21 -0
- package/scripts/check-readme-sync.mjs +33 -0
- package/scripts/scan-0.1.5.mjs +15 -0
- package/scripts/sweep-all.mjs +36 -0
- package/scripts/verify-artifacts.mjs +86 -0
- package/scripts/verify-self-contained.mjs +59 -0
- package/skills/plugin-upgrade-015/SKILL.md +38 -0
- package/skills/plugin-upgrade-015/references/v0.1.3-alpha.1-to-v0.1.5-alpha.1.md +90 -0
- package/skills/plugin-upgrade-015/scripts/scan-0.1.5.mjs +14 -0
- package/types.d.ts +67 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
Standalone DeepSeek Harness plugin repository (`dsh-plugin-upgrade`). Development follows
|
|
4
|
+
the dsh-plugin-guide skill and the official plugin contract; this file records repo-local
|
|
5
|
+
decisions. Read `README.md` (external contract) and the packaged version card
|
|
6
|
+
(`skills/plugin-upgrade-015/references/v0.1.3-alpha.1-to-v0.1.5-alpha.1.md`) before
|
|
7
|
+
changing behavior.
|
|
8
|
+
|
|
9
|
+
## Layout (JS form, pure host, no browser half)
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
index.mjs single host face: Config schema + skill bundle reader + apply()
|
|
13
|
+
types.d.ts Config, SeamHit, ScanReport and the public function surface
|
|
14
|
+
lib/scan.mjs zero-dependency seam catalog + scanner + CLI main()
|
|
15
|
+
scripts/scan-0.1.5.mjs thin bin wrapper (npx dsh-plugin-upgrade-scan)
|
|
16
|
+
skills/plugin-upgrade-015/scripts/scan-0.1.5.mjs the same wrapper inside the skill directory,
|
|
17
|
+
so the skill body's `./scripts/...` resolves against its resourceBase
|
|
18
|
+
scripts/sweep-all.mjs maintainer tool: sweep a workspace of plugin repos into a table
|
|
19
|
+
scripts/changelog-section.mjs print one CHANGELOG section for GitHub Release notes
|
|
20
|
+
scripts/verify-self-contained.mjs every import resolves inside the package
|
|
21
|
+
scripts/verify-artifacts.mjs pack + inspect the published tarball
|
|
22
|
+
scripts/check-readme-sync.mjs five-language README consistency
|
|
23
|
+
skills/plugin-upgrade-015/SKILL.md the bundled skill body (frontmatter name is the skill id)
|
|
24
|
+
skills/plugin-upgrade-015/references/… the version card
|
|
25
|
+
test/scan.test.mjs synthetic bad/good fixtures + a live negative on an adapted repo
|
|
26
|
+
test/plugin.test.mjs real Cordis Context + real SkillRegistry: register, dispose, negative
|
|
27
|
+
fixtures/ scanner fixtures (bad-repo, good-repo)
|
|
28
|
+
cordis.patch.yml bundle declaration (insert dsh-plugin-upgrade); every Config key inline
|
|
29
|
+
pnpm-workspace.yaml nearest-workspace root (isolates this repo from a surrounding harness checkout)
|
|
30
|
+
package.json npm metadata; files whitelist = published content
|
|
31
|
+
.github/workflows/ CI (3 OS × 2 Node), monthly compat probe, v* npm release
|
|
32
|
+
README.md English primary (GitHub default page; source of truth)
|
|
33
|
+
README.{zh,es,pt,hi}.md translations, top switcher, updated in the same commit
|
|
34
|
+
CHANGELOG.md Keep a Changelog, [Unreleased] at the top
|
|
35
|
+
SECURITY.md private vulnerability reporting + scope
|
|
36
|
+
THIRD_PARTY_NOTICES.md install-time dependencies (none bundled)
|
|
37
|
+
LICENSE Apache-2.0
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Hard rules applied here
|
|
41
|
+
|
|
42
|
+
- **The corridor is locked.** This package upgrades plugins across `0.1.3-alpha.1 →
|
|
43
|
+
0.1.5-alpha.1` and nothing else. Do not widen the peer band or the card to "all versions":
|
|
44
|
+
a drifting card is worse than no card. A new corridor is a new package.
|
|
45
|
+
- **M1 is an error, never a warning.** If a `tsconfig` `paths` alias does not resolve, every
|
|
46
|
+
other local signal is fake. The scanner must keep failing the run for it.
|
|
47
|
+
- **The scanner is read-only and dependency-free.** No network, no child process, no write
|
|
48
|
+
inside `--repo`; `lib/scan.mjs` imports only `node:fs` and `node:path`. Keep it that way.
|
|
49
|
+
- **Advisory seams stay advisory.** `S7`/`S1`/`S2`/`S10` have legitimate matches; they are
|
|
50
|
+
leads for manual review. Only promote one to `error` with evidence and a fixture that
|
|
51
|
+
proves the false positive is gone.
|
|
52
|
+
- **A clean scan is necessary, not sufficient.** Never describe a scan as proof of
|
|
53
|
+
adaptation; the card's exit criterion is a real-host smoke on a temp `DSH_HOME`.
|
|
54
|
+
- **Mount loud.** A missing `SKILL.md`, an empty body, or a frontmatter without `name` must
|
|
55
|
+
abort the mount. Never register a placeholder skill.
|
|
56
|
+
- **The skill id is the frontmatter name.** `skillName` selects the directory; the registered
|
|
57
|
+
name comes from the file. Keep the two in sync (`plugin-upgrade-015`).
|
|
58
|
+
- **Registration is an effect.** `ctx.skills.register()` runs inside `ctx.effect()` so the
|
|
59
|
+
disposer removes the contribution on unload; the test asserts that.
|
|
60
|
+
- **No build step.** Pure ESM: `index.mjs` + `lib/` are the shipped artifacts. There is no
|
|
61
|
+
`build`/`prepare` script — keep it that way.
|
|
62
|
+
- **Optional seams fail closed.** `skills` is a hard `inject`; if the service is absent the
|
|
63
|
+
plugin waits rather than registering into a void.
|
|
64
|
+
|
|
65
|
+
## Checks
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
pnpm install
|
|
69
|
+
pnpm test # node --test (9 tests: scanner + real-registry mount)
|
|
70
|
+
pnpm run verify:self-contained # dependency specs resolve from the registry
|
|
71
|
+
pnpm run verify:artifacts # shipped files present + entry importable from the tarball
|
|
72
|
+
pnpm run check:readmes # five-language README consistency
|
|
73
|
+
pnpm pack # the published tarball
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`pnpm-workspace.yaml` keeps `minimumReleaseAge: 0`: pnpm 11 enables a 1440-minute age gate by
|
|
77
|
+
default and its frozen-install lockfile verification ignores `minimumReleaseAgeExclude`, so
|
|
78
|
+
the freshly published `@deepseek-ai` pins would otherwise keep a fresh install red for 24h
|
|
79
|
+
after every harness release.
|
|
80
|
+
|
|
81
|
+
## Release
|
|
82
|
+
|
|
83
|
+
Version is currently `0.1.0`. For a new version: bump `package.json#version`, stamp the
|
|
84
|
+
CHANGELOG `[Unreleased]` section into `## [<x.y.z>] - <UTC date>`, re-run the full gate,
|
|
85
|
+
commit `chore(release): <x.y.z>`, and `git tag -a v<x.y.z>`. `git push origin main
|
|
86
|
+
--follow-tags` triggers `.github/workflows/release.yml`, which re-runs the gate, publishes to
|
|
87
|
+
npm with provenance (skipped without the `NPM_TOKEN` secret), and creates the GitHub Release
|
|
88
|
+
from the stamped CHANGELOG section. Never push a tag for a version already on the registry.
|
|
89
|
+
|
|
90
|
+
The scanner catalog is evidence-bound: a version bump that changes a seam must update the
|
|
91
|
+
card, the fixtures and `CHANGELOG.md` in the same commit.
|
|
92
|
+
|
|
93
|
+
## Docs
|
|
94
|
+
|
|
95
|
+
- Five-language READMEs (`README.md` is the source; `README.zh.md`, `README.es.md`,
|
|
96
|
+
`README.pt.md`, `README.hi.md` follow). Every behavior change updates all five in the same
|
|
97
|
+
commit; `check:readmes` enforces the shared surface in CI.
|
|
98
|
+
- GitHub topics `dsh`, `dsh-plugin`, `deepseek-harness`, `deepseek`, `cordis`,
|
|
99
|
+
`plugin-upgrade`, `migration`, `skill`, `version-card`, `scanner` (mirror `package.json`
|
|
100
|
+
keywords; the ecosystem's visibility channel is the `dsh-plugin` topic).
|
|
101
|
+
- License is Apache-2.0 (`LICENSE` + the package.json `license` field).
|
|
102
|
+
`THIRD_PARTY_NOTICES.md` documents install-time dependencies; nothing is bundled.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.0] - 2026-09-09
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Bundled agent skill `plugin-upgrade-015`** — the version-locked `0.1.3-alpha.1 → 0.1.5-alpha.1` upgrade corridor: a 6-step fix-and-verify loop plus the version card with host path, commit, minimal fix and regression for every seam.
|
|
15
|
+
- **Zero-dependency seam scanner** (`dsh-plugin-upgrade-scan`, also `dsh-plugin-upgrade/scan`) — reports `file:line` facts for ten seams measured against 40 real plugin repositories during the 2026-09-09 adaptation wave; exit `1` on any error-severity hit.
|
|
16
|
+
- **Ten-seam catalog** — `S1` V3 session format / generation-scoped log name, `S2` `EpochHeader.system` removal, `S3` `assistant/message.stream` required, `S4` `tool/code-dispatch` → `tool/ptc-dispatch`, `S5` `ctx.agent` removal, `S6` `Inbox` typed interface, `S7` `SubprocessHandle.pid` removal, `S8` `SessionHandleReadResult`, `S9` `SystemPrompt.persona` → `personaPrefix`/`personaSuffix`, `M1` stale `tsconfig` `paths` producing a silently fake-green typecheck.
|
|
17
|
+
- **M1 as a first-class defect** — the scanner resolves every checkout-style `tsconfig` alias and fails the scan when a target directory does not exist, instead of letting the repo compile against published types.
|
|
18
|
+
- **Plugin surface** — `enabled`, `skillName`, `skillsRoot`, `userInvocable` config keys; the skill registers through the injected `skills` service and unregisters with its effect disposer. A missing bundle, an empty body or a nameless frontmatter fails the mount loud.
|
|
19
|
+
- **Gates** — `node --test` against a real Cordis `Context` and the real `SkillRegistry`, five-language README consistency, self-contained import resolution, and a packed-tarball artifact check that imports the entry under plain Node.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 dsh-memento contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.es.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# ⬆️ dsh-plugin-upgrade
|
|
4
|
+
- **Canal de la tienda 1024**: ejecuta `npm i -g dsh1024` una vez y luego `dsh1024 plugin --profile web add dsh-plugin-upgrade` (cuenta para el ranking de instalaciones de [deepseek1024.com](https://deepseek1024.com)).
|
|
5
|
+
[](https://gitee.com/perrylink/dsh-plugin-upgrade)
|
|
6
|
+
|
|
7
|
+
**Habilidad de actualización de plugins con versión fijada para DeepSeek Harness — `0.1.3-alpha.1` → `0.1.5-alpha.1`.**
|
|
8
|
+
|
|
9
|
+
*Una tarjeta de versión más un escáner de costuras sin dependencias, para que «typecheck está en verde» nunca se confunda con «el plugin sigue funcionando».*
|
|
10
|
+
|
|
11
|
+
> **Repositorio oficial.** Este es el único repositorio oficial de dsh-plugin-upgrade, mantenido por PerryLink. Los repositorios con el mismo nombre en otras cuentas no están afiliados.
|
|
12
|
+
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
[](https://github.com/topics/dsh-plugin)
|
|
15
|
+
[](https://github.com/PerryLink/dsh-plugin-doctor#verified-徽章)
|
|
16
|
+
[](#)
|
|
17
|
+
[](https://github.com/PerryLink/dsh-plugin-upgrade/actions)
|
|
18
|
+
[](https://github.com/PerryLink/dsh-plugin-upgrade/releases)
|
|
19
|
+
[](https://www.npmjs.com/package/dsh-plugin-upgrade)
|
|
20
|
+
[](https://www.npmjs.com/package/dsh-plugin-upgrade)
|
|
21
|
+
|
|
22
|
+
[English](README.md) · [简体中文](README.zh.md) · [Español](README.es.md) · [Português](README.pt.md) · [हिन्दी](README.hi.md)
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Compatibilidad
|
|
29
|
+
|
|
30
|
+
| Superficie | Estado |
|
|
31
|
+
|---|---|
|
|
32
|
+
| Harness | DeepSeek Harness `0.1.5-alpha.1` (checkout `19d2e38480`, tag `dsh-v0.1.5-alpha.1` = `5dda764ed3`). Banda de peers `@deepseek-ai/dsh-skill >=0.1.2-rc.1 <0.2.0 \|\| >=0.1.5-alpha.1 <0.2.0`, `@deepseek-ai/cordis ^4.0.2`, `@deepseek-ai/schemastery ^3.18.2`. |
|
|
33
|
+
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
34
|
+
| Plataformas | Donde corra Node; el escáner solo lee el sistema de archivos y es neutral respecto a la plataforma |
|
|
35
|
+
| Modelo | Modelos solo de texto totalmente soportados; la habilidad es un cuerpo Markdown, sin requisitos de herramientas ni visión |
|
|
36
|
+
| Alcance | **Un solo corredor**: `0.1.3-alpha.1` → `0.1.5-alpha.1`. No es un marco de migración general. |
|
|
37
|
+
|
|
38
|
+
## Lo que obtienes
|
|
39
|
+
|
|
40
|
+
Dos mitades y un único catálogo de costuras:
|
|
41
|
+
|
|
42
|
+
- **Una habilidad de agente incluida (`plugin-upgrade-015`)**: una tarjeta de versión y un bucle de corregir-y-verificar. El modelo solo la carga cuando la tarea realmente la necesita; el paquete no aporta ningún párrafo al prompt del sistema ni registra herramientas.
|
|
43
|
+
- **Una CLI sin dependencias (`dsh-plugin-upgrade-scan`)**: informa hechos `archivo:línea` para diez costuras medidas sobre 40 repositorios de plugins reales durante la ola de adaptación del 2026-09-09. Sale con `1` ante cualquier hallazgo de severidad error, así que entra directo en CI.
|
|
44
|
+
|
|
45
|
+
El objetivo es el modo de fallo que la tarjeta existe para eliminar: **una puerta local en verde no es prueba de adaptación.** Dos clases de rotura sobreviven a `typecheck` + `test`:
|
|
46
|
+
|
|
47
|
+
1. la línea de tipos publicada oculta la costura y el repositorio compila contra tipos obsoletos (costura `M1`);
|
|
48
|
+
2. las pruebas están simuladas contra la forma antigua, así que pasan mientras el host rechaza la nueva.
|
|
49
|
+
|
|
50
|
+
Cuatro de las diez costuras — `S3`, `S8`, `S9`, `M1` — seguían sin cobertura por ningún PR comunitario de actualización cuando se escribió este paquete; las otras seis están contrastadas con la evidencia de la ola.
|
|
51
|
+
|
|
52
|
+
## Inicio rápido
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
# 1. instala el bundle en tu perfil
|
|
56
|
+
dsh plugin --profile web add dsh-plugin-upgrade
|
|
57
|
+
|
|
58
|
+
# 2. verifica que la fila se montó
|
|
59
|
+
dsh --profile web --dump-config | grep -A3 'id: dsh-plugin-upgrade'
|
|
60
|
+
|
|
61
|
+
# 3. escanea el plugin que estás actualizando
|
|
62
|
+
npx dsh-plugin-upgrade-scan --repo ../my-plugin
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Después pide al agente que use la habilidad `plugin-upgrade-015`, o guía el bucle tú mismo con la tarjeta en
|
|
66
|
+
`skills/plugin-upgrade-015/references/v0.1.3-alpha.1-to-v0.1.5-alpha.1.md`.
|
|
67
|
+
|
|
68
|
+
## Instalación y desinstalación
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
dsh plugin --profile web add dsh-plugin-upgrade # desde npm
|
|
72
|
+
dsh plugin --profile web add "github:PerryLink/dsh-plugin-upgrade#main" # desde el código
|
|
73
|
+
dsh plugin --profile web remove dsh-plugin-upgrade # desinstalar (reversible)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Instalar el bundle solo registra una habilidad; quitar la fila la elimina. La CLI es un destino `npx` normal y no necesita ningún perfil.
|
|
77
|
+
|
|
78
|
+
## Configuración
|
|
79
|
+
|
|
80
|
+
Cada clave es opcional y vive en el patch del perfil:
|
|
81
|
+
|
|
82
|
+
| Clave | Predeterminado | Significado |
|
|
83
|
+
|---|---|---|
|
|
84
|
+
| `enabled` | `true` | Registra la habilidad incluida. `false` mantiene la dependencia montada pero silenciosa. |
|
|
85
|
+
| `skillName` | `plugin-upgrade-015` | Directorio bajo `skillsRoot` que se registra, y nombre mostrado en el catálogo. |
|
|
86
|
+
| `skillsRoot` | el `./skills` del propio paquete | Dónde vive `<skillName>/SKILL.md`. Apúntalo a tu propia tarjeta para reutilizar la infraestructura. |
|
|
87
|
+
| `userInvocable` | `true` | Si una persona puede invocar la habilidad por nombre además del modelo. |
|
|
88
|
+
|
|
89
|
+
```yaml
|
|
90
|
+
- insert:
|
|
91
|
+
- id: dsh-plugin-upgrade
|
|
92
|
+
name: dsh-plugin-upgrade
|
|
93
|
+
config:
|
|
94
|
+
skillName: plugin-upgrade-015
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
El montaje falla en voz alta: un `SKILL.md` ausente, un cuerpo vacío o un frontmatter sin `name` abortan el montaje en lugar de registrar una habilidad vacía.
|
|
98
|
+
|
|
99
|
+
## Superficies
|
|
100
|
+
|
|
101
|
+
**Habilidad** — `plugin-upgrade-015` (invocable por el modelo y por la persona por defecto). Cuerpo: el bucle de 6 pasos. Referencias: la tarjeta de versión. Scripts: el detector, incluido dentro del directorio de la habilidad para que las rutas relativas resuelvan.
|
|
102
|
+
|
|
103
|
+
**CLI** — `dsh-plugin-upgrade-scan`:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
dsh-plugin-upgrade-scan [--repo <path>] [--json <out.json>] [--seams S3,S8,M1] [--quiet]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
| Bandera | Significado |
|
|
110
|
+
|---|---|
|
|
111
|
+
| `--repo <path>` | Repositorio a escanear (predeterminado: cwd). |
|
|
112
|
+
| `--json <out.json>` | Escribe además el informe legible por máquina (`repo`, `scannedAt`, `files`, `hits[]`, `bySeam`). |
|
|
113
|
+
| `--seams S3,S8,M1` | Restringe a costuras concretas. |
|
|
114
|
+
| `--quiet` | Silencia la salida humana (combínala con `--json`). |
|
|
115
|
+
|
|
116
|
+
Códigos de salida: `0` sin hallazgos de severidad error · `1` al menos uno · `2` uso o fallo de escaneo. Un escaneo limpio es necesario pero no suficiente: el criterio de salida de la tarjeta es una prueba real en un `DSH_HOME` temporal.
|
|
117
|
+
|
|
118
|
+
## Las diez costuras
|
|
119
|
+
|
|
120
|
+
| Id | Severidad | Qué cambió en la línea `0.1.5-alpha.1` |
|
|
121
|
+
|---|---|---|
|
|
122
|
+
| `S1` | warn | El formato de sesión es V3; el archivo de log lleva generación (`session.v3.jsonl.zstd`). Las rutas fijas a `session.jsonl.zstd` dejan de funcionar en silencio. |
|
|
123
|
+
| `S2` | warn | `EpochHeader.system` desapareció; el prompt del sistema es `system/message` en el nodo 0 de la superficie. Los lectores necesitan un respaldo estructural. |
|
|
124
|
+
| `S3` | error | `assistant/message` requiere `stream`; sin él la sesión se importa pero no se puede reanudar (`Session.fromRestore` rechaza campos de settlement inválidos). |
|
|
125
|
+
| `S4` | error | `tool/code-dispatch` pasó a llamarse `tool/ptc-dispatch`. |
|
|
126
|
+
| `S5` | error | `ctx.agent` se eliminó; los llamadores reciben el `Agent` explícitamente. |
|
|
127
|
+
| `S6` | error | `Inbox` pasó a ser una interfaz de tipo: ya no se puede construir; usa `agent.inbox` y la forma oficial del fixture. |
|
|
128
|
+
| `S7` | warn | `SubprocessHandle.pid` se eliminó (solo `SubprocessTerminalHandle` conserva `pid`). |
|
|
129
|
+
| `S8` | error | `SessionHandle.read()` ahora devuelve `SessionHandleReadResult`: desenvuelve `.events`. |
|
|
130
|
+
| `S9` | error | La configuración `persona` de `SystemPrompt` pasó a `personaPrefix` / `personaSuffix`. |
|
|
131
|
+
| `M1` | error | Un alias `paths` de `tsconfig` que apunta a un directorio inexistente hace que TypeScript vuelva en silencio a los tipos publicados: la puerta local se vuelve **falsamente verde**. |
|
|
132
|
+
|
|
133
|
+
`S7`, `S1`, `S2` y `S10` son deliberadamente informativos: tienen coincidencias legítimas (el `pid` de Node, lectores de generaciones antiguas, la propia puerta de eventos adaptativa de un plugin), así que el escáner los reporta como pistas para revisión manual y no como fallos.
|
|
134
|
+
|
|
135
|
+
## Lo que esto no cubre
|
|
136
|
+
|
|
137
|
+
- **Otros corredores.** `0.1.1` → `0.1.2` y líneas futuras quedan fuera; la tarjeta está fijada a propósito, porque una tarjeta que se desvía es peor que ninguna.
|
|
138
|
+
- **La ruta de actualización de DSH para usuarios.** Este paquete actualiza el **código fuente del plugin**, no la instalación del harness de un usuario.
|
|
139
|
+
- **Comportamiento de cliente/navegador.** El escáner es estático; una mitad cliente aún necesita una aserción real en el navegador.
|
|
140
|
+
- **Prueba.** Un escaneo limpio es una hipótesis. El criterio de salida es una prueba real en el host (`DSH_HOME` temporal, CLI objetivo, `plugin add <tarball>`, `--dump-config`, más una ida y vuelta de resume para quien escribe logs de sesión).
|
|
141
|
+
|
|
142
|
+
## Límites de seguridad
|
|
143
|
+
|
|
144
|
+
- **Escaneo de solo lectura.** La CLI nunca escribe dentro del repositorio escaneado; `--json` escribe solo en la ruta que le indiques.
|
|
145
|
+
- **Sin red ni shell.** El escáner no importa nada fuera de la biblioteca estándar de Node y nunca lanza procesos.
|
|
146
|
+
- **Sin secretos.** Nada en el paquete lee credenciales, tokens de entorno ni datos de sesión.
|
|
147
|
+
- **Receta de prueba en sandbox.** La comprobación real de la tarjeta usa un `DSH_HOME` creado con `mkdtemp`; nunca toca tu `~/.dsh` real.
|
|
148
|
+
|
|
149
|
+
## Desarrollo
|
|
150
|
+
|
|
151
|
+
```sh
|
|
152
|
+
pnpm install
|
|
153
|
+
pnpm test # node --test (Cordis real + SkillRegistry real)
|
|
154
|
+
pnpm run verify:self-contained # cada import resuelve dentro del paquete
|
|
155
|
+
pnpm run verify:artifacts # el tarball incluye la habilidad, la CLI y el patch
|
|
156
|
+
pnpm run check:readmes # consistencia de los README en cinco idiomas
|
|
157
|
+
pnpm pack
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
El escáner trae sus propios `fixtures/bad-repo` y `fixtures/good-repo` sintéticos, más un negativo en vivo sobre un repositorio ya adaptado por la ola, de modo que una regresión en el catálogo falla la suite en lugar de llegar a un usuario.
|
|
161
|
+
|
|
162
|
+
## Temas
|
|
163
|
+
|
|
164
|
+
`dsh`, `dsh-plugin`, `deepseek-harness`, `deepseek`, `cordis`, `plugin-upgrade`, `migration`, `skill`, `version-card`, `scanner` (reflejan las keywords de `package.json`; `dsh-plugin` es el canal de visibilidad del ecosistema).
|
|
165
|
+
|
|
166
|
+
## Familia de plugins DSH de PerryLink
|
|
167
|
+
|
|
168
|
+
Parte de la familia de plugins DSH de PerryLink: 40 repositorios que cubren sesiones, memoria, permisos, entrega, observabilidad y herramientas para desarrolladores. Explora el catálogo en [perrylink-dsh-catalog.perrylink.workers.dev](https://perrylink-dsh-catalog.perrylink.workers.dev) o el [tema `dsh-plugin`](https://github.com/topics/dsh-plugin).
|
|
169
|
+
|
|
170
|
+
## Licencia
|
|
171
|
+
|
|
172
|
+
Apache-2.0 — consulta [LICENSE](LICENSE). Las dependencias de instalación y sus licencias figuran en [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md); no se empaqueta nada de terceros.
|