@gobing-ai/spur 0.3.89 → 0.3.90
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/marketplace.json +1 -1
- package/config/rules/boundary/sp-plugin-standalone.yaml +37 -0
- package/package.json +9 -9
- package/plugins/sp/lib/idea-handoff.generated.mjs +157 -150
- package/plugins/sp/plugin.json +1 -1
- package/plugins/sp/scripts/script-contract-check.ts +58 -0
- package/plugins/sp/skills/spur-cli/references/workflows.md +8 -3
- package/spur.js +535 -240
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
$schema: "@gobing-ai/spur/schemas/rule-file.schema.json"
|
|
2
|
+
# Plugin standalone contract — bundled plugin surfaces import only node:* or relative paths.
|
|
3
|
+
#
|
|
4
|
+
# WHY: `superskill install` bundles plugins/sp hooks and scripts on targets (and from
|
|
5
|
+
# marketplace snapshots) with NO node_modules. A bare `@gobing-ai/*` value import only
|
|
6
|
+
# converts if the host superskill happens to carry that package in its private dep tree
|
|
7
|
+
# (superskill 0.3.28+ bundles ts-utils/ts-runtime; older versions do not). When it does
|
|
8
|
+
# not: "Error: Bundle failed" and the plugin cannot install — this broke releases
|
|
9
|
+
# 0.3.81–0.3.88 (task 0669; regression commit 84c87a9ac).
|
|
10
|
+
#
|
|
11
|
+
# Contract:
|
|
12
|
+
# - plugins/sp/hooks/**, plugins/sp/scripts/**, plugins/sp/lib/** may value-import
|
|
13
|
+
# only `node:*` builtins and relative paths (vendored helpers live in plugins/sp/lib/).
|
|
14
|
+
# - `import type` / `export type` from any package is fine — erased before bundling
|
|
15
|
+
# (e.g. inline-run-setup.ts's type-only import from @gobing-ai/app).
|
|
16
|
+
# - This rule is the author-time tripwire over DIRECT imports; the transitive closure
|
|
17
|
+
# and the real `superskill install` path are checked by `bun run plugin-smoke`, and
|
|
18
|
+
# script-contract-check Rule 5 (manifest-aware) fails the spur-check gate.
|
|
19
|
+
#
|
|
20
|
+
# Scope: plugins/sp bundled surfaces only. apps/packages follow the normal workspace
|
|
21
|
+
# import rules and are not affected.
|
|
22
|
+
include:
|
|
23
|
+
- "plugins/sp/hooks/**/*.ts"
|
|
24
|
+
- "plugins/sp/scripts/**/*.ts"
|
|
25
|
+
- "plugins/sp/lib/**/*.ts"
|
|
26
|
+
rules:
|
|
27
|
+
- id: sp-plugin-standalone
|
|
28
|
+
description: >
|
|
29
|
+
No value imports of workspace packages (`@gobing-ai/*` or any bare specifier)
|
|
30
|
+
in plugin bundled surfaces — superskill bundles them onto targets with no
|
|
31
|
+
node_modules. Vendor the helper into plugins/sp/lib/ (see lib/env.ts) or use a
|
|
32
|
+
relative import. `import type` is exempt.
|
|
33
|
+
severity: error
|
|
34
|
+
evaluator:
|
|
35
|
+
type: rg
|
|
36
|
+
config:
|
|
37
|
+
pattern: "^import \\{[^}]*\\} from ['\\\"]@gobing-ai/|^import ['\\\"]@gobing-ai/|^import\\(['\\\"]@gobing-ai/|^} from ['\\\"]@gobing-ai/"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobing-ai/spur",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.90",
|
|
4
4
|
"description": "Spur CLI — local-first harness for mainstream coding agents: constraint checking, workflow orchestration, agent health, and history analytics. Bun-native; exposes the `spur` command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spur",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@commander-js/extra-typings": "^14.0.0",
|
|
56
|
-
"@gobing-ai/ts-db": "^0.
|
|
57
|
-
"@gobing-ai/ts-ai-runner": "^0.
|
|
58
|
-
"@gobing-ai/ts-dual-workflow-engine": "^0.
|
|
59
|
-
"@gobing-ai/ts-infra": "^0.
|
|
60
|
-
"@gobing-ai/ts-llm-jsonl-importer": "^0.
|
|
61
|
-
"@gobing-ai/ts-rule-engine": "^0.
|
|
62
|
-
"@gobing-ai/ts-runtime": "^0.
|
|
63
|
-
"@gobing-ai/ts-utils": "^0.
|
|
56
|
+
"@gobing-ai/ts-db": "^0.5.0",
|
|
57
|
+
"@gobing-ai/ts-ai-runner": "^0.5.0",
|
|
58
|
+
"@gobing-ai/ts-dual-workflow-engine": "^0.5.0",
|
|
59
|
+
"@gobing-ai/ts-infra": "^0.5.0",
|
|
60
|
+
"@gobing-ai/ts-llm-jsonl-importer": "^0.5.0",
|
|
61
|
+
"@gobing-ai/ts-rule-engine": "^0.5.0",
|
|
62
|
+
"@gobing-ai/ts-runtime": "^0.5.0",
|
|
63
|
+
"@gobing-ai/ts-utils": "^0.5.0",
|
|
64
64
|
"@types/bun": "1.3.14",
|
|
65
65
|
"@types/figlet": "^1.7.0",
|
|
66
66
|
"@types/node-notifier": "8.0.5",
|