@juicesharp/rpiv-args 1.2.0 → 1.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/args.ts +5 -5
- package/index.ts +1 -1
- package/package.json +2 -2
package/args.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* as the skill's argument input rather than a separate imperative.
|
|
20
20
|
*
|
|
21
21
|
* Byte-exact wrapper requirement: parseSkillBlock regex at
|
|
22
|
-
* node_modules/@
|
|
22
|
+
* node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js:40
|
|
23
23
|
* is the load-bearing contract for the wrapper itself. Do not reformat the
|
|
24
24
|
* template literal below.
|
|
25
25
|
*/
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
parseFrontmatter,
|
|
37
37
|
type Skill,
|
|
38
38
|
stripFrontmatter,
|
|
39
|
-
} from "@
|
|
39
|
+
} from "@earendil-works/pi-coding-agent";
|
|
40
40
|
|
|
41
41
|
// ---------------------------------------------------------------------------
|
|
42
42
|
// Tokens
|
|
@@ -54,7 +54,7 @@ const WRAPPED_PREFIX = "<skill ";
|
|
|
54
54
|
|
|
55
55
|
// ---------------------------------------------------------------------------
|
|
56
56
|
// Tokeniser — byte-equivalent to Pi's parseCommandArgs at
|
|
57
|
-
// node_modules/@
|
|
57
|
+
// node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js:11-42
|
|
58
58
|
// ---------------------------------------------------------------------------
|
|
59
59
|
|
|
60
60
|
export function parseCommandArgs(argsString: string): string[] {
|
|
@@ -86,7 +86,7 @@ export function parseCommandArgs(argsString: string): string[] {
|
|
|
86
86
|
|
|
87
87
|
// ---------------------------------------------------------------------------
|
|
88
88
|
// Substitutor — byte-equivalent to Pi's substituteArgs at
|
|
89
|
-
// node_modules/@
|
|
89
|
+
// node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js:54-82
|
|
90
90
|
// Order matters: $N first, then ${@:N[:L]}, then $ARGUMENTS, then $@.
|
|
91
91
|
// ---------------------------------------------------------------------------
|
|
92
92
|
|
|
@@ -146,7 +146,7 @@ function getSkillIndex(): Map<string, SkillIndexEntry> {
|
|
|
146
146
|
|
|
147
147
|
// ---------------------------------------------------------------------------
|
|
148
148
|
// Wrapper emit — byte-exact against parseSkillBlock regex at
|
|
149
|
-
// node_modules/@
|
|
149
|
+
// node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js:40
|
|
150
150
|
// and byte-equivalent to _expandSkillCommand's output at :840-841.
|
|
151
151
|
// ---------------------------------------------------------------------------
|
|
152
152
|
|
package/index.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* args.ts.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { ExtensionAPI } from "@
|
|
9
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
10
10
|
import { registerArgsHandler } from "./args.js";
|
|
11
11
|
|
|
12
12
|
export default function (pi: ExtensionAPI): void {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-args",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Pi extension. Shell-style $1 and $ARGUMENTS placeholders, expanded into your Pi skills at invocation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@
|
|
42
|
+
"@earendil-works/pi-coding-agent": "*"
|
|
43
43
|
}
|
|
44
44
|
}
|