perttool 0.6.0 → 0.7.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 +56 -1
- package/README.md +113 -33
- package/dist/application/advance-history.d.ts +2 -0
- package/dist/application/advance-history.d.ts.map +1 -1
- package/dist/application/advance-history.js +21 -12
- package/dist/application/advance-history.js.map +1 -1
- package/dist/application/contract7-assurance.d.ts +57 -0
- package/dist/application/contract7-assurance.d.ts.map +1 -0
- package/dist/application/contract7-assurance.js +248 -0
- package/dist/application/contract7-assurance.js.map +1 -0
- package/dist/application/contract7-mermaid.d.ts +9 -0
- package/dist/application/contract7-mermaid.d.ts.map +1 -0
- package/dist/application/contract7-mermaid.js +73 -0
- package/dist/application/contract7-mermaid.js.map +1 -0
- package/dist/application/contract7-mutation.d.ts +21 -0
- package/dist/application/contract7-mutation.d.ts.map +1 -0
- package/dist/application/contract7-mutation.js +181 -0
- package/dist/application/contract7-mutation.js.map +1 -0
- package/dist/application/contract7-project.d.ts +10 -0
- package/dist/application/contract7-project.d.ts.map +1 -0
- package/dist/application/contract7-project.js +29 -0
- package/dist/application/contract7-project.js.map +1 -0
- package/dist/application/contract7-projection.d.ts +9 -0
- package/dist/application/contract7-projection.d.ts.map +1 -0
- package/dist/application/contract7-projection.js +100 -0
- package/dist/application/contract7-projection.js.map +1 -0
- package/dist/application/contract7-source.d.ts +24 -0
- package/dist/application/contract7-source.d.ts.map +1 -0
- package/dist/application/contract7-source.js +54 -0
- package/dist/application/contract7-source.js.map +1 -0
- package/dist/application/contract7-unit-migration.d.ts +13 -0
- package/dist/application/contract7-unit-migration.d.ts.map +1 -0
- package/dist/application/contract7-unit-migration.js +13 -0
- package/dist/application/contract7-unit-migration.js.map +1 -0
- package/dist/application/init.d.ts +1 -1
- package/dist/application/init.js +3 -3
- package/dist/application/mutate.d.ts +5 -1
- package/dist/application/mutate.d.ts.map +1 -1
- package/dist/application/mutate.js +2 -2
- package/dist/application/mutate.js.map +1 -1
- package/dist/application/target-actuals-analysis.d.ts +5 -4
- package/dist/application/target-actuals-analysis.d.ts.map +1 -1
- package/dist/application/target-actuals-analysis.js +18 -11
- package/dist/application/target-actuals-analysis.js.map +1 -1
- package/dist/application/target-actuals-mutation.d.ts +5 -3
- package/dist/application/target-actuals-mutation.d.ts.map +1 -1
- package/dist/application/target-actuals-mutation.js +16 -8
- package/dist/application/target-actuals-mutation.js.map +1 -1
- package/dist/application/target-assurance-advance-history.d.ts +19 -0
- package/dist/application/target-assurance-advance-history.d.ts.map +1 -0
- package/dist/application/target-assurance-advance-history.js +61 -0
- package/dist/application/target-assurance-advance-history.js.map +1 -0
- package/dist/application/target-assurance-analysis.d.ts +34 -0
- package/dist/application/target-assurance-analysis.d.ts.map +1 -0
- package/dist/application/target-assurance-analysis.js +103 -0
- package/dist/application/target-assurance-analysis.js.map +1 -0
- package/dist/application/target-assurance-inspection.d.ts +38 -0
- package/dist/application/target-assurance-inspection.d.ts.map +1 -0
- package/dist/application/target-assurance-inspection.js +356 -0
- package/dist/application/target-assurance-inspection.js.map +1 -0
- package/dist/application/target-assurance-write.d.ts +22 -0
- package/dist/application/target-assurance-write.d.ts.map +1 -0
- package/dist/application/target-assurance-write.js +73 -0
- package/dist/application/target-assurance-write.js.map +1 -0
- package/dist/application/target-governance-init.d.ts +3 -3
- package/dist/application/target-governance-init.d.ts.map +1 -1
- package/dist/application/target-governance-init.js +14 -10
- package/dist/application/target-governance-init.js.map +1 -1
- package/dist/application/target-governance-project.d.ts +6 -4
- package/dist/application/target-governance-project.d.ts.map +1 -1
- package/dist/application/target-governance-project.js +18 -4
- package/dist/application/target-governance-project.js.map +1 -1
- package/dist/application/target-mutate.d.ts +7 -1
- package/dist/application/target-mutate.d.ts.map +1 -1
- package/dist/application/target-mutate.js +50 -3
- package/dist/application/target-mutate.js.map +1 -1
- package/dist/application/target-project-history.d.ts +4 -4
- package/dist/application/target-project-history.d.ts.map +1 -1
- package/dist/application/target-project-history.js +2 -2
- package/dist/application/target-project-history.js.map +1 -1
- package/dist/application/target-unit-migration-candidate.d.ts +29 -6
- package/dist/application/target-unit-migration-candidate.d.ts.map +1 -1
- package/dist/application/target-unit-migration-candidate.js +204 -3
- package/dist/application/target-unit-migration-candidate.js.map +1 -1
- package/dist/application/target-unit-migration-result.d.ts +2 -2
- package/dist/application/target-unit-migration-result.d.ts.map +1 -1
- package/dist/application/target-unit-migration-result.js +4 -2
- package/dist/application/target-unit-migration-result.js.map +1 -1
- package/dist/application/target-velocity-observation.d.ts +1 -1
- package/dist/application/target-velocity-observation.js +1 -1
- package/dist/assurance/advance.d.ts +45 -0
- package/dist/assurance/advance.d.ts.map +1 -0
- package/dist/assurance/advance.js +507 -0
- package/dist/assurance/advance.js.map +1 -0
- package/dist/assurance/authority.d.ts +86 -0
- package/dist/assurance/authority.d.ts.map +1 -0
- package/dist/assurance/authority.js +269 -0
- package/dist/assurance/authority.js.map +1 -0
- package/dist/assurance/canonical.d.ts +13 -0
- package/dist/assurance/canonical.d.ts.map +1 -0
- package/dist/assurance/canonical.js +320 -0
- package/dist/assurance/canonical.js.map +1 -0
- package/dist/assurance/compatibility.d.ts +62 -0
- package/dist/assurance/compatibility.d.ts.map +1 -0
- package/dist/assurance/compatibility.js +163 -0
- package/dist/assurance/compatibility.js.map +1 -0
- package/dist/assurance/evaluate.d.ts +4 -0
- package/dist/assurance/evaluate.d.ts.map +1 -0
- package/dist/assurance/evaluate.js +631 -0
- package/dist/assurance/evaluate.js.map +1 -0
- package/dist/assurance/governance.d.ts +42 -0
- package/dist/assurance/governance.d.ts.map +1 -0
- package/dist/assurance/governance.js +95 -0
- package/dist/assurance/governance.js.map +1 -0
- package/dist/assurance/mermaid.d.ts +40 -0
- package/dist/assurance/mermaid.d.ts.map +1 -0
- package/dist/assurance/mermaid.js +401 -0
- package/dist/assurance/mermaid.js.map +1 -0
- package/dist/assurance/mutation.d.ts +96 -0
- package/dist/assurance/mutation.d.ts.map +1 -0
- package/dist/assurance/mutation.js +757 -0
- package/dist/assurance/mutation.js.map +1 -0
- package/dist/assurance/source.d.ts +20 -0
- package/dist/assurance/source.d.ts.map +1 -0
- package/dist/assurance/source.js +313 -0
- package/dist/assurance/source.js.map +1 -0
- package/dist/assurance/types.d.ts +166 -0
- package/dist/assurance/types.d.ts.map +1 -0
- package/dist/assurance/types.js +3 -0
- package/dist/assurance/types.js.map +1 -0
- package/dist/cli.js +356 -60
- package/dist/cli.js.map +1 -1
- package/dist/command/assurance-discovery.d.ts +17 -0
- package/dist/command/assurance-discovery.d.ts.map +1 -0
- package/dist/command/assurance-discovery.js +297 -0
- package/dist/command/assurance-discovery.js.map +1 -0
- package/dist/command/assurance-usage.d.ts +20 -0
- package/dist/command/assurance-usage.d.ts.map +1 -0
- package/dist/command/assurance-usage.js +66 -0
- package/dist/command/assurance-usage.js.map +1 -0
- package/dist/conversion/mermaid.d.ts +2 -1
- package/dist/conversion/mermaid.d.ts.map +1 -1
- package/dist/conversion/mermaid.js +2 -2
- package/dist/conversion/mermaid.js.map +1 -1
- 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 +56 -4
- package/dist/formatter/source-formatter.js.map +1 -1
- package/dist/formatter/target-source-formatter.d.ts +2 -1
- package/dist/formatter/target-source-formatter.d.ts.map +1 -1
- package/dist/formatter/target-source-formatter.js +18 -2
- package/dist/formatter/target-source-formatter.js.map +1 -1
- package/dist/help/assurance-guide.d.ts +10 -0
- package/dist/help/assurance-guide.d.ts.map +1 -0
- package/dist/help/assurance-guide.js +227 -0
- package/dist/help/assurance-guide.js.map +1 -0
- package/dist/help/guide.d.ts +1 -1
- package/dist/help/guide.d.ts.map +1 -1
- package/dist/history/advance-history.d.ts +4 -2
- package/dist/history/advance-history.d.ts.map +1 -1
- package/dist/history/advance-history.js +47 -1
- package/dist/history/advance-history.js.map +1 -1
- package/dist/history/project-history.d.ts +14 -5
- package/dist/history/project-history.d.ts.map +1 -1
- package/dist/history/project-history.js +27 -20
- package/dist/history/project-history.js.map +1 -1
- package/dist/history/velocity-observation.js +1 -1
- package/dist/history/velocity-observation.js.map +1 -1
- package/dist/index.d.ts +31 -27
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -15
- package/dist/index.js.map +1 -1
- package/dist/io/target-safe-write.d.ts +4 -1
- package/dist/io/target-safe-write.d.ts.map +1 -1
- package/dist/io/target-safe-write.js +19 -1
- package/dist/io/target-safe-write.js.map +1 -1
- package/dist/migration/grammar-boundary.d.ts +1 -1
- package/dist/migration/grammar-boundary.d.ts.map +1 -1
- package/dist/migration/grammar-boundary.js +7 -3
- package/dist/migration/grammar-boundary.js.map +1 -1
- package/dist/model/declaration-fields.d.ts +12 -0
- package/dist/model/declaration-fields.d.ts.map +1 -1
- package/dist/model/declaration-fields.js +45 -0
- package/dist/model/declaration-fields.js.map +1 -1
- package/dist/model/syntax.d.ts +17 -1
- package/dist/model/syntax.d.ts.map +1 -1
- package/dist/model/syntax.js.map +1 -1
- package/dist/mutation/actuals.js +1 -1
- package/dist/mutation/actuals.js.map +1 -1
- package/dist/mutation/advance.d.ts +18 -1
- package/dist/mutation/advance.d.ts.map +1 -1
- package/dist/mutation/advance.js +20 -0
- package/dist/mutation/advance.js.map +1 -1
- package/dist/mutation/project.d.ts +2 -1
- package/dist/mutation/project.d.ts.map +1 -1
- package/dist/mutation/project.js +21 -0
- package/dist/mutation/project.js.map +1 -1
- package/dist/parser/document-parser.d.ts +7 -0
- package/dist/parser/document-parser.d.ts.map +1 -1
- package/dist/parser/document-parser.js +227 -12
- package/dist/parser/document-parser.js.map +1 -1
- package/dist/recommendation/override-types.d.ts +2 -2
- package/dist/recommendation/override.d.ts +2 -2
- package/dist/recommendation/override.d.ts.map +1 -1
- package/dist/recommendation/override.js +13 -5
- package/dist/recommendation/override.js.map +1 -1
- package/dist/schema/registry.d.ts +1 -1
- package/dist/schema/registry.d.ts.map +1 -1
- package/dist/schema/registry.js +8 -7
- package/dist/schema/registry.js.map +1 -1
- package/dist/semantic/target-validator.d.ts +12 -1
- package/dist/semantic/target-validator.d.ts.map +1 -1
- package/dist/semantic/target-validator.js +47 -2
- package/dist/semantic/target-validator.js.map +1 -1
- package/dist/semantic/validator.d.ts +1 -0
- package/dist/semantic/validator.d.ts.map +1 -1
- package/dist/semantic/validator.js +304 -0
- package/dist/semantic/validator.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schemas/{Perttool.AdvanceResult.v1.schema.json → Perttool.AdvanceResult.v2.schema.json} +85 -5
- package/schemas/Perttool.AgentGuidanceResult.v1.schema.json +1 -1
- package/schemas/{Perttool.AnalysisResult.v4.schema.json → Perttool.AnalysisResult.v5.schema.json} +10 -6
- package/schemas/{Perttool.CheckResult.v3.schema.json → Perttool.CheckResult.v4.schema.json} +14 -6
- package/schemas/Perttool.CliError.v1.schema.json +1 -1
- package/schemas/Perttool.CommandHelpResult.v1.schema.json +2 -2
- package/schemas/Perttool.Common.v1.schema.json +300 -4
- package/schemas/Perttool.ExportResult.v1.schema.json +1 -1
- package/schemas/Perttool.FormatResult.v1.schema.json +1 -1
- package/schemas/Perttool.GuideResult.v1.schema.json +1 -1
- package/schemas/Perttool.ImportResult.v1.schema.json +1 -1
- package/schemas/Perttool.InitResult.v1.schema.json +1 -1
- package/schemas/{Perttool.MutationResult.v3.schema.json → Perttool.MutationResult.v4.schema.json} +16 -5
- package/schemas/{Perttool.NextResult.v5.schema.json → Perttool.NextResult.v6.schema.json} +53 -8
- package/schemas/Perttool.OverrideDecision.v1.schema.json +1 -1
- package/schemas/Perttool.PlanAssuranceResult.v1.schema.json +77 -0
- package/schemas/Perttool.ProjectHistoryResult.v1.schema.json +1 -1
- package/schemas/{Perttool.ProjectResult.v3.schema.json → Perttool.ProjectResult.v4.schema.json} +15 -7
- package/schemas/Perttool.SchemaResult.v1.schema.json +1 -1
- package/schemas/Perttool.UnitMigrationResult.v3.schema.json +5 -3
- package/schemas/Perttool.VelocityObservationResult.v1.schema.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,59 @@ This project records its notable changes here. The format is based on [Keep a Ch
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.7.1] - 2026-08-05
|
|
8
|
+
|
|
9
|
+
Compatible Grammar 6 and CLI Contract 7 beta patch. This version corrects
|
|
10
|
+
installed Help, Guide, and diagnostic navigation without changing command,
|
|
11
|
+
option, result, schema, payload-structure, package-root, or authority
|
|
12
|
+
identities.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Corrected the active Guide to state Grammar 6, AnalysisResult v5,
|
|
17
|
+
NextResult v6, and the combined release, temporal, and plan-assurance start
|
|
18
|
+
authority directly while preserving additive version history.
|
|
19
|
+
- Made every registered Help example pass active argument validation,
|
|
20
|
+
including complete operands and required options for all eight assurance
|
|
21
|
+
mutation commands.
|
|
22
|
+
- Made every literal runtime diagnostic topic resolvable, specified and
|
|
23
|
+
directly tested `PTCNV-210`, and added bounded reciprocal navigation for
|
|
24
|
+
the plan-assurance Guide topic.
|
|
25
|
+
- Reconciled current and historical documentation labels without rewriting
|
|
26
|
+
time-bound release evidence.
|
|
27
|
+
|
|
28
|
+
## [0.7.0] - 2026-08-04
|
|
29
|
+
|
|
30
|
+
Grammar 6 and CLI Contract 7 beta minor. This version adds conditional plan
|
|
31
|
+
assurance as a semantic SHA-256 commitment chain while preserving Grammar 1
|
|
32
|
+
through 5 compatibility.
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- Added Grammar 6 plan-assurance declarations, default `both`, explicit
|
|
37
|
+
`planning_only` and `execution_only` relations, component seals, outcome
|
|
38
|
+
commitments, frontier receipts, complete cause paths, and fixed semantic
|
|
39
|
+
hash vectors that exclude lifecycle status and non-semantic trivia.
|
|
40
|
+
- Added ten preview-first assurance commands for inspection, scalar hash
|
|
41
|
+
lookup, sealing, selected resealing, planning-dependency maintenance, and
|
|
42
|
+
task-outcome maintenance.
|
|
43
|
+
- Added `Perttool.PlanAssuranceResult.v1`, complete Draft 2020-12 schemas for
|
|
44
|
+
all 20 result roots, package-root assurance APIs, Contract 7 help and Guide
|
|
45
|
+
projections, and Mermaid semantic profile 2 round trips.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- Changed the public boundary atomically to CLI Contract 7 and the
|
|
50
|
+
assurance-aware `Perttool.CheckResult.v4`, `Perttool.ProjectResult.v4`,
|
|
51
|
+
`Perttool.AnalysisResult.v5`, `Perttool.NextResult.v6`,
|
|
52
|
+
`Perttool.MutationResult.v4`, `Perttool.AdvanceResult.v2`, and nested
|
|
53
|
+
`Perttool.GovernanceDecision.v2` identities.
|
|
54
|
+
- Changed normal new-task authority to fail closed when an enabled assurance
|
|
55
|
+
chain is unknown, unsealed, or mismatched. Raw recommendation ranking remains
|
|
56
|
+
available separately from the authoritative startable set.
|
|
57
|
+
- Changed `dag advance` to compose history-loss protection independently with
|
|
58
|
+
assurance validation, contraction, and exact frontier-receipt rebuilding.
|
|
59
|
+
|
|
7
60
|
## [0.6.0] - 2026-07-31
|
|
8
61
|
|
|
9
62
|
Grammar 5 and CLI Contract 6 beta minor. This version protects destructive
|
|
@@ -335,7 +388,9 @@ First public development preview. Intended to evaluate the DSL and CLI, read-onl
|
|
|
335
388
|
- Not published to the npm registry; use the GitHub Release asset
|
|
336
389
|
- Requires Node.js 24 or later
|
|
337
390
|
|
|
338
|
-
[Unreleased]: https://github.com/mako10k/perttool/compare/v0.
|
|
391
|
+
[Unreleased]: https://github.com/mako10k/perttool/compare/v0.7.1...HEAD
|
|
392
|
+
[0.7.1]: https://github.com/mako10k/perttool/compare/v0.7.0...v0.7.1
|
|
393
|
+
[0.7.0]: https://github.com/mako10k/perttool/compare/v0.6.0...v0.7.0
|
|
339
394
|
[0.6.0]: https://github.com/mako10k/perttool/compare/v0.5.5...v0.6.0
|
|
340
395
|
[0.5.5]: https://github.com/mako10k/perttool/compare/v0.5.4...v0.5.5
|
|
341
396
|
[0.5.4]: https://github.com/mako10k/perttool/compare/v0.5.3...v0.5.4
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ It validates an Activity-on-Arrow plan, calculates precedence and
|
|
|
5
5
|
resource-constrained schedules, recommends the next task, and applies
|
|
6
6
|
source-preserving changes through preview-first commands.
|
|
7
7
|
|
|
8
|
-
Version `0.6.0`
|
|
8
|
+
Version `0.6.0` implements Grammar 5 and CLI Contract 6,
|
|
9
9
|
including explicit task work events, lifecycle commands, read-only Git
|
|
10
10
|
history, observed velocity, AnalysisResult v4, and NextResult v5. It adds
|
|
11
11
|
complete Draft 2020-12 artifacts for every active Contract 6 result and the
|
|
@@ -16,9 +16,24 @@ governance-not-applicable candidate and when a governed preview already
|
|
|
16
16
|
carries one. It also protects destructive in-place `dag advance` writes with
|
|
17
17
|
exact `HEAD` and stage-0 evidence, returns `Perttool.AdvanceResult.v1`, and
|
|
18
18
|
keeps preview, separate output, and written candidates repository-clean and
|
|
19
|
-
byte-identical.
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
byte-identical. It remains available as the exact Contract 6 compatibility
|
|
20
|
+
pin `perttool@0.6.0`.
|
|
21
|
+
Beta releases may contain breaking CLI or schema changes.
|
|
22
|
+
|
|
23
|
+
Version `0.7.0` beta atomically activates Grammar 6 and CLI Contract 7
|
|
24
|
+
conditional plan assurance. It exposes 44 commands, 20 root schemas,
|
|
25
|
+
`Perttool.PlanAssuranceResult.v1`, assurance-aware Check/Project/Analysis/Next/
|
|
26
|
+
Mutation/Advance results, `Perttool.GovernanceDecision.v2`, and Mermaid
|
|
27
|
+
semantic profile 2. Its package and CLI identity is `0.7.0`. At its publication
|
|
28
|
+
boundary, this release does not move npm `latest` from Contract 6 `0.6.0`;
|
|
29
|
+
one separately authorized post-publication operation later made
|
|
30
|
+
`beta=latest=0.7.0`. These Contract 6 and Contract 7 releases require Node.js
|
|
31
|
+
22 or later.
|
|
32
|
+
Version `0.7.1` is a backward-compatible Contract 7 patch that corrects the
|
|
33
|
+
installed Guide, command Help examples, and diagnostic navigation. It retains
|
|
34
|
+
all 44 command paths, 20 root schemas, result and payload identities,
|
|
35
|
+
package-root exports, and authority policies. Its beta publication does not
|
|
36
|
+
move npm `latest`; `0.7.0` remains the exact rollback pin.
|
|
22
37
|
The complete-schema Contract 6 artifact remains available by pinning `0.5.2`,
|
|
23
38
|
and the first machine-schema Contract 6 artifact remains available by pinning
|
|
24
39
|
`0.5.1`; Contract 5, Contract 4, and Contract 3 remain available by pinning
|
|
@@ -27,42 +42,47 @@ dist-tag; historical `0.1.0-alpha.2` remains available by exact pin.
|
|
|
27
42
|
|
|
28
43
|
## Run without installing
|
|
29
44
|
|
|
30
|
-
|
|
45
|
+
After beta publication, use `npx` for an occasional Contract 7 invocation and
|
|
46
|
+
select the version explicitly:
|
|
31
47
|
|
|
32
48
|
```sh
|
|
33
|
-
npx --yes --package=perttool@0.
|
|
34
|
-
npx --yes --package=perttool@0.
|
|
35
|
-
npx --yes --package=perttool@0.
|
|
36
|
-
npx --yes --package=perttool@0.
|
|
49
|
+
npx --yes --package=perttool@0.7.1 -- perttool --version
|
|
50
|
+
npx --yes --package=perttool@0.7.1 -- perttool document check PLAN.pert
|
|
51
|
+
npx --yes --package=perttool@0.7.1 -- perttool dag next PLAN.pert --format json
|
|
52
|
+
npx --yes --package=perttool@0.7.1 -- perttool plan-assurance show PLAN.pert --format json
|
|
37
53
|
```
|
|
38
54
|
|
|
39
55
|
The equivalent explicit `npm exec` form is:
|
|
40
56
|
|
|
41
57
|
```sh
|
|
42
|
-
npm exec --yes --package=perttool@0.
|
|
43
|
-
npm exec --yes --package=perttool@0.
|
|
44
|
-
npm exec --yes --package=perttool@0.
|
|
45
|
-
npm exec --yes --package=perttool@0.
|
|
58
|
+
npm exec --yes --package=perttool@0.7.1 -- perttool --version
|
|
59
|
+
npm exec --yes --package=perttool@0.7.1 -- perttool document check PLAN.pert
|
|
60
|
+
npm exec --yes --package=perttool@0.7.1 -- perttool dag analyze PLAN.pert
|
|
61
|
+
npm exec --yes --package=perttool@0.7.1 -- perttool plan-assurance hash PLAN.pert WORK --kind contract
|
|
46
62
|
```
|
|
47
63
|
|
|
48
64
|
`npx` and `npm exec` may download the selected package version into the npm
|
|
49
|
-
cache. Pinning `0.
|
|
50
|
-
|
|
65
|
+
cache. Pinning `0.6.0` selects Contract 6 and omits Grammar 6 assurance;
|
|
66
|
+
`0.4.0` selects Contract 5, `0.3.0` selects Contract 4, and `0.2.0` selects
|
|
51
67
|
Contract 3.
|
|
52
68
|
|
|
53
69
|
## Install
|
|
54
70
|
|
|
55
|
-
Install the CLI globally when it is used
|
|
71
|
+
Install the corrected Contract 7 CLI globally by exact version when it is used
|
|
72
|
+
regularly:
|
|
56
73
|
|
|
57
74
|
```sh
|
|
58
|
-
npm install --global perttool
|
|
75
|
+
npm install --global perttool@0.7.1
|
|
59
76
|
perttool --version
|
|
60
77
|
```
|
|
61
78
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
`
|
|
79
|
+
The `0.7.1` release procedure publishes only npm `beta` and leaves the
|
|
80
|
+
independently managed `latest` tag at `0.7.0`. Use the exact `0.7.1` pin for
|
|
81
|
+
the corrected Guide and Help behavior; an unqualified installation remains on
|
|
82
|
+
`0.7.0` unless a later, separately authorized promotion changes `latest`.
|
|
83
|
+
Contract 6 remains available by exact pinning `perttool@0.6.0`; the pre-schema
|
|
84
|
+
Contract 6 artifact remains available as
|
|
85
|
+
`perttool@0.5.0`. Contract 5,
|
|
66
86
|
Contract 4, and Contract 3 remain available as exact pins
|
|
67
87
|
`perttool@0.4.0`, `perttool@0.3.0`, and `perttool@0.2.0`. The retired alpha
|
|
68
88
|
preview remains installable only as the exact pin
|
|
@@ -111,6 +131,8 @@ the exact point result and reports the time conversion separately as a velocity
|
|
|
111
131
|
forecast. Grammar version 3 also accepts an exact Fraction such as `1/3d`;
|
|
112
132
|
versions 1 and 2 continue to accept Decimal duration tokens. Grammar version 5
|
|
113
133
|
adds explicit task-owned work events and the `suspended` lifecycle state.
|
|
134
|
+
Grammar version 6 adds conditional plan assurance records and the separate
|
|
135
|
+
planning-dependency modes `both`, `execution_only`, and `planning_only`.
|
|
114
136
|
|
|
115
137
|
## Maintain a plan through the CLI
|
|
116
138
|
|
|
@@ -168,7 +190,7 @@ file. A changed in-place `dag advance` additionally verifies removed or
|
|
|
168
190
|
replaced entity ranges against the target path in Git `HEAD` and the stage-0
|
|
169
191
|
index. Dirty ranges retained by the candidate are allowed; uncommitted
|
|
170
192
|
destructive overlap or unavailable proof returns `PTADV-101` without writing.
|
|
171
|
-
`Perttool.AdvanceResult.
|
|
193
|
+
`Perttool.AdvanceResult.v2.history_guard` reports the status, modification
|
|
172
194
|
time, byte sizes, diff counts, and affected IDs before supplemental digests.
|
|
173
195
|
If the source, `HEAD`, or stage-0 index changes after assessment, `PTADV-102`
|
|
174
196
|
returns exit 5 without writing.
|
|
@@ -327,6 +349,35 @@ See the [Contract 5-to-6 migration
|
|
|
327
349
|
guide](docs/process/cli-contract-6-migration.md) for schema and compatibility
|
|
328
350
|
details.
|
|
329
351
|
|
|
352
|
+
### Conditional plan assurance
|
|
353
|
+
|
|
354
|
+
Assurance is opt-in. Initial sealing upgrades the candidate to Grammar 6 and
|
|
355
|
+
records reviewed task contracts and recursive planning bases:
|
|
356
|
+
|
|
357
|
+
```sh
|
|
358
|
+
perttool plan-assurance seal PLAN.pert \
|
|
359
|
+
--reason "Initial reviewed planning baseline" --diff
|
|
360
|
+
perttool plan-assurance show PLAN.pert --format json
|
|
361
|
+
perttool plan-assurance hash PLAN.pert WORK --kind computed-basis
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
The hash command writes exactly one `sha256:` digest plus LF on text success;
|
|
365
|
+
it does not edit or accept a seal. Use `plan-dependency` to qualify the default
|
|
366
|
+
execution-and-planning relation, or to add a planning-only relation:
|
|
367
|
+
|
|
368
|
+
```sh
|
|
369
|
+
perttool plan-dependency set PLAN.pert REL_A_B \
|
|
370
|
+
--mode execution-only --reason "Execution order only" --diff
|
|
371
|
+
perttool plan-dependency add PLAN.pert REL_C_D C D \
|
|
372
|
+
--mode planning-only --reason "D consumes C planning output" --diff
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
After reviewing a reported affected closure, use a separate governed
|
|
376
|
+
`plan-assurance reseal` candidate. Completed work needs an explicit
|
|
377
|
+
`task-outcome` record; completion status, Git history, and actual duration do
|
|
378
|
+
not imply outcome conformance. `dag next` preserves raw ranking and withholds
|
|
379
|
+
new-start authority from unsealed, review-required, or unavailable plans.
|
|
380
|
+
|
|
330
381
|
## Command map
|
|
331
382
|
|
|
332
383
|
| Goal | Command |
|
|
@@ -345,6 +396,10 @@ details.
|
|
|
345
396
|
| Analyze schedules | `perttool dag analyze <file>` |
|
|
346
397
|
| Select next work | `perttool dag next <file>` |
|
|
347
398
|
| Remove completed history | `perttool dag advance <file>` |
|
|
399
|
+
| Inspect plan assurance | `perttool plan-assurance show|hash <file> ...` |
|
|
400
|
+
| Seal or reseal reviewed plans | `perttool plan-assurance seal|reseal <file> ...` |
|
|
401
|
+
| Maintain planning dependencies | `perttool plan-dependency add|set|remove` |
|
|
402
|
+
| Maintain task outcomes | `perttool task-outcome add|set|remove` |
|
|
348
403
|
| Export or import Mermaid | `perttool dag render`, `perttool dag import` |
|
|
349
404
|
| Maintain tasks | `perttool task add|set|remove|start|suspend|resume|finish` |
|
|
350
405
|
| Maintain gates | `perttool gate add|set|remove` |
|
|
@@ -361,8 +416,8 @@ domain concepts. Both run without a document:
|
|
|
361
416
|
perttool task set --help
|
|
362
417
|
perttool help dag next --format json
|
|
363
418
|
perttool schema --format json
|
|
364
|
-
perttool schema Perttool.NextResult.
|
|
365
|
-
perttool schema Perttool.NextResult.
|
|
419
|
+
perttool schema Perttool.NextResult.v6 --format json
|
|
420
|
+
perttool schema Perttool.NextResult.v6 --view outline --format json
|
|
366
421
|
perttool guide editing --level detail --format json
|
|
367
422
|
```
|
|
368
423
|
|
|
@@ -373,7 +428,7 @@ Supplying a schema identity returns its Draft 2020-12 artifact in the
|
|
|
373
428
|
`schema` field of `Perttool.SchemaResult.v1`:
|
|
374
429
|
|
|
375
430
|
```sh
|
|
376
|
-
perttool schema Perttool.CheckResult.
|
|
431
|
+
perttool schema Perttool.CheckResult.v4 --format json
|
|
377
432
|
```
|
|
378
433
|
|
|
379
434
|
The default and `--view full` return the complete artifact. For a shorter
|
|
@@ -382,8 +437,8 @@ references to the complete bundled artifact. Pass one local, relative, or
|
|
|
382
437
|
copied absolute reference back with `--ref` to display that internal layer:
|
|
383
438
|
|
|
384
439
|
```sh
|
|
385
|
-
perttool schema Perttool.NextResult.
|
|
386
|
-
perttool schema Perttool.NextResult.
|
|
440
|
+
perttool schema Perttool.NextResult.v6 --view outline --format json
|
|
441
|
+
perttool schema Perttool.NextResult.v6 --view outline \
|
|
387
442
|
--ref '#/$defs/recommendation' --format json
|
|
388
443
|
```
|
|
389
444
|
|
|
@@ -394,11 +449,12 @@ identifier only: validation does not require network access. Consumers must
|
|
|
394
449
|
select compatibility from each result's `schema_version`, not from
|
|
395
450
|
`tool_version`. See the
|
|
396
451
|
[JSON Schema Artifact Contract](docs/specs/json-schema.md) for the complete
|
|
397
|
-
|
|
452
|
+
20-root inventory and versioning rules.
|
|
398
453
|
|
|
399
454
|
## LLM and automation use
|
|
400
455
|
|
|
401
|
-
Use `--format json` for machine consumers. `0.
|
|
456
|
+
Use `--format json` for machine consumers. Versions `0.7.0` and `0.7.1` require
|
|
457
|
+
`cli_contract_version == 7`. Published `0.6.0`, `0.5.5`, `0.5.4`, `0.5.3`,
|
|
402
458
|
`0.5.2`, `0.5.1`, and `0.5.0` consumers must check
|
|
403
459
|
`cli_contract_version == 6`;
|
|
404
460
|
consumers pinned to `0.4.0`
|
|
@@ -413,10 +469,14 @@ Runtime `PTGOV-104` visibility for assertions on governed previews requires
|
|
|
413
469
|
`Perttool.AdvanceResult.v1`, history-safety model 1, and the
|
|
414
470
|
repository-clean advance candidate require `0.6.0`; see the
|
|
415
471
|
[`0.5.5` to `0.6.0` migration](docs/process/0.5.5-to-0.6.0-migration.md).
|
|
472
|
+
Version `0.7.0` changes to Grammar 6, CLI Contract 7, and
|
|
473
|
+
assurance-aware result identities; see the
|
|
474
|
+
[`0.6.0` to `0.7.0` migration](docs/process/0.6.0-to-0.7.0-migration.md).
|
|
416
475
|
In every case, check the result-specific `schema_version` before reading the
|
|
417
476
|
rest of a result.
|
|
418
|
-
A complete, known, non-truncated `Perttool.NextResult.
|
|
419
|
-
`
|
|
477
|
+
A complete, known, non-truncated `Perttool.NextResult.v6` with policy
|
|
478
|
+
`recommendation_v1_plus_release_gate_plus_plan_assurance_v1` is required for
|
|
479
|
+
the current source. Start only task IDs in
|
|
420
480
|
`temporal.authority.startable_recommended_task_ids`; do not infer start
|
|
421
481
|
authority from the raw recommended set, the text summary, or `ready` alone.
|
|
422
482
|
Suspended tasks are reported separately and require an explicit `task resume`;
|
|
@@ -424,8 +484,9 @@ they are not new-start recommendations.
|
|
|
424
484
|
|
|
425
485
|
Mutation JSON returns the candidate text, unified diff, UTF-16 text edits,
|
|
426
486
|
source digest, updated digest, diagnostics, and write result in one envelope.
|
|
427
|
-
Direct, lifecycle, and
|
|
428
|
-
`dag advance` uses
|
|
487
|
+
Direct, lifecycle, batch, and assurance mutations use
|
|
488
|
+
`Perttool.MutationResult.v4`; `dag advance` uses
|
|
489
|
+
`Perttool.AdvanceResult.v2`.
|
|
429
490
|
Unknown schema versions, incomplete recommendation traces, `PTREC-*`
|
|
430
491
|
diagnostics, and future or unavailable temporal eligibility must fail closed.
|
|
431
492
|
|
|
@@ -436,6 +497,25 @@ diagnostics, and future or unavailable temporal eligibility must fail closed.
|
|
|
436
497
|
- [Project Actuals and Git History Contract (CLI Contract 6)](docs/specs/project-actuals.md)
|
|
437
498
|
- [Advance History Safety Contract (ADV-001 target)](docs/specs/advance-history-safety.md)
|
|
438
499
|
- [Advance History Safety source acceptance](docs/process/advance-history-acceptance.md)
|
|
500
|
+
- [Conditional Plan Assurance Contract (active Grammar 6 / CLI Contract 7 source)](docs/specs/plan-assurance.md)
|
|
501
|
+
- [Conditional Plan Assurance Interface Contract](docs/specs/plan-assurance-interface.md)
|
|
502
|
+
- [Conditional Plan Assurance public-contract acceptance](docs/process/plan-assurance-public-contract-acceptance.md)
|
|
503
|
+
- [`0.6.0` to `0.7.0` migration](docs/process/0.6.0-to-0.7.0-migration.md)
|
|
504
|
+
- [`v0.7.0` release procedure](docs/process/0.7.0-release.md)
|
|
505
|
+
- [`v0.7.1` Help and Guide consistency patch procedure](docs/process/0.7.1-release.md)
|
|
506
|
+
- [Conditional Plan Assurance interface acceptance](docs/process/plan-assurance-interface-acceptance.md)
|
|
507
|
+
- [Conditional Plan Assurance internal hash Core acceptance](docs/process/plan-assurance-hash-core-acceptance.md)
|
|
508
|
+
- [Conditional Plan Assurance internal source Core acceptance](docs/process/plan-assurance-source-core-acceptance.md)
|
|
509
|
+
- [Conditional Plan Assurance internal mutation Core acceptance](docs/process/plan-assurance-mutation-core-acceptance.md)
|
|
510
|
+
- [Conditional Plan Assurance internal authority Core acceptance](docs/process/plan-assurance-authority-core-acceptance.md)
|
|
511
|
+
- [Conditional Plan Assurance internal advance contraction acceptance](docs/process/plan-assurance-advance-contraction-acceptance.md)
|
|
512
|
+
- [Conditional Plan Assurance internal compatibility acceptance](docs/process/plan-assurance-compatibility-acceptance.md)
|
|
513
|
+
- [Conditional Plan Assurance internal hash inspection acceptance](docs/process/plan-assurance-hash-inspection-acceptance.md)
|
|
514
|
+
- [Conditional Plan Assurance design review](docs/process/plan-assurance-design-review.md)
|
|
515
|
+
- [Conditional Plan Assurance implementation plan](plans/plan-assurance.pert)
|
|
516
|
+
- [Help and Guide consistency correction](docs/specs/help-guide-consistency.md)
|
|
517
|
+
- [Help and Guide consistency implementation plan](plans/help-guide-consistency.pert)
|
|
518
|
+
- [`v0.7.1` release plan](plans/release-0.7.1.pert)
|
|
439
519
|
- [JSON Schema Artifact Contract](docs/specs/json-schema.md)
|
|
440
520
|
- [JSON Schema source acceptance](docs/process/json-schema-acceptance.md)
|
|
441
521
|
- [Contract 5-to-6 migration](docs/process/cli-contract-6-migration.md)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AdvanceHistoryBaselineCapture, type AdvanceHistoryBaselineDependencies, type AdvanceHistoryBaselineRecheck } from "../history/git-probe.js";
|
|
2
2
|
import type { TargetActualsAdvanceResultV3 } from "./target-actuals-advance.js";
|
|
3
|
+
import type { AdvanceDocumentValidator } from "../mutation/advance.js";
|
|
3
4
|
export declare const ADVANCE_RESULT_SCHEMA_VERSION: "Perttool.AdvanceResult.v1";
|
|
4
5
|
export type AdvanceHistoryGuardStatus = "not_applicable" | "passed" | "blocked" | "forced";
|
|
5
6
|
export type AdvanceHistoryGuardCause = "preview" | "separate_output" | "no_change" | "no_destructive_records" | "authority_denied" | "warning_denied" | "baseline_matches" | "destructive_overlap" | "no_repository" | "no_head" | "untracked_target" | "ambiguous_path" | "unmerged_index" | "git_unavailable" | "baseline_read_failed" | "baseline_invalid" | "correspondence_missing" | "correspondence_ambiguous" | "forced_by_option";
|
|
@@ -34,6 +35,7 @@ export interface AdvanceHistoryPreparationOptions {
|
|
|
34
35
|
readonly warningDenied?: boolean;
|
|
35
36
|
readonly maxDiagnostics?: number;
|
|
36
37
|
readonly baselineDependencies?: AdvanceHistoryBaselineDependencies;
|
|
38
|
+
readonly documentValidator?: AdvanceDocumentValidator;
|
|
37
39
|
}
|
|
38
40
|
export interface PreparedAdvanceHistory {
|
|
39
41
|
readonly result: AdvanceResultV1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advance-history.d.ts","sourceRoot":"","sources":["../../src/application/advance-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,6BA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AAC;CACzD;AA4OD,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,4BAA4B,GACnC,eAAe,CAmBjB;AAED,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,4BAA4B,GAAG,eAAe,EACtD,OAAO,EAAE,gCAAgC,GACxC,OAAO,CAAC,sBAAsB,CAAC,CA8KjC;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,6BAA6B,EACtC,cAAc,CAAC,EAAE,MAAM,GACtB,eAAe,CAgBjB;AAMD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,qBAAqB,GAC3B,MAAM,CAYR"}
|
|
@@ -16,17 +16,27 @@ function diffCounts(diff) {
|
|
|
16
16
|
}
|
|
17
17
|
return { added, removed };
|
|
18
18
|
}
|
|
19
|
-
function recordsFor(text, result) {
|
|
19
|
+
function recordsFor(text, result, validator = activeAdvanceDocumentValidator) {
|
|
20
20
|
if (result.updatedText === null ||
|
|
21
21
|
result.updatedDigest === null ||
|
|
22
22
|
result.advance === null) {
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
|
-
const checked =
|
|
26
|
-
if (!checked.ok
|
|
25
|
+
const checked = validator(text, 1_000);
|
|
26
|
+
if (!checked.ok) {
|
|
27
27
|
throw new Error("advance history candidate has no validated original document");
|
|
28
28
|
}
|
|
29
|
-
return deriveAdvanceDestructiveRecords(text, checked.
|
|
29
|
+
return deriveAdvanceDestructiveRecords(text, checked.document, result.advance);
|
|
30
|
+
}
|
|
31
|
+
function activeAdvanceDocumentValidator(text, maxDiagnostics) {
|
|
32
|
+
const checked = validateTargetGrammar5Document(text, TARGET_GRAMMAR_5_CAPABILITY, { maxDiagnostics });
|
|
33
|
+
return {
|
|
34
|
+
ok: checked.ok,
|
|
35
|
+
document: checked.document,
|
|
36
|
+
documentId: checked.documentId,
|
|
37
|
+
diagnostics: checked.diagnostics,
|
|
38
|
+
diagnosticsTruncated: checked.diagnosticsTruncated,
|
|
39
|
+
};
|
|
30
40
|
}
|
|
31
41
|
function stableEntityIds(records) {
|
|
32
42
|
return Object.freeze([...new Set(records.map(({ entityId }) => entityId))].sort());
|
|
@@ -136,7 +146,8 @@ export async function prepareAdvanceHistory(text, result, options) {
|
|
|
136
146
|
if (digestDocumentBytes(options.sourceBytes) !== result.originalDigest) {
|
|
137
147
|
throw new Error("advance history source bytes do not match the plan");
|
|
138
148
|
}
|
|
139
|
-
const
|
|
149
|
+
const validator = options.documentValidator ?? activeAdvanceDocumentValidator;
|
|
150
|
+
const records = recordsFor(text, result, validator);
|
|
140
151
|
if (records === null) {
|
|
141
152
|
return Object.freeze({
|
|
142
153
|
result: resultWithGuard(result, null),
|
|
@@ -196,12 +207,10 @@ export async function prepareAdvanceHistory(text, result, options) {
|
|
|
196
207
|
baseline,
|
|
197
208
|
});
|
|
198
209
|
}
|
|
199
|
-
const currentChecked =
|
|
200
|
-
const headChecked =
|
|
210
|
+
const currentChecked = validator(current.text, normalizeMaxDiagnostics(options.maxDiagnostics));
|
|
211
|
+
const headChecked = validator(head.text, normalizeMaxDiagnostics(options.maxDiagnostics));
|
|
201
212
|
if (!currentChecked.ok ||
|
|
202
|
-
|
|
203
|
-
!headChecked.ok ||
|
|
204
|
-
headChecked.validatedDocument === null) {
|
|
213
|
+
!headChecked.ok) {
|
|
205
214
|
return Object.freeze({
|
|
206
215
|
result: blockedResult(result, records, options, "baseline_invalid", [], baseline),
|
|
207
216
|
baseline,
|
|
@@ -209,10 +218,10 @@ export async function prepareAdvanceHistory(text, result, options) {
|
|
|
209
218
|
}
|
|
210
219
|
const assessed = assessAdvanceHistorySafety({
|
|
211
220
|
currentText: current.text,
|
|
212
|
-
currentDocument: currentChecked.
|
|
221
|
+
currentDocument: currentChecked.document,
|
|
213
222
|
currentSource: baseline.currentSource,
|
|
214
223
|
headText: head.text,
|
|
215
|
-
headDocument: headChecked.
|
|
224
|
+
headDocument: headChecked.document,
|
|
216
225
|
headSource: baseline.headSource,
|
|
217
226
|
indexSource: baseline.indexSource,
|
|
218
227
|
destructiveRecords: records,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advance-history.js","sourceRoot":"","sources":["../../src/application/advance-history.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,GAI9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,GAGhC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,GAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AAKzC,MAAM,CAAC,MAAM,6BAA6B,GACxC,2BAAoC,CAAC;AAsEvC,SAAS,UAAU,CAAC,IAAmB;IAIrC,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,KAAK,IAAI,CAAC,CAAC;QAChE,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC,CAAC;IACpE,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAC5B,CAAC;AAED,SAAS,UAAU,CACjB,IAAY,EACZ,MAAsD;IAEtD,IACE,MAAM,CAAC,WAAW,KAAK,IAAI;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A+B,KAAK,CAAC,WAAW,oBAAoB,KAAK,CAAC,cAAc,gBAAgB,KAAK,CAAC,cAAc,kBAAkB,KAAK,CAAC,gBAAgB,EAAE;QACtK,gCAAgC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QAClH,2BAA2B,KAAK,CAAC,cAAc,EAAE;QACjD,yBAAyB,KAAK,CAAC,YAAY,cAAc,KAAK,CAAC,eAAe,eAAe,KAAK,CAAC,oBAAoB,IAAI,GAAG,EAAE;QAChI,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
1
|
+
{"version":3,"file":"advance-history.js","sourceRoot":"","sources":["../../src/application/advance-history.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,GAI9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,GAGhC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,GAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AAMzC,MAAM,CAAC,MAAM,6BAA6B,GACxC,2BAAoC,CAAC;AAuEvC,SAAS,UAAU,CAAC,IAAmB;IAIrC,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAA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B,SAAS,EAAE,OAAO,CAAC,SAAS;KAC7B,CAAC,CACH,EACD,uBAAuB,CAAC,cAAc,CAAC,EACvC,KAAK,CACN,CAAC;AACJ,CAAC;AAED,SAAS,IAAI,CAAC,MAAyB;IACrC,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,KAA4B;IAE5B,MAAM,IAAI,GACR,KAAK,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,OAAO;QACL,wBAAwB,KAAK,CAAC,MAAM,UAAU,KAAK,CAAC,KAAK,EAAE;QAC3D,uBAAuB,KAAK,CAAC,sBAAsB,IAAI,GAAG,SAAS,IAAI,gBAAgB,KAAK,CAAC,gBAAgB,IAAI,GAAG,EAAE;QACtH,+BAA+B,KAAK,CAAC,WAAW,oBAAoB,KAAK,CAAC,cAAc,gBAAgB,KAAK,CAAC,cAAc,kBAAkB,KAAK,CAAC,gBAAgB,EAAE;QACtK,gCAAgC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QAClH,2BAA2B,KAAK,CAAC,cAAc,EAAE;QACjD,yBAAyB,KAAK,CAAC,YAAY,cAAc,KAAK,CAAC,eAAe,eAAe,KAAK,CAAC,oBAAoB,IAAI,GAAG,EAAE;QAChI,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type ProjectActualsSourceModel } from "../actuals/source.js";
|
|
2
|
+
import { type Diagnostic } from "../model/diagnostics.js";
|
|
3
|
+
import type { DocumentNode, TargetDeclarationKind } from "../model/syntax.js";
|
|
4
|
+
import { type AnalysisResult, type AnalyzeOptions } from "./analyze.js";
|
|
5
|
+
import type { CheckOptions, CheckSummary, TemporalInputs } from "./check.js";
|
|
6
|
+
import { type TargetActualsAnalysisResultV4, type TargetActualsNextResultV5 } from "./target-actuals-analysis.js";
|
|
7
|
+
import { type NextGroups, type NextOptions, type NextResultV3 } from "./next.js";
|
|
8
|
+
import type { PlanAssuranceProjectionV1, PlanAssuranceStartAuthorityV1, PlanAssuranceStateCountsV1 } from "../assurance/authority.js";
|
|
9
|
+
export declare const CHECK_RESULT_V4: "Perttool.CheckResult.v4";
|
|
10
|
+
export declare const ANALYSIS_RESULT_V5: "Perttool.AnalysisResult.v5";
|
|
11
|
+
export declare const NEXT_RESULT_V6: "Perttool.NextResult.v6";
|
|
12
|
+
export interface CheckResultV4 {
|
|
13
|
+
readonly schemaVersion: typeof CHECK_RESULT_V4;
|
|
14
|
+
readonly ok: boolean;
|
|
15
|
+
readonly document: DocumentNode<TargetDeclarationKind>;
|
|
16
|
+
readonly documentId: string | null;
|
|
17
|
+
readonly grammarVersion: number | null;
|
|
18
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
19
|
+
readonly diagnosticsTruncated: boolean;
|
|
20
|
+
readonly summary: CheckSummary;
|
|
21
|
+
readonly temporalInputs: TemporalInputs | null;
|
|
22
|
+
readonly actualsInputs: ProjectActualsSourceModel | null;
|
|
23
|
+
readonly assurance: PlanAssuranceProjectionV1 | null;
|
|
24
|
+
readonly assuranceStateCounts: PlanAssuranceStateCountsV1;
|
|
25
|
+
}
|
|
26
|
+
export interface AnalysisResultV5 extends Omit<AnalysisResult, "precedence" | "resource"> {
|
|
27
|
+
readonly schemaVersion: typeof ANALYSIS_RESULT_V5;
|
|
28
|
+
readonly grammarVersion: number | null;
|
|
29
|
+
readonly taskActuals: TargetActualsAnalysisResultV4["taskActuals"];
|
|
30
|
+
readonly precedence: TargetActualsAnalysisResultV4["precedence"];
|
|
31
|
+
readonly resource: TargetActualsAnalysisResultV4["resource"];
|
|
32
|
+
readonly temporal: TargetActualsAnalysisResultV4["temporal"];
|
|
33
|
+
readonly assurance: PlanAssuranceProjectionV1 | null;
|
|
34
|
+
}
|
|
35
|
+
type Contract7TemporalAuthority = Omit<TargetActualsNextResultV5["temporal"]["authority"], "policy" | "recommendationAlgorithm" | "startableRecommendedTaskIds"> & PlanAssuranceStartAuthorityV1;
|
|
36
|
+
export interface NextResultV6 extends Omit<TargetActualsNextResultV5, "schemaVersion" | "temporal"> {
|
|
37
|
+
readonly schemaVersion: typeof NEXT_RESULT_V6;
|
|
38
|
+
readonly assurance: PlanAssuranceProjectionV1 | null;
|
|
39
|
+
readonly temporal: Omit<TargetActualsNextResultV5["temporal"], "authority"> & {
|
|
40
|
+
readonly authority: Contract7TemporalAuthority;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface NextResultV6Failure extends Omit<NextResultV3, "groups"> {
|
|
44
|
+
readonly schemaVersion: typeof NEXT_RESULT_V6;
|
|
45
|
+
readonly grammarVersion: number | null;
|
|
46
|
+
readonly temporal: null;
|
|
47
|
+
readonly groups: NextGroups & {
|
|
48
|
+
readonly suspended: readonly string[];
|
|
49
|
+
};
|
|
50
|
+
readonly assurance: null;
|
|
51
|
+
}
|
|
52
|
+
export type Contract7NextResultV6 = NextResultV6 | NextResultV6Failure;
|
|
53
|
+
export declare function checkDocument(text: string, options?: CheckOptions): CheckResultV4;
|
|
54
|
+
export declare function analyzeDocument(text: string, options?: AnalyzeOptions): AnalysisResultV5;
|
|
55
|
+
export declare function selectNextTasks(text: string, options?: AnalyzeOptions & NextOptions): Contract7NextResultV6;
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=contract7-assurance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract7-assurance.d.ts","sourceRoot":"","sources":["../../src/application/contract7-assurance.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL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