@buffcore/cli 0.8.47 → 0.8.49
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/CHANGELOG.md +52 -0
- package/dist/commands/build/server-text.en.d.ts +5 -0
- package/dist/commands/build/server-text.en.js +5 -0
- package/dist/commands/build/server-text.js +5 -0
- package/dist/commands/build/server.d.ts +4 -0
- package/dist/commands/build/server.js +10 -1
- package/dist/commands/change-merge-serial.d.ts +6 -2
- package/dist/commands/change-merge-serial.js +5 -1
- package/dist/commands/change-merge.d.ts +2 -2
- package/dist/commands/change.js +3 -0
- package/dist/commands/check-skills.d.ts +16 -0
- package/dist/commands/check-skills.en.d.ts +14 -0
- package/dist/commands/check-skills.en.js +14 -0
- package/dist/commands/check-skills.es.d.ts +2 -0
- package/dist/commands/check-skills.es.js +14 -0
- package/dist/commands/check-skills.js +146 -0
- package/dist/commands/check.js +5 -0
- package/dist/commands/dev.d.ts +9 -2
- package/dist/commands/dev.js +24 -5
- package/dist/commands/extension/config-text.d.ts +2 -0
- package/dist/commands/extension/config-text.js +2 -0
- package/dist/commands/extension/index.js +14 -2
- package/dist/commands/extension/new.d.ts +16 -0
- package/dist/commands/extension/new.js +52 -0
- package/dist/commands/extension/pack-files.d.ts +23 -0
- package/dist/commands/extension/pack-files.js +78 -0
- package/dist/commands/extension/pack-scan.d.ts +24 -0
- package/dist/commands/extension/pack-scan.js +131 -0
- package/dist/commands/extension/pack.d.ts +48 -0
- package/dist/commands/extension/pack.js +142 -0
- package/dist/commands/extension/share-text.d.ts +3 -0
- package/dist/commands/extension/share-text.js +6 -0
- package/dist/commands/extension/share.en.d.ts +32 -0
- package/dist/commands/extension/share.en.js +32 -0
- package/dist/commands/extension/share.es.d.ts +2 -0
- package/dist/commands/extension/share.es.js +32 -0
- package/dist/commands/hardening.d.ts +3 -0
- package/dist/commands/hardening.en.d.ts +3 -0
- package/dist/commands/hardening.en.js +3 -0
- package/dist/commands/hardening.es.d.ts +2 -0
- package/dist/commands/hardening.es.js +3 -0
- package/dist/commands/hardening.js +19 -0
- package/dist/commands/prototype/comp-record.d.ts +5 -0
- package/dist/commands/prototype/comp-record.js +22 -0
- package/dist/commands/server/build.d.ts +2 -1
- package/dist/commands/server/build.js +10 -2
- package/dist/commands/server/deploy-local.d.ts +3 -0
- package/dist/commands/server/deploy-local.js +9 -0
- package/dist/commands/server/deploy-plan.d.ts +5 -0
- package/dist/commands/server/deploy-plan.js +56 -0
- package/dist/commands/server/deploy-result.d.ts +7 -0
- package/dist/commands/server/deploy-result.js +1 -0
- package/dist/commands/server/deploy-script.d.ts +2 -0
- package/dist/commands/server/deploy-script.js +3 -2
- package/dist/commands/server/deploy.d.ts +9 -6
- package/dist/commands/server/deploy.js +39 -61
- package/dist/commands/server/files.d.ts +9 -1
- package/dist/commands/server/files.js +25 -5
- package/dist/commands/server/image.d.ts +4 -2
- package/dist/commands/server/image.js +6 -5
- package/dist/commands/server/setup.d.ts +1 -0
- package/dist/commands/server/setup.js +4 -0
- package/dist/commands/server/system-packages.d.ts +29 -0
- package/dist/commands/server/system-packages.js +103 -0
- package/dist/commands/services/compose.d.ts +1 -1
- package/dist/commands/services/compose.js +5 -3
- package/dist/commands/ui/agents-route.js +2 -0
- package/dist/commands/ui/approval-authority.en.d.ts +1 -0
- package/dist/commands/ui/approval-authority.en.js +1 -0
- package/dist/commands/ui/approval-authority.es.d.ts +1 -0
- package/dist/commands/ui/approval-authority.es.js +1 -0
- package/dist/commands/ui/approval-authority.js +7 -2
- package/dist/commands/ui/approve.js +2 -4
- package/dist/commands/ui/autopilot-records.d.ts +2 -0
- package/dist/commands/ui/autopilot-records.js +5 -0
- package/dist/commands/ui/brand-approval.js +5 -1
- package/dist/commands/ui/chat/permissions.js +1 -1
- package/dist/commands/ui/chat/routes.js +4 -0
- package/dist/commands/ui/comp-approval.d.ts +14 -2
- package/dist/commands/ui/comp-approval.js +45 -8
- package/dist/commands/ui/index.d.ts +1 -0
- package/dist/commands/ui/level-route.js +3 -0
- package/dist/commands/ui/merge-authority.d.ts +4 -1
- package/dist/commands/ui/merge-authority.en.d.ts +4 -0
- package/dist/commands/ui/merge-authority.en.js +5 -1
- package/dist/commands/ui/merge-authority.es.d.ts +4 -0
- package/dist/commands/ui/merge-authority.es.js +5 -1
- package/dist/commands/ui/merge-authority.js +6 -3
- package/dist/commands/ui/merge-claims.d.ts +7 -0
- package/dist/commands/ui/merge-claims.js +21 -0
- package/dist/commands/ui/merge-delegation.js +8 -3
- package/dist/commands/ui/merge-hold-name.d.ts +5 -0
- package/dist/commands/ui/merge-hold-name.js +5 -0
- package/dist/commands/ui/merge-hold.d.ts +6 -1
- package/dist/commands/ui/merge-hold.js +23 -5
- package/dist/commands/ui/merge-publish-host.d.ts +1 -0
- package/dist/commands/ui/merge-publish-host.js +2 -2
- package/dist/commands/ui/merge-record.d.ts +2 -0
- package/dist/commands/ui/merge-record.js +1 -1
- package/dist/commands/ui/merge-route.js +17 -1
- package/dist/commands/ui/merge-settle.d.ts +32 -0
- package/dist/commands/ui/merge-settle.js +133 -0
- package/dist/commands/ui/merge-state.d.ts +5 -0
- package/dist/commands/ui/merge-state.js +7 -1
- package/dist/commands/ui/merge-withdraw.d.ts +9 -0
- package/dist/commands/ui/merge-withdraw.js +29 -0
- package/dist/commands/ui/outside-merge.d.ts +13 -0
- package/dist/commands/ui/outside-merge.js +84 -0
- package/dist/commands/ui/outside.d.ts +7 -4
- package/dist/commands/ui/outside.js +3 -0
- package/dist/commands/ui/plan-extensions.d.ts +34 -0
- package/dist/commands/ui/plan-extensions.en.d.ts +4 -0
- package/dist/commands/ui/plan-extensions.en.js +4 -0
- package/dist/commands/ui/plan-extensions.es.d.ts +2 -0
- package/dist/commands/ui/plan-extensions.es.js +4 -0
- package/dist/commands/ui/plan-extensions.js +86 -0
- package/dist/commands/ui/plan-files.js +9 -3
- package/dist/commands/ui/plan-structure.js +5 -7
- package/dist/commands/ui/prototype-comp-route.d.ts +12 -3
- package/dist/commands/ui/prototype-comp-route.js +35 -17
- package/dist/commands/ui/prototype-main.d.ts +6 -0
- package/dist/commands/ui/real-file.d.ts +11 -0
- package/dist/commands/ui/real-file.js +84 -0
- package/dist/commands/ui/save-route.js +4 -1
- package/dist/commands/ui/server.d.ts +1 -0
- package/dist/commands/ui/server.js +1 -0
- package/dist/commands/ui/studio-routes.js +2 -0
- package/dist/commands/ui/studio-state.d.ts +8 -0
- package/dist/commands/ui/studio-versions.js +19 -3
- package/dist/commands/ui/studio.en.d.ts +2 -0
- package/dist/commands/ui/studio.en.js +2 -0
- package/dist/commands/ui/studio.es.d.ts +2 -0
- package/dist/commands/ui/studio.es.js +2 -0
- package/dist/commands/upgrade.js +1 -1
- package/dist/ui/page.js +91 -91
- package/docs/EXTENSIONS.md +6 -0
- package/docs/PROTOTYPE.md +13 -0
- package/docs/WORKBENCH.md +55 -2
- package/package.json +11 -11
- package/skills/ape-add-ai-purpose/SKILL.md +1 -1
- package/skills/ape-add-event/SKILL.md +1 -1
- package/skills/ape-add-extension/SKILL.md +5 -1
- package/skills/ape-add-feature/SKILL.md +1 -1
- package/skills/ape-add-generator/SKILL.md +1 -1
- package/skills/ape-add-module/SKILL.md +1 -1
- package/skills/ape-add-route/SKILL.md +3 -1
- package/skills/ape-add-service/SKILL.md +1 -1
- package/skills/ape-add-translations/SKILL.md +2 -2
- package/skills/ape-admin-screen/SKILL.md +1 -1
- package/skills/ape-app-screen/SKILL.md +1 -1
- package/skills/ape-critique/SKILL.md +11 -32
- package/skills/ape-critique/references/after.md +15 -0
- package/skills/ape-critique/references/spacing-pass.md +20 -0
- package/skills/ape-deploy/SKILL.md +8 -3
- package/skills/ape-design-system/SKILL.md +15 -15
- package/skills/ape-design-system/references/by-hand.md +7 -0
- package/skills/ape-design-system/references/reference-study.md +11 -0
- package/skills/ape-diagnose/SKILL.md +24 -0
- package/skills/ape-migration/SKILL.md +1 -1
- package/skills/ape-plan-change/SKILL.md +37 -31
- package/skills/ape-plan-change/references/change-file-fields.md +5 -0
- package/skills/ape-plan-change/references/extensions.md +25 -0
- package/skills/ape-plan-change/references/finishing.md +3 -0
- package/skills/ape-plan-change/references/fix-from-error.md +3 -0
- package/skills/ape-plan-change/references/refactor.md +9 -0
- package/skills/ape-plan-change/references/structure.md +19 -0
- package/skills/ape-prototype/SKILL.md +13 -23
- package/skills/ape-prototype/references/comp.md +3 -0
- package/skills/ape-prototype/references/scope-and-export.md +5 -0
- package/skills/ape-prototype/references/snapshot.md +3 -0
- package/skills/ape-prototype/references/structure.md +11 -0
- package/skills/ape-prototype/references/working-app.md +7 -0
- package/skills/ape-request/SKILL.md +1 -1
- package/skills/ape-upgrade/SKILL.md +4 -1
- package/templates/product/package.json +1 -1
|
@@ -11,6 +11,7 @@ import { levelRoute } from './level-route.js';
|
|
|
11
11
|
import { mergeRoutes } from './merge-route.js';
|
|
12
12
|
import { mergeStudio } from './merge-state.js';
|
|
13
13
|
import { outsideState } from './outside.js';
|
|
14
|
+
import { outsideMergeRoute } from './outside-merge.js';
|
|
14
15
|
import { outsideRoute } from './outside-route.js';
|
|
15
16
|
import { prototypeCompRoutes } from './prototype-comp-route.js';
|
|
16
17
|
import { planPrototypeOnMain } from './prototype-main.js';
|
|
@@ -91,6 +92,7 @@ cached = false) {
|
|
|
91
92
|
...prototypeCompRoutes(root),
|
|
92
93
|
structureSurfaceRoute(root),
|
|
93
94
|
outsideRoute,
|
|
95
|
+
outsideMergeRoute(root),
|
|
94
96
|
{
|
|
95
97
|
method: 'GET',
|
|
96
98
|
path: '/api/studio',
|
|
@@ -205,6 +205,12 @@ export declare function studioState(root: string, options: Pick<UiServerOptions,
|
|
|
205
205
|
name: string;
|
|
206
206
|
changes: string[];
|
|
207
207
|
}[];
|
|
208
|
+
extensions?: {
|
|
209
|
+
kind: "build to share" | "improve" | "product only" | "request" | "use";
|
|
210
|
+
name: string;
|
|
211
|
+
why?: string | undefined;
|
|
212
|
+
extra?: string | undefined;
|
|
213
|
+
}[] | undefined;
|
|
208
214
|
changes: {
|
|
209
215
|
id: string;
|
|
210
216
|
title: string;
|
|
@@ -351,6 +357,7 @@ export declare function studioState(root: string, options: Pick<UiServerOptions,
|
|
|
351
357
|
head: string;
|
|
352
358
|
kind: "merged" | "refused" | "waiting";
|
|
353
359
|
again?: true | undefined;
|
|
360
|
+
automatic?: true | undefined;
|
|
354
361
|
at: string;
|
|
355
362
|
detail: string;
|
|
356
363
|
}[] | undefined;
|
|
@@ -375,6 +382,7 @@ export declare function studioState(root: string, options: Pick<UiServerOptions,
|
|
|
375
382
|
source: string;
|
|
376
383
|
} | undefined;
|
|
377
384
|
answers?: true | undefined;
|
|
385
|
+
merges?: true | undefined;
|
|
378
386
|
} | undefined;
|
|
379
387
|
release?: {
|
|
380
388
|
commit: string;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { existsSync, readdirSync
|
|
1
|
+
import { existsSync, readdirSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { prototypeVersionsSchema } from '@buffcore/contracts/approvals';
|
|
4
4
|
import { MilestoneVersionsPending, requireLegacyChange } from '../prototype/milestone-key.js';
|
|
5
5
|
import { heldOnly, readVersions } from '../prototype/versions.js';
|
|
6
|
+
import { authorityT } from './approval-authority.js';
|
|
7
|
+
import { readInsideSync } from './real-file.js';
|
|
6
8
|
/** Host approval reads only the requested change; local signatures are not evidence. */
|
|
7
9
|
export function authorityVersion(root, change) {
|
|
8
10
|
requireLegacyChange(root, change);
|
|
9
11
|
if (!/^C-\d{3,}$/.test(change))
|
|
10
12
|
throw new Error();
|
|
11
|
-
const
|
|
13
|
+
const bytes = readInsideSync(join(root, 'prototype/versions', `${change}.json`), [root]);
|
|
14
|
+
if (!bytes)
|
|
15
|
+
throw new Error();
|
|
16
|
+
const value = JSON.parse(bytes.toString('utf8'));
|
|
12
17
|
const record = prototypeVersionsSchema.parse({ change: value.change, versions: value.versions });
|
|
13
18
|
if (record.change !== change)
|
|
14
19
|
throw new Error();
|
|
@@ -28,7 +33,7 @@ export function studioVersions(root, hosted = false, changes = []) {
|
|
|
28
33
|
requireLegacyChange(root, change);
|
|
29
34
|
// Preserve the old projection: unrecorded legacy changes have no version row.
|
|
30
35
|
if (saved.includes(change))
|
|
31
|
-
rows.push(hosted ?
|
|
36
|
+
rows.push(hosted ? hostedRow(root, change) : heldOnly(readVersions(root, change)));
|
|
32
37
|
}
|
|
33
38
|
catch (error) {
|
|
34
39
|
if (!(error instanceof MilestoneVersionsPending))
|
|
@@ -38,3 +43,14 @@ export function studioVersions(root, hosted = false, changes = []) {
|
|
|
38
43
|
}
|
|
39
44
|
return rows;
|
|
40
45
|
}
|
|
46
|
+
/** A record the host read can't use (linked out, hard-linked, malformed) is a refused row. */
|
|
47
|
+
function hostedRow(root, change) {
|
|
48
|
+
try {
|
|
49
|
+
return authorityVersion(root, change);
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
if (error instanceof MilestoneVersionsPending)
|
|
53
|
+
throw error;
|
|
54
|
+
return { change, versions: [], approvalRefusal: authorityT('ui.authority.unread') };
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -17,6 +17,8 @@ export declare const en: {
|
|
|
17
17
|
'ui.outside.signIn': string;
|
|
18
18
|
'ui.outside.timeout': string;
|
|
19
19
|
'ui.outside.source': string;
|
|
20
|
+
'ui.outside.invalid': string;
|
|
21
|
+
'ui.outside.lockReleased': string;
|
|
20
22
|
'ui.outside.unavailable': string;
|
|
21
23
|
'ui.address.local': string;
|
|
22
24
|
'ui.studio': string;
|
|
@@ -17,6 +17,8 @@ export const en = {
|
|
|
17
17
|
'ui.outside.signIn': 'Outside sources need host sign-in.',
|
|
18
18
|
'ui.outside.timeout': 'The outside source time limit must be a whole number from 1 to 30,000 milliseconds.',
|
|
19
19
|
'ui.outside.source': 'An outside source needs a plain-text name of 1 to 40 characters and a read hook.',
|
|
20
|
+
'ui.outside.invalid': 'Name one outside change to merge.',
|
|
21
|
+
'ui.outside.lockReleased': 'ape studio: the host had not ended its outside merge of {change} {ms} ms after its answer was due; the merge queue is free again.',
|
|
20
22
|
'ui.outside.unavailable': 'No outside sources are available.',
|
|
21
23
|
'ui.address.local': "Only this computer's own address opens the studio.",
|
|
22
24
|
'ui.studio': 'Open the studio on real state (preview)',
|
|
@@ -2,6 +2,8 @@ export declare const es: {
|
|
|
2
2
|
'ui.outside.signIn': string;
|
|
3
3
|
'ui.outside.timeout': string;
|
|
4
4
|
'ui.outside.source': string;
|
|
5
|
+
'ui.outside.invalid': string;
|
|
6
|
+
'ui.outside.lockReleased': string;
|
|
5
7
|
'ui.outside.unavailable': string;
|
|
6
8
|
'ui.title': string;
|
|
7
9
|
'ui.theme.refused': string;
|
|
@@ -2,6 +2,8 @@ export const es = {
|
|
|
2
2
|
'ui.outside.signIn': 'Las fuentes externas requieren iniciar sesión a través del anfitrión.',
|
|
3
3
|
'ui.outside.timeout': 'El límite de tiempo de la fuente externa debe ser un número entero entre 1 y 30.000 milisegundos.',
|
|
4
4
|
'ui.outside.source': 'Una fuente externa necesita un nombre en texto sin formato de 1 a 40 caracteres y una función de lectura.',
|
|
5
|
+
'ui.outside.invalid': 'Indica un cambio externo para fusionar.',
|
|
6
|
+
'ui.outside.lockReleased': 'ape studio: el anfitrión no había terminado su fusión externa de {change} {ms} ms después del plazo de su respuesta; la cola de fusiones vuelve a estar libre.',
|
|
5
7
|
'ui.outside.unavailable': 'No hay fuentes externas disponibles.',
|
|
6
8
|
'ui.title': 'Estudio de {name}',
|
|
7
9
|
'ui.theme.refused': 'El estudio no puede iniciarse con este tema ({count} problemas):',
|
package/dist/commands/upgrade.js
CHANGED
|
@@ -192,7 +192,7 @@ export async function runUpgrade(root, target, steps, json = false) {
|
|
|
192
192
|
if (json)
|
|
193
193
|
console.log(JSON.stringify({ ok, from, to, places, message }));
|
|
194
194
|
else if (ok)
|
|
195
|
-
log(`Upgraded from ${from} to ${to}: migrated, and the tests pass.\nNext: work through the notes above, run pnpm verify, and say what changed in the pull request (
|
|
195
|
+
log(`Upgraded from ${from} to ${to}: migrated, and the tests pass.\nNext: work through the notes above, run pnpm verify, and say what changed in the pull request (read .claude/skills/ape-upgrade/SKILL.md).`);
|
|
196
196
|
return ok;
|
|
197
197
|
}
|
|
198
198
|
/**
|