universal-plugin 0.16.0 → 0.16.2
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/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/dist/cli.mjs +9 -8
- package/package.json +2 -2
- package/plugin.json +2 -2
- package/readme.md +2 -2
- package/references/plugin-design.md +2 -2
- package/references/universal-plugin.md +1 -1
- package/skills/adopt-upx/scripts/rewrite-upx.mjs +1 -1
- package/skills/build-plugin/SKILL.md +2 -2
- package/skills/build-plugin/scripts/build.mjs +1 -1
- package/skills/doctor-universal-plugin/SKILL.md +1 -1
- package/skills/doctor-universal-plugin/scripts/doctor.mjs +1 -1
- package/skills/init-universal-plugin/SKILL.md +2 -2
- package/skills/init-universal-plugin/references/create.md +1 -1
- package/skills/init-universal-plugin/scripts/init.mjs +1 -1
- package/skills/marketplace/scripts/add.mjs +1 -1
- package/skills/marketplace/scripts/install-docs.mjs +1 -1
- package/skills/marketplace/scripts/marketplace.mjs +1 -1
- package/skills/marketplace/scripts/validate.mjs +1 -1
- package/skills/publish-plugin/evals/evals.json +2 -2
- package/skills/version/SKILL.md +1 -1
- package/skills/version/scripts/version.mjs +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-plugin",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "Research and design toolkit for building universal AI coding agent plugins that work across Claude Code, Cursor, Codex, and GitHub Copilot CLI.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "unional"
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
],
|
|
17
17
|
"skills": "./skills/",
|
|
18
18
|
"dependencies": [
|
|
19
|
-
"cyber-
|
|
19
|
+
"cyber-agentkit"
|
|
20
20
|
]
|
|
21
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-plugin",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "Research and design toolkit for building universal AI coding agent plugins that work across Claude Code, Cursor, Codex, and GitHub Copilot CLI.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "unional"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-plugin",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "Research and design toolkit for building universal AI coding agent plugins that work across Claude Code, Cursor, Codex, and GitHub Copilot CLI.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "unional"
|
package/dist/cli.mjs
CHANGED
|
@@ -7458,10 +7458,10 @@ function summarize(rows) {
|
|
|
7458
7458
|
const ARGS = String.raw`\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)`;
|
|
7459
7459
|
const META_URL = String.raw`import\.meta\.url`;
|
|
7460
7460
|
const EQ = String.raw`\s*===?\s*`;
|
|
7461
|
-
const TO_FILE_URL = String.raw`(?:\w+\.)?pathToFileURL${ARGS}\.href`;
|
|
7462
|
-
const FROM_META_URL = String.raw`(?:\w+\.)?fileURLToPath\(\s*${META_URL}\s*\)`;
|
|
7461
|
+
const TO_FILE_URL = String.raw`(?<!\w)(?:\w+\.)?pathToFileURL${ARGS}\.href`;
|
|
7462
|
+
const FROM_META_URL = String.raw`(?<!\w)(?:\w+\.)?fileURLToPath\(\s*${META_URL}\s*\)`;
|
|
7463
7463
|
const ARGV = String.raw`process\.argv\[1\]`;
|
|
7464
|
-
const CALL = String.raw`[\w.]+\(\s*`;
|
|
7464
|
+
const CALL = String.raw`(?<![\w.])[\w.]+\(\s*`;
|
|
7465
7465
|
const ARGV1 = String.raw`(?:${CALL}${CALL}${ARGV}\s*\)\s*\)|${CALL}${ARGV}\s*\)|${ARGV})`;
|
|
7466
7466
|
const GUARDS = new RegExp([
|
|
7467
7467
|
`${META_URL}${EQ}${TO_FILE_URL}`,
|
|
@@ -7472,6 +7472,7 @@ const GUARDS = new RegExp([
|
|
|
7472
7472
|
].join("|"), "g");
|
|
7473
7473
|
/** The code with every recognized main guard replaced by `false`, or `undefined` when it has none. */
|
|
7474
7474
|
function neutralizeMainGuards(code) {
|
|
7475
|
+
if (!code.includes("import.meta")) return void 0;
|
|
7475
7476
|
const out = code.replace(GUARDS, "false");
|
|
7476
7477
|
return out === code ? void 0 : out;
|
|
7477
7478
|
}
|
|
@@ -9441,7 +9442,7 @@ function initCommand$1(deps = { fs: realInitFs }) {
|
|
|
9441
9442
|
return cmd;
|
|
9442
9443
|
}
|
|
9443
9444
|
//#endregion
|
|
9444
|
-
//#region ../../node_modules/.pnpm
|
|
9445
|
+
//#region ../../node_modules/.pnpm/cyber-agentkit@1.0.0/node_modules/cyber-agentkit/dist/reference-where-BhymfNgA.js
|
|
9445
9446
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9446
9447
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
9447
9448
|
function resolveHarnessEnvironment(environment = {}) {
|
|
@@ -16221,7 +16222,7 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16221
16222
|
exports.visitAsync = visit.visitAsync;
|
|
16222
16223
|
})))();
|
|
16223
16224
|
//#endregion
|
|
16224
|
-
//#region ../../node_modules/.pnpm
|
|
16225
|
+
//#region ../../node_modules/.pnpm/cyber-agentkit@1.0.0/node_modules/cyber-agentkit/dist/index.js
|
|
16225
16226
|
const harnessIds = [
|
|
16226
16227
|
"claude-code",
|
|
16227
16228
|
"cursor",
|
|
@@ -16251,7 +16252,7 @@ function mergeRegistries(base, override) {
|
|
|
16251
16252
|
return result;
|
|
16252
16253
|
}
|
|
16253
16254
|
/** Fills each vendor's `localPluginDir` from `locate`, which returns the harness's `local-plugins`
|
|
16254
|
-
* folder when
|
|
16255
|
+
* folder when `cyber-agentkit` knows one. A vendor it knows nothing about keeps its
|
|
16255
16256
|
* registry value, or `null`. */
|
|
16256
16257
|
function withLocalPluginDirs(registry, locate) {
|
|
16257
16258
|
return Object.fromEntries(Object.entries(registry).map(([id, config]) => [id, {
|
|
@@ -16268,12 +16269,12 @@ function bundledRegistryPath() {
|
|
|
16268
16269
|
function userOverridePath() {
|
|
16269
16270
|
return path$1.join(os.homedir(), ".agents", "universal-plugin-vendors.json");
|
|
16270
16271
|
}
|
|
16271
|
-
/** The harness's `local-plugins` folder, as
|
|
16272
|
+
/** The harness's `local-plugins` folder, as `cyber-agentkit` locates it. */
|
|
16272
16273
|
function localPluginsDir(vendorId) {
|
|
16273
16274
|
if (!harnessIds.includes(vendorId)) return void 0;
|
|
16274
16275
|
return pluginStorage(vendorId).locations.find((l) => l.kind === "local-plugins")?.path;
|
|
16275
16276
|
}
|
|
16276
|
-
/** The bundled registry, with the per-harness facts
|
|
16277
|
+
/** The bundled registry, with the per-harness facts `cyber-agentkit` owns filled in, then
|
|
16277
16278
|
* the user's override on top. */
|
|
16278
16279
|
function loadRegistry() {
|
|
16279
16280
|
const bundled = withLocalPluginDirs(JSON.parse(fs$1.readFileSync(bundledRegistryPath(), "utf8")), localPluginsDir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-plugin",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "Universal AI agent plugin build tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-plugin",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"agents"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@cyberuni/agent-harness": "^0.7.0",
|
|
43
42
|
"@repobuddy/upx": "^0.2.0",
|
|
44
43
|
"@toon-format/toon": "^4.1.1",
|
|
45
44
|
"commander": "^15.0.0",
|
|
45
|
+
"cyber-agentkit": "^1.0.0",
|
|
46
46
|
"rolldown": "^1.2.11",
|
|
47
47
|
"semver": "^7.8.1"
|
|
48
48
|
},
|
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "universal-plugin",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.2",
|
|
5
5
|
"description": "Research and design toolkit for building universal AI coding agent plugins that work across Claude Code, Cursor, Codex, and GitHub Copilot CLI.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "unional"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"extensions": {
|
|
14
14
|
"org.cyberuni.universal-plugin": {
|
|
15
15
|
"skills": "./skills/",
|
|
16
|
-
"dependencies": ["cyber-
|
|
16
|
+
"dependencies": ["cyber-agentkit"],
|
|
17
17
|
"harnesses": {
|
|
18
18
|
"claude-code": {},
|
|
19
19
|
"cursor": {},
|
package/readme.md
CHANGED
|
@@ -110,9 +110,9 @@ TOON by default; pass `--format json` for JSON.
|
|
|
110
110
|
### Reference documents
|
|
111
111
|
|
|
112
112
|
This package ships its own documents (`plugin-design`, `slash-invocation`, `universal-plugin`) under
|
|
113
|
-
`references/`. Read one with `npx
|
|
113
|
+
`references/`. Read one with `npx cyber-agentkit reference show <name>` in any
|
|
114
114
|
project that depends on `universal-plugin`, or, from a skill, with the `reference` skill in the
|
|
115
|
-
`cyber-
|
|
115
|
+
`cyber-agentkit` plugin.
|
|
116
116
|
|
|
117
117
|
### Housekeeping
|
|
118
118
|
|
|
@@ -285,7 +285,7 @@ A plugin whose MCP server is its own npm package writes an unpinned invocation
|
|
|
285
285
|
|
|
286
286
|
- **Always-on content is the HCF (highest common factor) of all agents.** It holds only the constraints every agent in every role must follow, such as "never commit secrets" or "use Conventional Commits". That set is small.
|
|
287
287
|
- **`rules/` is for the HCF only.** It stays for backward compatibility and for simple single-agent setups where no orchestration is involved. Its scope is narrow on purpose.
|
|
288
|
-
- **Shared guidance is a reference, not a rule.** Content that cuts across components but applies only to some roles or tasks (a design standard, a review checklist, a workflow discipline) belongs in `references/<name>.md`. Whichever agent, skill, command, hook, or MCP server needs it loads it by name on demand, through the `reference` skill in the `cyber-
|
|
288
|
+
- **Shared guidance is a reference, not a rule.** Content that cuts across components but applies only to some roles or tasks (a design standard, a review checklist, a workflow discipline) belongs in `references/<name>.md`. Whichever agent, skill, command, hook, or MCP server needs it loads it by name on demand, through the `reference` skill in the `cyber-agentkit` plugin.
|
|
289
289
|
|
|
290
290
|
**Decision tree for guidance:**
|
|
291
291
|
- Every agent, every role (the HCF) → merge into **AGENTS.md**. For Cursor-only delivery, use `rules/` + `commands/setup.md`.
|
|
@@ -342,6 +342,6 @@ Portability rules for skill bodies: keep each `SKILL.md` body under 6,000 chars;
|
|
|
342
342
|
|
|
343
343
|
## References
|
|
344
344
|
|
|
345
|
-
Load `skill-design`, `skill-repo-structure`, and `agent-tool-output` with the `reference` skill in the `cyber-
|
|
345
|
+
Load `skill-design`, `skill-repo-structure`, and `agent-tool-output` with the `reference` skill in the `cyber-agentkit` plugin.
|
|
346
346
|
|
|
347
347
|
Spec: https://github.com/cyberuni/universal-plugin/blob/main/packages/universal-plugin/.agents/spec/spec.md
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# Universal Plugin Format
|
|
2
2
|
|
|
3
3
|
The rules for the universal plugin format live in `plugin-design`, which this package also ships.
|
|
4
|
-
Load `plugin-design` with the `reference` skill in the `cyber-
|
|
4
|
+
Load `plugin-design` with the `reference` skill in the `cyber-agentkit` plugin.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/rewrite-upx.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/adopt-upx/scripts/rewrite-upx.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { join, resolve } from "node:path";
|
|
6
6
|
//#region src/skill-scripts/rewrite-upx.ts
|
|
@@ -47,7 +47,7 @@ node scripts/build.mjs --root <plugin-root>
|
|
|
47
47
|
|
|
48
48
|
Resolve `scripts/build.mjs` against this skill's own directory. It runs the CLI the project installed
|
|
49
49
|
(`pnpm exec universal-plugin`), else the CLI pinned to the version this skill shipped with
|
|
50
|
-
(`npx universal-plugin@0.16.
|
|
50
|
+
(`npx universal-plugin@0.16.2`), so it works in a skill that was linked or copied on its own. `--root` defaults to the working directory and
|
|
51
51
|
must name the directory that holds the canonical `plugin.json`.
|
|
52
52
|
|
|
53
53
|
The command never prompts, so it is safe to run unattended.
|
|
@@ -132,7 +132,7 @@ Validation runs before the first write, so a failed build leaves the tree untouc
|
|
|
132
132
|
- **Expect a build to pin skill `npx` references or decide a version.** Build derives and copies
|
|
133
133
|
whatever `plugin.json` carries. Stamping is the release-time `plugin version`, not this step.
|
|
134
134
|
- **Expect a build to copy governances into skills.** A skill loads a reference through the
|
|
135
|
-
`reference` skill in the `cyber-
|
|
135
|
+
`reference` skill in the `cyber-agentkit` plugin; the build does not copy them and has no
|
|
136
136
|
`--check` flag.
|
|
137
137
|
|
|
138
138
|
## Related skills
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/run-cli.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/build-plugin/scripts/build.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/compile/scripts.ts
|
|
6
6
|
/** The global the header assigns the script data to. Framework-neutral: a script's own code, or the
|
|
@@ -172,7 +172,7 @@ it does not, offer to add it — ask first, because both are the user's files:
|
|
|
172
172
|
semantic-release bot opens.
|
|
173
173
|
|
|
174
174
|
Use the locked `universal-plugin` from the repository's devDependencies when it has one; otherwise
|
|
175
|
-
`npx universal-plugin@0.16.
|
|
175
|
+
`npx universal-plugin@0.16.2`, pinned. This check matters most where the release tool picks the
|
|
176
176
|
number, because nothing else runs between that bump and publish.
|
|
177
177
|
|
|
178
178
|
## Unreleased content
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/doctor.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/doctor-universal-plugin/scripts/doctor.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
6
|
import * as path from "node:path";
|
|
@@ -39,7 +39,7 @@ This skill owns the **authoring** side: the plugin a project ships. Setting a re
|
|
|
39
39
|
## Prerequisites
|
|
40
40
|
|
|
41
41
|
Before any work that adds or removes components, load `plugin-design` with the `reference`
|
|
42
|
-
skill in the `cyber-
|
|
42
|
+
skill in the `cyber-agentkit` plugin.
|
|
43
43
|
|
|
44
44
|
It is the authoritative source for which component to reach for and which anti-patterns to avoid.
|
|
45
45
|
|
|
@@ -244,7 +244,7 @@ This skill is not a formatter. If the project has one, run it over the written f
|
|
|
244
244
|
|
|
245
245
|
## References
|
|
246
246
|
|
|
247
|
-
- Reference: `plugin-design`, loaded with the `reference` skill in the `cyber-
|
|
247
|
+
- Reference: `plugin-design`, loaded with the `reference` skill in the `cyber-agentkit` plugin
|
|
248
248
|
- Spec: https://github.com/cyberuni/universal-plugin/blob/main/packages/universal-plugin/.agents/spec/spec.md
|
|
249
249
|
- Manifest schema (Agent Plugins Specification v1.0.0): https://agent-plugins.org/schemas/1.0.0/plugin.schema.json
|
|
250
250
|
- Extension schema (the body of `extensions["org.cyberuni.universal-plugin"]`), shipped in the package at
|
|
@@ -43,7 +43,7 @@ node scripts/init.mjs --name <plugin-name> --vendor claude-code --vendor cursor
|
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Resolve `scripts/init.mjs` against this skill's directory; it runs the project's installed CLI, else
|
|
46
|
-
the pinned `npx universal-plugin@0.16.
|
|
46
|
+
the pinned `npx universal-plugin@0.16.2`. Add `--npm` when an npm package ships the plugin,
|
|
47
47
|
which also wires that `package.json`'s `files` to carry the derived manifests, copies its `version`
|
|
48
48
|
into the manifest, and, in a changesets repository, wires the root `version` script to run
|
|
49
49
|
`plugin version --from-package` (SKILL.md Phase 3 asks before that rewrite).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/run-cli.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/init-universal-plugin/scripts/init.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/compile/scripts.ts
|
|
6
6
|
/** The global the header assigns the script data to. Framework-neutral: a script's own code, or the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/run-cli.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/marketplace/scripts/add.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/compile/scripts.ts
|
|
6
6
|
/** The global the header assigns the script data to. Framework-neutral: a script's own code, or the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/install-docs.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/marketplace/scripts/install-docs.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { execFileSync } from "node:child_process";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
6
|
import * as path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/run-cli.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/marketplace/scripts/marketplace.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/compile/scripts.ts
|
|
6
6
|
/** The global the header assigns the script data to. Framework-neutral: a script's own code, or the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/run-cli.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/marketplace/scripts/validate.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/compile/scripts.ts
|
|
6
6
|
/** The global the header assigns the script data to. Framework-neutral: a script's own code, or the
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"id": 7,
|
|
42
|
-
"prompt": "Publish cyber-asana (in ~/code/cyber-asana, a monorepo with the plugin at packages/cyber-asana, released as tag cyber-asana@1.2.0) to anthropics/claude-plugins-official. Its plugin.json declares the plain dependency \"cyber-
|
|
43
|
-
"expected_output": "Before preparing a PR, runs `gh repo view anthropics/claude-plugins-official --json viewerPermission`, sees READ, then reads the target's .github/workflows/ for a workflow that closes outside PRs and its README's Contributing section. Concludes the catalog is curated (outside PRs are closed automatically; new plugins go through a submission form), so it does not clone, fork, branch, push, or open a PR. Runs pre-flight, resolves cyber-
|
|
42
|
+
"prompt": "Publish cyber-asana (in ~/code/cyber-asana, a monorepo with the plugin at packages/cyber-asana, released as tag cyber-asana@1.2.0) to anthropics/claude-plugins-official. Its plugin.json declares the plain dependency \"cyber-agentkit\".",
|
|
43
|
+
"expected_output": "Before preparing a PR, runs `gh repo view anthropics/claude-plugins-official --json viewerPermission`, sees READ, then reads the target's .github/workflows/ for a workflow that closes outside PRs and its README's Contributing section. Concludes the catalog is curated (outside PRs are closed automatically; new plugins go through a submission form), so it does not clone, fork, branch, push, or open a PR. Runs pre-flight, resolves cyber-agentkit against the target's live catalog and tells the user it will not resolve there, and drafts the entry in the shape the catalog's existing entries use (e.g. a git-subdir source pinned with the release tag as ref and that tag's commit as sha). Hands the user the draft and the submission form link the target names. Does not rely on remembered facts about that catalog.",
|
|
44
44
|
"files": []
|
|
45
45
|
}
|
|
46
46
|
]
|
package/skills/version/SKILL.md
CHANGED
|
@@ -74,7 +74,7 @@ node scripts/version.mjs --from-package
|
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
Resolve that path against this skill's own directory; it runs the project's installed CLI
|
|
77
|
-
(`pnpm exec universal-plugin`), else `npx universal-plugin@0.16.
|
|
77
|
+
(`pnpm exec universal-plugin`), else `npx universal-plugin@0.16.2` pinned to this skill's version.
|
|
78
78
|
`universal-plugin plugin version` on the `PATH` is the fallback. The command never prompts, so it is safe to run unattended once the
|
|
79
79
|
source is decided.
|
|
80
80
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Compiled by `universal-plugin plugin build` from src/skill-scripts/run-cli.ts. Edit the source, not this file.
|
|
3
|
-
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.
|
|
3
|
+
globalThis.__SKILL_SCRIPT__ = {"package":"universal-plugin","bin":"universal-plugin","version":"0.16.2","entry":"skills/version/scripts/version.mjs","commands":{"marketplace add":"skills/marketplace/scripts/add.mjs","marketplace init":"skills/marketplace/scripts/marketplace.mjs","marketplace validate":"skills/marketplace/scripts/validate.mjs","plugin build":"skills/build-plugin/scripts/build.mjs","plugin init":"skills/init-universal-plugin/scripts/init.mjs","plugin version":"skills/version/scripts/version.mjs"}};
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/compile/scripts.ts
|
|
6
6
|
/** The global the header assigns the script data to. Framework-neutral: a script's own code, or the
|