@context-forge/core 0.19.18 → 0.19.20
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/dist/adoption/adoptionInputs.d.ts +34 -0
- package/dist/adoption/adoptionInputs.d.ts.map +1 -0
- package/dist/adoption/adoptionInputs.js +62 -0
- package/dist/adoption/adoptionInputs.js.map +1 -0
- package/dist/adoption/adoptionLines.d.ts +16 -0
- package/dist/adoption/adoptionLines.d.ts.map +1 -0
- package/dist/adoption/adoptionLines.js +77 -0
- package/dist/adoption/adoptionLines.js.map +1 -0
- package/dist/adoption/adoptionOutcome.d.ts +29 -17
- package/dist/adoption/adoptionOutcome.d.ts.map +1 -1
- package/dist/adoption/adoptionOutcome.js +23 -15
- package/dist/adoption/adoptionOutcome.js.map +1 -1
- package/dist/adoption/adoptionState.d.ts +13 -6
- package/dist/adoption/adoptionState.d.ts.map +1 -1
- package/dist/adoption/adoptionState.js +22 -15
- package/dist/adoption/adoptionState.js.map +1 -1
- package/dist/adoption/contracts.d.ts +6 -18
- package/dist/adoption/contracts.d.ts.map +1 -1
- package/dist/adoption/contracts.js +8 -5
- package/dist/adoption/contracts.js.map +1 -1
- package/dist/adoption/detectionReport.d.ts +71 -0
- package/dist/adoption/detectionReport.d.ts.map +1 -0
- package/dist/adoption/detectionReport.js +63 -0
- package/dist/adoption/detectionReport.js.map +1 -0
- package/dist/adoption/index.d.ts +5 -3
- package/dist/adoption/index.d.ts.map +1 -1
- package/dist/adoption/index.js +5 -3
- package/dist/adoption/index.js.map +1 -1
- package/dist/adoption/planningFacts.d.ts +15 -0
- package/dist/adoption/planningFacts.d.ts.map +1 -0
- package/dist/adoption/planningFacts.js +24 -0
- package/dist/adoption/planningFacts.js.map +1 -0
- package/dist/adoption/projectDetection.d.ts +5 -0
- package/dist/adoption/projectDetection.d.ts.map +1 -0
- package/dist/adoption/projectDetection.js +94 -0
- package/dist/adoption/projectDetection.js.map +1 -0
- package/dist/config/ConfigKeys.d.ts +6 -2
- package/dist/config/ConfigKeys.d.ts.map +1 -1
- package/dist/config/ConfigKeys.js +9 -6
- package/dist/config/ConfigKeys.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/index.js.map +1 -1
- package/dist/detection/index.d.ts +2 -4
- package/dist/detection/index.d.ts.map +1 -1
- package/dist/detection/index.js +2 -4
- package/dist/detection/index.js.map +1 -1
- package/dist/detection/planningArtifacts.d.ts.map +1 -1
- package/dist/detection/planningArtifacts.js +1 -2
- package/dist/detection/planningArtifacts.js.map +1 -1
- package/dist/detection/presentPaths.d.ts.map +1 -1
- package/dist/detection/presentPaths.js +4 -3
- package/dist/detection/presentPaths.js.map +1 -1
- package/dist/detection/sourceVolume.d.ts.map +1 -1
- package/dist/detection/sourceVolume.js +1 -3
- package/dist/detection/sourceVolume.js.map +1 -1
- package/dist/guides/GuideManager.d.ts +4 -0
- package/dist/guides/GuideManager.d.ts.map +1 -1
- package/dist/guides/GuideManager.js +8 -1
- package/dist/guides/GuideManager.js.map +1 -1
- package/dist/guides/guideMinimum.d.ts +1 -1
- package/dist/guides/guideMinimum.js +1 -1
- package/dist/guides/index.d.ts +1 -1
- package/dist/guides/index.d.ts.map +1 -1
- package/dist/guides/index.js +1 -1
- package/dist/guides/index.js.map +1 -1
- package/dist/introspection/ArtifactIntrospector.d.ts +2 -6
- package/dist/introspection/ArtifactIntrospector.d.ts.map +1 -1
- package/dist/introspection/ArtifactIntrospector.js +3 -22
- package/dist/introspection/ArtifactIntrospector.js.map +1 -1
- package/dist/introspection/WorkflowNavigator.d.ts +1 -8
- package/dist/introspection/WorkflowNavigator.d.ts.map +1 -1
- package/dist/introspection/WorkflowNavigator.js +7 -44
- package/dist/introspection/WorkflowNavigator.js.map +1 -1
- package/dist/introspection/adoptionNavigation.d.ts +8 -10
- package/dist/introspection/adoptionNavigation.d.ts.map +1 -1
- package/dist/introspection/adoptionNavigation.js +67 -71
- package/dist/introspection/adoptionNavigation.js.map +1 -1
- package/dist/introspection/parsers/projectGuideFile.d.ts +9 -0
- package/dist/introspection/parsers/projectGuideFile.d.ts.map +1 -0
- package/dist/introspection/parsers/projectGuideFile.js +24 -0
- package/dist/introspection/parsers/projectGuideFile.js.map +1 -0
- package/dist/node.js +1 -1
- package/dist/node.js.map +1 -1
- package/dist/onboarding/onboardRecipe.d.ts +4 -2
- package/dist/onboarding/onboardRecipe.d.ts.map +1 -1
- package/dist/onboarding/onboardRecipe.js +7 -2
- package/dist/onboarding/onboardRecipe.js.map +1 -1
- package/dist/schema/frontmatterSchema.d.ts +2 -0
- package/dist/schema/frontmatterSchema.d.ts.map +1 -1
- package/dist/schema/frontmatterSchema.js +4 -2
- package/dist/schema/frontmatterSchema.js.map +1 -1
- package/dist/services/ContextIntegrator.d.ts +1 -4
- package/dist/services/ContextIntegrator.d.ts.map +1 -1
- package/dist/services/ContextIntegrator.js +2 -20
- package/dist/services/ContextIntegrator.js.map +1 -1
- package/dist/services/ContextTemplateEngine.d.ts.map +1 -1
- package/dist/services/ContextTemplateEngine.js +0 -10
- package/dist/services/ContextTemplateEngine.js.map +1 -1
- package/dist/services/CoreServiceFactory.d.ts +1 -10
- package/dist/services/CoreServiceFactory.d.ts.map +1 -1
- package/dist/services/CoreServiceFactory.js +2 -11
- package/dist/services/CoreServiceFactory.js.map +1 -1
- package/dist/services/SectionBuilder.d.ts.map +1 -1
- package/dist/services/SectionBuilder.js +0 -3
- package/dist/services/SectionBuilder.js.map +1 -1
- package/dist/services/SystemPromptParser.d.ts +5 -0
- package/dist/services/SystemPromptParser.d.ts.map +1 -1
- package/dist/services/SystemPromptParser.js +19 -0
- package/dist/services/SystemPromptParser.js.map +1 -1
- package/dist/types/context.d.ts +0 -4
- package/dist/types/context.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/adoption/adoptionCompletion.d.ts +0 -16
- package/dist/adoption/adoptionCompletion.d.ts.map +0 -1
- package/dist/adoption/adoptionCompletion.js +0 -37
- package/dist/adoption/adoptionCompletion.js.map +0 -1
- package/dist/adoption/adoptionFacts.d.ts +0 -25
- package/dist/adoption/adoptionFacts.d.ts.map +0 -1
- package/dist/adoption/adoptionFacts.js +0 -149
- package/dist/adoption/adoptionFacts.js.map +0 -1
- package/dist/adoption/adoptionResolver.d.ts +0 -8
- package/dist/adoption/adoptionResolver.d.ts.map +0 -1
- package/dist/adoption/adoptionResolver.js +0 -152
- package/dist/adoption/adoptionResolver.js.map +0 -1
- package/dist/detection/squadronProbe.d.ts +0 -56
- package/dist/detection/squadronProbe.d.ts.map +0 -1
- package/dist/detection/squadronProbe.js +0 -103
- package/dist/detection/squadronProbe.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type PlanningFacts } from './planningFacts.js';
|
|
2
|
+
export interface AdoptionArtifacts {
|
|
3
|
+
concept: string | null;
|
|
4
|
+
derivedArchitectures: string[];
|
|
5
|
+
existingStatePlan: string | null;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A path relative to `root` with `/` separators (D3). A path outside the root keeps its climbing
|
|
9
|
+
* `../` segments, which is how a monorepo's root-level CI file is reported (D2).
|
|
10
|
+
*/
|
|
11
|
+
export declare function toRootRelative(root: string, absolutePath: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* The concept, derived architectures and existing-state plan under `root`. Planning-file read
|
|
14
|
+
* errors (`AdoptionError`) propagate unchanged; the caller attaches the error code. Pass `facts`
|
|
15
|
+
* when the caller has already read them, so one call never reads the planning files twice.
|
|
16
|
+
*/
|
|
17
|
+
export declare function readAdoptionArtifacts(root: string, facts?: PlanningFacts): Promise<AdoptionArtifacts>;
|
|
18
|
+
/** The guide's context-profile variable that marks a prompt as taking a comprehension doc (D10: the guide's name). */
|
|
19
|
+
export declare const COMPREHENSION_PROFILE_VARIABLE = "fileComprehension";
|
|
20
|
+
export declare const ADOPTION_INPUTS_HEADING = "## Adoption Inputs";
|
|
21
|
+
export declare const ADOPTION_INPUT_LABELS: {
|
|
22
|
+
readonly comprehension: "Codebase comprehension";
|
|
23
|
+
readonly concept: "Concept";
|
|
24
|
+
readonly derivedArchitecture: "Derived architecture";
|
|
25
|
+
readonly existingStatePlan: "Existing-state slice plan";
|
|
26
|
+
};
|
|
27
|
+
export declare const NO_COMPREHENSION_SENTENCE = "No codebase comprehension analysis was provided.";
|
|
28
|
+
export declare const ABSENT_ARTIFACT = "none";
|
|
29
|
+
/**
|
|
30
|
+
* The `## Adoption Inputs` section appended to a prompt whose profile lists the comprehension
|
|
31
|
+
* variable (D7). `comprehensionPath` is absolute, or null when none was passed.
|
|
32
|
+
*/
|
|
33
|
+
export declare function renderAdoptionInputs(root: string, comprehensionPath: string | null, artifacts: AdoptionArtifacts): string;
|
|
34
|
+
//# sourceMappingURL=adoptionInputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adoptionInputs.d.ts","sourceRoot":"","sources":["../../src/adoption/adoptionInputs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE3E,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAQ3G;AAED,sHAAsH;AACtH,eAAO,MAAM,8BAA8B,sBAAsB,CAAC;AAElE,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAC5D,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AACX,eAAO,MAAM,yBAAyB,qDAAqD,CAAC;AAC5F,eAAO,MAAM,eAAe,SAAS,CAAC;AAStC;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,GAAG,IAAI,EAChC,SAAS,EAAE,iBAAiB,GAC3B,MAAM,CAcR"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Adoption artifacts (slice 271, D3): the three planning files `sq onboard` needs to resume an
|
|
2
|
+
// adoption, reported as root-relative paths so consumers need not know cf's file names. Read-only.
|
|
3
|
+
import { isAbsolute, relative, sep } from 'node:path';
|
|
4
|
+
import { resolveConceptPath } from '../introspection/parsers/projectGuideFile.js';
|
|
5
|
+
import { readPlanningFacts } from './planningFacts.js';
|
|
6
|
+
/**
|
|
7
|
+
* A path relative to `root` with `/` separators (D3). A path outside the root keeps its climbing
|
|
8
|
+
* `../` segments, which is how a monorepo's root-level CI file is reported (D2).
|
|
9
|
+
*/
|
|
10
|
+
export function toRootRelative(root, absolutePath) {
|
|
11
|
+
return relative(root, absolutePath).split(sep).join('/');
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The concept, derived architectures and existing-state plan under `root`. Planning-file read
|
|
15
|
+
* errors (`AdoptionError`) propagate unchanged; the caller attaches the error code. Pass `facts`
|
|
16
|
+
* when the caller has already read them, so one call never reads the planning files twice.
|
|
17
|
+
*/
|
|
18
|
+
export async function readAdoptionArtifacts(root, facts) {
|
|
19
|
+
const [conceptPath, planning] = await Promise.all([resolveConceptPath(root), facts ?? readPlanningFacts(root)]);
|
|
20
|
+
const relativeToRoot = (path) => toRootRelative(root, path);
|
|
21
|
+
return {
|
|
22
|
+
concept: conceptPath === null ? null : relativeToRoot(conceptPath),
|
|
23
|
+
derivedArchitectures: planning.derivedArchitectures.map(relativeToRoot),
|
|
24
|
+
existingStatePlan: planning.existingStatePlan === null ? null : relativeToRoot(planning.existingStatePlan),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/** The guide's context-profile variable that marks a prompt as taking a comprehension doc (D10: the guide's name). */
|
|
28
|
+
export const COMPREHENSION_PROFILE_VARIABLE = 'fileComprehension';
|
|
29
|
+
export const ADOPTION_INPUTS_HEADING = '## Adoption Inputs';
|
|
30
|
+
export const ADOPTION_INPUT_LABELS = {
|
|
31
|
+
comprehension: 'Codebase comprehension',
|
|
32
|
+
concept: 'Concept',
|
|
33
|
+
derivedArchitecture: 'Derived architecture',
|
|
34
|
+
existingStatePlan: 'Existing-state slice plan',
|
|
35
|
+
};
|
|
36
|
+
export const NO_COMPREHENSION_SENTENCE = 'No codebase comprehension analysis was provided.';
|
|
37
|
+
export const ABSENT_ARTIFACT = 'none';
|
|
38
|
+
/** Root-relative with `/` when inside `root`, the absolute path otherwise (D7 item 3). */
|
|
39
|
+
function displayPath(root, absolutePath) {
|
|
40
|
+
const fromRoot = relative(root, absolutePath);
|
|
41
|
+
const outside = fromRoot === '..' || fromRoot.startsWith(`..${sep}`) || isAbsolute(fromRoot);
|
|
42
|
+
return outside ? absolutePath : fromRoot.split(sep).join('/');
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The `## Adoption Inputs` section appended to a prompt whose profile lists the comprehension
|
|
46
|
+
* variable (D7). `comprehensionPath` is absolute, or null when none was passed.
|
|
47
|
+
*/
|
|
48
|
+
export function renderAdoptionInputs(root, comprehensionPath, artifacts) {
|
|
49
|
+
const labeled = (label, value) => `- ${label}: ${value ?? ABSENT_ARTIFACT}`;
|
|
50
|
+
const comprehension = comprehensionPath === null
|
|
51
|
+
? `- ${NO_COMPREHENSION_SENTENCE}`
|
|
52
|
+
: labeled(ADOPTION_INPUT_LABELS.comprehension, displayPath(root, comprehensionPath));
|
|
53
|
+
const derived = artifacts.derivedArchitectures.length > 0 ? artifacts.derivedArchitectures.join(', ') : null;
|
|
54
|
+
return [
|
|
55
|
+
ADOPTION_INPUTS_HEADING,
|
|
56
|
+
comprehension,
|
|
57
|
+
labeled(ADOPTION_INPUT_LABELS.concept, artifacts.concept),
|
|
58
|
+
labeled(ADOPTION_INPUT_LABELS.derivedArchitecture, derived),
|
|
59
|
+
labeled(ADOPTION_INPUT_LABELS.existingStatePlan, artifacts.existingStatePlan),
|
|
60
|
+
].join('\n');
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=adoptionInputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adoptionInputs.js","sourceRoot":"","sources":["../../src/adoption/adoptionInputs.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,mGAAmG;AACnG,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAsB,MAAM,oBAAoB,CAAC;AAQ3E;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,YAAoB;IAC/D,OAAO,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,IAAY,EAAE,KAAqB;IAC7E,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChH,MAAM,cAAc,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5E,OAAO;QACL,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC;QAClE,oBAAoB,EAA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AAiB,KAAK,IAAI;QACxB,CAAC,CAAC,KAAK,yBAAyB,EAAE;QAClC,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,aAAa,EAAE,WAAW,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC;IACzF,MAAM,OAAO,GAAG,SAAS,CAAC,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7G,OAAO;QACL,uBAAuB;QACvB,aAAa;QACb,OAAO,CAAC,qBAAqB,CAAC,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC;QACzD,OAAO,CAAC,qBAAqB,CAAC,mBAAmB,EAAE,OAAO,CAAC;QAC3D,OAAO,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC;KAC9E,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type SourceVolume } from '../detection/sourceVolume.js';
|
|
2
|
+
import { type AdoptionOutcome } from './adoptionOutcome.js';
|
|
3
|
+
export declare const BROWNFIELD_LINE: string;
|
|
4
|
+
export declare const INCOMPLETE_ADOPTION_LINE: string;
|
|
5
|
+
export declare function inconclusiveDetectionLine(reason: string): string;
|
|
6
|
+
/** The one outcome-to-line mapping (slice 271 D9): navigation, `cf detect` and `cf init` all use it. */
|
|
7
|
+
export declare function outcomeLine(outcome: AdoptionOutcome): string | null;
|
|
8
|
+
export interface AdoptionNavLines {
|
|
9
|
+
warnings: string[];
|
|
10
|
+
/** True for an adopted project: first-run logic must not treat it as fresh. */
|
|
11
|
+
skipFirstRun: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type SourceVolumeMeasurer = (root: string) => Promise<SourceVolume>;
|
|
14
|
+
/** The warnings navigation adds for adoption, and whether first-run logic is skipped (D6). */
|
|
15
|
+
export declare function adoptionNavLines(projectPath: string, measure?: SourceVolumeMeasurer): Promise<AdoptionNavLines>;
|
|
16
|
+
//# sourceMappingURL=adoptionLines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adoptionLines.d.ts","sourceRoot":"","sources":["../../src/adoption/adoptionLines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAA8B,KAAK,eAAe,EAAsB,MAAM,sBAAsB,CAAC;AAQ5G,eAAO,MAAM,eAAe,QAEqD,CAAC;AAElF,eAAO,MAAM,wBAAwB,QAEoB,CAAC;AAE1D,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAenE;AAMD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,+EAA+E;IAC/E,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;AAE3E,8FAA8F;AAC9F,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,oBAA0C,GAClD,OAAO,CAAC,gBAAgB,CAAC,CAsB3B"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Adoption warnings for navigation (slice 269 D6): one line for an unadopted brownfield repo and
|
|
2
|
+
// one for an incomplete adoption. Navigation never returns an adoption step.
|
|
3
|
+
import { measureSourceVolume } from '../detection/sourceVolume.js';
|
|
4
|
+
import { decideOutcome, decideStage } from './adoptionOutcome.js';
|
|
5
|
+
import { legacyAdoptionStateNotice, readAdoptionOptOut } from './adoptionState.js';
|
|
6
|
+
import { AdoptionError, OPT_OUT_COMMAND } from './contracts.js';
|
|
7
|
+
import { readPlanningFacts } from './planningFacts.js';
|
|
8
|
+
const OPT_OUT_SENTENCE = `To treat the project as new: ${OPT_OUT_COMMAND}`;
|
|
9
|
+
const SQ_ONBOARD = 'sq onboard';
|
|
10
|
+
export const BROWNFIELD_LINE = 'This project has existing code and no planning artifacts. ' +
|
|
11
|
+
`Adopting an existing codebase arrives with ${SQ_ONBOARD}. ${OPT_OUT_SENTENCE}`;
|
|
12
|
+
export const INCOMPLETE_ADOPTION_LINE = 'A derived architecture exists, but no slice plan has retroactive entries, so adoption is incomplete. ' +
|
|
13
|
+
`It resumes through ${SQ_ONBOARD}. ${OPT_OUT_SENTENCE}`;
|
|
14
|
+
export function inconclusiveDetectionLine(reason) {
|
|
15
|
+
return `cf could not tell whether this project holds existing code: ${reason}. ${OPT_OUT_SENTENCE}`;
|
|
16
|
+
}
|
|
17
|
+
/** The one outcome-to-line mapping (slice 271 D9): navigation, `cf detect` and `cf init` all use it. */
|
|
18
|
+
export function outcomeLine(outcome) {
|
|
19
|
+
switch (outcome.kind) {
|
|
20
|
+
case 'brownfield':
|
|
21
|
+
return BROWNFIELD_LINE;
|
|
22
|
+
case 'adoption-incomplete':
|
|
23
|
+
return INCOMPLETE_ADOPTION_LINE;
|
|
24
|
+
case 'opted-out':
|
|
25
|
+
case 'already-planned':
|
|
26
|
+
case 'greenfield':
|
|
27
|
+
return null;
|
|
28
|
+
default: {
|
|
29
|
+
const unhandled = outcome;
|
|
30
|
+
throw new Error(`Unhandled adoption outcome: ${JSON.stringify(unhandled)}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function withLine(warnings, line) {
|
|
35
|
+
return line === null ? warnings : [...warnings, line];
|
|
36
|
+
}
|
|
37
|
+
/** The warnings navigation adds for adoption, and whether first-run logic is skipped (D6). */
|
|
38
|
+
export async function adoptionNavLines(projectPath, measure = measureSourceVolume) {
|
|
39
|
+
const optOut = await readAdoptionOptOut(projectPath);
|
|
40
|
+
const warnings = optOut.ignoredLegacyValue === null ? [] : [legacyAdoptionStateNotice(optOut.ignoredLegacyValue)];
|
|
41
|
+
if (optOut.optedOut)
|
|
42
|
+
return { warnings, skipFirstRun: false };
|
|
43
|
+
// Planning-file read errors propagate (264 D7): an unreadable planning directory is a real
|
|
44
|
+
// problem to fix, unlike a source walk that can't finish, which only weakens a hint.
|
|
45
|
+
const stage = decideStage({ optedOut: false, facts: await readPlanningFacts(projectPath) });
|
|
46
|
+
switch (stage.kind) {
|
|
47
|
+
case 'opted-out':
|
|
48
|
+
throw new Error('adoptionNavLines: the opt-out returned before the planning facts were read');
|
|
49
|
+
case 'adoption-incomplete':
|
|
50
|
+
return { warnings: withLine(warnings, outcomeLine(stage)), skipFirstRun: false };
|
|
51
|
+
case 'already-planned':
|
|
52
|
+
return { warnings, skipFirstRun: stage.existingStatePlan !== null };
|
|
53
|
+
case 'unplanned':
|
|
54
|
+
return codeSignalLines(projectPath, stage, warnings, measure);
|
|
55
|
+
default: {
|
|
56
|
+
const unhandled = stage;
|
|
57
|
+
throw new Error(`Unhandled adoption stage: ${JSON.stringify(unhandled)}`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/** The brownfield/greenfield step for an unplanned project; a failed walk is advisory (D6). */
|
|
62
|
+
async function codeSignalLines(projectPath, stage, warnings, measure) {
|
|
63
|
+
let source;
|
|
64
|
+
try {
|
|
65
|
+
source = await measure(projectPath);
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
// The warning is advisory and must not block cf next: a failed walk becomes a visible line
|
|
69
|
+
// naming the cause, not a silent greenfield. Other errors are bugs and propagate.
|
|
70
|
+
if (!(error instanceof AdoptionError))
|
|
71
|
+
throw error;
|
|
72
|
+
return { warnings: [...warnings, inconclusiveDetectionLine(error.message)], skipFirstRun: false };
|
|
73
|
+
}
|
|
74
|
+
const outcome = decideOutcome({ stage, source });
|
|
75
|
+
return { warnings: withLine(warnings, outcomeLine(outcome)), skipFirstRun: false };
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=adoptionLines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adoptionLines.js","sourceRoot":"","sources":["../../src/adoption/adoptionLines.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,6EAA6E;AAC7E,OAAO,EAAE,mBAAmB,EAAqB,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,WAAW,EAA4C,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,gBAAgB,GAAG,gCAAgC,eAAe,EAAE,CAAC;AAC3E,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC,MAAM,CAAC,MAAM,eAAe,GAC1B,4DAA4D;IAC5D,8CAA8C,UAAU,KAAK,gBAAgB,EAAE,CAAC;AAElF,MAAM,CAAC,MAAM,wBAAwB,GACnC,uGAAuG;IACvG,sBAAsB,UAAU,KAAK,gBAAgB,EAAE,CAAC;AAE1D,MAAM,UAAU,yBAAyB,CAAC,MAAc;IACtD,OAAO,+DAA+D,MAAM,KAAK,gBAAgB,EAAE,CAAC;AACtG,CAAC;AAED,wGAAwG;AACxG,MAAM,UAAU,WAAW,CAAC,OAAwB;IAClD,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;QACrB,KAAK,YAAY;YACf,OAAO,eAAe,CAAC;QACzB,KAAK,qBAAqB;YACxB,OAAO,wBAAwB,CAAC;QAClC,KAAK,WAAW,CAAC;QACjB,KAAK,iBAAiB,CAAC;QACvB,KAAK,YAAY;YACf,OAAO,IAAI,CAAC;QACd,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,SAAS,GAAU,OAAO,C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AC;QACtE,KAAK,WAAW;YACd,OAAO,eAAe,CAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAChE,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,SAAS,GAAU,KAAK,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,6BAA6B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC;AACH,CAAC;AAED,+FAA+F;AAC/F,KAAK,UAAU,eAAe,CAC5B,WAAmB,EACnB,KAAoD,EACpD,QAAkB,EAClB,OAA6B;IAE7B,IAAI,MAAoB,CAAC;IACzB,IAAI,CAAC;QACH,MAAM,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,2FAA2F;QAC3F,kFAAkF;QAClF,IAAI,CAAC,CAAC,KAAK,YAAY,aAAa,CAAC;YAAE,MAAM,KAAK,CAAC;QACnD,OAAO,EAAE,QAAQ,EAAE,CAAC,GAAG,QAAQ,EAAE,yBAAyB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;IACpG,CAAC;IACD,MAAM,OAAO,GAAG,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACjD,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AACrF,CAAC"}
|
|
@@ -1,40 +1,52 @@
|
|
|
1
|
-
import type { AdoptionState } from '../config/ConfigKeys.js';
|
|
2
1
|
import type { SourceVolume } from '../detection/sourceVolume.js';
|
|
2
|
+
import type { PlanningFacts } from './planningFacts.js';
|
|
3
3
|
/**
|
|
4
4
|
* Brownfield iff the project folder holds at least this many non-blank source lines (D1).
|
|
5
5
|
* The one place the threshold is written; deliberately not configurable (the
|
|
6
|
-
* `adoption.state`
|
|
6
|
+
* `adoption.state = "declined"` opt-out is the safety valve).
|
|
7
7
|
*/
|
|
8
8
|
export declare const BROWNFIELD_MIN_SOURCE_LINES = 2000;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/** What the opt-out and the planning files decide, before any source walk (slice 269 D5). */
|
|
10
|
+
export type AdoptionStage = {
|
|
11
|
+
kind: 'opted-out';
|
|
11
12
|
} | {
|
|
12
|
-
kind: 'adoption-
|
|
13
|
-
|
|
14
|
-
} | {
|
|
15
|
-
kind: 'adoption-closed';
|
|
16
|
-
state: 'complete' | 'declined';
|
|
13
|
+
kind: 'adoption-incomplete';
|
|
14
|
+
derivedArchitectures: string[];
|
|
17
15
|
} | {
|
|
18
16
|
kind: 'already-planned';
|
|
19
17
|
artifacts: string[];
|
|
18
|
+
existingStatePlan: string | null;
|
|
20
19
|
} | {
|
|
20
|
+
kind: 'unplanned';
|
|
21
|
+
};
|
|
22
|
+
export type AdoptionOutcome = Exclude<AdoptionStage, {
|
|
23
|
+
kind: 'unplanned';
|
|
24
|
+
}> | {
|
|
21
25
|
kind: 'brownfield';
|
|
22
26
|
source: SourceVolume;
|
|
23
27
|
} | {
|
|
24
28
|
kind: 'greenfield';
|
|
25
29
|
source: SourceVolume;
|
|
26
30
|
};
|
|
31
|
+
export interface StageInput {
|
|
32
|
+
optedOut: boolean;
|
|
33
|
+
facts: PlanningFacts;
|
|
34
|
+
}
|
|
27
35
|
export interface OutcomeInput {
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
artifacts?: string[];
|
|
31
|
-
/** Source volume; read only when `state` is unset and nothing is planned. */
|
|
36
|
+
stage: AdoptionStage;
|
|
37
|
+
/** Source volume; read only when the stage is `unplanned`. */
|
|
32
38
|
source?: SourceVolume;
|
|
33
39
|
}
|
|
34
40
|
/**
|
|
35
|
-
* The
|
|
36
|
-
*
|
|
37
|
-
*
|
|
41
|
+
* The stage order (D5): opted out → adoption incomplete → already planned → unplanned. Pure.
|
|
42
|
+
* A derived architecture with no existing-state plan is mid-adoption; any other planning
|
|
43
|
+
* artifact means the project is planned.
|
|
44
|
+
*/
|
|
45
|
+
export declare function decideStage({ optedOut, facts }: StageInput): AdoptionStage;
|
|
46
|
+
/**
|
|
47
|
+
* The outcome (D5): a decided stage passes through; `unplanned` becomes brownfield or greenfield
|
|
48
|
+
* by source volume. Pure. The caller measures source volume only for `unplanned`; leaving it out
|
|
49
|
+
* then is a programming error.
|
|
38
50
|
*/
|
|
39
|
-
export declare function decideOutcome(
|
|
51
|
+
export declare function decideOutcome({ stage, source }: OutcomeInput): AdoptionOutcome;
|
|
40
52
|
//# sourceMappingURL=adoptionOutcome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoptionOutcome.d.ts","sourceRoot":"","sources":["../../src/adoption/adoptionOutcome.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adoptionOutcome.d.ts","sourceRoot":"","sources":["../../src/adoption/adoptionOutcome.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,6FAA6F;AAC7F,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,oBAAoB,EAAE,MAAM,EAAE,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAClF;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC;AAE1B,MAAM,MAAM,eAAe,GACvB,OAAO,CAAC,aAAa,EAAE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,GAC7C;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,MAAM,EAAE,YAAY,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,MAAM,EAAE,YAAY,CAAA;CAAE,CAAC;AAEjD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,UAAU,GAAG,aAAa,CAS1E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,GAAG,eAAe,CAQ9E"}
|
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Brownfield iff the project folder holds at least this many non-blank source lines (D1).
|
|
3
3
|
* The one place the threshold is written; deliberately not configurable (the
|
|
4
|
-
* `adoption.state`
|
|
4
|
+
* `adoption.state = "declined"` opt-out is the safety valve).
|
|
5
5
|
*/
|
|
6
6
|
export const BROWNFIELD_MIN_SOURCE_LINES = 2000;
|
|
7
7
|
/**
|
|
8
|
-
* The
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* The stage order (D5): opted out → adoption incomplete → already planned → unplanned. Pure.
|
|
9
|
+
* A derived architecture with no existing-state plan is mid-adoption; any other planning
|
|
10
|
+
* artifact means the project is planned.
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return { kind: 'adoption-closed', state };
|
|
18
|
-
if (artifacts === undefined) {
|
|
19
|
-
throw new Error('decideOutcome: state is unset, so `artifacts` is required');
|
|
12
|
+
export function decideStage({ optedOut, facts }) {
|
|
13
|
+
if (optedOut)
|
|
14
|
+
return { kind: 'opted-out' };
|
|
15
|
+
if (facts.derivedArchitectures.length > 0 && facts.existingStatePlan === null) {
|
|
16
|
+
return { kind: 'adoption-incomplete', derivedArchitectures: facts.derivedArchitectures };
|
|
20
17
|
}
|
|
21
|
-
if (artifacts.length > 0)
|
|
22
|
-
return { kind: 'already-planned', artifacts };
|
|
18
|
+
if (facts.artifacts.length > 0) {
|
|
19
|
+
return { kind: 'already-planned', artifacts: facts.artifacts, existingStatePlan: facts.existingStatePlan };
|
|
20
|
+
}
|
|
21
|
+
return { kind: 'unplanned' };
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The outcome (D5): a decided stage passes through; `unplanned` becomes brownfield or greenfield
|
|
25
|
+
* by source volume. Pure. The caller measures source volume only for `unplanned`; leaving it out
|
|
26
|
+
* then is a programming error.
|
|
27
|
+
*/
|
|
28
|
+
export function decideOutcome({ stage, source }) {
|
|
29
|
+
if (stage.kind !== 'unplanned')
|
|
30
|
+
return stage;
|
|
23
31
|
if (source === undefined) {
|
|
24
|
-
throw new Error('decideOutcome:
|
|
32
|
+
throw new Error('decideOutcome: the stage is unplanned, so `source` is required');
|
|
25
33
|
}
|
|
26
34
|
return source.lines >= BROWNFIELD_MIN_SOURCE_LINES
|
|
27
35
|
? { kind: 'brownfield', source }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoptionOutcome.js","sourceRoot":"","sources":["../../src/adoption/adoptionOutcome.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"adoptionOutcome.js","sourceRoot":"","sources":["../../src/adoption/adoptionOutcome.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAyBhD;;;;GAIG;AACH,MAAM,UA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
|
|
4
|
+
/** A pre-269 value found in config and ignored (D2), or null. */
|
|
5
|
+
ignoredLegacyValue: LegacyAdoptionState | null;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Reads the adoption opt-out (D2). `declined` opts out; absent or empty does not; a legacy value
|
|
9
|
+
* does not and is reported. Any other value throws. A malformed TOML file propagates the parser's error.
|
|
10
|
+
*/
|
|
11
|
+
export declare function readAdoptionOptOut(root: string): Promise<AdoptionOptOut>;
|
|
12
|
+
/** The notice shown while a legacy value is stored (D3). The only place this text is built. */
|
|
13
|
+
export declare function legacyAdoptionStateNotice(value: LegacyAdoptionState): string;
|
|
7
14
|
//# sourceMappingURL=adoptionState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoptionState.d.ts","sourceRoot":"","sources":["../../src/adoption/adoptionState.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"adoptionState.d.ts","sourceRoot":"","sources":["../../src/adoption/adoptionState.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AAmBjC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,kBAAkB,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAChD;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAK9E;AAED,+FAA+F;AAC/F,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAK5E"}
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
-
import { ADOPTION_STATES } from '../config/ConfigKeys.js';
|
|
1
|
+
import { ADOPTION_OPT_OUT, ADOPTION_STATES, LEGACY_ADOPTION_STATES, } from '../config/ConfigKeys.js';
|
|
2
2
|
import { ConfigManager } from '../config/ConfigManager.js';
|
|
3
3
|
import { AdoptionError } from './contracts.js';
|
|
4
|
-
export { ADOPTION_STATES };
|
|
5
4
|
const ADOPTION_STATE_KEY = 'adoption.state';
|
|
6
5
|
const PROJECT_CONFIG_FILE = '.context-forge.toml';
|
|
7
|
-
function
|
|
8
|
-
return
|
|
6
|
+
function isLegacyAdoptionState(value) {
|
|
7
|
+
return LEGACY_ADOPTION_STATES.some((state) => state === value);
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
function outOfEnumError(value) {
|
|
10
|
+
const allowed = ADOPTION_STATES.map((state) => JSON.stringify(state)).join(', ');
|
|
11
|
+
return new AdoptionError(`adoption.state is ${JSON.stringify(value)}, which is not one of [${allowed}]. ` +
|
|
12
|
+
`Fix or remove the [adoption] section in ${PROJECT_CONFIG_FILE}.`);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Reads the adoption opt-out (D2). `declined` opts out; absent or empty does not; a legacy value
|
|
16
|
+
* does not and is reported. Any other value throws. A malformed TOML file propagates the parser's error.
|
|
17
|
+
*/
|
|
18
|
+
export async function readAdoptionOptOut(root) {
|
|
12
19
|
const { value } = await new ConfigManager(root).get(ADOPTION_STATE_KEY);
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return value;
|
|
20
|
+
if (isLegacyAdoptionState(value))
|
|
21
|
+
return { optedOut: false, ignoredLegacyValue: value };
|
|
22
|
+
if (!ADOPTION_STATES.some((state) => state === value))
|
|
23
|
+
throw outOfEnumError(value);
|
|
24
|
+
return { optedOut: value === ADOPTION_OPT_OUT, ignoredLegacyValue: null };
|
|
19
25
|
}
|
|
20
|
-
/**
|
|
21
|
-
export
|
|
22
|
-
|
|
26
|
+
/** The notice shown while a legacy value is stored (D3). The only place this text is built. */
|
|
27
|
+
export function legacyAdoptionStateNotice(value) {
|
|
28
|
+
return (`adoption.state is "${value}", which is no longer used and is ignored: adoption progress now comes ` +
|
|
29
|
+
`from the project's files. Remove it with: cf config unset adoption.state`);
|
|
23
30
|
}
|
|
24
31
|
//# sourceMappingURL=adoptionState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoptionState.js","sourceRoot":"","sources":["../../src/adoption/adoptionState.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"adoptionState.js","sourceRoot":"","sources":["../../src/adoption/adoptionState.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,sBAAsB,GAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAC5C,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAElD,SAAS,qBAAqB,CAAC,KAAc;IAC3C,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAS,cAAc,CAAC,KAAc;IACpC,MAAM,OAAO,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjF,OAAO,IAAI,aAAa,CACtB,qBAAqB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,0BAA0B,OAAO,KAAK;QAC9E,2CAA2C,mBAAmB,GAAG,CACpE,CAAC;AACJ,CAAC;AAQD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,IAAY;IACnD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IACxE,IAAI,qBAAqB,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC;IACxF,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC;QAAE,MAAM,cAAc,CAAC,KAAK,CAAC,CAAC;IACnF,OAAO,EAAE,QAAQ,EAAE,KAAK,KAAK,gBAAgB,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC;AAC5E,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,yBAAyB,CAAC,KAA0B;IAClE,OAAO,CACL,sBAAsB,KAAK,yEAAyE;QACpG,0EAA0E,CAC3E,CAAC;AACJ,CAAC"}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import type { ProbeOutcome } from '../detection/squadronProbe.js';
|
|
2
|
-
/** The context profile / prompt instruction selected for a brownfield build. */
|
|
3
|
-
export declare const BROWNFIELD_ADOPTION_INSTRUCTION = "brownfield-adoption";
|
|
4
|
-
/** Runs the squadron capability probe in a checkout; injected so tests never spawn `sq`. */
|
|
5
|
-
export type SquadronProbe = (checkoutPath: string) => Promise<ProbeOutcome>;
|
|
6
|
-
export type AdoptionSelection = {
|
|
7
|
-
selected: false;
|
|
8
|
-
} | {
|
|
9
|
-
selected: true;
|
|
10
|
-
instruction: typeof BROWNFIELD_ADOPTION_INSTRUCTION;
|
|
11
|
-
facts: string;
|
|
12
|
-
/** Newest squadron comprehension document, relative to project-documents/. Absent when none. */
|
|
13
|
-
fileComprehension?: string;
|
|
14
|
-
};
|
|
15
|
-
export type AdoptionResolver = (projectPath: string, checkoutPath: string, instruction: string) => Promise<AdoptionSelection>;
|
|
16
1
|
/**
|
|
17
|
-
* Raised when adoption cannot be
|
|
18
|
-
*
|
|
19
|
-
* The build rethrows it instead of falling back to the concept prompt.
|
|
2
|
+
* Raised when adoption state or detection cannot be read or decided (for example an
|
|
3
|
+
* `adoption.state` value outside the allowed set). The message carries the remedy.
|
|
20
4
|
*/
|
|
21
5
|
export declare class AdoptionError extends Error {
|
|
22
6
|
constructor(message: string, options?: ErrorOptions);
|
|
23
7
|
}
|
|
8
|
+
/** The command that opts a project out of adoption detection. */
|
|
9
|
+
export declare const OPT_OUT_COMMAND = "cf config set adoption.state declined";
|
|
10
|
+
/** Remedy appended to detection errors: the opt-out that skips detection. */
|
|
11
|
+
export declare const OVERRIDE_REMEDY = "To treat the project as new and skip detection: cf config set adoption.state declined";
|
|
24
12
|
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/adoption/contracts.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/adoption/contracts.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,qBAAa,aAAc,SAAQ,KAAK;gBAC1B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD;AAED,iEAAiE;AACjE,eAAO,MAAM,eAAe,0CAAqD,CAAC;AAElF,6EAA6E;AAC7E,eAAO,MAAM,eAAe,0FAAuE,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Errors and texts shared by the adoption and detection modules.
|
|
2
|
+
import { ADOPTION_OPT_OUT } from '../config/ConfigKeys.js';
|
|
3
3
|
/**
|
|
4
|
-
* Raised when adoption cannot be
|
|
5
|
-
*
|
|
6
|
-
* The build rethrows it instead of falling back to the concept prompt.
|
|
4
|
+
* Raised when adoption state or detection cannot be read or decided (for example an
|
|
5
|
+
* `adoption.state` value outside the allowed set). The message carries the remedy.
|
|
7
6
|
*/
|
|
8
7
|
export class AdoptionError extends Error {
|
|
9
8
|
constructor(message, options) {
|
|
@@ -11,4 +10,8 @@ export class AdoptionError extends Error {
|
|
|
11
10
|
this.name = 'AdoptionError';
|
|
12
11
|
}
|
|
13
12
|
}
|
|
13
|
+
/** The command that opts a project out of adoption detection. */
|
|
14
|
+
export const OPT_OUT_COMMAND = `cf config set adoption.state ${ADOPTION_OPT_OUT}`;
|
|
15
|
+
/** Remedy appended to detection errors: the opt-out that skips detection. */
|
|
16
|
+
export const OVERRIDE_REMEDY = `To treat the project as new and skip detection: ${OPT_OUT_COMMAND}`;
|
|
14
17
|
//# sourceMappingURL=contracts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/adoption/contracts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/adoption/contracts.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe,EAAE,OAAsB;QACjD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AAED,iEAAiE;AACjE,MAAM,CAAC,MAAM,eAAe,GAAG,gCAAgC,gBAAgB,EAAE,CAAC;AAElF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,eAAe,GAAG,mDAAmD,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { HistoryFact } from '../detection/history.js';
|
|
2
|
+
import type { AdoptionArtifacts } from './adoptionInputs.js';
|
|
3
|
+
import type { AdoptionOutcome } from './adoptionOutcome.js';
|
|
4
|
+
export declare const REPORT_VERSION = 1;
|
|
5
|
+
export declare const INIT_REPORT_VERSION = 1;
|
|
6
|
+
/** The one place the error codes are written (D5). */
|
|
7
|
+
export declare const DETECTION_ERROR_CODES: readonly ["path-not-found", "invalid-config", "unreadable-planning", "source-unmeasurable", "worktree-of-registered-project", "internal"];
|
|
8
|
+
export type DetectionErrorCode = (typeof DETECTION_ERROR_CODES)[number];
|
|
9
|
+
export declare class DetectionError extends Error {
|
|
10
|
+
readonly code: DetectionErrorCode;
|
|
11
|
+
constructor(code: DetectionErrorCode, message: string, options?: {
|
|
12
|
+
cause?: unknown;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export type SourceFact = {
|
|
16
|
+
measured: true;
|
|
17
|
+
lines: number;
|
|
18
|
+
files: number;
|
|
19
|
+
capped: boolean;
|
|
20
|
+
} | {
|
|
21
|
+
measured: false;
|
|
22
|
+
reason: string;
|
|
23
|
+
};
|
|
24
|
+
export type HistoryReportFact = {
|
|
25
|
+
known: true;
|
|
26
|
+
commits: number;
|
|
27
|
+
shallow: boolean;
|
|
28
|
+
} | {
|
|
29
|
+
known: false;
|
|
30
|
+
reason: string;
|
|
31
|
+
};
|
|
32
|
+
/** What `detectProject` returns: every fact, gathered on every call (D4). Paths are root-relative. */
|
|
33
|
+
export interface ProjectDetection {
|
|
34
|
+
/** Absolute. */
|
|
35
|
+
projectRoot: string;
|
|
36
|
+
outcome: AdoptionOutcome;
|
|
37
|
+
source: SourceFact;
|
|
38
|
+
history: HistoryFact;
|
|
39
|
+
docs: string[];
|
|
40
|
+
adrs: string[];
|
|
41
|
+
ci: string[];
|
|
42
|
+
ruleFiles: string[];
|
|
43
|
+
artifacts: AdoptionArtifacts;
|
|
44
|
+
notices: string[];
|
|
45
|
+
}
|
|
46
|
+
/** The D3 JSON shape. */
|
|
47
|
+
export interface DetectionReport {
|
|
48
|
+
reportVersion: typeof REPORT_VERSION;
|
|
49
|
+
projectRoot: string;
|
|
50
|
+
outcome: AdoptionOutcome['kind'];
|
|
51
|
+
facts: {
|
|
52
|
+
source: SourceFact;
|
|
53
|
+
history: HistoryReportFact;
|
|
54
|
+
docs: string[];
|
|
55
|
+
adrs: string[];
|
|
56
|
+
ci: string[];
|
|
57
|
+
ruleFiles: string[];
|
|
58
|
+
};
|
|
59
|
+
artifacts: AdoptionArtifacts;
|
|
60
|
+
notices: string[];
|
|
61
|
+
}
|
|
62
|
+
export declare function toDetectionReport(detection: ProjectDetection): DetectionReport;
|
|
63
|
+
export declare function serializeDetectionReport(report: DetectionReport): string;
|
|
64
|
+
/** The D5 envelope: `{ reportVersion, error: { code, message } }`. */
|
|
65
|
+
export declare function serializeErrorEnvelope(reportVersion: number, code: DetectionErrorCode, message: string): string;
|
|
66
|
+
/**
|
|
67
|
+
* The envelope for any thrown value. A `DetectionError` keeps its code; anything else is `internal`
|
|
68
|
+
* (D5: applied only at a process boundary, with the original message, and the exit stays non-zero).
|
|
69
|
+
*/
|
|
70
|
+
export declare function toErrorEnvelope(reportVersion: number, error: unknown): string;
|
|
71
|
+
//# sourceMappingURL=detectionReport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detectionReport.d.ts","sourceRoot":"","sources":["../../src/adoption/detectionReport.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAK5D,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,sDAAsD;AACtD,eAAO,MAAM,qBAAqB,2IAOxB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;gBAEtB,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAKrF;AAED,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,EAAE,IAAI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