@rryando/arcs 3.4.1 → 3.4.2
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/package.json
CHANGED
|
@@ -237,15 +237,23 @@ function buildAgentSources() {
|
|
|
237
237
|
const tier = agentTierMap[stem] || "standard";
|
|
238
238
|
const model = tierModels[tier];
|
|
239
239
|
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
// Claude Code requires `name` to be a kebab-case identifier (lowercase
|
|
241
|
+
// letters + hyphens). The filename stem already satisfies this and is
|
|
242
|
+
// unique, so it IS the agent name — the human-readable label lives in
|
|
243
|
+
// `description`. The default-agent setting (DEFAULT_AGENT) references this
|
|
244
|
+
// same stem, so it resolves. Display names with spaces/parens/apostrophes
|
|
245
|
+
// (meta.name) are invalid here and caused intermittent init failures.
|
|
246
|
+
const toolsCsv = meta.tools
|
|
247
|
+
.split(",")
|
|
248
|
+
.map((t) => t.trim())
|
|
249
|
+
.join(", ");
|
|
242
250
|
|
|
243
251
|
const compiledContent = [
|
|
244
252
|
"---",
|
|
245
|
-
`name: ${
|
|
253
|
+
`name: ${stem}`,
|
|
246
254
|
`description: ${meta.description}`,
|
|
247
255
|
`model: ${model}`,
|
|
248
|
-
`tools: ${
|
|
256
|
+
`tools: ${toolsCsv}`,
|
|
249
257
|
"---",
|
|
250
258
|
"",
|
|
251
259
|
promptContent,
|