perttool 0.8.1 → 0.9.0
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 +23 -1
- package/README.md +73 -26
- package/dist/application/cli-facade.d.ts +10 -6
- package/dist/application/cli-facade.d.ts.map +1 -1
- package/dist/application/cli-facade.js +14 -6
- package/dist/application/cli-facade.js.map +1 -1
- package/dist/application/contract8-milestone-acceptance.d.ts +74 -0
- package/dist/application/contract8-milestone-acceptance.d.ts.map +1 -0
- package/dist/application/contract8-milestone-acceptance.js +185 -0
- package/dist/application/contract8-milestone-acceptance.js.map +1 -0
- package/dist/application/editor-milestone-acceptance.d.ts +75 -0
- package/dist/application/editor-milestone-acceptance.d.ts.map +1 -0
- package/dist/application/editor-milestone-acceptance.js +161 -0
- package/dist/application/editor-milestone-acceptance.js.map +1 -0
- package/dist/application/target-governance-init.d.ts +1 -1
- package/dist/application/target-governance-init.d.ts.map +1 -1
- package/dist/application/target-governance-init.js +3 -5
- package/dist/application/target-governance-init.js.map +1 -1
- package/dist/application/target-governance-project.d.ts +2 -2
- package/dist/application/target-governance-project.d.ts.map +1 -1
- package/dist/application/target-historical-graph.d.ts +3 -1
- package/dist/application/target-historical-graph.d.ts.map +1 -1
- package/dist/application/target-historical-graph.js +85 -2
- package/dist/application/target-historical-graph.js.map +1 -1
- package/dist/cli.js +348 -28
- package/dist/cli.js.map +1 -1
- package/dist/command/assurance-discovery.d.ts +4 -3
- package/dist/command/assurance-discovery.d.ts.map +1 -1
- package/dist/command/assurance-discovery.js +96 -9
- package/dist/command/assurance-discovery.js.map +1 -1
- package/dist/command/assurance-usage.js +2 -2
- package/dist/command/assurance-usage.js.map +1 -1
- package/dist/command/discovery.js +4 -4
- package/dist/command/discovery.js.map +1 -1
- package/dist/command/registry.d.ts +1 -1
- package/dist/command/registry.d.ts.map +1 -1
- package/dist/command/registry.js +2 -2
- package/dist/command/registry.js.map +1 -1
- package/dist/command/usage.d.ts.map +1 -1
- package/dist/command/usage.js +12 -4
- package/dist/command/usage.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/help/assurance-guide.d.ts +1 -1
- package/dist/help/assurance-guide.d.ts.map +1 -1
- package/dist/help/assurance-guide.js +45 -19
- package/dist/help/assurance-guide.js.map +1 -1
- package/dist/help/guide.d.ts +1 -1
- package/dist/help/guide.d.ts.map +1 -1
- package/dist/help/registry.js +4 -4
- package/dist/help/registry.js.map +1 -1
- package/dist/history/historical-graph.d.ts +2 -0
- package/dist/history/historical-graph.d.ts.map +1 -1
- package/dist/history/historical-graph.js +98 -24
- package/dist/history/historical-graph.js.map +1 -1
- package/dist/history/milestone-acceptance-history.d.ts +59 -0
- package/dist/history/milestone-acceptance-history.d.ts.map +1 -0
- package/dist/history/milestone-acceptance-history.js +332 -0
- package/dist/history/milestone-acceptance-history.js.map +1 -0
- package/dist/index.d.ts +10 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.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/milestone-acceptance/advance.d.ts +39 -0
- package/dist/milestone-acceptance/advance.d.ts.map +1 -0
- package/dist/milestone-acceptance/advance.js +112 -0
- package/dist/milestone-acceptance/advance.js.map +1 -0
- package/dist/milestone-acceptance/evaluate.d.ts +51 -0
- package/dist/milestone-acceptance/evaluate.d.ts.map +1 -0
- package/dist/milestone-acceptance/evaluate.js +114 -0
- package/dist/milestone-acceptance/evaluate.js.map +1 -0
- package/dist/milestone-acceptance/migration.d.ts +25 -0
- package/dist/milestone-acceptance/migration.d.ts.map +1 -0
- package/dist/milestone-acceptance/migration.js +76 -0
- package/dist/milestone-acceptance/migration.js.map +1 -0
- package/dist/milestone-acceptance/mutation.d.ts +49 -0
- package/dist/milestone-acceptance/mutation.d.ts.map +1 -0
- package/dist/milestone-acceptance/mutation.js +136 -0
- package/dist/milestone-acceptance/mutation.js.map +1 -0
- package/dist/milestone-acceptance/source.d.ts +83 -0
- package/dist/milestone-acceptance/source.d.ts.map +1 -0
- package/dist/milestone-acceptance/source.js +301 -0
- package/dist/milestone-acceptance/source.js.map +1 -0
- package/dist/mutation/advance-deletion.d.ts.map +1 -1
- package/dist/mutation/advance-deletion.js +6 -1
- package/dist/mutation/advance-deletion.js.map +1 -1
- package/dist/perttool-vscode-private-0.0.0-d1578b9.vsix +0 -0
- package/dist/recommendation/override-types.d.ts +2 -2
- package/dist/recommendation/override.d.ts +1 -1
- package/dist/recommendation/override.js +2 -2
- package/dist/schema/registry.d.ts +1 -1
- package/dist/schema/registry.d.ts.map +1 -1
- package/dist/schema/registry.js +8 -6
- package/dist/schema/registry.js.map +1 -1
- package/dist/semantic/validator.d.ts.map +1 -1
- package/dist/semantic/validator.js +14 -3
- package/dist/semantic/validator.js.map +1 -1
- package/dist/session/document-session.d.ts +5 -0
- package/dist/session/document-session.d.ts.map +1 -1
- package/dist/session/document-session.js +25 -2
- package/dist/session/document-session.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.v2.schema.json → Perttool.AdvanceResult.v3.schema.json} +36 -5
- package/schemas/Perttool.AgentGuidanceResult.v1.schema.json +1 -1
- package/schemas/{Perttool.AnalysisResult.v5.schema.json → Perttool.AnalysisResult.v6.schema.json} +12 -5
- package/schemas/{Perttool.CheckResult.v4.schema.json → Perttool.CheckResult.v5.schema.json} +12 -5
- package/schemas/Perttool.CliError.v1.schema.json +1 -1
- package/schemas/Perttool.CommandHelpResult.v1.schema.json +3 -3
- 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.HistoricalGraphResult.v1.schema.json +100 -2
- package/schemas/Perttool.ImportResult.v1.schema.json +1 -1
- package/schemas/Perttool.InitResult.v1.schema.json +1 -1
- package/schemas/Perttool.MilestoneAcceptanceMigrationResult.v1.schema.json +24 -0
- package/schemas/Perttool.MilestoneAcceptanceResult.v1.schema.json +79 -0
- package/schemas/{Perttool.MutationResult.v4.schema.json → Perttool.MutationResult.v5.schema.json} +4 -4
- package/schemas/{Perttool.NextResult.v6.schema.json → Perttool.NextResult.v7.schema.json} +12 -5
- package/schemas/Perttool.OverrideDecision.v1.schema.json +1 -1
- package/schemas/Perttool.PlanAssuranceResult.v1.schema.json +1 -1
- package/schemas/Perttool.ProjectHistoryResult.v1.schema.json +1 -1
- package/schemas/Perttool.ProjectResult.v4.schema.json +2 -2
- 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,27 @@ This project records its notable changes here. The format is based on [Keep a Ch
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.9.0] - 2026-08-13
|
|
8
|
+
|
|
9
|
+
Breaking Grammar 7 and CLI Contract 8 beta minor. This version publishes
|
|
10
|
+
milestone outcome acceptance as a separate fact from graph closure.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Added Grammar 7 milestone criterion sets, caller-asserted evidence receipts,
|
|
15
|
+
committed migration provenance, a separate acceptance evaluator, Contract 8
|
|
16
|
+
results and commands, and an all-or-nothing acceptance guard for canonical
|
|
17
|
+
advance while retaining graph closure as a distinct fact.
|
|
18
|
+
- Added checkpoint-specific milestone-acceptance history to
|
|
19
|
+
`Perttool.HistoricalGraphResult.v1`, including exact migration provenance,
|
|
20
|
+
criterion and receipt epochs, and acceptance-aware canonical-advance proof.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Made consecutive terminal declaration deletions own disjoint separator-byte
|
|
25
|
+
ranges. This fixes Issue #11 without changing candidate bytes, assurance or
|
|
26
|
+
history guard meanings, or the Issue #9 EOF receipt insertion behavior.
|
|
27
|
+
|
|
7
28
|
## [0.8.1] - 2026-08-12
|
|
8
29
|
|
|
9
30
|
Compatible Grammar 6 and CLI Contract 7 beta patch. This version corrects a
|
|
@@ -432,7 +453,8 @@ First public development preview. Intended to evaluate the DSL and CLI, read-onl
|
|
|
432
453
|
- Not published to the npm registry; use the GitHub Release asset
|
|
433
454
|
- Requires Node.js 24 or later
|
|
434
455
|
|
|
435
|
-
[Unreleased]: https://github.com/mako10k/perttool/compare/v0.
|
|
456
|
+
[Unreleased]: https://github.com/mako10k/perttool/compare/v0.9.0...HEAD
|
|
457
|
+
[0.9.0]: https://github.com/mako10k/perttool/compare/v0.8.1...v0.9.0
|
|
436
458
|
[0.8.1]: https://github.com/mako10k/perttool/compare/v0.8.0...v0.8.1
|
|
437
459
|
[0.8.0]: https://github.com/mako10k/perttool/compare/v0.7.1...v0.8.0
|
|
438
460
|
[0.7.1]: https://github.com/mako10k/perttool/compare/v0.7.0...v0.7.1
|
package/README.md
CHANGED
|
@@ -63,7 +63,34 @@ qualified Point forecasts distinct. Layout never becomes project semantics.
|
|
|
63
63
|
Version `0.8.1` is a backward-compatible Contract 7 patch for `dag advance`.
|
|
64
64
|
It preserves assurance frontier receipts when all terminal work events belong
|
|
65
65
|
to removed tasks, while retaining the `0.8.0` command, schema, package-export,
|
|
66
|
-
and authority boundaries.
|
|
66
|
+
and authority boundaries. npm currently reports `beta=latest=0.8.1`; use
|
|
67
|
+
`0.8.0` as the exact rollback pin.
|
|
68
|
+
|
|
69
|
+
Version `0.9.0` is the selected, locally prepared beta release for the current
|
|
70
|
+
Grammar 7 and CLI Contract 8 milestone-acceptance boundary. It exposes 53
|
|
71
|
+
commands, 23 root schemas, 129 root and Node runtime exports,
|
|
72
|
+
`Perttool.CheckResult.v5`,
|
|
73
|
+
`Perttool.AnalysisResult.v6`, `Perttool.NextResult.v7`,
|
|
74
|
+
`Perttool.MutationResult.v5`, `Perttool.AdvanceResult.v3`, committed migration,
|
|
75
|
+
criterion-set replacement, caller-asserted receipts, and acceptance-aware
|
|
76
|
+
canonical advance. Package, lockfile, CLI, and private adapter peer identities
|
|
77
|
+
are prepared as `0.9.0`, while the published npm baseline remains
|
|
78
|
+
`beta=latest=0.8.1`. Candidate acceptance, any Git push or tag, GitHub and npm
|
|
79
|
+
publication, dist-tag movement, Issue mutation, and plan advance remain
|
|
80
|
+
separate decisions.
|
|
81
|
+
|
|
82
|
+
The private adapters now project that same Contract 8 acceptance model without
|
|
83
|
+
adding write authority. The LSP negotiates a separate version-bound milestone
|
|
84
|
+
acceptance result, the VSIX presents criteria, blockers, and receipt provenance
|
|
85
|
+
with verified source navigation, and the MCP check, analysis, and Next tools
|
|
86
|
+
retain acceptance in their unchanged wire v1 envelopes. The public npm package
|
|
87
|
+
still excludes all three private adapter workspaces.
|
|
88
|
+
|
|
89
|
+
The complete milestone-acceptance cross-surface gate passes. All milestone criteria and
|
|
90
|
+
receipts were separately owner-confirmed, and the completed plan was
|
|
91
|
+
canonically advanced from its committed pre-advance snapshot. The residual
|
|
92
|
+
plan has no diagnostics, remaining task, recommendation, or startable task.
|
|
93
|
+
Candidate acceptance, publication, and remote writes remain separate.
|
|
67
94
|
|
|
68
95
|
## Run without installing
|
|
69
96
|
|
|
@@ -101,8 +128,12 @@ npm install --global perttool@0.8.1
|
|
|
101
128
|
perttool --version
|
|
102
129
|
```
|
|
103
130
|
|
|
104
|
-
The `0.8.
|
|
105
|
-
`latest
|
|
131
|
+
The `0.8.0` release procedure published only npm `beta` and left the
|
|
132
|
+
independently managed `latest` tag at `0.7.1`; a separately authorized
|
|
133
|
+
post-acceptance operation later promoted `0.8.0`. The compatible `0.8.1`
|
|
134
|
+
release then moved its accepted patch to both public tags. npm now reports
|
|
135
|
+
`beta=latest=0.8.1`, so an unqualified global installation selects `0.8.1`.
|
|
136
|
+
The exact pin remains the reproducible form for the public subpaths,
|
|
106
137
|
historical DAG command, and corrected advance behavior.
|
|
107
138
|
Contract 6 remains available by exact pinning `perttool@0.6.0`; the pre-schema
|
|
108
139
|
Contract 6 artifact remains available as
|
|
@@ -153,14 +184,15 @@ The protocol-neutral state contract is the
|
|
|
153
184
|
## Plan files
|
|
154
185
|
|
|
155
186
|
A `.pert` file is the source of truth and is intended to remain directly
|
|
156
|
-
readable. This temporal plan has one one-day task:
|
|
187
|
+
readable. This temporal plan has one one-day forecast from a one-Point task:
|
|
157
188
|
|
|
158
189
|
```text
|
|
159
190
|
project EXAMPLE:
|
|
160
191
|
version 2
|
|
161
192
|
title "Example plan"
|
|
162
193
|
as_of 2026-07-26
|
|
163
|
-
duration_unit
|
|
194
|
+
duration_unit point
|
|
195
|
+
velocity 1p/1d
|
|
164
196
|
finish DONE
|
|
165
197
|
|
|
166
198
|
milestone NOW:
|
|
@@ -173,7 +205,7 @@ milestone DONE:
|
|
|
173
205
|
|
|
174
206
|
task WORK NOW -> DONE:
|
|
175
207
|
title "Do the work"
|
|
176
|
-
duration
|
|
208
|
+
duration 1p
|
|
177
209
|
not_before 2026-07-26
|
|
178
210
|
deadline 2026-07-27
|
|
179
211
|
```
|
|
@@ -187,10 +219,13 @@ perttool dag analyze PLAN.pert
|
|
|
187
219
|
perttool dag next PLAN.pert --format json
|
|
188
220
|
```
|
|
189
221
|
|
|
190
|
-
Task
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
222
|
+
Task estimates default to relative `point` units. A Point plan may declare a
|
|
223
|
+
project-wide velocity such as `20p/10d`; analysis then keeps the exact Point
|
|
224
|
+
result and reports the time conversion separately as a velocity forecast.
|
|
225
|
+
Without velocity, Point analysis remains available without a time forecast.
|
|
226
|
+
The compatible `day` and `hour` units are deprecated and emit `PTSEM-114` with
|
|
227
|
+
`project migrate-unit --to-unit point` guidance. Grammar version 3 also accepts
|
|
228
|
+
an exact Fraction such as `1/3p`;
|
|
194
229
|
versions 1 and 2 continue to accept Decimal duration tokens. Grammar version 5
|
|
195
230
|
adds explicit task-owned work events and the `suspended` lifecycle state.
|
|
196
231
|
Grammar version 6 adds conditional plan assurance records and the separate
|
|
@@ -206,14 +241,12 @@ smallest valid document and then create a new file exclusively:
|
|
|
206
241
|
```sh
|
|
207
242
|
perttool project init EXAMPLE \
|
|
208
243
|
--title "Example plan" \
|
|
209
|
-
--duration-unit day \
|
|
210
244
|
--initial-milestone NOW \
|
|
211
245
|
--initial-milestone-title "Current frontier" \
|
|
212
246
|
--finish NOW
|
|
213
247
|
|
|
214
248
|
perttool project init EXAMPLE \
|
|
215
249
|
--title "Example plan" \
|
|
216
|
-
--duration-unit day \
|
|
217
250
|
--initial-milestone NOW \
|
|
218
251
|
--initial-milestone-title "Current frontier" \
|
|
219
252
|
--finish NOW \
|
|
@@ -252,7 +285,7 @@ file. A changed in-place `dag advance` additionally verifies removed or
|
|
|
252
285
|
replaced entity ranges against the target path in Git `HEAD` and the stage-0
|
|
253
286
|
index. Dirty ranges retained by the candidate are allowed; uncommitted
|
|
254
287
|
destructive overlap or unavailable proof returns `PTADV-101` without writing.
|
|
255
|
-
`Perttool.AdvanceResult.
|
|
288
|
+
`Perttool.AdvanceResult.v3.history_guard` reports the status, modification
|
|
256
289
|
time, byte sizes, diff counts, and affected IDs before supplemental digests.
|
|
257
290
|
If the source, `HEAD`, or stage-0 index changes after assessment, `PTADV-102`
|
|
258
291
|
returns exit 5 without writing.
|
|
@@ -264,7 +297,9 @@ For a terminal sequence of removed tasks and task-owned work events, the same
|
|
|
264
297
|
candidate also removes only its newly orphaned blank separator prefixes. The
|
|
265
298
|
preview, separate output, and in-place write therefore remain byte-identical
|
|
266
299
|
and do not require a formatter or a second whitespace edit before
|
|
267
|
-
`git diff --check`.
|
|
300
|
+
`git diff --check`. Consecutive terminal assurance records and work events are
|
|
301
|
+
processed in source order so each separator byte belongs to at most one
|
|
302
|
+
deletion range.
|
|
268
303
|
|
|
269
304
|
Gate maintenance uses the same base controls:
|
|
270
305
|
|
|
@@ -467,6 +502,7 @@ new-start authority from unsealed, review-required, or unavailable plans.
|
|
|
467
502
|
| Maintain tasks | `perttool task add|set|remove|start|suspend|resume|finish` |
|
|
468
503
|
| Maintain gates | `perttool gate add|set|remove` |
|
|
469
504
|
| Maintain milestones | `perttool milestone add|set|remove` |
|
|
505
|
+
| Maintain milestone acceptance | `perttool milestone acceptance show|replace|verify|fail|unavailable|revoke|waive` |
|
|
470
506
|
| Maintain resources | `perttool resource add|set|remove` |
|
|
471
507
|
| Apply an atomic batch | `perttool batch apply` |
|
|
472
508
|
| Read coding-agent guidance | `perttool agent help` |
|
|
@@ -480,8 +516,8 @@ perttool task set --help
|
|
|
480
516
|
perttool help dag next --format json
|
|
481
517
|
perttool help dag history --format json
|
|
482
518
|
perttool schema --format json
|
|
483
|
-
perttool schema Perttool.NextResult.
|
|
484
|
-
perttool schema Perttool.NextResult.
|
|
519
|
+
perttool schema Perttool.NextResult.v7 --format json
|
|
520
|
+
perttool schema Perttool.NextResult.v7 --view outline --format json
|
|
485
521
|
perttool guide editing --level detail --format json
|
|
486
522
|
perttool guide historical-dag --level detail --format json
|
|
487
523
|
```
|
|
@@ -493,7 +529,7 @@ Supplying a schema identity returns its Draft 2020-12 artifact in the
|
|
|
493
529
|
`schema` field of `Perttool.SchemaResult.v1`:
|
|
494
530
|
|
|
495
531
|
```sh
|
|
496
|
-
perttool schema Perttool.CheckResult.
|
|
532
|
+
perttool schema Perttool.CheckResult.v5 --format json
|
|
497
533
|
```
|
|
498
534
|
|
|
499
535
|
The default and `--view full` return the complete artifact. For a shorter
|
|
@@ -502,8 +538,8 @@ references to the complete bundled artifact. Pass one local, relative, or
|
|
|
502
538
|
copied absolute reference back with `--ref` to display that internal layer:
|
|
503
539
|
|
|
504
540
|
```sh
|
|
505
|
-
perttool schema Perttool.NextResult.
|
|
506
|
-
perttool schema Perttool.NextResult.
|
|
541
|
+
perttool schema Perttool.NextResult.v7 --view outline --format json
|
|
542
|
+
perttool schema Perttool.NextResult.v7 --view outline \
|
|
507
543
|
--ref '#/$defs/recommendation' --format json
|
|
508
544
|
```
|
|
509
545
|
|
|
@@ -514,12 +550,13 @@ identifier only: validation does not require network access. Consumers must
|
|
|
514
550
|
select compatibility from each result's `schema_version`, not from
|
|
515
551
|
`tool_version`. See the
|
|
516
552
|
[JSON Schema Artifact Contract](docs/specs/json-schema.md) for the current
|
|
517
|
-
|
|
553
|
+
23-root source inventory and versioning rules.
|
|
518
554
|
|
|
519
555
|
## LLM and automation use
|
|
520
556
|
|
|
521
|
-
Use `--format json` for machine consumers.
|
|
522
|
-
`0.
|
|
557
|
+
Use `--format json` for machine consumers. The current unreleased source
|
|
558
|
+
requires `cli_contract_version == 8`. Published versions `0.7.0`, `0.7.1`,
|
|
559
|
+
`0.8.0`, and `0.8.1` require
|
|
523
560
|
`cli_contract_version == 7`. Published `0.6.0`, `0.5.5`, `0.5.4`, `0.5.3`,
|
|
524
561
|
`0.5.2`, `0.5.1`, and `0.5.0` consumers must check
|
|
525
562
|
`cli_contract_version == 6`;
|
|
@@ -543,7 +580,9 @@ rest of a result.
|
|
|
543
580
|
Version `0.8.0` adds `dag history`, `Perttool.HistoricalGraphResult.v1`, and
|
|
544
581
|
the Core and Node subpaths without changing CLI Contract 7; see the
|
|
545
582
|
[`0.7.1` to `0.8.0` migration](docs/process/0.7.1-to-0.8.0-migration.md).
|
|
546
|
-
|
|
583
|
+
Version `0.8.1` retains those interfaces and corrects assurance-receipt
|
|
584
|
+
placement in an advance-owned terminal deletion suffix.
|
|
585
|
+
A complete, known, non-truncated `Perttool.NextResult.v7` with policy
|
|
547
586
|
`recommendation_v1_plus_release_gate_plus_plan_assurance_v1` is required for
|
|
548
587
|
the current source. Start only task IDs in
|
|
549
588
|
`temporal.authority.startable_recommended_task_ids`; do not infer start
|
|
@@ -554,8 +593,11 @@ they are not new-start recommendations.
|
|
|
554
593
|
Mutation JSON returns the candidate text, unified diff, UTF-16 text edits,
|
|
555
594
|
source digest, updated digest, diagnostics, and write result in one envelope.
|
|
556
595
|
Direct, lifecycle, batch, and assurance mutations use
|
|
557
|
-
`Perttool.MutationResult.
|
|
558
|
-
`Perttool.AdvanceResult.
|
|
596
|
+
`Perttool.MutationResult.v5`; milestone acceptance mutations use that same
|
|
597
|
+
identity, and `dag advance` uses `Perttool.AdvanceResult.v3`. Current-source
|
|
598
|
+
advance requires Grammar 7; migrate a committed older document with
|
|
599
|
+
`perttool document migrate --target-grammar 7`, then declare criteria through
|
|
600
|
+
the milestone acceptance commands before relying on canonical advance.
|
|
559
601
|
Unknown schema versions, incomplete recommendation traces, `PTREC-*`
|
|
560
602
|
diagnostics, and future or unavailable temporal eligibility must fail closed.
|
|
561
603
|
|
|
@@ -566,14 +608,18 @@ diagnostics, and future or unavailable temporal eligibility must fail closed.
|
|
|
566
608
|
- [Project Actuals and Git History Contract (CLI Contract 6)](docs/specs/project-actuals.md)
|
|
567
609
|
- [Advance History Safety Contract (ADV-001 target)](docs/specs/advance-history-safety.md)
|
|
568
610
|
- [Advance History Safety source acceptance](docs/process/advance-history-acceptance.md)
|
|
569
|
-
- [Conditional Plan Assurance Contract (
|
|
611
|
+
- [Conditional Plan Assurance Contract (retained Grammar 6 / CLI Contract 7 boundary)](docs/specs/plan-assurance.md)
|
|
570
612
|
- [Conditional Plan Assurance Interface Contract](docs/specs/plan-assurance-interface.md)
|
|
613
|
+
- [Milestone Acceptance Contract (active Grammar 7 / CLI Contract 8 source)](docs/specs/milestone-acceptance.md)
|
|
571
614
|
- [Conditional Plan Assurance public-contract acceptance](docs/process/plan-assurance-public-contract-acceptance.md)
|
|
572
615
|
- [`0.6.0` to `0.7.0` migration](docs/process/0.6.0-to-0.7.0-migration.md)
|
|
573
616
|
- [`v0.7.0` release procedure](docs/process/0.7.0-release.md)
|
|
574
617
|
- [`v0.7.1` Help and Guide consistency patch procedure](docs/process/0.7.1-release.md)
|
|
575
618
|
- [`0.7.1` to `0.8.0` migration](docs/process/0.7.1-to-0.8.0-migration.md)
|
|
576
619
|
- [`v0.8.0` release procedure](docs/process/0.8.0-release.md)
|
|
620
|
+
- [`v0.8.1` release procedure](docs/process/0.8.1-release.md)
|
|
621
|
+
- [`0.8.1` to `0.9.0` migration](docs/process/0.8.1-to-0.9.0-migration.md)
|
|
622
|
+
- [`v0.9.0` release procedure](docs/process/0.9.0-release.md)
|
|
577
623
|
- [Conditional Plan Assurance interface acceptance](docs/process/plan-assurance-interface-acceptance.md)
|
|
578
624
|
- [Shared Library Boundary](docs/specs/shared-library.md)
|
|
579
625
|
- [Editor Protocol Contract](docs/specs/editor-protocol.md)
|
|
@@ -596,6 +642,7 @@ diagnostics, and future or unavailable temporal eligibility must fail closed.
|
|
|
596
642
|
- [Help and Guide consistency implementation plan](plans/help-guide-consistency.pert)
|
|
597
643
|
- [`v0.7.1` release plan](plans/release-0.7.1.pert)
|
|
598
644
|
- [`v0.8.0` release plan](plans/release-0.8.0.pert)
|
|
645
|
+
- [`v0.9.0` release plan](plans/release-0.9.0.pert)
|
|
599
646
|
- [JSON Schema Artifact Contract](docs/specs/json-schema.md)
|
|
600
647
|
- [JSON Schema source acceptance](docs/process/json-schema-acceptance.md)
|
|
601
648
|
- [Contract 5-to-6 migration](docs/process/cli-contract-6-migration.md)
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { CreateDocumentOptions, DocumentWriteResult, ReplaceDocumentOptions } from "../io/safe-write.js";
|
|
2
2
|
import type { TargetGrammar6Capability } from "../parser/document-parser.js";
|
|
3
3
|
import type { NodeHostPorts } from "../ports/node-host.js";
|
|
4
|
-
import { analyzeDocument, checkDocument, selectNextTasks } from "./
|
|
5
|
-
import { planAdvance
|
|
6
|
-
import {
|
|
4
|
+
import { analyzeDocument, checkDocument, getProjectMetadata, planAssuranceMutation, planBatchMutation, planFinishActuals, planFormat, planLifecycle, planMutation, planUnitMigration, selectNextTasks } from "./contract8-milestone-acceptance.js";
|
|
5
|
+
import { planAdvance } from "./contract7-mutation.js";
|
|
6
|
+
import { contract7ProjectResultToJson, renderContract7ProjectText } from "./contract7-project.js";
|
|
7
7
|
import { contract7InspectionResultToJson, contract7MutationResultToJson, contract7SnakeJson } from "./contract7-projection.js";
|
|
8
|
-
import {
|
|
9
|
-
import { planUnitMigration, withUnitMigrationWrite } from "./contract7-unit-migration.js";
|
|
8
|
+
import { withUnitMigrationWrite } from "./contract7-unit-migration.js";
|
|
10
9
|
import { contract6WorkEventToJson } from "./contract6-projection.js";
|
|
11
10
|
import { getAgentHelp } from "./agent-help.js";
|
|
12
|
-
import { renderAdvanceHistoryGuard } from "./advance-history.js";
|
|
11
|
+
import { renderAdvanceHistoryGuard, withAdvanceHistoryRace } from "./advance-history.js";
|
|
13
12
|
import { planProjectInit, projectInitResultToJson, renderProjectInitResult, withProjectInitOutput } from "./init.js";
|
|
14
13
|
import { prepareTargetPlanAssuranceAdvanceHistory, withTargetPlanAssuranceAdvanceHistoryRace, type TargetPlanAssuranceAdvanceHistoryOptions, type TargetPlanAssuranceAdvanceResultV2WithHistory } from "./target-assurance-advance-history.js";
|
|
15
14
|
import { inspectTargetPlanAssurance } from "./target-assurance-inspection.js";
|
|
@@ -51,6 +50,8 @@ export declare function createCliApplicationFacade(host: NodeHostPorts, historic
|
|
|
51
50
|
contract6WorkEventToJson: typeof contract6WorkEventToJson;
|
|
52
51
|
renderAdvanceHistoryGuard: typeof renderAdvanceHistoryGuard;
|
|
53
52
|
prepareTargetPlanAssuranceAdvanceHistory: (text: string, result: Parameters<typeof prepareTargetPlanAssuranceAdvanceHistory>[1], capability: TargetGrammar6Capability, options: TargetPlanAssuranceAdvanceHistoryOptions) => Promise<import("./target-assurance-advance-history.js").PreparedTargetPlanAssuranceAdvanceHistory>;
|
|
53
|
+
prepareAdvanceHistory: (text: string, result: import("./advance-history.js").AdvanceResultV1 | import("./target-actuals-advance.js").TargetActualsAdvanceResultV3, options: import("./advance-history.js").AdvanceHistoryPreparationOptions) => Promise<import("./advance-history.js").PreparedAdvanceHistory>;
|
|
54
|
+
withAdvanceHistoryRace: typeof withAdvanceHistoryRace;
|
|
54
55
|
withTargetPlanAssuranceAdvanceHistoryRace: typeof withTargetPlanAssuranceAdvanceHistoryRace;
|
|
55
56
|
persistTargetPlanAssuranceResult: (result: TargetPlanAssuranceWritableResult, capability: TargetGrammar6Capability, request: TargetPlanAssurancePersistenceRequest) => Promise<import("./target-assurance-write.js").TargetPlanAssuranceWriteProjection>;
|
|
56
57
|
inspectTargetPlanAssurance: typeof inspectTargetPlanAssurance;
|
|
@@ -76,9 +77,12 @@ export declare function createCliApplicationFacade(host: NodeHostPorts, historic
|
|
|
76
77
|
}>>;
|
|
77
78
|
readBytes: (path: string) => Promise<Uint8Array>;
|
|
78
79
|
recheckAdvanceHistoryBaseline: (baseline: import("../history/git-probe.js").AdvanceHistoryBaselineCapture, targetPath: string, dependencies?: import("../history/git-probe.js").AdvanceHistoryBaselineDependencies) => Promise<import("../history/git-probe.js").AdvanceHistoryBaselineRecheck>;
|
|
80
|
+
captureAdvanceHistoryBaseline: (request: import("../history/git-probe.js").AdvanceHistoryBaselineRequest, dependencies?: import("../history/git-probe.js").AdvanceHistoryBaselineDependencies) => Promise<import("../history/git-probe.js").AdvanceHistoryBaselineCapture>;
|
|
79
81
|
createArtifactFile: (target: string, artifact: string, options?: import("../io/safe-write.js").CreateArtifactOptions) => Promise<DocumentWriteResult>;
|
|
82
|
+
createValidatedDocumentFile: (target: string, candidateText: string, validator: import("../io/safe-write.js").DocumentCandidateValidator, options?: CreateDocumentOptions) => Promise<DocumentWriteResult>;
|
|
80
83
|
createTargetGrammar6DocumentFile: (target: string, candidateText: string, capability: TargetGrammar6Capability, options?: CreateDocumentOptions) => Promise<DocumentWriteResult>;
|
|
81
84
|
replaceTargetGrammar6DocumentFile: (target: string, candidateText: string, capability: TargetGrammar6Capability, options: ReplaceDocumentOptions) => Promise<DocumentWriteResult>;
|
|
85
|
+
replaceValidatedDocumentFile: (target: string, candidateText: string, options: ReplaceDocumentOptions, validator: import("../io/safe-write.js").DocumentCandidateValidator) => Promise<DocumentWriteResult>;
|
|
82
86
|
}>;
|
|
83
87
|
export type CliApplicationFacade = ReturnType<typeof createCliApplicationFacade>;
|
|
84
88
|
export type { TargetPlanAssuranceAdvanceResultV2WithHistory, };
|
|
@@ -1 +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,
|
|
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,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,WAAW,EACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,EACnB,MAAM,2BAA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3B,wBAAwB;;;;sCAkDC,UAAU;;;;;gCAlHL,MAAM;;;;;;;;;;+CAGrC,MAAM,iBACC,MAAM,cACT,wBAAwB,YAC3B,qBAAqB,KAC7B,OAAO,CAAC,mBAAmB,CAAC;gDAOrB,MAAM,iBACC,MAAM,cACT,wBAAwB,WAC3B,sBAAsB,KAC9B,OAAO,CAAC,mBAAmB,CAAC;;GA4GhC;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAC3C,OAAO,0BAA0B,CAClC,CAAC;AAEF,YAAY,EACV,6CAA6C,GAC9C,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { validateTargetGrammar6Document, } from "../semantic/target-validator.js";
|
|
2
|
-
import { analyzeDocument, checkDocument, selectNextTasks, } from "./
|
|
3
|
-
import { planAdvance,
|
|
4
|
-
import {
|
|
2
|
+
import { analyzeDocument, checkDocument, getProjectMetadata, planAssuranceMutation, planBatchMutation, planFinishActuals, planFormat, planLifecycle, planMutation, planUnitMigration, selectNextTasks, } from "./contract8-milestone-acceptance.js";
|
|
3
|
+
import { planAdvance, } from "./contract7-mutation.js";
|
|
4
|
+
import { contract7ProjectResultToJson, renderContract7ProjectText, } from "./contract7-project.js";
|
|
5
5
|
import { contract7InspectionResultToJson, contract7MutationResultToJson, contract7SnakeJson, } from "./contract7-projection.js";
|
|
6
|
-
import {
|
|
7
|
-
import { planUnitMigration, withUnitMigrationWrite, } from "./contract7-unit-migration.js";
|
|
6
|
+
import { withUnitMigrationWrite, } from "./contract7-unit-migration.js";
|
|
8
7
|
import { contract6WorkEventToJson, } from "./contract6-projection.js";
|
|
9
8
|
import { getAgentHelp, } from "./agent-help.js";
|
|
10
|
-
import { renderAdvanceHistoryGuard, } from "./advance-history.js";
|
|
9
|
+
import { prepareAdvanceHistory as prepareGenericAdvanceHistory, renderAdvanceHistoryGuard, withAdvanceHistoryRace, } from "./advance-history.js";
|
|
11
10
|
import { planProjectInit, projectInitResultToJson, renderProjectInitResult, withProjectInitOutput, } from "./init.js";
|
|
12
11
|
import { prepareTargetPlanAssuranceAdvanceHistory, withTargetPlanAssuranceAdvanceHistoryRace, } from "./target-assurance-advance-history.js";
|
|
13
12
|
import { inspectTargetPlanAssurance, } from "./target-assurance-inspection.js";
|
|
@@ -48,6 +47,10 @@ export function createCliApplicationFacade(host, historicalGitEvidence) {
|
|
|
48
47
|
...options,
|
|
49
48
|
captureBaseline: host.gitEvidence.captureAdvanceBaseline,
|
|
50
49
|
});
|
|
50
|
+
const prepareGenericHistory = (...args) => prepareGenericAdvanceHistory(args[0], args[1], {
|
|
51
|
+
...args[2],
|
|
52
|
+
captureBaseline: host.gitEvidence.captureAdvanceBaseline,
|
|
53
|
+
});
|
|
51
54
|
const persistPlanAssuranceResult = (result, capability, request) => persistTargetPlanAssuranceResult(result, capability, request, host.safePersistence);
|
|
52
55
|
const inspectHistoricalGraphFile = (request) => {
|
|
53
56
|
if (historicalGitEvidence === undefined) {
|
|
@@ -83,6 +86,8 @@ export function createCliApplicationFacade(host, historicalGitEvidence) {
|
|
|
83
86
|
contract6WorkEventToJson,
|
|
84
87
|
renderAdvanceHistoryGuard,
|
|
85
88
|
prepareTargetPlanAssuranceAdvanceHistory: prepareAdvanceHistory,
|
|
89
|
+
prepareAdvanceHistory: prepareGenericHistory,
|
|
90
|
+
withAdvanceHistoryRace,
|
|
86
91
|
withTargetPlanAssuranceAdvanceHistoryRace,
|
|
87
92
|
persistTargetPlanAssuranceResult: persistPlanAssuranceResult,
|
|
88
93
|
inspectTargetPlanAssurance,
|
|
@@ -100,9 +105,12 @@ export function createCliApplicationFacade(host, historicalGitEvidence) {
|
|
|
100
105
|
readDocumentContent,
|
|
101
106
|
readBytes: host.documentBytes.read,
|
|
102
107
|
recheckAdvanceHistoryBaseline: host.gitEvidence.recheckAdvanceBaseline,
|
|
108
|
+
captureAdvanceHistoryBaseline: host.gitEvidence.captureAdvanceBaseline,
|
|
103
109
|
createArtifactFile: host.safePersistence.createArtifact,
|
|
110
|
+
createValidatedDocumentFile: host.safePersistence.createValidatedDocument,
|
|
104
111
|
createTargetGrammar6DocumentFile: createTargetGrammar6Document,
|
|
105
112
|
replaceTargetGrammar6DocumentFile: replaceTargetGrammar6Document,
|
|
113
|
+
replaceValidatedDocumentFile: host.safePersistence.replaceValidatedDocument,
|
|
106
114
|
});
|
|
107
115
|
}
|
|
108
116
|
//# sourceMappingURL=cli-facade.js.map
|
|
@@ -1 +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,
|
|
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,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,qBAAqB,IAAI,4BAA4B,EACrD,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,eA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9C,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,6BAA6B,EAAE,IAAI,CAAC,WAAW,CAAC,sBAAsB;QACtE,kBAAkB,EAAE,IAAI,CAAC,eAAe,CAAC,cAAc;QACvD,2BAA2B,EAAE,IAAI,CAAC,eAAe,CAAC,uBAAuB;QACzE,gCAAgC,EAAE,4BAA4B;QAC9D,iCAAiC,EAAE,6BAA6B;QAChE,4BAA4B,EAAE,IAAI,CAAC,eAAe,CAAC,wBAAwB;KAC5E,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type MilestoneAcceptanceModelResultV1 } from "../milestone-acceptance/evaluate.js";
|
|
2
|
+
import type { AnalyzeOptions } from "./analyze.js";
|
|
3
|
+
import { planFormat as planContract7Format, type FormatPreviewResultV7 } from "./contract7-source.js";
|
|
4
|
+
import { type UnitMigrationOptions, type UnitMigrationResult } from "./contract7-unit-migration.js";
|
|
5
|
+
import type { NextOptions } from "./next.js";
|
|
6
|
+
import type { UnitMigrationRequest } from "../migration/request.js";
|
|
7
|
+
import { checkDocument as checkContract7Document, type AnalysisResultV5, type CheckResultV4, type Contract7NextResultV6 } from "./contract7-assurance.js";
|
|
8
|
+
import { planAssuranceMutation as planContract7AssuranceMutation, planBatchMutation as planContract7BatchMutation, planFinishActuals as planContract7FinishActuals, planLifecycle as planContract7Lifecycle, planMutation as planContract7Mutation, type AdvanceResultV2, type LifecycleResultV4, type MutationResultV4 } from "./contract7-mutation.js";
|
|
9
|
+
import { type ProjectMetadataResult } from "./contract7-project.js";
|
|
10
|
+
import type { CheckOptions } from "./check.js";
|
|
11
|
+
export declare const CHECK_RESULT_V5: "Perttool.CheckResult.v5";
|
|
12
|
+
export declare const ANALYSIS_RESULT_V6: "Perttool.AnalysisResult.v6";
|
|
13
|
+
export declare const NEXT_RESULT_V7: "Perttool.NextResult.v7";
|
|
14
|
+
export interface CheckResultV5 extends Omit<CheckResultV4, "schemaVersion"> {
|
|
15
|
+
readonly schemaVersion: typeof CHECK_RESULT_V5;
|
|
16
|
+
readonly acceptance: MilestoneAcceptanceModelResultV1 | null;
|
|
17
|
+
}
|
|
18
|
+
export interface AnalysisResultV6 extends Omit<AnalysisResultV5, "schemaVersion"> {
|
|
19
|
+
readonly schemaVersion: typeof ANALYSIS_RESULT_V6;
|
|
20
|
+
readonly acceptance: MilestoneAcceptanceModelResultV1 | null;
|
|
21
|
+
}
|
|
22
|
+
export type NextResultV7 = Omit<Contract7NextResultV6, "schemaVersion"> & {
|
|
23
|
+
readonly schemaVersion: typeof NEXT_RESULT_V7;
|
|
24
|
+
readonly acceptance: MilestoneAcceptanceModelResultV1 | null;
|
|
25
|
+
};
|
|
26
|
+
export interface Contract8CandidateOptions {
|
|
27
|
+
readonly originalLabel?: string;
|
|
28
|
+
readonly updatedLabel?: string;
|
|
29
|
+
}
|
|
30
|
+
export type Contract8LiftedCandidate<T> = T extends {
|
|
31
|
+
readonly schemaVersion: "Perttool.MutationResult.v4";
|
|
32
|
+
} ? Omit<T, "schemaVersion"> & {
|
|
33
|
+
readonly schemaVersion: "Perttool.MutationResult.v5";
|
|
34
|
+
} : T extends {
|
|
35
|
+
readonly schemaVersion: "Perttool.AdvanceResult.v2";
|
|
36
|
+
} ? Omit<T, "schemaVersion"> & {
|
|
37
|
+
readonly schemaVersion: "Perttool.AdvanceResult.v3";
|
|
38
|
+
} : T;
|
|
39
|
+
export type MutationResultV5 = Contract8LiftedCandidate<MutationResultV4>;
|
|
40
|
+
export type LifecycleResultV5 = Contract8LiftedCandidate<LifecycleResultV4>;
|
|
41
|
+
export type AdvanceResultV3 = Contract8LiftedCandidate<AdvanceResultV2>;
|
|
42
|
+
export declare function liftMilestoneAcceptanceCandidate<T extends {
|
|
43
|
+
readonly originalDigest: string;
|
|
44
|
+
readonly updatedDigest: string | null;
|
|
45
|
+
readonly updatedText: string | null;
|
|
46
|
+
readonly diff: string | null;
|
|
47
|
+
readonly edits: readonly {
|
|
48
|
+
readonly startOffset: number;
|
|
49
|
+
readonly endOffset: number;
|
|
50
|
+
readonly replacement: string;
|
|
51
|
+
}[];
|
|
52
|
+
}>(text: string, planner: (baseText: string) => T, options?: Contract8CandidateOptions): Contract8LiftedCandidate<T>;
|
|
53
|
+
export declare function checkDocument(text: string, options?: Parameters<typeof checkContract7Document>[1]): CheckResultV5;
|
|
54
|
+
export declare function analyzeDocument(text: string, options?: AnalyzeOptions): AnalysisResultV6;
|
|
55
|
+
export declare function selectNextTasks(text: string, options?: AnalyzeOptions & NextOptions): NextResultV7;
|
|
56
|
+
export declare function getProjectMetadata(text: string, options?: CheckOptions): ProjectMetadataResult;
|
|
57
|
+
export declare function planFormat(text: string, options?: Parameters<typeof planContract7Format>[1]): FormatPreviewResultV7;
|
|
58
|
+
export declare function planUnitMigration(text: string, request: UnitMigrationRequest, options?: UnitMigrationOptions): UnitMigrationResult;
|
|
59
|
+
export declare function planMutation(...args: Parameters<typeof planContract7Mutation>): Omit<import("../assurance/mutation.js").TargetPlanAssuranceMutationResultV4, "schemaVersion"> & {
|
|
60
|
+
readonly schemaVersion: "Perttool.MutationResult.v5";
|
|
61
|
+
};
|
|
62
|
+
export declare function planBatchMutation(...args: Parameters<typeof planContract7BatchMutation>): Omit<import("../assurance/mutation.js").TargetPlanAssuranceMutationResultV4, "schemaVersion"> & {
|
|
63
|
+
readonly schemaVersion: "Perttool.MutationResult.v5";
|
|
64
|
+
};
|
|
65
|
+
export declare function planLifecycle(...args: Parameters<typeof planContract7Lifecycle>): Omit<LifecycleResultV4, "schemaVersion"> & {
|
|
66
|
+
readonly schemaVersion: "Perttool.MutationResult.v5";
|
|
67
|
+
};
|
|
68
|
+
export declare function planFinishActuals(...args: Parameters<typeof planContract7FinishActuals>): Omit<LifecycleResultV4, "schemaVersion"> & {
|
|
69
|
+
readonly schemaVersion: "Perttool.MutationResult.v5";
|
|
70
|
+
};
|
|
71
|
+
export declare function planAssuranceMutation(...args: Parameters<typeof planContract7AssuranceMutation>): Omit<import("../assurance/mutation.js").TargetPlanAssuranceMutationResultV4, "schemaVersion"> & {
|
|
72
|
+
readonly schemaVersion: "Perttool.MutationResult.v5";
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=contract8-milestone-acceptance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract8-milestone-acceptance.d.ts","sourceRoot":"","sources":["../../src/application/contract8-milestone-acceptance.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AAUzH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,UAAU,IAAI,mBAAmB,EACjC,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAEL,aAAa,IAAI,sBAAsB,EAEvC,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,8BAA8B,EACvD,iBAAiB,IAAI,0BAA0B,EAC/C,iBAAiB,IAAI,0BAA0B,EAC/C,aAAa,IAAI,sBAAsB,EACvC,YAAY,IAAI,qBAAqB,EACrC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAC;AAChC,OAA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