@cobia/pi-onward 0.1.2 → 0.3.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/README.md +122 -159
- package/example.json +13 -9
- package/onward.schema.json +158 -0
- package/package.json +6 -4
- package/src/extension/command.ts +358 -102
- package/src/extension/index.ts +12 -8
- package/src/extension/install.ts +16 -5
- package/src/extension/settings.ts +129 -37
- package/src/extension/text.ts +221 -54
- package/src/policy/config.ts +64 -10
- package/src/policy/delay.ts +10 -3
- package/src/policy/failure.ts +10 -1
- package/src/policy/policy.ts +28 -10
- package/src/policy/rules.ts +38 -21
- package/src/policy/schema.ts +101 -0
- package/src/policy/tracker.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobia/pi-onward",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "pi 出错或空回停止时,按规则自动续跑",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi",
|
|
7
7
|
"pi-package",
|
|
@@ -25,12 +25,14 @@
|
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"src/",
|
|
28
|
-
"example.json"
|
|
28
|
+
"example.json",
|
|
29
|
+
"onward.schema.json"
|
|
29
30
|
],
|
|
30
31
|
"scripts": {
|
|
31
32
|
"test": "node scripts/run-tests.mjs",
|
|
32
33
|
"typecheck": "node node_modules/typescript/bin/tsc --noEmit",
|
|
33
34
|
"check:extension": "node scripts/check-extension.mjs",
|
|
35
|
+
"gen:schema": "node --import tsx scripts/generate-schema.ts",
|
|
34
36
|
"check": "npm run check:biome && npm run typecheck && npm test && npm run check:extension",
|
|
35
37
|
"prepublishOnly": "npm run check",
|
|
36
38
|
"lint": "node scripts/biome-check.mjs --lint",
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
"@earendil-works/pi-tui": "*"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
|
-
"@biomejs/biome": "^2.6.
|
|
47
|
+
"@biomejs/biome": "^2.6.4",
|
|
46
48
|
"@earendil-works/pi-coding-agent": "^1.4.0",
|
|
47
49
|
"@earendil-works/pi-tui": "^1.4.0",
|
|
48
50
|
"@types/node": "^22.20.5",
|