@markjaquith/agency 3.9.4 → 3.9.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markjaquith/agency",
3
- "version": "3.9.4",
3
+ "version": "3.9.5",
4
4
  "description": "Manage agentic work across repositories with durable workbases",
5
5
  "keywords": [
6
6
  "agents",
@@ -116,8 +116,8 @@ const unquote = (value: string) => {
116
116
  return trimmed
117
117
  }
118
118
 
119
- const skillInfo = (location: string) => {
120
- const raw = readFileSync(location, "utf8")
119
+ const skillInfo = (path: string) => {
120
+ const raw = readFileSync(path, "utf8")
121
121
  const match = raw.match(/^---\\r?\\n([\\s\\S]*?)\\r?\\n---\\r?\\n?/)
122
122
  const frontmatter = match?.[1] ?? ""
123
123
  const scalar = (name: string) => {
@@ -126,15 +126,15 @@ const skillInfo = (location: string) => {
126
126
  ))?.[1]
127
127
  return value ? unquote(value) : undefined
128
128
  }
129
- const id = basename(location) === "SKILL.md"
130
- ? basename(dirname(location))
131
- : basename(location, extname(location))
129
+ const id = basename(path) === "SKILL.md"
130
+ ? basename(dirname(path))
131
+ : basename(path, extname(path))
132
132
  const description = scalar("description")
133
133
  return {
134
134
  id,
135
135
  name: scalar("name") ?? id,
136
136
  ...(description === undefined ? {} : { description }),
137
- location,
137
+ path,
138
138
  content: match ? raw.slice(match[0].length) : raw,
139
139
  }
140
140
  }
@@ -283,8 +283,8 @@ const setup = async (context: V2PluginContext) => {
283
283
  )
284
284
  await context.skill.transform((skills) => {
285
285
  for (const path of paths) {
286
- for (const location of skillFiles(path)) {
287
- skills.add(skillInfo(location) as unknown as Parameters<typeof skills.add>[0])
286
+ for (const skillPath of skillFiles(path)) {
287
+ skills.add(skillInfo(skillPath) as unknown as Parameters<typeof skills.add>[0])
288
288
  }
289
289
  }
290
290
  })