@ycodium-ai/agent-claude 0.2.2888 → 0.2.2892
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/dist/index.js +19 -7
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -20487,15 +20487,27 @@ function claudeSignInCommand(credentialsPath, platform2) {
|
|
|
20487
20487
|
return withClaudeCredentialsDir({ command, credentialsDirPath, platform: platform2 });
|
|
20488
20488
|
}
|
|
20489
20489
|
|
|
20490
|
-
// src/
|
|
20491
|
-
var
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20490
|
+
// ../../packages/ycodium-composer-tokens/src/skillTokens.ts
|
|
20491
|
+
var SKILL_TOKEN_NAME_PATTERN = "[a-zA-Z][a-zA-Z0-9:_-]*";
|
|
20492
|
+
var SESSION_SKILL_NAMESPACE = "ycodium";
|
|
20493
|
+
var SESSION_SKILL_PREFIX = `${SESSION_SKILL_NAMESPACE}:`;
|
|
20494
|
+
var SKILL_TOKEN_REGEX = new RegExp(
|
|
20495
|
+
String.raw`(^|\s)([$/])(${SKILL_TOKEN_NAME_PATTERN})(?=\s|$)`,
|
|
20496
|
+
"g"
|
|
20497
|
+
);
|
|
20498
|
+
function findSkillTokens(text) {
|
|
20499
|
+
return [...text.matchAll(SKILL_TOKEN_REGEX)].map((match) => {
|
|
20496
20500
|
const start = (match.index ?? 0) + (match[1]?.length ?? 0);
|
|
20497
|
-
|
|
20501
|
+
const name = match[3] ?? "";
|
|
20502
|
+
return { sigil: match[2], name, start, end: start + name.length + 1 };
|
|
20498
20503
|
});
|
|
20504
|
+
}
|
|
20505
|
+
var SKILL_TOKEN_AT = new RegExp(String.raw`([$/])(${SKILL_TOKEN_NAME_PATTERN})(?=\s|$)`, "y");
|
|
20506
|
+
var SLASH_SKILL_TOKEN = new RegExp(String.raw`^/(${SKILL_TOKEN_NAME_PATTERN})$`);
|
|
20507
|
+
|
|
20508
|
+
// src/claudeSkillDispatch.ts
|
|
20509
|
+
function planClaudeSkillDispatch(prompt, skillNames) {
|
|
20510
|
+
const mentions = findSkillTokens(prompt).filter((token) => skillNames.has(token.name));
|
|
20499
20511
|
const last = mentions.at(-1);
|
|
20500
20512
|
if (last === void 0) return void 0;
|
|
20501
20513
|
const leading = prompt.slice(0, last.start);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-claude",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2892",
|
|
4
4
|
"description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
"@types/node": "24.12.4",
|
|
25
25
|
"esbuild": "0.28.1",
|
|
26
26
|
"vite-plus": "0.2.2",
|
|
27
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
28
|
-
"ycodium-
|
|
29
|
-
"ycodium-
|
|
27
|
+
"@ycodium-ai/plugin-api": "0.2.2892",
|
|
28
|
+
"ycodium-executor-testing": "0.0.0",
|
|
29
|
+
"ycodium-composer-tokens": "0.0.0",
|
|
30
|
+
"ycodium-jsonl-stream": "0.0.0"
|
|
30
31
|
},
|
|
31
32
|
"ycodium": {
|
|
32
33
|
"plugin": "./dist/index.js",
|