IAPL rename, scripted: preferred names in src, bin, scripts, services, tests; bin files and skill folders moved
Replaced by an explicit list of forms only (ten exported names, runtime env names, project file names and marks, commands, skill names, the log prefix, the brand in prose). Package name, import paths, routes, CSS tokens, data attributes, custom keys, context flags, the cookie and kv keys are not touched. package.json keeps the five old bin names beside the five new ones. The old names stop working in this commit and come back as aliases in the next; docs follow. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
414a4702df
commit
0a4f001797
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Third-party agent skills vendored into the package (docs/agent/external) and installed by
|
||||
* `ipal-skills --external`. They are pinned, text-only and carry their licence; the installer
|
||||
* `iapl-skills --external`. They are pinned, text-only and carry their licence; the installer
|
||||
* downloads nothing and leaves the project's own skill folders alone.
|
||||
*/
|
||||
import { execFileSync } from 'node:child_process'
|
||||
@@ -47,7 +47,7 @@ describe('vendored external skills', () => {
|
||||
})
|
||||
|
||||
test('the installer downloads nothing', () => {
|
||||
const bin = read(path.join(root, 'bin/ipal-skills.mjs'))
|
||||
const bin = read(path.join(root, 'bin/iapl-skills.mjs'))
|
||||
expect(bin).not.toMatch(/https?:\/\/|\bfetch\(|child_process|execFile|spawn/)
|
||||
})
|
||||
|
||||
@@ -80,12 +80,12 @@ describe('vendored external skills', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('ipal-skills --external', () => {
|
||||
describe('iapl-skills --external', () => {
|
||||
const work = mkdtempSync(path.join(tmpdir(), 'ipal-ext-test-'))
|
||||
afterAll(() => rmSync(work, { force: true, recursive: true }))
|
||||
const skillsDir = path.join(work, '.agents/skills')
|
||||
const run = (...args: string[]) =>
|
||||
execFileSync('node', [path.join(root, 'bin/ipal-skills.mjs'), '--no-pointer', ...args], { cwd: work, encoding: 'utf8' })
|
||||
execFileSync('node', [path.join(root, 'bin/iapl-skills.mjs'), '--no-pointer', ...args], { cwd: work, encoding: 'utf8' })
|
||||
const names = () => readdirSync(skillsDir).sort()
|
||||
|
||||
test('adds ext-* only on request and leaves the project\'s own folders alone', () => {
|
||||
@@ -103,7 +103,7 @@ describe('ipal-skills --external', () => {
|
||||
expect(read(path.join(skillsDir, 'ext-mine/SKILL.md'))).toBe('own ext')
|
||||
})
|
||||
|
||||
test('removes only retired ext-* folders that ipal-kit installed', () => {
|
||||
test('removes only retired ext-* folders that IAPL installed', () => {
|
||||
const retired = path.join(skillsDir, 'ext-retired')
|
||||
mkdirSync(retired)
|
||||
cpSync(path.join(extDir, manifest.skills[0].name, 'SOURCE.md'), path.join(retired, 'SOURCE.md'))
|
||||
@@ -115,7 +115,7 @@ describe('ipal-skills --external', () => {
|
||||
test('an unknown name stops the run before anything is copied', () => {
|
||||
const empty = mkdtempSync(path.join(work, 'empty-'))
|
||||
expect(() =>
|
||||
execFileSync('node', [path.join(root, 'bin/ipal-skills.mjs'), '--no-pointer', '--external', 'ext-nope'], { cwd: empty, stdio: 'pipe' }),
|
||||
execFileSync('node', [path.join(root, 'bin/iapl-skills.mjs'), '--no-pointer', '--external', 'ext-nope'], { cwd: empty, stdio: 'pipe' }),
|
||||
).toThrow()
|
||||
expect(readdirSync(empty)).toEqual([])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user