@12ui/design 0.2.55 → 0.2.57
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/SKILL.md +1 -1
- package/dist/branch-client.d.ts +2 -0
- package/dist/branch-client.d.ts.map +1 -1
- package/dist/branch-client.js +1 -0
- package/dist/branch-client.js.map +1 -1
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +2 -0
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli-conversion-derivation.d.ts +2 -1
- package/dist/cli-conversion-derivation.d.ts.map +1 -1
- package/dist/cli-conversion-derivation.js +9 -1
- package/dist/cli-conversion-derivation.js.map +1 -1
- package/dist/cli-convert-command.d.ts.map +1 -1
- package/dist/cli-convert-command.js +111 -16
- package/dist/cli-convert-command.js.map +1 -1
- package/dist/cli-corpus-command.d.ts.map +1 -1
- package/dist/cli-corpus-command.js +5 -2
- package/dist/cli-corpus-command.js.map +1 -1
- package/dist/cli-corpus-evidence.d.ts.map +1 -1
- package/dist/cli-corpus-evidence.js +2 -1
- package/dist/cli-corpus-evidence.js.map +1 -1
- package/dist/cli-corpus-reference-downloads.d.ts +1 -0
- package/dist/cli-corpus-reference-downloads.d.ts.map +1 -1
- package/dist/cli-corpus-reference-downloads.js +13 -3
- package/dist/cli-corpus-reference-downloads.js.map +1 -1
- package/dist/cli-corpus-types.d.ts +2 -0
- package/dist/cli-corpus-types.d.ts.map +1 -1
- package/dist/cli-draft-command.d.ts +11 -0
- package/dist/cli-draft-command.d.ts.map +1 -1
- package/dist/cli-draft-command.js +10 -1
- package/dist/cli-draft-command.js.map +1 -1
- package/dist/cli-help/design.d.ts +2 -2
- package/dist/cli-help/design.d.ts.map +1 -1
- package/dist/cli-help/design.js +12 -2
- package/dist/cli-help/design.js.map +1 -1
- package/dist/cli-help/index.d.ts +2 -2
- package/dist/cli-improve-command.d.ts.map +1 -1
- package/dist/cli-improve-command.js +317 -70
- package/dist/cli-improve-command.js.map +1 -1
- package/dist/cli-next-command.d.ts.map +1 -1
- package/dist/cli-next-command.js +44 -4
- package/dist/cli-next-command.js.map +1 -1
- package/dist/cli-usage.js +2 -2
- package/dist/concept-input.d.ts +21 -0
- package/dist/concept-input.d.ts.map +1 -1
- package/dist/concept-input.js +32 -10
- package/dist/concept-input.js.map +1 -1
- package/dist/conversion-client.d.ts +39 -1
- package/dist/conversion-client.d.ts.map +1 -1
- package/dist/conversion-client.js +205 -3
- package/dist/conversion-client.js.map +1 -1
- package/dist/corpus-client.d.ts +7 -1
- package/dist/corpus-client.d.ts.map +1 -1
- package/dist/corpus-client.js +6 -2
- package/dist/corpus-client.js.map +1 -1
- package/dist/corpus-reference-download-retry.d.ts +68 -0
- package/dist/corpus-reference-download-retry.d.ts.map +1 -0
- package/dist/corpus-reference-download-retry.js +123 -0
- package/dist/corpus-reference-download-retry.js.map +1 -0
- package/dist/corpus-request-error.d.ts +17 -0
- package/dist/corpus-request-error.d.ts.map +1 -0
- package/dist/corpus-request-error.js +21 -0
- package/dist/corpus-request-error.js.map +1 -0
- package/dist/draft-run.d.ts +9 -0
- package/dist/draft-run.d.ts.map +1 -1
- package/dist/draft-run.js +22 -5
- package/dist/draft-run.js.map +1 -1
- package/dist/draft-workspace.d.ts +2 -1
- package/dist/draft-workspace.d.ts.map +1 -1
- package/dist/draft-workspace.js.map +1 -1
- package/dist/hosted-draft-identity.d.ts +1 -0
- package/dist/hosted-draft-identity.d.ts.map +1 -1
- package/dist/hosted-draft-identity.js +1 -0
- package/dist/hosted-draft-identity.js.map +1 -1
- package/dist/improve-added-specs.d.ts +9 -0
- package/dist/improve-added-specs.d.ts.map +1 -1
- package/dist/improve-added-specs.js +28 -7
- package/dist/improve-added-specs.js.map +1 -1
- package/dist/improve-bootstrap-secret.d.ts +35 -0
- package/dist/improve-bootstrap-secret.d.ts.map +1 -0
- package/dist/improve-bootstrap-secret.js +61 -0
- package/dist/improve-bootstrap-secret.js.map +1 -0
- package/dist/improve-capture-redirect.d.ts +46 -0
- package/dist/improve-capture-redirect.d.ts.map +1 -0
- package/dist/improve-capture-redirect.js +68 -0
- package/dist/improve-capture-redirect.js.map +1 -0
- package/dist/improve-concept.d.ts +14 -1
- package/dist/improve-concept.d.ts.map +1 -1
- package/dist/improve-concept.js +29 -8
- package/dist/improve-concept.js.map +1 -1
- package/dist/improve-conversion-attempts.d.ts +96 -0
- package/dist/improve-conversion-attempts.d.ts.map +1 -0
- package/dist/improve-conversion-attempts.js +93 -0
- package/dist/improve-conversion-attempts.js.map +1 -0
- package/dist/improve-conversion-stage.d.ts +14 -0
- package/dist/improve-conversion-stage.d.ts.map +1 -1
- package/dist/improve-conversion-stage.js +254 -70
- package/dist/improve-conversion-stage.js.map +1 -1
- package/dist/improve-convert-progress.d.ts +36 -0
- package/dist/improve-convert-progress.d.ts.map +1 -0
- package/dist/improve-convert-progress.js +43 -0
- package/dist/improve-convert-progress.js.map +1 -0
- package/dist/improve-convert-resilience.d.ts +116 -0
- package/dist/improve-convert-resilience.d.ts.map +1 -1
- package/dist/improve-convert-resilience.js +158 -1
- package/dist/improve-convert-resilience.js.map +1 -1
- package/dist/improve-delivery-stages.d.ts.map +1 -1
- package/dist/improve-delivery-stages.js +5 -0
- package/dist/improve-delivery-stages.js.map +1 -1
- package/dist/improve-dom-diff.d.ts +2 -0
- package/dist/improve-dom-diff.d.ts.map +1 -1
- package/dist/improve-dom-diff.js +7 -0
- package/dist/improve-dom-diff.js.map +1 -1
- package/dist/improve-dom-gate.d.ts +7 -0
- package/dist/improve-dom-gate.d.ts.map +1 -1
- package/dist/improve-dom-gate.js +13 -0
- package/dist/improve-dom-gate.js.map +1 -1
- package/dist/improve-generation-stages.d.ts +3 -0
- package/dist/improve-generation-stages.d.ts.map +1 -1
- package/dist/improve-generation-stages.js +56 -10
- package/dist/improve-generation-stages.js.map +1 -1
- package/dist/improve-icon-svg.d.ts +47 -0
- package/dist/improve-icon-svg.d.ts.map +1 -0
- package/dist/improve-icon-svg.js +83 -0
- package/dist/improve-icon-svg.js.map +1 -0
- package/dist/improve-kit-assets.d.ts +129 -0
- package/dist/improve-kit-assets.d.ts.map +1 -0
- package/dist/improve-kit-assets.js +333 -0
- package/dist/improve-kit-assets.js.map +1 -0
- package/dist/improve-kit-ignore.d.ts +32 -0
- package/dist/improve-kit-ignore.d.ts.map +1 -0
- package/dist/improve-kit-ignore.js +111 -0
- package/dist/improve-kit-ignore.js.map +1 -0
- package/dist/improve-kit-readme.d.ts +11 -2
- package/dist/improve-kit-readme.d.ts.map +1 -1
- package/dist/improve-kit-readme.js +282 -26
- package/dist/improve-kit-readme.js.map +1 -1
- package/dist/improve-kit-stall.d.ts +113 -0
- package/dist/improve-kit-stall.d.ts.map +1 -0
- package/dist/improve-kit-stall.js +311 -0
- package/dist/improve-kit-stall.js.map +1 -0
- package/dist/improve-kit-status.d.ts +105 -0
- package/dist/improve-kit-status.d.ts.map +1 -0
- package/dist/improve-kit-status.js +215 -0
- package/dist/improve-kit-status.js.map +1 -0
- package/dist/improve-options.d.ts +16 -1
- package/dist/improve-options.d.ts.map +1 -1
- package/dist/improve-options.js +65 -15
- package/dist/improve-options.js.map +1 -1
- package/dist/improve-plan-annotated-render.d.ts +45 -0
- package/dist/improve-plan-annotated-render.d.ts.map +1 -0
- package/dist/improve-plan-annotated-render.js +196 -0
- package/dist/improve-plan-annotated-render.js.map +1 -0
- package/dist/improve-plan-annotator.d.ts +7 -1
- package/dist/improve-plan-annotator.d.ts.map +1 -1
- package/dist/improve-plan-annotator.js +22 -45
- package/dist/improve-plan-annotator.js.map +1 -1
- package/dist/improve-raster-layers-section.d.ts +21 -0
- package/dist/improve-raster-layers-section.d.ts.map +1 -0
- package/dist/improve-raster-layers-section.js +45 -0
- package/dist/improve-raster-layers-section.js.map +1 -0
- package/dist/improve-reset.d.ts +122 -0
- package/dist/improve-reset.d.ts.map +1 -0
- package/dist/improve-reset.js +141 -0
- package/dist/improve-reset.js.map +1 -0
- package/dist/improve-run-summary.d.ts +35 -0
- package/dist/improve-run-summary.d.ts.map +1 -0
- package/dist/improve-run-summary.js +180 -0
- package/dist/improve-run-summary.js.map +1 -0
- package/dist/improve-stage-shared.d.ts +44 -1
- package/dist/improve-stage-shared.d.ts.map +1 -1
- package/dist/improve-stage-shared.js +80 -3
- package/dist/improve-stage-shared.js.map +1 -1
- package/dist/improve-stop-handler.d.ts +73 -0
- package/dist/improve-stop-handler.d.ts.map +1 -0
- package/dist/improve-stop-handler.js +126 -0
- package/dist/improve-stop-handler.js.map +1 -0
- package/dist/improve-terminal-event.d.ts +118 -0
- package/dist/improve-terminal-event.d.ts.map +1 -0
- package/dist/improve-terminal-event.js +87 -0
- package/dist/improve-terminal-event.js.map +1 -0
- package/dist/improve-token-patch.d.ts +2 -0
- package/dist/improve-token-patch.d.ts.map +1 -1
- package/dist/improve-token-patch.js +23 -5
- package/dist/improve-token-patch.js.map +1 -1
- package/dist/improve-workspace.d.ts +94 -2
- package/dist/improve-workspace.d.ts.map +1 -1
- package/dist/improve-workspace.js +19 -1
- package/dist/improve-workspace.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/legacy-skill-catalog.d.ts.map +1 -1
- package/dist/legacy-skill-catalog.js +143 -0
- package/dist/legacy-skill-catalog.js.map +1 -1
- package/dist/mcp-tool-definitions.js +1 -1
- package/dist/mcp-tool-definitions.js.map +1 -1
- package/dist/mcp-tool-handler.d.ts.map +1 -1
- package/dist/mcp-tool-handler.js +3 -0
- package/dist/mcp-tool-handler.js.map +1 -1
- package/dist/redesign-capture.d.ts +17 -0
- package/dist/redesign-capture.d.ts.map +1 -1
- package/dist/redesign-capture.js +55 -3
- package/dist/redesign-capture.js.map +1 -1
- package/dist/responsive-alternative-materializer.d.ts +19 -0
- package/dist/responsive-alternative-materializer.d.ts.map +1 -0
- package/dist/responsive-alternative-materializer.js +76 -0
- package/dist/responsive-alternative-materializer.js.map +1 -0
- package/dist/run-journal-unfinished.d.ts +56 -0
- package/dist/run-journal-unfinished.d.ts.map +1 -0
- package/dist/run-journal-unfinished.js +126 -0
- package/dist/run-journal-unfinished.js.map +1 -0
- package/dist/run-journal.d.ts +25 -1
- package/dist/run-journal.d.ts.map +1 -1
- package/dist/run-journal.js +15 -1
- package/dist/run-journal.js.map +1 -1
- package/open-design.json +2 -2
- package/package.json +1 -1
- package/skills/12ui-design/SKILL.md +9 -1
- package/skills/12ui-design/improve.md +83 -6
- package/skills/12ui-design/inspire.md +1 -1
|
@@ -1,6 +1,115 @@
|
|
|
1
|
+
import type { ConversionModel } from './conversion-models.js';
|
|
1
2
|
import type { ImproveRecord } from './improve-workspace.js';
|
|
3
|
+
/**
|
|
4
|
+
* The fused median. It is what the wait was before a retry existed, and it is
|
|
5
|
+
* still the lower end of the default below.
|
|
6
|
+
*
|
|
7
|
+
* The premise that this bound did not cover `materializing_assets` does not
|
|
8
|
+
* survive the code: `waitForOperation` applies the deadline over the whole poll
|
|
9
|
+
* loop, stage-agnostic. Pipedrive is not a counter-example either — its
|
|
10
|
+
* conversion entered that stage about fifty minutes BEFORE the bound shipped,
|
|
11
|
+
* on 0.2.54.
|
|
12
|
+
*/
|
|
2
13
|
export declare const IMPROVE_RESPONSIVE_TIMEOUT_MS: number;
|
|
3
14
|
export declare const IMPROVE_TEMPORARY_UNAVAILABLE_RETRY_DELAY_MS = 30000;
|
|
15
|
+
/**
|
|
16
|
+
* The floor `--convert-stall-seconds` refuses below: the conversion's own
|
|
17
|
+
* typical wall for the model in play. A bound inside the typical window would
|
|
18
|
+
* stop improve on healthy work.
|
|
19
|
+
*
|
|
20
|
+
* `pro` has no measured hint of its own, so it borrows the standard wall.
|
|
21
|
+
*/
|
|
22
|
+
export declare const improveConvertStallFloorSeconds: (model: ConversionModel) => number;
|
|
23
|
+
/**
|
|
24
|
+
* The DEFAULT bound, which used to be the fused median alone — 300s against a
|
|
25
|
+
* standard conversion's own 240s typical wall, a ratio of 1.25. That is inside
|
|
26
|
+
* the healthy population by any reading, and a bound that tight was dangerous
|
|
27
|
+
* while a stall still bought a second conversion.
|
|
28
|
+
*
|
|
29
|
+
* The bound is twice the model's typical wall, or the fused median, whichever
|
|
30
|
+
* is larger. Standard 480s, fast 300s. An explicit `--convert-stall-seconds` is
|
|
31
|
+
* still allowed down to the floor — a caller who wants the tighter bound can
|
|
32
|
+
* ask for it and owns the consequence. Nothing is re-bought when it passes
|
|
33
|
+
* (`improveConvertStallHalted`), so the bound now only decides how long improve
|
|
34
|
+
* waits before handing the conversion back to the operator.
|
|
35
|
+
*/
|
|
36
|
+
export declare const improveConvertStallDefaultSeconds: (model: ConversionModel) => number;
|
|
37
|
+
/** The reason a pre-F19 stall abandonment carries, and the prefix that counts them. */
|
|
38
|
+
export declare const IMPROVE_CONVERT_STALL_REASON = "convert stalled";
|
|
39
|
+
/** The reason `--fresh` writes when it rotates the base key away from a conversion. */
|
|
40
|
+
export declare const IMPROVE_FRESH_ABANDON_REASON = "fresh requested after recorded conversion remained unavailable";
|
|
41
|
+
/**
|
|
42
|
+
* How many conversions this KIT bought and abandoned to a stall BEFORE F19.
|
|
43
|
+
*
|
|
44
|
+
* Nothing writes these any more: a stall abandons nothing, because the
|
|
45
|
+
* conversion it was waiting on is still running and is exactly what the next
|
|
46
|
+
* invocation must re-attach to. The count survives for kits written by an
|
|
47
|
+
* earlier CLI, whose newest conversion is reachable only through the derived
|
|
48
|
+
* retry key below.
|
|
49
|
+
*
|
|
50
|
+
* The attempt ledger is counted alongside the abandonments, and the larger
|
|
51
|
+
* wins: a stall whose conversion never reported an id could not be abandoned by
|
|
52
|
+
* id, so counting abandonments alone read that spend as zero.
|
|
53
|
+
*/
|
|
54
|
+
export declare const improveConvertStallCount: (record: ImproveRecord) => number;
|
|
55
|
+
/**
|
|
56
|
+
* The idempotency key of the Nth conversion a pre-F19 kit dispatched under one
|
|
57
|
+
* attempt key. The first is the key itself and every later one is derived from
|
|
58
|
+
* the count of stalls that preceded it, so a resume of such a kit computes the
|
|
59
|
+
* same key for the same conversion with no ledger to read. Nothing mints new
|
|
60
|
+
* keys of this shape.
|
|
61
|
+
*/
|
|
62
|
+
export declare const improveConvertRetryKey: (key: string, index: number) => string;
|
|
63
|
+
/** Why the resume reaches the conversion it reaches. */
|
|
64
|
+
export type ImproveResumeReason = 'settled' | 'primary' | 'fresh' | 'stall-retry' | 'fresh-rotated-away';
|
|
65
|
+
/** The id is absent when the attempt is recorded but never reported one. */
|
|
66
|
+
export type ImproveResumeConversion = {
|
|
67
|
+
id?: string;
|
|
68
|
+
reason: ImproveResumeReason;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* The conversion a `--from convert` resume will attach to, read off the record.
|
|
72
|
+
*
|
|
73
|
+
* A resume never names an id. It rebuilds an idempotency key and the server's
|
|
74
|
+
* dedupe decides which conversion that key reaches, so this reads the key rules
|
|
75
|
+
* above backwards:
|
|
76
|
+
* - a settled convert block: the stage replays and buys nothing;
|
|
77
|
+
* - an open attempt in the ledger: the resume rebuilds the exact key that
|
|
78
|
+
* attempt was dispatched under — the ordinary base key, `--fresh`, or a
|
|
79
|
+
* pre-F19 retry — and lands back on the conversion it is still waiting for;
|
|
80
|
+
* - a kit that abandoned conversions to a stall with no ledger to read (one
|
|
81
|
+
* written before the ledger existed): `improveConvertRetryKey` reaches the
|
|
82
|
+
* newest of them, which is also what the base key reaches when only one was
|
|
83
|
+
* abandoned;
|
|
84
|
+
* - a kit whose base-key conversion `--fresh` rotated away from, again with no
|
|
85
|
+
* ledger: the resume rebuilds that base key and lands back on it.
|
|
86
|
+
*
|
|
87
|
+
* `fresh-rotated-away` is the only reading that leaves a conversion nothing can
|
|
88
|
+
* reach, and it now belongs to pre-ledger kits alone. The ledger is what ended
|
|
89
|
+
* it: the nonce is on the record before the conversion is dispatched.
|
|
90
|
+
*/
|
|
91
|
+
export declare const improveResumeConversion: (record: ImproveRecord) => ImproveResumeConversion | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* The wait ended and improve stopped. It bought nothing (F19).
|
|
94
|
+
*
|
|
95
|
+
* The CLI used to dispatch a second parent conversion here, on the reasoning
|
|
96
|
+
* that a bound outside the model's typical window cannot fire on healthy work.
|
|
97
|
+
* That reasoning was never a measurement, and the pipedrive lane paid for it:
|
|
98
|
+
* one operator command, one stalled conversion, and four conversion ids in the
|
|
99
|
+
* journal — with the first one still running and still billing, because there
|
|
100
|
+
* is no cancel. CLAUDE.md item 3 says retries never repeat paid work, so a
|
|
101
|
+
* stall now ends the invocation and hands the conversion back by id.
|
|
102
|
+
*
|
|
103
|
+
* The message is the recovery: both commands re-attach to what is already
|
|
104
|
+
* bought, and neither creates a conversion.
|
|
105
|
+
*/
|
|
106
|
+
export declare const improveConvertStallHalted: (args: {
|
|
107
|
+
seconds: number;
|
|
108
|
+
conversionId?: string;
|
|
109
|
+
input: string;
|
|
110
|
+
runDir: string;
|
|
111
|
+
cause: unknown;
|
|
112
|
+
}) => Error;
|
|
4
113
|
export declare const improveErrorText: (error: unknown) => string;
|
|
5
114
|
export declare const isImproveTemporarilyUnavailable: (error: unknown) => boolean;
|
|
6
115
|
export declare const retryImproveTemporarilyUnavailable: <T>(args: {
|
|
@@ -9,6 +118,7 @@ export declare const retryImproveTemporarilyUnavailable: <T>(args: {
|
|
|
9
118
|
sleep?: (milliseconds: number) => Promise<void>;
|
|
10
119
|
warn?: (line: string) => void;
|
|
11
120
|
}) => Promise<T>;
|
|
121
|
+
export declare const improveStalled: (error: unknown) => boolean;
|
|
12
122
|
export declare const improveConversionIdFromText: (value: string) => string | undefined;
|
|
13
123
|
export declare const recordedImproveConversionId: (record: ImproveRecord) => Promise<string | undefined>;
|
|
14
124
|
export declare const responsiveFallbackReason: (error: unknown) => string | undefined;
|
|
@@ -16,6 +126,12 @@ export declare const fixedImproveHtml: (targetDir: string) => Promise<{
|
|
|
16
126
|
html: string;
|
|
17
127
|
assets: string;
|
|
18
128
|
}>;
|
|
129
|
+
/**
|
|
130
|
+
* Clear the target directory between two attempts of the SAME transaction. The
|
|
131
|
+
* backup taken by `prepareImproveTargetAttempt` is untouched, so the previous
|
|
132
|
+
* good target is still recoverable; only the half-written attempt goes.
|
|
133
|
+
*/
|
|
134
|
+
export declare const resetImproveTargetAttempt: (targetDir: string) => Promise<void>;
|
|
19
135
|
export declare const prepareImproveTargetAttempt: (targetDir: string) => Promise<{
|
|
20
136
|
commit: () => Promise<void>;
|
|
21
137
|
restore: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-convert-resilience.d.ts","sourceRoot":"","sources":["../src/improve-convert-resilience.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"improve-convert-resilience.d.ts","sourceRoot":"","sources":["../src/improve-convert-resilience.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI5D;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,QAA0C,CAAC;AACrF,eAAO,MAAM,4CAA4C,QAAS,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GAAI,OAAO,eAAe,KAAG,MAExE,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iCAAiC,GAAI,OAAO,eAAe,KAAG,MAG1E,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,4BAA4B,oBAAoB,CAAC;AAE9D,uFAAuF;AACvF,eAAO,MAAM,4BAA4B,mEAAmE,CAAC;AAE7G;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,aAAa,KAAG,MAKhE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,KAAG,MAEnE,CAAC;AAEF,wDAAwD;AACxD,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,S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O,MAAM,wBAAwB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAYlE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAUA,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAG/E,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC;IAC5E,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAiBA,CAAC"}
|
|
@@ -1,12 +1,142 @@
|
|
|
1
1
|
import { mkdir, rename, rm, stat } from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { CONVERSION_DURATION_HINTS } from './cli-progress.js';
|
|
4
|
+
import { isCliRefusal } from './cli-refusal.js';
|
|
4
5
|
import { derivedOutputFilePath } from './cli-conversion-output-directory.js';
|
|
6
|
+
import { improveConversionAttemptCount, openImproveConversionAttempt, } from './improve-conversion-attempts.js';
|
|
7
|
+
import { shellArg } from './improve-kit-status.js';
|
|
5
8
|
import { readRunJournal } from './run-journal.js';
|
|
9
|
+
const UUID = /[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}/iu;
|
|
10
|
+
/**
|
|
11
|
+
* The fused median. It is what the wait was before a retry existed, and it is
|
|
12
|
+
* still the lower end of the default below.
|
|
13
|
+
*
|
|
14
|
+
* The premise that this bound did not cover `materializing_assets` does not
|
|
15
|
+
* survive the code: `waitForOperation` applies the deadline over the whole poll
|
|
16
|
+
* loop, stage-agnostic. Pipedrive is not a counter-example either — its
|
|
17
|
+
* conversion entered that stage about fifty minutes BEFORE the bound shipped,
|
|
18
|
+
* on 0.2.54.
|
|
19
|
+
*/
|
|
6
20
|
export const IMPROVE_RESPONSIVE_TIMEOUT_MS = CONVERSION_DURATION_HINTS.fused * 1_000;
|
|
7
21
|
export const IMPROVE_TEMPORARY_UNAVAILABLE_RETRY_DELAY_MS = 30_000;
|
|
22
|
+
/**
|
|
23
|
+
* The floor `--convert-stall-seconds` refuses below: the conversion's own
|
|
24
|
+
* typical wall for the model in play. A bound inside the typical window would
|
|
25
|
+
* stop improve on healthy work.
|
|
26
|
+
*
|
|
27
|
+
* `pro` has no measured hint of its own, so it borrows the standard wall.
|
|
28
|
+
*/
|
|
29
|
+
export const improveConvertStallFloorSeconds = (model) => (model === 'fast' ? CONVERSION_DURATION_HINTS.convertFast : CONVERSION_DURATION_HINTS.convert);
|
|
30
|
+
/**
|
|
31
|
+
* The DEFAULT bound, which used to be the fused median alone — 300s against a
|
|
32
|
+
* standard conversion's own 240s typical wall, a ratio of 1.25. That is inside
|
|
33
|
+
* the healthy population by any reading, and a bound that tight was dangerous
|
|
34
|
+
* while a stall still bought a second conversion.
|
|
35
|
+
*
|
|
36
|
+
* The bound is twice the model's typical wall, or the fused median, whichever
|
|
37
|
+
* is larger. Standard 480s, fast 300s. An explicit `--convert-stall-seconds` is
|
|
38
|
+
* still allowed down to the floor — a caller who wants the tighter bound can
|
|
39
|
+
* ask for it and owns the consequence. Nothing is re-bought when it passes
|
|
40
|
+
* (`improveConvertStallHalted`), so the bound now only decides how long improve
|
|
41
|
+
* waits before handing the conversion back to the operator.
|
|
42
|
+
*/
|
|
43
|
+
export const improveConvertStallDefaultSeconds = (model) => Math.max(IMPROVE_RESPONSIVE_TIMEOUT_MS / 1_000, 2 * improveConvertStallFloorSeconds(model));
|
|
44
|
+
/** The reason a pre-F19 stall abandonment carries, and the prefix that counts them. */
|
|
45
|
+
export const IMPROVE_CONVERT_STALL_REASON = 'convert stalled';
|
|
46
|
+
/** The reason `--fresh` writes when it rotates the base key away from a conversion. */
|
|
47
|
+
export const IMPROVE_FRESH_ABANDON_REASON = 'fresh requested after recorded conversion remained unavailable';
|
|
48
|
+
/**
|
|
49
|
+
* How many conversions this KIT bought and abandoned to a stall BEFORE F19.
|
|
50
|
+
*
|
|
51
|
+
* Nothing writes these any more: a stall abandons nothing, because the
|
|
52
|
+
* conversion it was waiting on is still running and is exactly what the next
|
|
53
|
+
* invocation must re-attach to. The count survives for kits written by an
|
|
54
|
+
* earlier CLI, whose newest conversion is reachable only through the derived
|
|
55
|
+
* retry key below.
|
|
56
|
+
*
|
|
57
|
+
* The attempt ledger is counted alongside the abandonments, and the larger
|
|
58
|
+
* wins: a stall whose conversion never reported an id could not be abandoned by
|
|
59
|
+
* id, so counting abandonments alone read that spend as zero.
|
|
60
|
+
*/
|
|
61
|
+
export const improveConvertStallCount = (record) => Math.max((record.abandonedConversions ?? [])
|
|
62
|
+
.filter((entry) => entry.reason.startsWith(IMPROVE_CONVERT_STALL_REASON))
|
|
63
|
+
.length, improveConversionAttemptCount(record, 'stall-retry'));
|
|
64
|
+
/**
|
|
65
|
+
* The idempotency key of the Nth conversion a pre-F19 kit dispatched under one
|
|
66
|
+
* attempt key. The first is the key itself and every later one is derived from
|
|
67
|
+
* the count of stalls that preceded it, so a resume of such a kit computes the
|
|
68
|
+
* same key for the same conversion with no ledger to read. Nothing mints new
|
|
69
|
+
* keys of this shape.
|
|
70
|
+
*/
|
|
71
|
+
export const improveConvertRetryKey = (key, index) => (`${key}:stall:${index - 1}`);
|
|
72
|
+
/**
|
|
73
|
+
* The conversion a `--from convert` resume will attach to, read off the record.
|
|
74
|
+
*
|
|
75
|
+
* A resume never names an id. It rebuilds an idempotency key and the server's
|
|
76
|
+
* dedupe decides which conversion that key reaches, so this reads the key rules
|
|
77
|
+
* above backwards:
|
|
78
|
+
* - a settled convert block: the stage replays and buys nothing;
|
|
79
|
+
* - an open attempt in the ledger: the resume rebuilds the exact key that
|
|
80
|
+
* attempt was dispatched under — the ordinary base key, `--fresh`, or a
|
|
81
|
+
* pre-F19 retry — and lands back on the conversion it is still waiting for;
|
|
82
|
+
* - a kit that abandoned conversions to a stall with no ledger to read (one
|
|
83
|
+
* written before the ledger existed): `improveConvertRetryKey` reaches the
|
|
84
|
+
* newest of them, which is also what the base key reaches when only one was
|
|
85
|
+
* abandoned;
|
|
86
|
+
* - a kit whose base-key conversion `--fresh` rotated away from, again with no
|
|
87
|
+
* ledger: the resume rebuilds that base key and lands back on it.
|
|
88
|
+
*
|
|
89
|
+
* `fresh-rotated-away` is the only reading that leaves a conversion nothing can
|
|
90
|
+
* reach, and it now belongs to pre-ledger kits alone. The ledger is what ended
|
|
91
|
+
* it: the nonce is on the record before the conversion is dispatched.
|
|
92
|
+
*/
|
|
93
|
+
export const improveResumeConversion = (record) => {
|
|
94
|
+
const settled = record.convert?.sourceConversionId;
|
|
95
|
+
if (settled && UUID.test(settled))
|
|
96
|
+
return { id: settled, reason: 'settled' };
|
|
97
|
+
const open = openImproveConversionAttempt(record);
|
|
98
|
+
if (open) {
|
|
99
|
+
return {
|
|
100
|
+
...(open.conversionId ? { id: open.conversionId } : {}),
|
|
101
|
+
reason: open.reason,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
const abandoned = [...(record.abandonedConversions ?? [])].reverse();
|
|
105
|
+
const stalled = abandoned.find((entry) => entry.reason.startsWith(IMPROVE_CONVERT_STALL_REASON));
|
|
106
|
+
if (stalled)
|
|
107
|
+
return { id: stalled.id, reason: 'stall-retry' };
|
|
108
|
+
const rotated = abandoned.find((entry) => entry.reason === IMPROVE_FRESH_ABANDON_REASON);
|
|
109
|
+
return rotated ? { id: rotated.id, reason: 'fresh-rotated-away' } : undefined;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* The wait ended and improve stopped. It bought nothing (F19).
|
|
113
|
+
*
|
|
114
|
+
* The CLI used to dispatch a second parent conversion here, on the reasoning
|
|
115
|
+
* that a bound outside the model's typical window cannot fire on healthy work.
|
|
116
|
+
* That reasoning was never a measurement, and the pipedrive lane paid for it:
|
|
117
|
+
* one operator command, one stalled conversion, and four conversion ids in the
|
|
118
|
+
* journal — with the first one still running and still billing, because there
|
|
119
|
+
* is no cancel. CLAUDE.md item 3 says retries never repeat paid work, so a
|
|
120
|
+
* stall now ends the invocation and hands the conversion back by id.
|
|
121
|
+
*
|
|
122
|
+
* The message is the recovery: both commands re-attach to what is already
|
|
123
|
+
* bought, and neither creates a conversion.
|
|
124
|
+
*/
|
|
125
|
+
export const improveConvertStallHalted = (args) => new Error(
|
|
126
|
+
// The stalled attempt's own text leads, because it is what carries the
|
|
127
|
+
// conversion id every downstream reader digs out of it — the terminal event,
|
|
128
|
+
// STALL.md's hosted run line.
|
|
129
|
+
`${improveErrorText(args.cause)}\n\n`
|
|
130
|
+
+ `The wait ended at ${args.seconds}s. improve dispatched nothing else:`
|
|
131
|
+
+ ` the conversion${args.conversionId ? ` ${args.conversionId}` : ''} is still running,`
|
|
132
|
+
+ ' it keeps billing, it cannot be cancelled, and buying a second one would pay twice for'
|
|
133
|
+
+ ' the same design. Re-attach to it — neither command buys a conversion:\n\n'
|
|
134
|
+
+ ` 12ui improve ${shellArg(args.input)} --out-dir ${shellArg(args.runDir)} --from convert\n`
|
|
135
|
+
+ ` 12ui resume ${args.conversionId ?? '<conversion-id>'}`
|
|
136
|
+
+ ` --out-dir ${shellArg(path.join(args.runDir, 'target'))}\n\n`
|
|
137
|
+
+ 'plan/STALL.md names the same conversion and the same commands.'
|
|
138
|
+
+ ' Pass --fresh only to buy another one deliberately.', { cause: args.cause });
|
|
8
139
|
const RESPONSIVE_PARTIAL_FAILURE = 'could not be completed for every required viewport size';
|
|
9
|
-
const UUID = /[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}/iu;
|
|
10
140
|
export const improveErrorText = (error) => {
|
|
11
141
|
const detail = error;
|
|
12
142
|
return [
|
|
@@ -30,6 +160,24 @@ export const retryImproveTemporarilyUnavailable = async (args) => {
|
|
|
30
160
|
return args.action();
|
|
31
161
|
}
|
|
32
162
|
};
|
|
163
|
+
/**
|
|
164
|
+
* A wait that ended without the work, told apart from work that failed.
|
|
165
|
+
*
|
|
166
|
+
* They call for different records and different recoveries: a stall means the
|
|
167
|
+
* hosted run is probably still alive and still billing, and the kit's recovery
|
|
168
|
+
* commands resume it; a failure means there is nothing to resume. The journal
|
|
169
|
+
* has to be able to say which, and a stall must not overwrite a class the
|
|
170
|
+
* journal could already read off the error — an HTTP status, a refusal code.
|
|
171
|
+
*/
|
|
172
|
+
const STALL_TEXT = /timed out|timeout|deadline|did not settle|has not settled|not settled yet/iu;
|
|
173
|
+
export const improveStalled = (error) => {
|
|
174
|
+
if (isCliRefusal(error) || isImproveTemporarilyUnavailable(error))
|
|
175
|
+
return false;
|
|
176
|
+
const record = error;
|
|
177
|
+
if (typeof record?.status === 'number')
|
|
178
|
+
return false;
|
|
179
|
+
return STALL_TEXT.test(improveErrorText(error));
|
|
180
|
+
};
|
|
33
181
|
export const improveConversionIdFromText = (value) => {
|
|
34
182
|
const keyed = /(?:(?:"id"|"run_id")\s*:\s*"|conversion(?:\s+id)?[^0-9a-f]*)([0-9a-f-]{36})/iu
|
|
35
183
|
.exec(value)?.[1];
|
|
@@ -77,6 +225,15 @@ export const fixedImproveHtml = async (targetDir) => {
|
|
|
77
225
|
}
|
|
78
226
|
return { html: path.resolve(html), assets: path.resolve(assets) };
|
|
79
227
|
};
|
|
228
|
+
/**
|
|
229
|
+
* Clear the target directory between two attempts of the SAME transaction. The
|
|
230
|
+
* backup taken by `prepareImproveTargetAttempt` is untouched, so the previous
|
|
231
|
+
* good target is still recoverable; only the half-written attempt goes.
|
|
232
|
+
*/
|
|
233
|
+
export const resetImproveTargetAttempt = async (targetDir) => {
|
|
234
|
+
await rm(targetDir, { recursive: true, force: true });
|
|
235
|
+
await mkdir(targetDir, { recursive: true });
|
|
236
|
+
};
|
|
80
237
|
export const prepareImproveTargetAttempt = async (targetDir) => {
|
|
81
238
|
const backupDir = `${targetDir}.previous`;
|
|
82
239
|
const targetExists = Boolean(await stat(targetDir).catch(() => undefined));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-convert-resilience.js","sourceRoot":"","sources":["../src/improve-convert-resilience.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"improve-convert-resilience.js","sourceRoot":"","sources":["../src/improve-convert-resilience.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,IAAI,GAAG,+CAA+C,CAAC;AAE7D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,KAAK,GAAG,KAAK,CAAC;AACrF,MAAM,CAAC,MAAM,4CAA4C,GAAG,MAAM,CAAC;AAEnE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,KAAsB,EA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AAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACtD,IAAI,MAAM,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;gBAAE,MAAM,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACvF,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-delivery-stages.d.ts","sourceRoot":"","sources":["../src/improve-delivery-stages.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AA6FhF,eAAO,MAAM,mBAAmB,GAAU,MAAM;IAC9C,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE,0BAA0B,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;CACf,KAAG,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"improve-delivery-stages.d.ts","sourceRoot":"","sources":["../src/improve-delivery-stages.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AA6FhF,eAAO,MAAM,mBAAmB,GAAU,MAAM;IAC9C,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE,0BAA0B,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;CACf,KAAG,OAAO,CAAC,aAAa,CAkExB,CAAC"}
|
|
@@ -105,11 +105,13 @@ export const runImprovePlanStage = async (args) => {
|
|
|
105
105
|
let mode;
|
|
106
106
|
let gate;
|
|
107
107
|
let artifacts;
|
|
108
|
+
let fonts = [];
|
|
108
109
|
if (args.options.input.kind === 'url') {
|
|
109
110
|
const diff = await writeImproveDomDiff({
|
|
110
111
|
beforePath: args.options.paths.currentDomDoc,
|
|
111
112
|
targetPath: args.options.paths.targetLayerDoc,
|
|
112
113
|
outDir: args.options.paths.planDir,
|
|
114
|
+
runDir: args.options.paths.runDir,
|
|
113
115
|
});
|
|
114
116
|
mode = 'dom-anchored';
|
|
115
117
|
gate = diff.gate.passed ? 'passed' : 'blocked';
|
|
@@ -124,6 +126,7 @@ export const runImprovePlanStage = async (args) => {
|
|
|
124
126
|
mode,
|
|
125
127
|
});
|
|
126
128
|
artifacts.push(...annotated.artifacts);
|
|
129
|
+
fonts = annotated.fonts;
|
|
127
130
|
}
|
|
128
131
|
}
|
|
129
132
|
else {
|
|
@@ -140,6 +143,7 @@ export const runImprovePlanStage = async (args) => {
|
|
|
140
143
|
mode,
|
|
141
144
|
});
|
|
142
145
|
artifacts.push(...annotated.artifacts);
|
|
146
|
+
fonts = annotated.fonts;
|
|
143
147
|
}
|
|
144
148
|
record = {
|
|
145
149
|
...record,
|
|
@@ -148,6 +152,7 @@ export const runImprovePlanStage = async (args) => {
|
|
|
148
152
|
gate,
|
|
149
153
|
artifacts: [...new Set(artifacts)],
|
|
150
154
|
...(record.sourceConvert ? { sourceLayerDoc: record.sourceConvert.layerDoc } : {}),
|
|
155
|
+
...(fonts.length > 0 ? { fonts } : {}),
|
|
151
156
|
purchaseIds: record.sourceConvert?.purchaseIds ?? [],
|
|
152
157
|
},
|
|
153
158
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-delivery-stages.js","sourceRoot":"","sources":["../src/improve-delivery-stages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAA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AAW,EAAE,MAAM,CAAC,aAAa,EAAE,WAAW,IAAI,EAAE;SACrD;KACF,CAAC;IACF,MAAM,GAAG,MAAM,gBAAgB,CAAC;QAC9B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;KAClF,CAAC,CAAC;IACH,MAAM,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5D,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -27,6 +27,8 @@ export declare const writeImproveDomDiff: (args: {
|
|
|
27
27
|
targetPath: string;
|
|
28
28
|
outDir: string;
|
|
29
29
|
gatePct?: number;
|
|
30
|
+
/** Kit root, so a blocked gate can name the raster layers by kit-relative path. */
|
|
31
|
+
runDir?: string;
|
|
30
32
|
}) => Promise<ImproveDomDiff & {
|
|
31
33
|
artifacts: string[];
|
|
32
34
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-dom-diff.d.ts","sourceRoot":"","sources":["../src/improve-dom-diff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"improve-dom-diff.d.ts","sourceRoot":"","sources":["../src/improve-dom-diff.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE3F,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,eAAe,CAAC;IACxB,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,MAAM;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,cA2EH,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,MAAM;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,KAAG,OAAO,CAAC,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CAiDnD,CAAC"}
|
package/dist/improve-dom-diff.js
CHANGED
|
@@ -3,6 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import { canvasOfDoc, computeLayerDeltas, diffLayerDocs, flattenLayerDoc, } from './improve-layerdoc-diff.js';
|
|
4
4
|
import { confidentMatches, impliedPaddingDeltas } from './improve-dom-anchor.js';
|
|
5
5
|
import { evaluateImproveGate, renderImproveGate } from './improve-dom-gate.js';
|
|
6
|
+
import { readImproveKitAssets } from './improve-kit-assets.js';
|
|
6
7
|
import { repairByNeighbourOffset } from './improve-dom-neighbour.js';
|
|
7
8
|
import { normalizeLayerDoc } from './improve-dom-scale.js';
|
|
8
9
|
import { renderDomChanges } from './improve-plan-render.js';
|
|
@@ -103,12 +104,18 @@ export const writeImproveDomDiff = async (args) => {
|
|
|
103
104
|
rm(path.join(args.outDir, 'plan-annotated.md'), { force: true }),
|
|
104
105
|
rm(path.join(args.outDir, 'token-patch.css'), { force: true }),
|
|
105
106
|
]);
|
|
107
|
+
const index = await readImproveKitAssets({
|
|
108
|
+
runDir: args.runDir ?? path.dirname(args.outDir),
|
|
109
|
+
layerDocPath: args.targetPath,
|
|
110
|
+
document: targetDoc,
|
|
111
|
+
});
|
|
106
112
|
await writeFile(gatePath, renderImproveGate({
|
|
107
113
|
gate: computed.gate,
|
|
108
114
|
result: computed.result,
|
|
109
115
|
beforePath: args.beforePath,
|
|
110
116
|
targetPath: args.targetPath,
|
|
111
117
|
designCoverage: computed.designCoverage,
|
|
118
|
+
rasterLayers: index.rasterLayers,
|
|
112
119
|
}), 'utf8');
|
|
113
120
|
return { ...computed, artifacts: [gatePath] };
|
|
114
121
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-dom-diff.js","sourceRoot":"","sources":["../src/improve-dom-diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,eAAe,GAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAgB5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAIrC,EAAkB,EAAE;IACnB,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC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,CAAC,WAAW;QACjC,cAAc,EAAE,QAAQ,CAAC,cAAc;QACvC,GAAG,QAAQ,CAAC,MAAM;KACnB,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACzB,MAAM,SAAS,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACxD,OAAO,EAAE,GAAG,QAAQ,EAAE,SAAS,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,CAAC;AAC7D,CAAC,CAAC"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import type { ImproveRasterLayer } from './improve-kit-assets.js';
|
|
1
2
|
import type { ImproveGate, LayerDiffResult } from './improve-layerdoc-types.js';
|
|
2
3
|
/** Measured pilot separator: good route/state pairs were ~82%; the bad pair was ~25%. */
|
|
3
4
|
export declare const IMPROVE_DEFAULT_GATE_PCT = 60;
|
|
4
5
|
export declare const evaluateImproveGate: (coverage: number, thresholdPct?: number) => ImproveGate;
|
|
6
|
+
/**
|
|
7
|
+
* A blocked gate deletes `plan-annotated.md`, and with it the only copy of
|
|
8
|
+
* "Raster layers to carry". The assets are still on disk and still the design,
|
|
9
|
+
* so the instruction to carry them has to survive here or it exists nowhere.
|
|
10
|
+
*/
|
|
5
11
|
export declare const renderImproveGate: (args: {
|
|
6
12
|
gate: ImproveGate;
|
|
7
13
|
result: LayerDiffResult;
|
|
8
14
|
beforePath: string;
|
|
9
15
|
targetPath: string;
|
|
10
16
|
designCoverage: number;
|
|
17
|
+
rasterLayers?: readonly ImproveRasterLayer[];
|
|
11
18
|
}) => string;
|
|
12
19
|
//# sourceMappingURL=improve-dom-gate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-dom-gate.d.ts","sourceRoot":"","sources":["../src/improve-dom-gate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEhF,yFAAyF;AACzF,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAChB,qBAAuC,KACtC,WAWF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,MAAM;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"improve-dom-gate.d.ts","sourceRoot":"","sources":["../src/improve-dom-gate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEhF,yFAAyF;AACzF,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAChB,qBAAuC,KACtC,WAWF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;CAC9C,KAAG,MAyBQ,CAAC"}
|
package/dist/improve-dom-gate.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { renderImproveRasterLayers } from './improve-raster-layers-section.js';
|
|
1
2
|
/** Measured pilot separator: good route/state pairs were ~82%; the bad pair was ~25%. */
|
|
2
3
|
export const IMPROVE_DEFAULT_GATE_PCT = 60;
|
|
3
4
|
export const evaluateImproveGate = (coverage, thresholdPct = IMPROVE_DEFAULT_GATE_PCT) => {
|
|
@@ -12,6 +13,11 @@ export const evaluateImproveGate = (coverage, thresholdPct = IMPROVE_DEFAULT_GAT
|
|
|
12
13
|
thresholdPct,
|
|
13
14
|
};
|
|
14
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* A blocked gate deletes `plan-annotated.md`, and with it the only copy of
|
|
18
|
+
* "Raster layers to carry". The assets are still on disk and still the design,
|
|
19
|
+
* so the instruction to carry them has to survive here or it exists nowhere.
|
|
20
|
+
*/
|
|
15
21
|
export const renderImproveGate = (args) => [
|
|
16
22
|
'# DOM diff coverage gate',
|
|
17
23
|
'',
|
|
@@ -30,5 +36,12 @@ export const renderImproveGate = (args) => [
|
|
|
30
36
|
'- Re-capture the current page in the exact state depicted by the target, then run improve again.',
|
|
31
37
|
'- Otherwise use the responsive target and LayerDoc as an unanchored sidecar reference.',
|
|
32
38
|
'',
|
|
39
|
+
...(args.rasterLayers && args.rasterLayers.length > 0
|
|
40
|
+
? [
|
|
41
|
+
'No plan was emitted, but the target\'s raster layers are extracted and usable without one.',
|
|
42
|
+
'',
|
|
43
|
+
...renderImproveRasterLayers({ layers: args.rasterLayers }),
|
|
44
|
+
]
|
|
45
|
+
: []),
|
|
33
46
|
].join('\n');
|
|
34
47
|
//# sourceMappingURL=improve-dom-gate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-dom-gate.js","sourceRoot":"","sources":["../src/improve-dom-gate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"improve-dom-gate.js","sourceRoot":"","sources":["../src/improve-dom-gate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAG/E,yFAAyF;AACzF,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,QAAgB,EAChB,YAAY,GAAG,wBAAwB,EAC1B,EAAE;IACf,IAAI,CAAC,MAAM,CAAC,QAAQ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F,GAAG,yBAAyB,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC;SAC5D;QACD,CAAC,CAAC,EAAE,CAAC;CACR,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -18,6 +18,9 @@ export declare const runImproveDraftStage: (args: {
|
|
|
18
18
|
export declare const runImprovePickStage: (args: {
|
|
19
19
|
record: ImproveRecord;
|
|
20
20
|
options: ImproveOptions;
|
|
21
|
+
/** The slot to settle: explicit `--pick`, or the one already recorded. */
|
|
22
|
+
pick: string;
|
|
23
|
+
dependencies?: ImproveCommandDependencies;
|
|
21
24
|
price: number;
|
|
22
25
|
}) => Promise<ImproveRecord>;
|
|
23
26
|
//# sourceMappingURL=improve-generation-stages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"improve-generation-stages.d.ts","sourceRoot":"","sources":["../src/improve-generation-stages.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"improve-generation-stages.d.ts","sourceRoot":"","sources":["../src/improve-generation-stages.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI3D,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAiBhC,eAAO,MAAM,sBAAsB,GAAU,MAAM;IACjD,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE,0BAA0B,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;CACf,KAAG,OAAO,CAAC,aAAa,CAyExB,CAAC;AAwBF,eAAO,MAAM,oBAAoB,GAAU,MAAM;IAC/C,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,QAAQ,CAAC;IAChB,YAAY,EAAE,0BAA0B,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;CACf,KAAG,OAAO,CAAC,aAAa,CAiDxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,MAAM;IAC9C,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;CACf,KAAG,OAAO,CAAC,aAAa,CAuCxB,CAAC"}
|