@aviaratech/ai-delivery 0.3.42 → 0.3.44
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/README.md +2 -2
- package/dist/agentReadiness.test.js +27 -0
- package/dist/agentReadiness.test.js.map +2 -2
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +2 -2
- package/dist/contributorChecks.test.js +4 -1
- package/dist/contributorChecks.test.js.map +2 -2
- package/dist/currentConsumer.test.js +3 -2
- package/dist/currentConsumer.test.js.map +2 -2
- package/dist/currentTrackingScenario.test.js +3 -2
- package/dist/currentTrackingScenario.test.js.map +2 -2
- package/dist/directoryIndependent.test.js +22 -3
- package/dist/directoryIndependent.test.js.map +3 -3
- package/dist/dispatch.js.map +2 -2
- package/dist/fixtures/builderReady.d.ts +84 -0
- package/dist/fixtures/builderReady.js +58 -0
- package/dist/fixtures/builderReady.js.map +7 -0
- package/dist/fixtures/inertTarget.d.ts +82 -0
- package/dist/fixtures/inertTarget.js +25 -15
- package/dist/fixtures/inertTarget.js.map +2 -2
- package/dist/fixtures/issue63.d.ts +99 -0
- package/dist/fixtures/issue63.js +21 -2
- package/dist/fixtures/issue63.js.map +2 -2
- package/dist/issue.d.ts +23 -2
- package/dist/issue.js +154 -28
- package/dist/issue.js.map +2 -2
- package/dist/issue63Routes.test.js +3 -3
- package/dist/issue63Routes.test.js.map +2 -2
- package/dist/issueBlockerGuard.test.js +16 -5
- package/dist/issueBlockerGuard.test.js.map +2 -2
- package/dist/issueContract.d.ts +247 -2
- package/dist/issueContract.js +188 -24
- package/dist/issueContract.js.map +2 -2
- package/dist/issueContract.test.d.ts +21 -0
- package/dist/issueContract.test.js +276 -17
- package/dist/issueContract.test.js.map +2 -2
- package/dist/issueDates.test.js +5 -6
- package/dist/issueDates.test.js.map +2 -2
- package/dist/issueInfoReadback.test.js +64 -0
- package/dist/issueInfoReadback.test.js.map +2 -2
- package/dist/issueIntake.test.js +190 -35
- package/dist/issueIntake.test.js.map +2 -2
- package/dist/issueJournal.d.ts +13 -9
- package/dist/issueJournal.js +14 -10
- package/dist/issueJournal.js.map +2 -2
- package/dist/issueJournal.test.js +11 -8
- package/dist/issueJournal.test.js.map +2 -2
- package/dist/issueTracking.test.js +135 -2
- package/dist/issueTracking.test.js.map +3 -3
- package/dist/issueWriteRecovery.test.js +12 -12
- package/dist/issueWriteRecovery.test.js.map +2 -2
- package/dist/mcp/index.js +10 -3
- package/dist/mcp/index.js.map +2 -2
- package/dist/mcp/tools.d.ts +186 -27
- package/dist/mcp/tools.js +25 -7
- package/dist/mcp/tools.js.map +2 -2
- package/dist/pluginPackaging.test.js +6 -3
- package/dist/pluginPackaging.test.js.map +2 -2
- package/dist/readView.d.ts +3 -0
- package/dist/readView.js +1 -1
- package/dist/readView.js.map +2 -2
- package/dist/releaseReconciliation.test.js +20 -6
- package/dist/releaseReconciliation.test.js.map +2 -2
- package/dist/releaseWorkflow.test.js +2 -2
- package/dist/releaseWorkflow.test.js.map +2 -2
- package/dist/review.d.ts +8 -0
- package/dist/review.js +30 -2
- package/dist/review.js.map +2 -2
- package/dist/review.test.js +64 -1
- package/dist/review.test.js.map +2 -2
- package/dist/services/agentReadinessService.d.ts +2 -1
- package/dist/services/agentReadinessService.js +6 -0
- package/dist/services/agentReadinessService.js.map +2 -2
- package/dist/stdoutRegression.test.js +27 -15
- package/dist/stdoutRegression.test.js.map +2 -2
- package/dist/targetRepositoryExecution.test.js +11 -3
- package/dist/targetRepositoryExecution.test.js.map +2 -2
- package/package.json +1 -1
- package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
- package/plugins/ai-delivery/plugin.json +1 -1
- package/plugins/ai-delivery/runtime/dist/cli.js +156 -124
- package/plugins/ai-delivery/runtime/package.json +1 -1
- package/plugins/ai-delivery/skills/intake-create/SKILL.md +1 -11
- package/plugins/ai-delivery/skills/ticket-design/SKILL.md +30 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/releaseReconciliation.test.ts"],
|
|
4
|
-
"sourcesContent": ["import assert from 'node:assert/strict';\nimport { createHash } from 'node:crypto';\nimport { readFileSync } from 'node:fs';\nimport { posix } from 'node:path';\nimport { Script } from 'node:vm';\nimport { test } from 'vitest';\n\nconst workflow = readFileSync(new URL('../.github/workflows/release.yml', import.meta.url), 'utf8');\nconst scripts = [...workflow.matchAll(/node --input-type=module <<'JS'\\n([\\s\\S]*?)\\n\\s+JS/gu)];\nconst publishedScript = scripts.at(-1)?.[1];\nassert.ok(publishedScript, 'The actual release workflow must contain its publication script.');\n// Substitute only external imports; all publication decisions and guards execute unchanged.\nconst program = publishedScript.replace(/^\\s*import .+;\\n/gmu, '');\nconst archive = Buffer.from('independently reviewed synthetic archive');\nconst digest = createHash('sha256').update(archive).digest('hex');\nconst integrity = `sha512-${createHash('sha512').update(archive).digest('base64')}`;\nconst source = 'a'.repeat(40);\nconst registry = 'https://registry.npmjs.org';\nconst packageUrl = `${registry}/@aviaratech%2fai-delivery`;\nconst version = '0.8.1';\nconst archivePath = posix.resolve('/synthetic/package-artifact', `aviaratech-ai-delivery-${version}.tgz`);\nconst pkg = {\n name: '@aviaratech/ai-delivery',\n version,\n private: false,\n license: 'MIT',\n repository: { url: 'git+https://github.com/aviaratech/ai-delivery.git' },\n};\nconst manifest = {\n name: pkg.name,\n version,\n dist: {\n integrity,\n tarball: `${registry}/@aviaratech/ai-delivery/-/ai-delivery-${version}.tgz`,\n attestations: { provenance: { predicateType: 'https://slsa.dev/provenance/v1' } },\n },\n};\n\ntype Fixture = {\n occupied?: boolean;\n versionReadyAt?: number;\n archiveReadyAt?: number;\n provenanceReadyAt?: number;\n indexReadyAt?: number;\n latestReadyAt?: number;\n corruptArchive?: boolean;\n publishStatus?: number | null;\n conflict?: 'name' | 'version' | 'integrity' | 'provenance' | 'origin' | 'credentials' | 'index' | 'latest' | 'main';\n errorPhase?: 'main' | 'version' | 'index' | 'archive';\n errorStatus?: number;\n networkFailure?: boolean;\n oversizedManifest?: boolean;\n fetchDurationMs?: number;\n bodyDeadlineExceeded?: boolean;\n};\n\nasync function runRelease(fixture: Fixture = {}) {\n let publications = 0;\n let reads = 0;\n let elapsed = 0;\n const requests: { url: string; method: string; at: number }[] = [];\n const commands: { command: string; args: string[] }[] = [];\n const waits: number[] = [];\n const timeouts: number[] = [];\n const messages: string[] = [];\n const ready = (at = 1) => reads >= at;\n const published = () => fixture.occupied || publications > 0;\n const visibleManifest = (indexed = false) => {\n const value = structuredClone(manifest);\n if (!ready(fixture.provenanceReadyAt)) Reflect.deleteProperty(value.dist, 'attestations');\n if (fixture.conflict === 'name') value.name = '@someone/else';\n if (fixture.conflict === 'version') value.version = '0.8.0';\n if (fixture.conflict === 'integrity' || (indexed && fixture.conflict === 'index'))\n value.dist.integrity = 'sha512-conflicting';\n if (fixture.conflict === 'provenance')\n value.dist.attestations = { provenance: { predicateType: 'https://unexpected.example/predicate' } };\n if (fixture.conflict === 'origin') value.dist.tarball = 'https://unexpected.example/archive.tgz';\n if (fixture.conflict === 'credentials') {\n const tarball = new URL('/archive.tgz', registry);\n tarball.username = 'user';\n tarball.password = 'password';\n value.dist.tarball = tarball.href;\n }\n return value;\n };\n const fetch = async (input: string | URL, options: RequestInit = {}) => {\n const url = String(input);\n requests.push({ url, method: options.method ?? 'GET', at: elapsed });\n assert.equal(options.redirect, 'error');\n elapsed += fixture.fetchDurationMs ?? 100;\n const phase = url.includes('api.github.com')\n ? 'main'\n : url === packageUrl\n ? 'index'\n : url === `${packageUrl}/${version}`\n ? 'version'\n : 'archive';\n if (phase === fixture.errorPhase && (published() || phase === 'main')) {\n if (fixture.networkFailure) throw new Error('synthetic network failure');\n return new Response(null, { status: fixture.errorStatus ?? 503 });\n }\n if (url === 'https://api.github.com/repos/aviaratech/ai-delivery/branches/main') {\n return Response.json({\n name: 'main',\n protected: true,\n commit: { sha: fixture.conflict === 'main' ? 'b'.repeat(40) : source },\n protection: { required_status_checks: { enforcement_level: 'everyone', contexts: ['checks', 'secrets'] } },\n });\n }\n if (url === `${packageUrl}/${version}`) {\n if (published()) reads++;\n return published() && ready(fixture.versionReadyAt)\n ? fixture.oversizedManifest\n ? new Response('x'.repeat(4 * 1024 * 1024 + 1))\n : Response.json(visibleManifest())\n : new Response(null, { status: 404 });\n }\n if (url === manifest.dist.tarball) {\n if (fixture.bodyDeadlineExceeded) {\n return new Response(\n new ReadableStream({\n start: (controller) => {\n elapsed += 5 * 60_000;\n controller.error(new DOMException('Readback body timed out', 'TimeoutError'));\n },\n }),\n );\n }\n return ready(fixture.archiveReadyAt)\n ? new Response(fixture.corruptArchive ? Buffer.from('conflicting registry bytes') : archive)\n : new Response(null, { status: 404 });\n }\n if (url === packageUrl) {\n return Response.json({\n name: pkg.name,\n 'dist-tags': {\n latest:\n published() && fixture.conflict === 'latest'\n ? '0.8.2'\n : published() && ready(fixture.latestReadyAt)\n ? version\n : '0.8.0',\n },\n versions: published() && ready(fixture.indexReadyAt) ? { [version]: visibleManifest(true) } : {},\n });\n }\n throw new Error(`Unexpected external request: ${url}`);\n };\n const context = {\n createHash,\n resolve: (path: string) => posix.resolve('/synthetic/package-artifact/unpacked/package', path),\n readFileSync: (path: string) => {\n assert.equal(path, archivePath);\n return archive;\n },\n spawnSync: (command: string, args: string[]) => {\n commands.push({ command, args: [...args] });\n assert.equal(command, 'npm');\n assert.equal(args[0], 'publish');\n assert.equal(args[1], archivePath);\n publications++;\n return { status: fixture.publishStatus === undefined ? 0 : fixture.publishStatus };\n },\n pkg,\n process: {\n env: {\n GITHUB_SHA: source,\n REVIEWED_SOURCE_SHA: source,\n RELEASE_VERSION: version,\n REVIEWED_ARCHIVE_SHA256: digest,\n GH_TOKEN: 'synthetic',\n },\n },\n fetch,\n AbortSignal: {\n timeout: (ms: number) => {\n timeouts.push(ms);\n return new AbortController().signal;\n },\n },\n URL,\n Buffer,\n performance: { now: () => elapsed },\n console: {\n log: (message: unknown) => {\n messages.push(String(message));\n },\n },\n setTimeout: (callback: () => void, ms: number) => {\n waits.push(ms);\n elapsed += ms;\n queueMicrotask(callback);\n return 0;\n },\n };\n let error: string | null = null;\n try {\n await (new Script(`(async () => {${program}\\n})()`).runInNewContext(context) as Promise<void>);\n } catch (failure) {\n error = String(failure);\n }\n return { error, publications, requests, commands, waits, timeouts, messages, elapsed, reads };\n}\n\ntest('successful publication reconciles staggered registry visibility without another npm invocation', async () => {\n const result = await runRelease({\n versionReadyAt: 2,\n archiveReadyAt: 3,\n provenanceReadyAt: 4,\n indexReadyAt: 5,\n latestReadyAt: 6,\n });\n assert.equal(result.error, null);\n assert.equal(result.publications, 1);\n assert.equal(result.commands.length, 1);\n assert.deepEqual(result.commands[0]?.args, [\n 'publish',\n archivePath,\n '--ignore-scripts',\n '--access',\n 'public',\n '--tag',\n 'latest',\n '--registry',\n registry,\n '--provenance',\n ]);\n assert.ok(result.waits.length > 0, 'Stale reads must be paced.');\n assert.ok(result.waits.every((ms) => ms > 0));\n assert.ok(result.requests.every((request) => request.method === 'GET'));\n assert.ok(result.timeouts.every((ms) => ms > 0 && ms <= 30_000));\n assert.ok(result.messages.some((message) => /exact reviewed registry/iu.test(message)));\n});\n\ntest('matching occupied release reconciles latest without publication or retag', async () => {\n const result = await runRelease({ occupied: true, latestReadyAt: 3 });\n assert.equal(result.error, null);\n assert.equal(result.publications, 0);\n assert.deepEqual(result.commands, []);\n assert.ok(result.messages.some((message) => /no publication repeated/iu.test(message)));\n});\n\ntest('conflicting archive bytes fail immediately after one publication', async () => {\n const result = await runRelease({ corruptArchive: true });\n assert.match(result.error ?? '', /archive differs/iu);\n assert.equal(result.publications, 1);\n assert.deepEqual(result.waits, []);\n});\n\ntest('unresolved visibility reports the external reconciliation bound without republishing', async () => {\n const result = await runRelease({ versionReadyAt: Infinity });\n assert.match(result.error ?? '', /reconciliation unresolved/iu);\n assert.equal(result.publications, 1);\n assert.ok(result.waits.length > 0);\n assert.ok(result.elapsed < 10 * 60_000, 'Reconciliation must fit the existing external publish job.');\n assert.ok(\n result.timeouts.some((ms) => ms < 30_000),\n 'Requests must respect the remaining reconciliation allowance.',\n );\n});\n\ntest('an occupied version visible only in the index never enters publication', async () => {\n const result = await runRelease({ occupied: true, versionReadyAt: 3, latestReadyAt: 4 });\n assert.equal(result.error, null);\n assert.deepEqual(result.commands, []);\n assert.ok(result.waits.length > 0);\n});\n\nfor (const conflict of [\n 'name',\n 'version',\n 'integrity',\n 'provenance',\n 'origin',\n 'credentials',\n 'index',\n 'latest',\n] as const) {\n test(`present ${conflict} conflict is refused without another publication`, async () => {\n const result = await runRelease({ conflict });\n assert.match(result.error ?? '', /differs|unexpected|advanced/iu);\n assert.equal(result.publications, 1);\n // The package index is initially absent; its conflict is observed on the second read.\n if (conflict !== 'index') assert.deepEqual(result.waits, []);\n else assert.equal(result.waits.length, 1);\n });\n}\n\nfor (const errorPhase of ['version', 'index', 'archive'] as const) {\n for (const errorStatus of [401, 403, 429, 503]) {\n test(`${errorPhase} HTTP ${errorStatus} remains a permanent failure`, async () => {\n const result = await runRelease({ errorPhase, errorStatus });\n assert.match(result.error ?? '', new RegExp(`readback failed: ${errorStatus}`, 'u'));\n assert.equal(result.publications, 1);\n assert.deepEqual(result.waits, []);\n });\n }\n}\n\ntest('network failure is not retried as propagation', async () => {\n const result = await runRelease({ errorPhase: 'version', networkFailure: true });\n assert.match(result.error ?? '', /synthetic network failure/u);\n assert.equal(result.publications, 1);\n assert.deepEqual(result.waits, []);\n});\n\nfor (const publishStatus of [1, null]) {\n test(`publish status ${publishStatus} remains ambiguous after matching readback`, async () => {\n const result = await runRelease({ publishStatus, versionReadyAt: 3 });\n assert.match(result.error ?? '', /failed or was ambiguous/iu);\n assert.equal(result.publications, 1);\n assert.ok(result.messages.some((message) => message.includes(`\"status\":${publishStatus}`)));\n assert.ok(result.messages.some((message) => /exact reviewed registry/iu.test(message)));\n });\n}\n\ntest('an occupied conflicting release is never republished', async () => {\n const result = await runRelease({ occupied: true, conflict: 'integrity' });\n assert.match(result.error ?? '', /integrity differs/iu);\n assert.deepEqual(result.commands, []);\n});\n\ntest('protected source drift refuses publication', async () => {\n const result = await runRelease({ conflict: 'main' });\n assert.match(result.error ?? '', /protected main.*drifted/iu);\n assert.deepEqual(result.commands, []);\n});\n\ntest('oversized registry metadata fails within the readback output bound', async () => {\n const result = await runRelease({ oversizedManifest: true });\n assert.match(result.error ?? '', /readback bound/iu);\n assert.equal(result.publications, 1);\n assert.deepEqual(result.waits, []);\n});\n\ntest('a body timeout at the reconciliation bound retains an explicit unresolved result', async () => {\n const result = await runRelease({ bodyDeadlineExceeded: true });\n assert.match(result.error ?? '', /reconciliation unresolved/iu);\n assert.equal(result.publications, 1);\n});\n\nfor (const phase of ['archiveReadyAt', 'provenanceReadyAt', 'indexReadyAt', 'latestReadyAt'] as const) {\n test(`unresolved ${phase} cannot be accepted as a completed release`, async () => {\n const result = await runRelease({ [phase]: Infinity });\n assert.match(result.error ?? '', /reconciliation unresolved/iu);\n assert.equal(result.publications, 1);\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,YAAY;AACnB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,YAAY;AAErB,MAAM,WAAW,aAAa,IAAI,IAAI,oCAAoC,YAAY,GAAG,GAAG,MAAM;AAClG,MAAM,UAAU,CAAC,GAAG,SAAS,SAAS,sDAAsD,CAAC;AAC7F,MAAM,kBAAkB,QAAQ,GAAG,EAAE,IAAI,CAAC;AAC1C,OAAO,GAAG,iBAAiB,kEAAkE;AAE7F,MAAM,UAAU,gBAAgB,QAAQ,uBAAuB,EAAE;AACjE,MAAM,UAAU,OAAO,KAAK,0CAA0C;AACtE,MAAM,SAAS,WAAW,QAAQ,EAAE,OAAO,OAAO,EAAE,OAAO,KAAK;AAChE,MAAM,YAAY,UAAU,WAAW,QAAQ,EAAE,OAAO,OAAO,EAAE,OAAO,QAAQ,CAAC;AACjF,MAAM,SAA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AAM,EAAE,QAAQ,IAAI,CAAC;AAAA,IACxC;AACA,QAAI,QAAQ,SAAS,KAAK,SAAS;AACjC,UAAI,QAAQ,sBAAsB;AAChC,eAAO,IAAI;AAAA,UACT,IAAI,eAAe;AAAA,YACjB,OAAO,CAAC,eAAe;AACrB,yBAAW,
|
|
4
|
+
"sourcesContent": ["import assert from 'node:assert/strict';\nimport { createHash } from 'node:crypto';\nimport { readFileSync } from 'node:fs';\nimport { posix } from 'node:path';\nimport { Script } from 'node:vm';\nimport { test } from 'vitest';\n\nconst workflow = readFileSync(new URL('../.github/workflows/release.yml', import.meta.url), 'utf8');\nconst scripts = [...workflow.matchAll(/node --input-type=module <<'JS'\\n([\\s\\S]*?)\\n\\s+JS/gu)];\nconst publishedScript = scripts.at(-1)?.[1];\nassert.ok(publishedScript, 'The actual release workflow must contain its publication script.');\n// Substitute only external imports; all publication decisions and guards execute unchanged.\nconst program = publishedScript.replace(/^\\s*import .+;\\n/gmu, '');\nconst archive = Buffer.from('independently reviewed synthetic archive');\nconst digest = createHash('sha256').update(archive).digest('hex');\nconst integrity = `sha512-${createHash('sha512').update(archive).digest('base64')}`;\nconst source = 'a'.repeat(40);\nconst registry = 'https://registry.npmjs.org';\nconst packageUrl = `${registry}/@aviaratech%2fai-delivery`;\nconst version = '0.8.1';\nconst archivePath = posix.resolve('/synthetic/package-artifact', `aviaratech-ai-delivery-${version}.tgz`);\nconst pkg = {\n name: '@aviaratech/ai-delivery',\n version,\n private: false,\n license: 'MIT',\n repository: { url: 'git+https://github.com/aviaratech/ai-delivery.git' },\n};\nconst manifest = {\n name: pkg.name,\n version,\n dist: {\n integrity,\n tarball: `${registry}/@aviaratech/ai-delivery/-/ai-delivery-${version}.tgz`,\n attestations: { provenance: { predicateType: 'https://slsa.dev/provenance/v1' } },\n },\n};\n\ntype Fixture = {\n occupied?: boolean;\n versionReadyAt?: number;\n archiveReadyAt?: number;\n provenanceReadyAt?: number;\n indexReadyAt?: number;\n latestReadyAt?: number;\n corruptArchive?: boolean;\n publishStatus?: number | null;\n conflict?: 'name' | 'version' | 'integrity' | 'provenance' | 'origin' | 'credentials' | 'index' | 'latest' | 'main';\n errorPhase?: 'main' | 'version' | 'index' | 'archive';\n errorStatus?: number;\n networkFailure?: boolean;\n oversizedManifest?: boolean;\n fetchDurationMs?: number;\n bodyDeadlineExceeded?: boolean;\n};\n\nasync function runRelease(fixture: Fixture = {}) {\n let publications = 0;\n let reads = 0;\n let elapsed = 0;\n const requests: { url: string; method: string; at: number }[] = [];\n const commands: { command: string; args: string[] }[] = [];\n const waits: number[] = [];\n const timeouts: number[] = [];\n const messages: string[] = [];\n const ready = (at = 1) => reads >= at;\n const published = () => fixture.occupied || publications > 0;\n const visibleManifest = (indexed = false) => {\n const value = structuredClone(manifest);\n if (!ready(fixture.provenanceReadyAt)) Reflect.deleteProperty(value.dist, 'attestations');\n if (fixture.conflict === 'name') value.name = '@someone/else';\n if (fixture.conflict === 'version') value.version = '0.8.0';\n if (fixture.conflict === 'integrity' || (indexed && fixture.conflict === 'index'))\n value.dist.integrity = 'sha512-conflicting';\n if (fixture.conflict === 'provenance')\n value.dist.attestations = { provenance: { predicateType: 'https://unexpected.example/predicate' } };\n if (fixture.conflict === 'origin') value.dist.tarball = 'https://unexpected.example/archive.tgz';\n if (fixture.conflict === 'credentials') {\n const tarball = new URL('/archive.tgz', registry);\n tarball.username = 'user';\n tarball.password = 'password';\n value.dist.tarball = tarball.href;\n }\n return value;\n };\n const fetch = async (input: string | URL, options: RequestInit = {}) => {\n const url = String(input);\n requests.push({ url, method: options.method ?? 'GET', at: elapsed });\n assert.equal(options.redirect, 'error');\n elapsed += fixture.fetchDurationMs ?? 100;\n const phase = url.includes('api.github.com')\n ? 'main'\n : url === packageUrl\n ? 'index'\n : url === `${packageUrl}/${version}`\n ? 'version'\n : 'archive';\n if (phase === fixture.errorPhase && (published() || phase === 'main')) {\n if (fixture.networkFailure) throw new Error('synthetic network failure');\n return new Response(null, { status: fixture.errorStatus ?? 503 });\n }\n if (url === 'https://api.github.com/repos/aviaratech/ai-delivery/branches/main') {\n return Response.json({\n name: 'main',\n protected: true,\n commit: { sha: fixture.conflict === 'main' ? 'b'.repeat(40) : source },\n protection: { required_status_checks: { enforcement_level: 'everyone', contexts: ['checks', 'secrets'] } },\n });\n }\n if (url === `${packageUrl}/${version}`) {\n if (published()) reads++;\n return published() && ready(fixture.versionReadyAt)\n ? fixture.oversizedManifest\n ? new Response('x'.repeat(4 * 1024 * 1024 + 1))\n : Response.json(visibleManifest())\n : new Response(null, { status: 404 });\n }\n if (url === manifest.dist.tarball) {\n if (fixture.bodyDeadlineExceeded) {\n return new Response(\n new ReadableStream({\n start: (controller) => {\n elapsed += 20 * 60_000;\n controller.error(new DOMException('Readback body timed out', 'TimeoutError'));\n },\n }),\n );\n }\n return ready(fixture.archiveReadyAt)\n ? new Response(fixture.corruptArchive ? Buffer.from('conflicting registry bytes') : archive)\n : new Response(null, { status: 404 });\n }\n if (url === packageUrl) {\n return Response.json({\n name: pkg.name,\n 'dist-tags': {\n latest:\n published() && fixture.conflict === 'latest'\n ? '0.8.2'\n : published() && ready(fixture.latestReadyAt)\n ? version\n : '0.8.0',\n },\n versions: published() && ready(fixture.indexReadyAt) ? { [version]: visibleManifest(true) } : {},\n });\n }\n throw new Error(`Unexpected external request: ${url}`);\n };\n const context = {\n createHash,\n resolve: (path: string) => posix.resolve('/synthetic/package-artifact/unpacked/package', path),\n readFileSync: (path: string) => {\n assert.equal(path, archivePath);\n return archive;\n },\n spawnSync: (command: string, args: string[]) => {\n commands.push({ command, args: [...args] });\n assert.equal(command, 'npm');\n assert.equal(args[0], 'publish');\n assert.equal(args[1], archivePath);\n publications++;\n return { status: fixture.publishStatus === undefined ? 0 : fixture.publishStatus };\n },\n pkg,\n process: {\n env: {\n GITHUB_SHA: source,\n REVIEWED_SOURCE_SHA: source,\n RELEASE_VERSION: version,\n REVIEWED_ARCHIVE_SHA256: digest,\n GH_TOKEN: 'synthetic',\n },\n },\n fetch,\n AbortSignal: {\n timeout: (ms: number) => {\n timeouts.push(ms);\n return new AbortController().signal;\n },\n },\n URL,\n Buffer,\n performance: { now: () => elapsed },\n console: {\n log: (message: unknown) => {\n messages.push(String(message));\n },\n },\n setTimeout: (callback: () => void, ms: number) => {\n waits.push(ms);\n elapsed += ms;\n queueMicrotask(callback);\n return 0;\n },\n };\n let error: string | null = null;\n try {\n await (new Script(`(async () => {${program}\\n})()`).runInNewContext(context) as Promise<void>);\n } catch (failure) {\n error = String(failure);\n }\n return { error, publications, requests, commands, waits, timeouts, messages, elapsed, reads };\n}\n\ntest('successful publication reconciles staggered registry visibility without another npm invocation', async () => {\n const result = await runRelease({\n versionReadyAt: 2,\n archiveReadyAt: 3,\n provenanceReadyAt: 4,\n indexReadyAt: 5,\n latestReadyAt: 6,\n });\n assert.equal(result.error, null);\n assert.equal(result.publications, 1);\n assert.equal(result.commands.length, 1);\n assert.deepEqual(result.commands[0]?.args, [\n 'publish',\n archivePath,\n '--ignore-scripts',\n '--access',\n 'public',\n '--tag',\n 'latest',\n '--registry',\n registry,\n '--provenance',\n ]);\n assert.ok(result.waits.length > 0, 'Stale reads must be paced.');\n assert.ok(result.waits.every((ms) => ms > 0));\n assert.ok(result.requests.every((request) => request.method === 'GET'));\n assert.ok(result.timeouts.every((ms) => ms > 0 && ms <= 30_000));\n assert.ok(result.messages.some((message) => /exact reviewed registry/iu.test(message)));\n});\n\ntest('matching occupied release reconciles latest without publication or retag', async () => {\n const result = await runRelease({ occupied: true, latestReadyAt: 3 });\n assert.equal(result.error, null);\n assert.equal(result.publications, 0);\n assert.deepEqual(result.commands, []);\n assert.ok(result.messages.some((message) => /no publication repeated/iu.test(message)));\n});\n\ntest('conflicting archive bytes fail immediately after one publication', async () => {\n const result = await runRelease({ corruptArchive: true });\n assert.match(result.error ?? '', /archive differs/iu);\n assert.equal(result.publications, 1);\n assert.deepEqual(result.waits, []);\n});\n\ntest('a version npm indexes after seven minutes still ends green', async () => {\n const result = await runRelease({ versionReadyAt: 8 });\n assert.equal(result.error, null);\n assert.equal(result.publications, 1);\n assert.ok(result.elapsed > 7 * 60_000);\n assert.deepEqual(result.waits, [15_000, 30_000, 60_000, 120_000, 120_000, 120_000, 120_000]);\n});\n\ntest('a version that never appears fails with how to check by hand, without republishing', async () => {\n const result = await runRelease({ versionReadyAt: Infinity });\n assert.match(result.error ?? '', /accepted the publish but .* not fully visible.*npm view/iu);\n assert.equal(result.publications, 1);\n assert.ok(result.waits.length > 0);\n assert.ok(result.elapsed >= 15 * 60_000, 'Reconciliation must wait at least 15 minutes.');\n assert.ok(result.elapsed < 30 * 60_000, 'Reconciliation must fit the 30-minute publish job.');\n assert.ok(\n result.timeouts.some((ms) => ms < 30_000),\n 'Requests must respect the remaining reconciliation allowance.',\n );\n});\n\ntest('an occupied version visible only in the index never enters publication', async () => {\n const result = await runRelease({ occupied: true, versionReadyAt: 3, latestReadyAt: 4 });\n assert.equal(result.error, null);\n assert.deepEqual(result.commands, []);\n assert.ok(result.waits.length > 0);\n});\n\nfor (const conflict of [\n 'name',\n 'version',\n 'integrity',\n 'provenance',\n 'origin',\n 'credentials',\n 'index',\n 'latest',\n] as const) {\n test(`present ${conflict} conflict is refused without another publication`, async () => {\n const result = await runRelease({ conflict });\n assert.match(result.error ?? '', /differs|unexpected|advanced/iu);\n assert.equal(result.publications, 1);\n // The package index is initially absent; its conflict is observed on the second read.\n if (conflict !== 'index') assert.deepEqual(result.waits, []);\n else assert.equal(result.waits.length, 1);\n });\n}\n\nfor (const errorPhase of ['version', 'index', 'archive'] as const) {\n for (const errorStatus of [401, 403, 429, 503]) {\n test(`${errorPhase} HTTP ${errorStatus} remains a permanent failure`, async () => {\n const result = await runRelease({ errorPhase, errorStatus });\n assert.match(result.error ?? '', new RegExp(`readback failed: ${errorStatus}`, 'u'));\n assert.equal(result.publications, 1);\n assert.deepEqual(result.waits, []);\n });\n }\n}\n\ntest('network failure is not retried as propagation', async () => {\n const result = await runRelease({ errorPhase: 'version', networkFailure: true });\n assert.match(result.error ?? '', /synthetic network failure/u);\n assert.equal(result.publications, 1);\n assert.deepEqual(result.waits, []);\n});\n\nfor (const publishStatus of [1, null]) {\n test(`publish status ${publishStatus} remains ambiguous after matching readback`, async () => {\n const result = await runRelease({ publishStatus, versionReadyAt: 3 });\n assert.match(result.error ?? '', /failed or was ambiguous/iu);\n assert.equal(result.publications, 1);\n assert.ok(result.messages.some((message) => message.includes(`\"status\":${publishStatus}`)));\n assert.ok(result.messages.some((message) => /exact reviewed registry/iu.test(message)));\n });\n}\n\ntest('an occupied conflicting release is never republished', async () => {\n const result = await runRelease({ occupied: true, conflict: 'integrity' });\n assert.match(result.error ?? '', /integrity differs/iu);\n assert.deepEqual(result.commands, []);\n});\n\ntest('protected source drift refuses publication', async () => {\n const result = await runRelease({ conflict: 'main' });\n assert.match(result.error ?? '', /protected main.*drifted/iu);\n assert.deepEqual(result.commands, []);\n});\n\ntest('oversized registry metadata fails within the readback output bound', async () => {\n const result = await runRelease({ oversizedManifest: true });\n assert.match(result.error ?? '', /readback bound/iu);\n assert.equal(result.publications, 1);\n assert.deepEqual(result.waits, []);\n});\n\ntest('a body timeout at the reconciliation bound retains an explicit unresolved result', async () => {\n const result = await runRelease({ bodyDeadlineExceeded: true });\n assert.match(result.error ?? '', /accepted the publish but .* not fully visible/iu);\n assert.equal(result.publications, 1);\n});\n\ntest('a rejected publish that never appears does not claim npm accepted it', async () => {\n const result = await runRelease({ publishStatus: 1, versionReadyAt: Infinity });\n assert.match(result.error ?? '', /did not exit cleanly.*not fully visible.*npm view/iu);\n assert.doesNotMatch(result.error ?? '', /accepted the publish/iu);\n assert.equal(result.publications, 1);\n});\n\nfor (const phase of ['archiveReadyAt', 'provenanceReadyAt', 'indexReadyAt', 'latestReadyAt'] as const) {\n test(`unresolved ${phase} cannot be accepted as a completed release`, async () => {\n const result = await runRelease({ [phase]: Infinity });\n assert.match(result.error ?? '', /accepted the publish but .* not fully visible/iu);\n assert.equal(result.publications, 1);\n });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AgB,SAAS,CAAC;AAC9E,SAAO,MAAM,OAAO,SAAS,IAAI,qDAAqD;AACtF,SAAO,aAAa,OAAO,SAAS,IAAI,wBAAwB;AAChE,SAAO,MAAM,OAAO,cAAc,CAAC;AACrC,CAAC;AAED,WAAW,SAAS,CAAC,kBAAkB,qBAAqB,gBAAgB,eAAe,GAAY;AACrG,OAAK,cAAc,KAAK,8CAA8C,YAAY;AAChF,UAAM,SAAS,MAAM,WAAW,EAAE,CAAC,KAAK,GAAG,SAAS,CAAC;AACrD,WAAO,MAAM,OAAO,SAAS,IAAI,iDAAiD;AAClF,WAAO,MAAM,OAAO,cAAc,CAAC;AAAA,EACrC,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1687,7 +1687,7 @@ function fixture() {
|
|
|
1687
1687
|
mcpServers: { "ai-delivery": { type: "stdio", command: "node", args: ["${PLUGIN_ROOT}/dist/mcp-launcher.js"] } }
|
|
1688
1688
|
})
|
|
1689
1689
|
);
|
|
1690
|
-
for (const skill of ["intake-create", "worktree-lifecycle", "pr-handoff"])
|
|
1690
|
+
for (const skill of ["intake-create", "ticket-design", "worktree-lifecycle", "pr-handoff"])
|
|
1691
1691
|
files.set(
|
|
1692
1692
|
`plugins/ai-delivery/skills/${skill}/SKILL.md`,
|
|
1693
1693
|
`---
|
|
@@ -1906,7 +1906,7 @@ description: Fictional release fixture
|
|
|
1906
1906
|
cleanup: { removed: true, quiescent: true },
|
|
1907
1907
|
productionClosure: {},
|
|
1908
1908
|
mcp: {},
|
|
1909
|
-
skills: ["fictional1", "fictional2", "fictional3"],
|
|
1909
|
+
skills: ["fictional1", "fictional2", "fictional3", "fictional4"],
|
|
1910
1910
|
resolutions: ["fictional"],
|
|
1911
1911
|
phases: [
|
|
1912
1912
|
"node24",
|