veryfront 0.1.952 → 0.1.953
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/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/src/skill/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/src/skill/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,kBAAkB,CAAC;AAmJnE;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAkD1C;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,IAAI,IAAI,CA+BnD;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,IAAI,IAAI,CAuCnD"}
|
package/esm/src/skill/tools.js
CHANGED
|
@@ -71,18 +71,6 @@ function resolveVisibleSkillOrThrow(skillId, context) {
|
|
|
71
71
|
}
|
|
72
72
|
return skill;
|
|
73
73
|
}
|
|
74
|
-
function buildSkillAvailabilityNote(references, scripts) {
|
|
75
|
-
if (scripts.length === 0 && references.length === 0) {
|
|
76
|
-
return "This skill has no scripts or reference files. Do NOT call execute_skill_script or load_skill_reference.";
|
|
77
|
-
}
|
|
78
|
-
if (scripts.length === 0) {
|
|
79
|
-
return "This skill has no scripts. Do NOT call execute_skill_script.";
|
|
80
|
-
}
|
|
81
|
-
if (references.length === 0) {
|
|
82
|
-
return "This skill has no reference files. Do NOT call load_skill_reference.";
|
|
83
|
-
}
|
|
84
|
-
return undefined;
|
|
85
|
-
}
|
|
86
74
|
function hasRuntimeSkillBoundary(context) {
|
|
87
75
|
if (!context)
|
|
88
76
|
return false;
|
|
@@ -141,14 +129,12 @@ export function createLoadSkillTool() {
|
|
|
141
129
|
listSkillSubdir(skill.rootPath, SKILL_SCRIPTS_DIR, skill.fsAdapter),
|
|
142
130
|
]);
|
|
143
131
|
const loadableReferences = [...references, ...resources, ...assets];
|
|
144
|
-
const note = buildSkillAvailabilityNote(loadableReferences, scripts);
|
|
145
132
|
return {
|
|
146
133
|
skillId: skill.id,
|
|
147
134
|
instructions: parsed.body,
|
|
148
135
|
allowedTools: skill.metadata.allowedTools,
|
|
149
136
|
references: loadableReferences,
|
|
150
137
|
scripts,
|
|
151
|
-
...(note ? { note } : {}),
|
|
152
138
|
};
|
|
153
139
|
},
|
|
154
140
|
});
|