perttool 0.7.1 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -1
- package/README.md +98 -18
- package/dist/actuals/lifecycle.d.ts +6 -20
- package/dist/actuals/lifecycle.d.ts.map +1 -1
- package/dist/actuals/lifecycle.js +5 -176
- package/dist/actuals/lifecycle.js.map +1 -1
- package/dist/actuals/reduction.d.ts +20 -0
- package/dist/actuals/reduction.d.ts.map +1 -0
- package/dist/actuals/reduction.js +175 -0
- package/dist/actuals/reduction.js.map +1 -0
- package/dist/analysis/service.d.ts +33 -0
- package/dist/analysis/service.d.ts.map +1 -0
- package/dist/analysis/service.js +153 -0
- package/dist/analysis/service.js.map +1 -0
- package/dist/analysis/target-temporal-input.d.ts +88 -0
- package/dist/analysis/target-temporal-input.d.ts.map +1 -0
- package/dist/analysis/target-temporal-input.js +249 -0
- package/dist/analysis/target-temporal-input.js.map +1 -0
- package/dist/analysis/temporal-deadline.d.ts +1 -1
- package/dist/analysis/temporal-deadline.d.ts.map +1 -1
- package/dist/analysis/temporal-precedence.d.ts +1 -1
- package/dist/analysis/temporal-precedence.d.ts.map +1 -1
- package/dist/analysis/temporal-precedence.js +1 -1
- package/dist/analysis/temporal-precedence.js.map +1 -1
- package/dist/analysis/temporal-resource.d.ts +1 -1
- package/dist/analysis/temporal-resource.d.ts.map +1 -1
- package/dist/analysis/temporal-resource.js +1 -1
- package/dist/analysis/temporal-resource.js.map +1 -1
- package/dist/application/advance-history.d.ts +2 -1
- package/dist/application/advance-history.d.ts.map +1 -1
- package/dist/application/advance-history.js +1 -1
- package/dist/application/advance-history.js.map +1 -1
- package/dist/application/analyze.d.ts +1 -32
- package/dist/application/analyze.d.ts.map +1 -1
- package/dist/application/analyze.js +1 -152
- package/dist/application/analyze.js.map +1 -1
- package/dist/application/check.d.ts +1 -42
- package/dist/application/check.d.ts.map +1 -1
- package/dist/application/check.js +1 -109
- package/dist/application/check.js.map +1 -1
- package/dist/application/cli-facade.d.ts +85 -0
- package/dist/application/cli-facade.d.ts.map +1 -0
- package/dist/application/cli-facade.js +108 -0
- package/dist/application/cli-facade.js.map +1 -0
- package/dist/application/contract6-mutation.js +2 -2
- package/dist/application/contract6-mutation.js.map +1 -1
- package/dist/application/contract7-mermaid.d.ts.map +1 -1
- package/dist/application/contract7-mermaid.js +3 -3
- package/dist/application/contract7-mermaid.js.map +1 -1
- package/dist/application/contract7-source.d.ts +1 -7
- package/dist/application/contract7-source.d.ts.map +1 -1
- package/dist/application/contract7-source.js +4 -12
- package/dist/application/contract7-source.js.map +1 -1
- package/dist/application/editor-dag-focus.d.ts +52 -0
- package/dist/application/editor-dag-focus.d.ts.map +1 -0
- package/dist/application/editor-dag-focus.js +132 -0
- package/dist/application/editor-dag-focus.js.map +1 -0
- package/dist/application/format.js +2 -2
- package/dist/application/format.js.map +1 -1
- package/dist/application/mutate.d.ts +1 -26
- package/dist/application/mutate.d.ts.map +1 -1
- package/dist/application/mutate.js +1 -205
- package/dist/application/mutate.js.map +1 -1
- package/dist/application/next.js +2 -2
- package/dist/application/next.js.map +1 -1
- package/dist/application/target-actuals-advance.js +2 -2
- package/dist/application/target-actuals-advance.js.map +1 -1
- package/dist/application/target-actuals-analysis.js +2 -2
- package/dist/application/target-actuals-analysis.js.map +1 -1
- package/dist/application/target-actuals-mutation.d.ts.map +1 -1
- package/dist/application/target-actuals-mutation.js +6 -5
- package/dist/application/target-actuals-mutation.js.map +1 -1
- package/dist/application/target-assurance-analysis.js +2 -2
- package/dist/application/target-assurance-analysis.js.map +1 -1
- package/dist/application/target-assurance-write.d.ts +2 -1
- package/dist/application/target-assurance-write.d.ts.map +1 -1
- package/dist/application/target-assurance-write.js +36 -12
- package/dist/application/target-assurance-write.js.map +1 -1
- package/dist/application/target-governance-mutation.js +2 -2
- package/dist/application/target-governance-mutation.js.map +1 -1
- package/dist/application/target-historical-graph.d.ts +124 -0
- package/dist/application/target-historical-graph.d.ts.map +1 -0
- package/dist/application/target-historical-graph.js +547 -0
- package/dist/application/target-historical-graph.js.map +1 -0
- package/dist/application/target-mutate.d.ts +1 -17
- package/dist/application/target-mutate.d.ts.map +1 -1
- package/dist/application/target-mutate.js +1 -159
- package/dist/application/target-mutate.js.map +1 -1
- package/dist/application/target-project-history.d.ts +2 -1
- package/dist/application/target-project-history.d.ts.map +1 -1
- package/dist/application/target-project-history.js +3 -3
- package/dist/application/target-project-history.js.map +1 -1
- package/dist/application/target-temporal-analysis.js +2 -2
- package/dist/application/target-temporal-analysis.js.map +1 -1
- package/dist/application/target-temporal-input.d.ts +1 -87
- package/dist/application/target-temporal-input.d.ts.map +1 -1
- package/dist/application/target-temporal-input.js +1 -248
- package/dist/application/target-temporal-input.js.map +1 -1
- package/dist/application/target-unit-migration-candidate.js +2 -2
- package/dist/application/target-unit-migration-candidate.js.map +1 -1
- package/dist/assurance/advance.d.ts.map +1 -1
- package/dist/assurance/advance.js +15 -5
- package/dist/assurance/advance.js.map +1 -1
- package/dist/assurance/canonical.js +2 -2
- package/dist/assurance/canonical.js.map +1 -1
- package/dist/assurance/compatibility.js +2 -2
- package/dist/assurance/compatibility.js.map +1 -1
- package/dist/assurance/mermaid.d.ts +4 -2
- package/dist/assurance/mermaid.d.ts.map +1 -1
- package/dist/assurance/mermaid.js +11 -7
- package/dist/assurance/mermaid.js.map +1 -1
- package/dist/assurance/mutation.d.ts.map +1 -1
- package/dist/assurance/mutation.js +9 -23
- package/dist/assurance/mutation.js.map +1 -1
- package/dist/cli.js +66 -26
- package/dist/cli.js.map +1 -1
- package/dist/command/assurance-discovery.d.ts.map +1 -1
- package/dist/command/assurance-discovery.js +62 -2
- package/dist/command/assurance-discovery.js.map +1 -1
- package/dist/command/assurance-usage.d.ts.map +1 -1
- package/dist/command/assurance-usage.js +11 -0
- package/dist/command/assurance-usage.js.map +1 -1
- package/dist/conversion/mermaid-import.js +3 -3
- package/dist/conversion/mermaid-import.js.map +1 -1
- package/dist/conversion/mermaid.d.ts +1 -1
- package/dist/conversion/mermaid.d.ts.map +1 -1
- package/dist/conversion/mermaid.js +4 -4
- package/dist/conversion/mermaid.js.map +1 -1
- package/dist/core/index.d.ts +33 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +13 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/source.d.ts +8 -0
- package/dist/core/source.d.ts.map +1 -0
- package/dist/core/source.js +11 -0
- package/dist/core/source.js.map +1 -0
- package/dist/formatter/source-formatter.d.ts +1 -1
- package/dist/formatter/source-formatter.d.ts.map +1 -1
- package/dist/formatter/source-formatter.js +1 -1
- package/dist/formatter/source-formatter.js.map +1 -1
- package/dist/guidance/validator.js +2 -2
- package/dist/guidance/validator.js.map +1 -1
- package/dist/help/assurance-guide.d.ts.map +1 -1
- package/dist/help/assurance-guide.js +78 -0
- package/dist/help/assurance-guide.js.map +1 -1
- package/dist/history/git-probe.d.ts +71 -0
- package/dist/history/git-probe.d.ts.map +1 -1
- package/dist/history/git-probe.js +517 -0
- package/dist/history/git-probe.js.map +1 -1
- package/dist/history/historical-graph.d.ts +174 -0
- package/dist/history/historical-graph.d.ts.map +1 -0
- package/dist/history/historical-graph.js +870 -0
- package/dist/history/historical-graph.js.map +1 -0
- package/dist/history/historical-transition.d.ts +311 -0
- package/dist/history/historical-transition.d.ts.map +1 -0
- package/dist/history/historical-transition.js +998 -0
- package/dist/history/historical-transition.js.map +1 -0
- package/dist/history/project-history.d.ts.map +1 -1
- package/dist/history/project-history.js +2 -2
- package/dist/history/project-history.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/io/document-file.js +2 -2
- package/dist/io/document-file.js.map +1 -1
- package/dist/io/safe-write.js +1 -1
- package/dist/io/safe-write.js.map +1 -1
- package/dist/model/sha256.d.ts +5 -0
- package/dist/model/sha256.d.ts.map +1 -0
- package/dist/model/sha256.js +105 -0
- package/dist/model/sha256.js.map +1 -0
- package/dist/mutation/advance.js +3 -3
- package/dist/mutation/advance.js.map +1 -1
- package/dist/mutation/diagnostics.d.ts +2 -2
- package/dist/mutation/diagnostics.d.ts.map +1 -1
- package/dist/mutation/diagnostics.js.map +1 -1
- package/dist/mutation/planner.d.ts +27 -0
- package/dist/mutation/planner.d.ts.map +1 -0
- package/dist/mutation/planner.js +206 -0
- package/dist/mutation/planner.js.map +1 -0
- package/dist/mutation/source.d.ts +2 -1
- package/dist/mutation/source.d.ts.map +1 -1
- package/dist/mutation/source.js +14 -0
- package/dist/mutation/source.js.map +1 -1
- package/dist/mutation/target-planner.d.ts +18 -0
- package/dist/mutation/target-planner.d.ts.map +1 -0
- package/dist/mutation/target-planner.js +160 -0
- package/dist/mutation/target-planner.js.map +1 -0
- package/dist/mutation/task.d.ts.map +1 -1
- package/dist/mutation/task.js +19 -11
- package/dist/mutation/task.js.map +1 -1
- package/dist/mutation/types.d.ts +1 -1
- package/dist/mutation/types.d.ts.map +1 -1
- package/dist/node/historical-host.d.ts +6 -0
- package/dist/node/historical-host.d.ts.map +1 -0
- package/dist/node/historical-host.js +8 -0
- package/dist/node/historical-host.js.map +1 -0
- package/dist/node/host.d.ts +3 -0
- package/dist/node/host.d.ts.map +1 -0
- package/dist/node/host.js +48 -0
- package/dist/node/host.js.map +1 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +2 -0
- package/dist/node/index.js.map +1 -0
- package/dist/ports/node-host.d.ts +41 -0
- package/dist/ports/node-host.d.ts.map +1 -0
- package/dist/ports/node-host.js +2 -0
- package/dist/ports/node-host.js.map +1 -0
- package/dist/recommendation/override.d.ts +40 -2
- package/dist/recommendation/override.d.ts.map +1 -1
- package/dist/recommendation/override.js +5 -6
- package/dist/recommendation/override.js.map +1 -1
- package/dist/schema/registry.d.ts.map +1 -1
- package/dist/schema/registry.js +1 -0
- package/dist/schema/registry.js.map +1 -1
- package/dist/semantic/check.d.ts +43 -0
- package/dist/semantic/check.d.ts.map +1 -0
- package/dist/semantic/check.js +110 -0
- package/dist/semantic/check.js.map +1 -0
- package/dist/session/document-session.d.ts +109 -0
- package/dist/session/document-session.d.ts.map +1 -0
- package/dist/session/document-session.js +432 -0
- package/dist/session/document-session.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +18 -4
- package/schemas/Perttool.HistoricalGraphResult.v1.schema.json +654 -0
|
@@ -1,153 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { fieldNamed } from "../model/syntax.js";
|
|
3
|
-
import { buildResidualGraph } from "../analysis/graph.js";
|
|
4
|
-
import { analyzePrecedence } from "../analysis/precedence.js";
|
|
5
|
-
import { analyzeResources } from "../analysis/resource.js";
|
|
6
|
-
import { createVelocityConversion } from "../model/units.js";
|
|
7
|
-
import { checkDocument } from "./check.js";
|
|
8
|
-
function diagnostic(code, severity, message, entityId, related, helpTopic = "analysis.resources") {
|
|
9
|
-
return {
|
|
10
|
-
code,
|
|
11
|
-
severity,
|
|
12
|
-
message,
|
|
13
|
-
helpTopic,
|
|
14
|
-
...(entityId === undefined ? {} : { entityId }),
|
|
15
|
-
...(related === undefined || related.length === 0 ? {} : { related }),
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function validateCapacityOverrides(graph, overrides) {
|
|
19
|
-
const diagnostics = [];
|
|
20
|
-
for (const [id] of overrides) {
|
|
21
|
-
if (!graph.resources.has(id)) {
|
|
22
|
-
diagnostics.push(diagnostic("PTSEM-206", "error", `resource ${id} in capacity override is undefined`, id));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (hasErrors(diagnostics))
|
|
26
|
-
return diagnostics;
|
|
27
|
-
const effective = new Map([...graph.resources].map(([id, resource]) => [id, overrides.get(id) ?? resource.capacity]));
|
|
28
|
-
for (const declaration of graph.document.declarations.filter((candidate) => candidate.kind === "task")) {
|
|
29
|
-
const requirements = (fieldNamed(declaration, "requires")?.value ?? []);
|
|
30
|
-
for (const requirement of requirements) {
|
|
31
|
-
if (requirement.units > effective.get(requirement.resourceId)) {
|
|
32
|
-
diagnostics.push({
|
|
33
|
-
code: "PTSEM-208",
|
|
34
|
-
severity: "error",
|
|
35
|
-
message: `requirement ${requirement.units} exceeds what-if capacity ${effective.get(requirement.resourceId)}`,
|
|
36
|
-
entityId: declaration.id,
|
|
37
|
-
span: requirement.unitsSpan,
|
|
38
|
-
helpTopic: "analysis.resources",
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
for (const [id, resource] of graph.resources) {
|
|
44
|
-
const activeTasks = graph.document.declarations.filter((declaration) => declaration.kind === "task" && fieldNamed(declaration, "status")?.value === "active");
|
|
45
|
-
const usage = activeTasks.reduce((sum, task) => {
|
|
46
|
-
const requirements = (fieldNamed(task, "requires")?.value ?? []);
|
|
47
|
-
return sum + (requirements.find((requirement) => requirement.resourceId === id)?.units ?? 0);
|
|
48
|
-
}, 0);
|
|
49
|
-
if (usage > effective.get(id)) {
|
|
50
|
-
diagnostics.push({
|
|
51
|
-
code: "PTRES-202",
|
|
52
|
-
severity: "error",
|
|
53
|
-
message: `what-if capacity ${effective.get(id)} is less than active usage ${usage}`,
|
|
54
|
-
entityId: id,
|
|
55
|
-
span: fieldNamed(resource.declaration, "capacity").valueSpan,
|
|
56
|
-
helpTopic: "analysis.resources",
|
|
57
|
-
related: activeTasks
|
|
58
|
-
.filter((task) => {
|
|
59
|
-
const requirements = (fieldNamed(task, "requires")?.value ?? []);
|
|
60
|
-
return requirements.some((requirement) => requirement.resourceId === id);
|
|
61
|
-
})
|
|
62
|
-
.map((task) => ({ message: `active task ${task.id}`, span: task.idSpan })),
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return diagnostics;
|
|
67
|
-
}
|
|
68
|
-
export function analyzeValidatedDocument(document, documentId, initialDiagnostics, diagnosticsAlreadyTruncated, options = {}) {
|
|
69
|
-
const mode = options.mode ?? "both";
|
|
70
|
-
const maxPaths = options.maxPaths ?? 1;
|
|
71
|
-
const precision = options.precision ?? 3;
|
|
72
|
-
const maxDiagnostics = normalizeMaxDiagnostics(options.maxDiagnostics);
|
|
73
|
-
const overrides = options.capacityOverrides ?? new Map();
|
|
74
|
-
const diagnostics = [...initialDiagnostics];
|
|
75
|
-
const graph = buildResidualGraph(document);
|
|
76
|
-
diagnostics.push(...validateCapacityOverrides(graph, overrides));
|
|
77
|
-
if (hasErrors(diagnostics)) {
|
|
78
|
-
const limited = limitDiagnostics(sortDiagnostics(diagnostics), maxDiagnostics);
|
|
79
|
-
return {
|
|
80
|
-
ok: false,
|
|
81
|
-
document,
|
|
82
|
-
documentId,
|
|
83
|
-
diagnostics: limited.diagnostics,
|
|
84
|
-
diagnosticsTruncated: diagnosticsAlreadyTruncated || limited.truncated,
|
|
85
|
-
mode,
|
|
86
|
-
precision,
|
|
87
|
-
capacityOverrides: overrides,
|
|
88
|
-
durationUnit: graph.durationUnit,
|
|
89
|
-
velocity: graph.velocity,
|
|
90
|
-
velocityForecast: createVelocityConversion(graph.durationUnit, graph.velocity),
|
|
91
|
-
criticalEpsilon: graph.criticalEpsilon,
|
|
92
|
-
precedence: null,
|
|
93
|
-
resource: null,
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
const internalPrecedence = analyzePrecedence(graph, maxPaths);
|
|
97
|
-
const resource = mode === "precedence"
|
|
98
|
-
? null
|
|
99
|
-
: analyzeResources(graph, internalPrecedence, overrides, maxPaths);
|
|
100
|
-
const precedence = mode === "resource" ? null : internalPrecedence;
|
|
101
|
-
if (precedence?.critical.pathsTruncated === true ||
|
|
102
|
-
resource?.scheduleCritical.pathsTruncated === true) {
|
|
103
|
-
diagnostics.push(diagnostic("PTDAG-302", "warning", `critical path enumeration was truncated at max-paths ${maxPaths}`, undefined, undefined, "analysis"));
|
|
104
|
-
}
|
|
105
|
-
if (resource?.conditionalOnBlocksResolved === true) {
|
|
106
|
-
diagnostics.push(diagnostic("PTRES-303", "warning", "resource schedule is conditional on blocked tasks being resolved at time 0", resource.blockedTaskIds[0]));
|
|
107
|
-
}
|
|
108
|
-
const limited = limitDiagnostics(sortDiagnostics(diagnostics), maxDiagnostics);
|
|
109
|
-
return {
|
|
110
|
-
ok: !hasErrors(diagnostics),
|
|
111
|
-
document,
|
|
112
|
-
documentId,
|
|
113
|
-
diagnostics: limited.diagnostics,
|
|
114
|
-
diagnosticsTruncated: diagnosticsAlreadyTruncated || limited.truncated,
|
|
115
|
-
mode,
|
|
116
|
-
precision,
|
|
117
|
-
capacityOverrides: overrides,
|
|
118
|
-
durationUnit: graph.durationUnit,
|
|
119
|
-
velocity: graph.velocity,
|
|
120
|
-
velocityForecast: createVelocityConversion(graph.durationUnit, graph.velocity),
|
|
121
|
-
criticalEpsilon: graph.criticalEpsilon,
|
|
122
|
-
precedence,
|
|
123
|
-
resource,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
export function analyzeDocument(text, options = {}) {
|
|
127
|
-
const mode = options.mode ?? "both";
|
|
128
|
-
const precision = options.precision ?? 3;
|
|
129
|
-
const maxDiagnostics = normalizeMaxDiagnostics(options.maxDiagnostics);
|
|
130
|
-
const overrides = options.capacityOverrides ?? new Map();
|
|
131
|
-
const checked = checkDocument(text, { maxDiagnostics });
|
|
132
|
-
const diagnostics = [...checked.diagnostics];
|
|
133
|
-
if (!checked.ok) {
|
|
134
|
-
return {
|
|
135
|
-
ok: false,
|
|
136
|
-
document: checked.document,
|
|
137
|
-
documentId: checked.documentId,
|
|
138
|
-
diagnostics,
|
|
139
|
-
diagnosticsTruncated: checked.diagnosticsTruncated,
|
|
140
|
-
mode,
|
|
141
|
-
precision,
|
|
142
|
-
capacityOverrides: overrides,
|
|
143
|
-
durationUnit: null,
|
|
144
|
-
velocity: null,
|
|
145
|
-
velocityForecast: null,
|
|
146
|
-
criticalEpsilon: null,
|
|
147
|
-
precedence: null,
|
|
148
|
-
resource: null,
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
return analyzeValidatedDocument(checked.document, checked.documentId, diagnostics, checked.diagnosticsTruncated, options);
|
|
152
|
-
}
|
|
1
|
+
export * from "../analysis/service.js";
|
|
153
2
|
//# sourceMappingURL=analyze.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../src/application/analyze.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../src/application/analyze.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,43 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DocumentNode } from "../model/syntax.js";
|
|
3
|
-
import type { TargetCalendarValue } from "../model/target-calendar.js";
|
|
4
|
-
import { type ProjectActualsSourceModel } from "../actuals/source.js";
|
|
5
|
-
export interface CheckSummary {
|
|
6
|
-
readonly resources: number;
|
|
7
|
-
readonly milestones: number;
|
|
8
|
-
readonly tasks: number;
|
|
9
|
-
readonly gates: number;
|
|
10
|
-
readonly errors: number;
|
|
11
|
-
readonly warnings: number;
|
|
12
|
-
}
|
|
13
|
-
export interface MilestoneDeadlineInput {
|
|
14
|
-
readonly milestoneId: string;
|
|
15
|
-
readonly deadline: TargetCalendarValue;
|
|
16
|
-
}
|
|
17
|
-
export interface TaskTemporalConstraint {
|
|
18
|
-
readonly taskId: string;
|
|
19
|
-
readonly notBefore: TargetCalendarValue | null;
|
|
20
|
-
readonly deadline: TargetCalendarValue | null;
|
|
21
|
-
}
|
|
22
|
-
export interface TemporalInputs {
|
|
23
|
-
readonly anchor: TargetCalendarValue | null;
|
|
24
|
-
readonly milestoneDeadlines: readonly MilestoneDeadlineInput[];
|
|
25
|
-
readonly taskConstraints: readonly TaskTemporalConstraint[];
|
|
26
|
-
}
|
|
27
|
-
export interface CheckResult {
|
|
28
|
-
readonly schemaVersion: "Perttool.CheckResult.v3";
|
|
29
|
-
readonly ok: boolean;
|
|
30
|
-
readonly document: DocumentNode;
|
|
31
|
-
readonly documentId: string | null;
|
|
32
|
-
readonly grammarVersion: number | null;
|
|
33
|
-
readonly diagnostics: readonly Diagnostic[];
|
|
34
|
-
readonly diagnosticsTruncated: boolean;
|
|
35
|
-
readonly summary: CheckSummary;
|
|
36
|
-
readonly temporalInputs: TemporalInputs | null;
|
|
37
|
-
readonly actualsInputs: ProjectActualsSourceModel | null;
|
|
38
|
-
}
|
|
39
|
-
export interface CheckOptions {
|
|
40
|
-
readonly maxDiagnostics?: number;
|
|
41
|
-
}
|
|
42
|
-
export declare function checkDocument(text: string, options?: CheckOptions): CheckResult;
|
|
1
|
+
export * from "../semantic/check.js";
|
|
43
2
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/application/check.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/application/check.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,110 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { fieldNamed } from "../model/syntax.js";
|
|
3
|
-
import { parseDocument } from "../parser/document-parser.js";
|
|
4
|
-
import { validateDocument } from "../semantic/validator.js";
|
|
5
|
-
import { projectDeclaredCalendarValue, } from "../model/target-calendar.js";
|
|
6
|
-
import { projectActualsSourceModel, } from "../actuals/source.js";
|
|
7
|
-
import { validateStoredLifecycleState, } from "../actuals/lifecycle.js";
|
|
8
|
-
import { TARGET_GRAMMAR_5_CAPABILITY, } from "../parser/document-parser.js";
|
|
9
|
-
import { validateTargetGrammar5Document, } from "../semantic/target-validator.js";
|
|
10
|
-
function temporalInputs(document, parseFailed) {
|
|
11
|
-
if (parseFailed)
|
|
12
|
-
return null;
|
|
13
|
-
const project = document.declarations.find((declaration) => declaration.kind === "project");
|
|
14
|
-
const anchorField = project === undefined
|
|
15
|
-
? undefined
|
|
16
|
-
: fieldNamed(project, "as_of");
|
|
17
|
-
const anchor = anchorField === undefined
|
|
18
|
-
? null
|
|
19
|
-
: projectDeclaredCalendarValue(anchorField.value);
|
|
20
|
-
if (anchorField !== undefined && anchor === null)
|
|
21
|
-
return null;
|
|
22
|
-
const milestoneDeadlines = [];
|
|
23
|
-
const taskConstraints = [];
|
|
24
|
-
for (const declaration of document.declarations) {
|
|
25
|
-
if (declaration.kind === "milestone") {
|
|
26
|
-
const deadlineField = fieldNamed(declaration, "deadline");
|
|
27
|
-
if (deadlineField === undefined)
|
|
28
|
-
continue;
|
|
29
|
-
const deadline = projectDeclaredCalendarValue(deadlineField.value);
|
|
30
|
-
if (deadline === null)
|
|
31
|
-
return null;
|
|
32
|
-
milestoneDeadlines.push({ milestoneId: declaration.id, deadline });
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
if (declaration.kind !== "task")
|
|
36
|
-
continue;
|
|
37
|
-
const notBeforeField = fieldNamed(declaration, "not_before");
|
|
38
|
-
const deadlineField = fieldNamed(declaration, "deadline");
|
|
39
|
-
if (notBeforeField === undefined && deadlineField === undefined)
|
|
40
|
-
continue;
|
|
41
|
-
const notBefore = notBeforeField === undefined
|
|
42
|
-
? null
|
|
43
|
-
: projectDeclaredCalendarValue(notBeforeField.value);
|
|
44
|
-
const deadline = deadlineField === undefined
|
|
45
|
-
? null
|
|
46
|
-
: projectDeclaredCalendarValue(deadlineField.value);
|
|
47
|
-
if ((notBeforeField !== undefined && notBefore === null) ||
|
|
48
|
-
(deadlineField !== undefined && deadline === null)) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
taskConstraints.push({
|
|
52
|
-
taskId: declaration.id,
|
|
53
|
-
notBefore,
|
|
54
|
-
deadline,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
return { anchor, milestoneDeadlines, taskConstraints };
|
|
58
|
-
}
|
|
59
|
-
export function checkDocument(text, options = {}) {
|
|
60
|
-
const maxDiagnostics = normalizeMaxDiagnostics(options.maxDiagnostics);
|
|
61
|
-
const parsed = parseDocument(text, { maxDiagnostics });
|
|
62
|
-
const semanticDiagnostics = validateDocument(parsed.document, parsed.diagnostics);
|
|
63
|
-
const target = validateTargetGrammar5Document(text, TARGET_GRAMMAR_5_CAPABILITY, { maxDiagnostics });
|
|
64
|
-
const lifecycleDiagnostics = target.ok && target.validatedDocument !== null
|
|
65
|
-
? validateStoredLifecycleState(target.validatedDocument)
|
|
66
|
-
: [];
|
|
67
|
-
const validatedDiagnostics = [
|
|
68
|
-
...semanticDiagnostics,
|
|
69
|
-
...lifecycleDiagnostics,
|
|
70
|
-
];
|
|
71
|
-
const limited = limitDiagnostics(validatedDiagnostics, maxDiagnostics);
|
|
72
|
-
const diagnostics = limited.diagnostics;
|
|
73
|
-
const parseFailed = parsed.diagnostics.some((diagnostic) => diagnostic.severity === "error");
|
|
74
|
-
const diagnosticCounts = parseFailed
|
|
75
|
-
? parsed.diagnosticCounts
|
|
76
|
-
: countDiagnostics(validatedDiagnostics);
|
|
77
|
-
const project = parsed.document.declarations.find((declaration) => declaration.kind === "project");
|
|
78
|
-
const version = project === undefined ? undefined : fieldNamed(project, "version")?.value;
|
|
79
|
-
const summary = {
|
|
80
|
-
resources: parseFailed
|
|
81
|
-
? 0
|
|
82
|
-
: parsed.document.declarations.filter((declaration) => declaration.kind === "resource").length,
|
|
83
|
-
milestones: parseFailed
|
|
84
|
-
? 0
|
|
85
|
-
: parsed.document.declarations.filter((declaration) => declaration.kind === "milestone").length,
|
|
86
|
-
tasks: parseFailed
|
|
87
|
-
? 0
|
|
88
|
-
: parsed.document.declarations.filter((declaration) => declaration.kind === "task").length,
|
|
89
|
-
gates: parseFailed
|
|
90
|
-
? 0
|
|
91
|
-
: parsed.document.declarations.filter((declaration) => declaration.kind === "gate").length,
|
|
92
|
-
errors: diagnosticCounts.errors,
|
|
93
|
-
warnings: diagnosticCounts.warnings,
|
|
94
|
-
};
|
|
95
|
-
return {
|
|
96
|
-
schemaVersion: "Perttool.CheckResult.v3",
|
|
97
|
-
ok: !hasErrors(validatedDiagnostics),
|
|
98
|
-
document: parsed.document,
|
|
99
|
-
documentId: project?.id ?? null,
|
|
100
|
-
grammarVersion: parseFailed ? null : typeof version === "number" ? version : 1,
|
|
101
|
-
diagnostics,
|
|
102
|
-
diagnosticsTruncated: parsed.diagnosticsTruncated || limited.truncated,
|
|
103
|
-
summary,
|
|
104
|
-
temporalInputs: temporalInputs(parsed.document, parseFailed),
|
|
105
|
-
actualsInputs: target.ok && target.validatedDocument !== null
|
|
106
|
-
? projectActualsSourceModel(target.validatedDocument)
|
|
107
|
-
: null,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
1
|
+
export * from "../semantic/check.js";
|
|
110
2
|
//# sourceMappingURL=check.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/application/check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/application/check.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { CreateDocumentOptions, DocumentWriteResult, ReplaceDocumentOptions } from "../io/safe-write.js";
|
|
2
|
+
import type { TargetGrammar6Capability } from "../parser/document-parser.js";
|
|
3
|
+
import type { NodeHostPorts } from "../ports/node-host.js";
|
|
4
|
+
import { analyzeDocument, checkDocument, selectNextTasks } from "./contract7-assurance.js";
|
|
5
|
+
import { planAdvance, planAssuranceMutation, planBatchMutation, planFinishActuals, planLifecycle, planMutation } from "./contract7-mutation.js";
|
|
6
|
+
import { getProjectMetadata, contract7ProjectResultToJson, renderContract7ProjectText } from "./contract7-project.js";
|
|
7
|
+
import { contract7InspectionResultToJson, contract7MutationResultToJson, contract7SnakeJson } from "./contract7-projection.js";
|
|
8
|
+
import { planFormat } from "./contract7-source.js";
|
|
9
|
+
import { planUnitMigration, withUnitMigrationWrite } from "./contract7-unit-migration.js";
|
|
10
|
+
import { contract6WorkEventToJson } from "./contract6-projection.js";
|
|
11
|
+
import { getAgentHelp } from "./agent-help.js";
|
|
12
|
+
import { renderAdvanceHistoryGuard } from "./advance-history.js";
|
|
13
|
+
import { planProjectInit, projectInitResultToJson, renderProjectInitResult, withProjectInitOutput } from "./init.js";
|
|
14
|
+
import { prepareTargetPlanAssuranceAdvanceHistory, withTargetPlanAssuranceAdvanceHistoryRace, type TargetPlanAssuranceAdvanceHistoryOptions, type TargetPlanAssuranceAdvanceResultV2WithHistory } from "./target-assurance-advance-history.js";
|
|
15
|
+
import { inspectTargetPlanAssurance } from "./target-assurance-inspection.js";
|
|
16
|
+
import { type TargetPlanAssurancePersistenceRequest, type TargetPlanAssuranceWritableResult } from "./target-assurance-write.js";
|
|
17
|
+
import { renderTargetGovernanceDecision } from "./target-governance-projection.js";
|
|
18
|
+
import { renderTargetProjectHistoryText, targetProjectHistoryResultToJson, type TargetProjectHistoryFileRequest } from "./target-project-history.js";
|
|
19
|
+
import { observeTargetProjectVelocity, renderTargetVelocityObservationText, targetVelocityObservationResultToJson } from "./target-velocity-observation.js";
|
|
20
|
+
import { renderTargetHistoricalGraphText, targetHistoricalGraphResultToJson, type HistoricalGraphGitEvidencePortV1, type HistoricalGraphRequestV1 } from "./target-historical-graph.js";
|
|
21
|
+
/**
|
|
22
|
+
* Constructs the CLI's protocol-neutral Application and Node-port boundary.
|
|
23
|
+
* The returned values are references to the established Application services;
|
|
24
|
+
* the wrappers only bind environmental work to the supplied Host ports.
|
|
25
|
+
*/
|
|
26
|
+
export declare function createCliApplicationFacade(host: NodeHostPorts, historicalGitEvidence?: HistoricalGraphGitEvidencePortV1): Readonly<{
|
|
27
|
+
hostModelVersion: 1;
|
|
28
|
+
analyzeDocument: typeof analyzeDocument;
|
|
29
|
+
checkDocument: typeof checkDocument;
|
|
30
|
+
selectNextTasks: typeof selectNextTasks;
|
|
31
|
+
planFormat: typeof planFormat;
|
|
32
|
+
planProjectInit: typeof planProjectInit;
|
|
33
|
+
projectInitResultToJson: typeof projectInitResultToJson;
|
|
34
|
+
renderProjectInitResult: typeof renderProjectInitResult;
|
|
35
|
+
withProjectInitOutput: typeof withProjectInitOutput;
|
|
36
|
+
planUnitMigration: typeof planUnitMigration;
|
|
37
|
+
withUnitMigrationWrite: typeof withUnitMigrationWrite;
|
|
38
|
+
getProjectMetadata: typeof getProjectMetadata;
|
|
39
|
+
contract7ProjectResultToJson: typeof contract7ProjectResultToJson;
|
|
40
|
+
renderContract7ProjectText: typeof renderContract7ProjectText;
|
|
41
|
+
planAdvance: typeof planAdvance;
|
|
42
|
+
planAssuranceMutation: typeof planAssuranceMutation;
|
|
43
|
+
planBatchMutation: typeof planBatchMutation;
|
|
44
|
+
planFinishActuals: typeof planFinishActuals;
|
|
45
|
+
planLifecycle: typeof planLifecycle;
|
|
46
|
+
planMutation: typeof planMutation;
|
|
47
|
+
renderTargetGovernanceDecision: typeof renderTargetGovernanceDecision;
|
|
48
|
+
contract7InspectionResultToJson: typeof contract7InspectionResultToJson;
|
|
49
|
+
contract7MutationResultToJson: typeof contract7MutationResultToJson;
|
|
50
|
+
contract7SnakeJson: typeof contract7SnakeJson;
|
|
51
|
+
contract6WorkEventToJson: typeof contract6WorkEventToJson;
|
|
52
|
+
renderAdvanceHistoryGuard: typeof renderAdvanceHistoryGuard;
|
|
53
|
+
prepareTargetPlanAssuranceAdvanceHistory: (text: string, result: Parameters<typeof prepareTargetPlanAssuranceAdvanceHistory>[1], capability: TargetGrammar6Capability, options: TargetPlanAssuranceAdvanceHistoryOptions) => Promise<import("./target-assurance-advance-history.js").PreparedTargetPlanAssuranceAdvanceHistory>;
|
|
54
|
+
withTargetPlanAssuranceAdvanceHistoryRace: typeof withTargetPlanAssuranceAdvanceHistoryRace;
|
|
55
|
+
persistTargetPlanAssuranceResult: (result: TargetPlanAssuranceWritableResult, capability: TargetGrammar6Capability, request: TargetPlanAssurancePersistenceRequest) => Promise<import("./target-assurance-write.js").TargetPlanAssuranceWriteProjection>;
|
|
56
|
+
inspectTargetPlanAssurance: typeof inspectTargetPlanAssurance;
|
|
57
|
+
inspectTargetProjectHistoryFile: (request: TargetProjectHistoryFileRequest, capability: TargetGrammar6Capability) => Promise<import("./target-project-history.js").TargetProjectHistoryResultV1>;
|
|
58
|
+
renderTargetProjectHistoryText: typeof renderTargetProjectHistoryText;
|
|
59
|
+
targetProjectHistoryResultToJson: typeof targetProjectHistoryResultToJson;
|
|
60
|
+
observeTargetProjectVelocity: typeof observeTargetProjectVelocity;
|
|
61
|
+
renderTargetVelocityObservationText: typeof renderTargetVelocityObservationText;
|
|
62
|
+
targetVelocityObservationResultToJson: typeof targetVelocityObservationResultToJson;
|
|
63
|
+
inspectTargetHistoricalGraphFile: (request: HistoricalGraphRequestV1) => Promise<import("./target-historical-graph.js").TargetHistoricalGraphResultV1>;
|
|
64
|
+
renderTargetHistoricalGraphText: typeof renderTargetHistoricalGraphText;
|
|
65
|
+
targetHistoricalGraphResultToJson: typeof targetHistoricalGraphResultToJson;
|
|
66
|
+
getAgentHelp: typeof getAgentHelp;
|
|
67
|
+
documentContentFromBytes: (bytes: Uint8Array) => Readonly<{
|
|
68
|
+
bytes: Uint8Array<ArrayBuffer>;
|
|
69
|
+
text: string;
|
|
70
|
+
digest: `sha256:${string}`;
|
|
71
|
+
}>;
|
|
72
|
+
readDocumentContent: (path: string) => Promise<Readonly<{
|
|
73
|
+
bytes: Uint8Array<ArrayBuffer>;
|
|
74
|
+
text: string;
|
|
75
|
+
digest: `sha256:${string}`;
|
|
76
|
+
}>>;
|
|
77
|
+
readBytes: (path: string) => Promise<Uint8Array>;
|
|
78
|
+
recheckAdvanceHistoryBaseline: (baseline: import("../history/git-probe.js").AdvanceHistoryBaselineCapture, targetPath: string, dependencies?: import("../history/git-probe.js").AdvanceHistoryBaselineDependencies) => Promise<import("../history/git-probe.js").AdvanceHistoryBaselineRecheck>;
|
|
79
|
+
createArtifactFile: (target: string, artifact: string, options?: import("../io/safe-write.js").CreateArtifactOptions) => Promise<DocumentWriteResult>;
|
|
80
|
+
createTargetGrammar6DocumentFile: (target: string, candidateText: string, capability: TargetGrammar6Capability, options?: CreateDocumentOptions) => Promise<DocumentWriteResult>;
|
|
81
|
+
replaceTargetGrammar6DocumentFile: (target: string, candidateText: string, capability: TargetGrammar6Capability, options: ReplaceDocumentOptions) => Promise<DocumentWriteResult>;
|
|
82
|
+
}>;
|
|
83
|
+
export type CliApplicationFacade = ReturnType<typeof createCliApplicationFacade>;
|
|
84
|
+
export type { TargetPlanAssuranceAdvanceResultV2WithHistory, };
|
|
85
|
+
//# sourceMappingURL=cli-facade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-facade.d.ts","sourceRoot":"","sources":["../../src/application/cli-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3D,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,UAAU,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAC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wB,YAC3B,qBAAqB,KAC7B,OAAO,CAAC,mBAAmB,CAAC;gDAOrB,MAAM,iBACC,MAAM,cACT,wBAAwB,WAC3B,sBAAsB,KAC9B,OAAO,CAAC,mBAAmB,CAAC;GAkGhC;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAC3C,OAAO,0BAA0B,CAClC,CAAC;AAEF,YAAY,EACV,6CAA6C,GAC9C,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { validateTargetGrammar6Document, } from "../semantic/target-validator.js";
|
|
2
|
+
import { analyzeDocument, checkDocument, selectNextTasks, } from "./contract7-assurance.js";
|
|
3
|
+
import { planAdvance, planAssuranceMutation, planBatchMutation, planFinishActuals, planLifecycle, planMutation, } from "./contract7-mutation.js";
|
|
4
|
+
import { getProjectMetadata, contract7ProjectResultToJson, renderContract7ProjectText, } from "./contract7-project.js";
|
|
5
|
+
import { contract7InspectionResultToJson, contract7MutationResultToJson, contract7SnakeJson, } from "./contract7-projection.js";
|
|
6
|
+
import { planFormat, } from "./contract7-source.js";
|
|
7
|
+
import { planUnitMigration, withUnitMigrationWrite, } from "./contract7-unit-migration.js";
|
|
8
|
+
import { contract6WorkEventToJson, } from "./contract6-projection.js";
|
|
9
|
+
import { getAgentHelp, } from "./agent-help.js";
|
|
10
|
+
import { renderAdvanceHistoryGuard, } from "./advance-history.js";
|
|
11
|
+
import { planProjectInit, projectInitResultToJson, renderProjectInitResult, withProjectInitOutput, } from "./init.js";
|
|
12
|
+
import { prepareTargetPlanAssuranceAdvanceHistory, withTargetPlanAssuranceAdvanceHistoryRace, } from "./target-assurance-advance-history.js";
|
|
13
|
+
import { inspectTargetPlanAssurance, } from "./target-assurance-inspection.js";
|
|
14
|
+
import { persistTargetPlanAssuranceResult, } from "./target-assurance-write.js";
|
|
15
|
+
import { renderTargetGovernanceDecision, } from "./target-governance-projection.js";
|
|
16
|
+
import { inspectTargetProjectHistoryFile, renderTargetProjectHistoryText, targetProjectHistoryResultToJson, } from "./target-project-history.js";
|
|
17
|
+
import { observeTargetProjectVelocity, renderTargetVelocityObservationText, targetVelocityObservationResultToJson, } from "./target-velocity-observation.js";
|
|
18
|
+
import { inspectTargetHistoricalGraphFile, renderTargetHistoricalGraphText, targetHistoricalGraphResultToJson, } from "./target-historical-graph.js";
|
|
19
|
+
function grammar6Validator(capability) {
|
|
20
|
+
return (text) => {
|
|
21
|
+
const checked = validateTargetGrammar6Document(text, capability);
|
|
22
|
+
return {
|
|
23
|
+
ok: checked.ok,
|
|
24
|
+
diagnostics: checked.diagnostics,
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function decodeDocumentBytes(host, bytes) {
|
|
29
|
+
const ownedBytes = new Uint8Array(bytes);
|
|
30
|
+
const decoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
31
|
+
return Object.freeze({
|
|
32
|
+
bytes: ownedBytes,
|
|
33
|
+
text: decoder.decode(ownedBytes),
|
|
34
|
+
digest: host.digest.sha256Bytes(ownedBytes),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Constructs the CLI's protocol-neutral Application and Node-port boundary.
|
|
39
|
+
* The returned values are references to the established Application services;
|
|
40
|
+
* the wrappers only bind environmental work to the supplied Host ports.
|
|
41
|
+
*/
|
|
42
|
+
export function createCliApplicationFacade(host, historicalGitEvidence) {
|
|
43
|
+
const readDocumentContent = async (path) => decodeDocumentBytes(host, await host.documentBytes.read(path));
|
|
44
|
+
const createTargetGrammar6Document = (target, candidateText, capability, options = {}) => host.safePersistence.createValidatedDocument(target, candidateText, grammar6Validator(capability), options);
|
|
45
|
+
const replaceTargetGrammar6Document = (target, candidateText, capability, options) => host.safePersistence.replaceValidatedDocument(target, candidateText, options, grammar6Validator(capability));
|
|
46
|
+
const inspectProjectHistoryFile = (request, capability) => inspectTargetProjectHistoryFile(request, capability, {}, host.gitEvidence.probeHistory);
|
|
47
|
+
const prepareAdvanceHistory = (text, result, capability, options) => prepareTargetPlanAssuranceAdvanceHistory(text, result, capability, {
|
|
48
|
+
...options,
|
|
49
|
+
captureBaseline: host.gitEvidence.captureAdvanceBaseline,
|
|
50
|
+
});
|
|
51
|
+
const persistPlanAssuranceResult = (result, capability, request) => persistTargetPlanAssuranceResult(result, capability, request, host.safePersistence);
|
|
52
|
+
const inspectHistoricalGraphFile = (request) => {
|
|
53
|
+
if (historicalGitEvidence === undefined) {
|
|
54
|
+
throw new Error("historical Git evidence Host is unavailable");
|
|
55
|
+
}
|
|
56
|
+
return inspectTargetHistoricalGraphFile(request, historicalGitEvidence);
|
|
57
|
+
};
|
|
58
|
+
return Object.freeze({
|
|
59
|
+
hostModelVersion: host.modelVersion,
|
|
60
|
+
analyzeDocument,
|
|
61
|
+
checkDocument,
|
|
62
|
+
selectNextTasks,
|
|
63
|
+
planFormat,
|
|
64
|
+
planProjectInit,
|
|
65
|
+
projectInitResultToJson,
|
|
66
|
+
renderProjectInitResult,
|
|
67
|
+
withProjectInitOutput,
|
|
68
|
+
planUnitMigration,
|
|
69
|
+
withUnitMigrationWrite,
|
|
70
|
+
getProjectMetadata,
|
|
71
|
+
contract7ProjectResultToJson,
|
|
72
|
+
renderContract7ProjectText,
|
|
73
|
+
planAdvance,
|
|
74
|
+
planAssuranceMutation,
|
|
75
|
+
planBatchMutation,
|
|
76
|
+
planFinishActuals,
|
|
77
|
+
planLifecycle,
|
|
78
|
+
planMutation,
|
|
79
|
+
renderTargetGovernanceDecision,
|
|
80
|
+
contract7InspectionResultToJson,
|
|
81
|
+
contract7MutationResultToJson,
|
|
82
|
+
contract7SnakeJson,
|
|
83
|
+
contract6WorkEventToJson,
|
|
84
|
+
renderAdvanceHistoryGuard,
|
|
85
|
+
prepareTargetPlanAssuranceAdvanceHistory: prepareAdvanceHistory,
|
|
86
|
+
withTargetPlanAssuranceAdvanceHistoryRace,
|
|
87
|
+
persistTargetPlanAssuranceResult: persistPlanAssuranceResult,
|
|
88
|
+
inspectTargetPlanAssurance,
|
|
89
|
+
inspectTargetProjectHistoryFile: inspectProjectHistoryFile,
|
|
90
|
+
renderTargetProjectHistoryText,
|
|
91
|
+
targetProjectHistoryResultToJson,
|
|
92
|
+
observeTargetProjectVelocity,
|
|
93
|
+
renderTargetVelocityObservationText,
|
|
94
|
+
targetVelocityObservationResultToJson,
|
|
95
|
+
inspectTargetHistoricalGraphFile: inspectHistoricalGraphFile,
|
|
96
|
+
renderTargetHistoricalGraphText,
|
|
97
|
+
targetHistoricalGraphResultToJson,
|
|
98
|
+
getAgentHelp,
|
|
99
|
+
documentContentFromBytes: (bytes) => decodeDocumentBytes(host, bytes),
|
|
100
|
+
readDocumentContent,
|
|
101
|
+
readBytes: host.documentBytes.read,
|
|
102
|
+
recheckAdvanceHistoryBaseline: host.gitEvidence.recheckAdvanceBaseline,
|
|
103
|
+
createArtifactFile: host.safePersistence.createArtifact,
|
|
104
|
+
createTargetGrammar6DocumentFile: createTargetGrammar6Document,
|
|
105
|
+
replaceTargetGrammar6DocumentFile: replaceTargetGrammar6Document,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=cli-facade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-facade.js","sourceRoot":"","sources":["../../src/application/cli-facade.ts"],"names":[],"mappings":"AASA,OAAO,EACL,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAC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C9C,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC;QAClC,mBAAmB;QACnB,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;QAClC,6BAA6B,EAAE,IAAI,CAAC,WAAW,CAAC,sBAAsB;QACtE,kBAAkB,EAAE,IAAI,CAAC,eAAe,CAAC,cAAc;QACvD,gCAAgC,EAAE,4BAA4B;QAC9D,iCAAiC,EAAE,6BAA6B;KACjE,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sha256DigestUtf8 } from "../model/sha256.js";
|
|
2
2
|
import { actualsDiagnostic, validateStoredLifecycleState, } from "../actuals/lifecycle.js";
|
|
3
3
|
import { projectActualsSourceModel, } from "../actuals/source.js";
|
|
4
4
|
import { classifyGovernanceScopes, evaluateGovernanceAuthority, governanceDecisionDiagnostics, normalizeGovernanceRequest, } from "../governance/authority.js";
|
|
@@ -11,7 +11,7 @@ import { withPreviewAdvanceHistory, } from "./advance-history.js";
|
|
|
11
11
|
import { planTargetFinishActualsMutation, planTargetLifecycleMutation, } from "./target-actuals-mutation.js";
|
|
12
12
|
import { planTargetGrammar5BatchMutation, planTargetGrammar5Mutation, } from "./target-mutate.js";
|
|
13
13
|
function digest(text) {
|
|
14
|
-
return
|
|
14
|
+
return sha256DigestUtf8(text);
|
|
15
15
|
}
|
|
16
16
|
function mutationOptions(options) {
|
|
17
17
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract6-mutation.js","sourceRoot":"","sources":["../../src/application/contract6-mutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"contract6-mutation.js","sourceRoot":"","sources":["../../src/application/contract6-mutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,4BAA4B,GAG7B,MAAM,yBAAyB,CAA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U,YAAY,CAC1B,IAAY,EACZ,QAAkB,EAClB,OAAO,GAAiC,EAAE;IAE1C,OAAO,YAAY,CACjB,IAAI,EACJ,QAAoC,EACpC,KAAK,EACL,OAAO,CACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,QAAuB,EACvB,OAAO,GAAiC,EAAE;IAE1C,OAAO,YAAY,CACjB,IAAI,EACJ,QAAyC,EACzC,IAAI,EACJ,OAAO,CACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CACzB,IAAY,EACZ,OAAO,GAAiC,EAAE;IAE1C,OAAO,yBAAyB,CAC9B,IAAI,EACJ,wBAAwB,CACtB,IAAI,EACJ,2BAA2B,EAC3B,OAAO,CACR,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,IAAY,EACZ,QAA2B,EAC3B,OAAO,GAAiC,EAAE;IAE1C,OAAO,2BAA2B,CAChC,IAAI,EACJ,QAAQ,EACR,2BAA2B,EAC3B,OAAO,CACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,QAA+B,EAC/B,OAAO,GAAiC,EAAE;IAE1C,OAAO,+BAA+B,CACpC,IAAI,EACJ,QAAQ,EACR,2BAA2B,EAC3B,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract7-mermaid.d.ts","sourceRoot":"","sources":["../../src/application/contract7-mermaid.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"contract7-mermaid.d.ts","sourceRoot":"","sources":["../../src/application/contract7-mermaid.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,iCAAiC,CAAC;AAQzC,MAAM,WAAW,6BAA8B,SAAQ,oBAAoB;IACzE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAQD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,6BAAkC,GAC1C,mBAAmB,CAuCrB;AAQD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,oBAAyB,GACjC,mBAAmB,CA0BrB;AAED,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,GACpB,CAAC"}
|