perttool 0.5.0 → 0.5.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/README.md +51 -28
  3. package/dist/cli.js +24 -0
  4. package/dist/cli.js.map +1 -1
  5. package/dist/command/actuals-discovery.d.ts.map +1 -1
  6. package/dist/command/actuals-discovery.js +68 -11
  7. package/dist/command/actuals-discovery.js.map +1 -1
  8. package/dist/history/git-probe.d.ts +4 -0
  9. package/dist/history/git-probe.d.ts.map +1 -1
  10. package/dist/history/git-probe.js +23 -14
  11. package/dist/history/git-probe.js.map +1 -1
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/schema/registry.d.ts +36 -0
  17. package/dist/schema/registry.d.ts.map +1 -0
  18. package/dist/schema/registry.js +156 -0
  19. package/dist/schema/registry.js.map +1 -0
  20. package/dist/version.d.ts +1 -1
  21. package/dist/version.js +1 -1
  22. package/package.json +5 -2
  23. package/schemas/Perttool.AgentGuidanceResult.v1.schema.json +152 -0
  24. package/schemas/Perttool.AnalysisResult.v4.schema.json +124 -0
  25. package/schemas/Perttool.CheckResult.v3.schema.json +159 -0
  26. package/schemas/Perttool.CliError.v1.schema.json +83 -0
  27. package/schemas/Perttool.CommandHelpResult.v1.schema.json +165 -0
  28. package/schemas/Perttool.Common.v1.schema.json +508 -0
  29. package/schemas/Perttool.ExportResult.v1.schema.json +96 -0
  30. package/schemas/Perttool.FormatResult.v1.schema.json +82 -0
  31. package/schemas/Perttool.GuideResult.v1.schema.json +104 -0
  32. package/schemas/Perttool.ImportResult.v1.schema.json +111 -0
  33. package/schemas/Perttool.InitResult.v1.schema.json +70 -0
  34. package/schemas/Perttool.MutationResult.v3.schema.json +143 -0
  35. package/schemas/Perttool.NextResult.v5.schema.json +139 -0
  36. package/schemas/Perttool.OverrideDecision.v1.schema.json +170 -0
  37. package/schemas/Perttool.ProjectHistoryResult.v1.schema.json +139 -0
  38. package/schemas/Perttool.ProjectResult.v3.schema.json +144 -0
  39. package/schemas/Perttool.SchemaResult.v1.schema.json +84 -0
  40. package/schemas/Perttool.UnitMigrationResult.v3.schema.json +205 -0
  41. package/schemas/Perttool.VelocityObservationResult.v1.schema.json +102 -0
@@ -0,0 +1,205 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mako10k/perttool/schemas/Perttool.UnitMigrationResult.v3.schema.json",
4
+ "title": "Perttool.UnitMigrationResult.v3",
5
+ "type": "object",
6
+ "required": [
7
+ "schema_version",
8
+ "cli_contract_version",
9
+ "tool_version",
10
+ "operation",
11
+ "ok",
12
+ "document_id",
13
+ "source",
14
+ "source_digest",
15
+ "diagnostics",
16
+ "diagnostics_truncated",
17
+ "unit_migration",
18
+ "source_grammar_version",
19
+ "target_grammar_version",
20
+ "grammar_disposition",
21
+ "source_unit",
22
+ "target_unit",
23
+ "effective_velocity",
24
+ "velocity_disposition",
25
+ "changed",
26
+ "converted_fields",
27
+ "reversibility",
28
+ "qualifications",
29
+ "unavailable_causes",
30
+ "original_digest",
31
+ "updated_digest",
32
+ "updated_text",
33
+ "diff",
34
+ "edits",
35
+ "write"
36
+ ],
37
+ "properties": {
38
+ "schema_version": {
39
+ "const": "Perttool.UnitMigrationResult.v3"
40
+ },
41
+ "cli_contract_version": {
42
+ "const": 6
43
+ },
44
+ "tool_version": {
45
+ "type": "string"
46
+ },
47
+ "operation": {
48
+ "const": "project.migrate-unit"
49
+ },
50
+ "ok": {
51
+ "type": "boolean"
52
+ },
53
+ "document_id": {
54
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
55
+ },
56
+ "source": {
57
+ "type": "string"
58
+ },
59
+ "source_digest": {
60
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/digest"
61
+ },
62
+ "diagnostics": {
63
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/diagnostics"
64
+ },
65
+ "diagnostics_truncated": {
66
+ "type": "boolean"
67
+ },
68
+ "unit_migration": {
69
+ "type": "object",
70
+ "required": [
71
+ "id",
72
+ "version"
73
+ ],
74
+ "properties": {
75
+ "id": {
76
+ "const": "perttool.unit-migration"
77
+ },
78
+ "version": {
79
+ "const": 3
80
+ }
81
+ },
82
+ "additionalProperties": false
83
+ },
84
+ "source_grammar_version": {
85
+ "type": [
86
+ "integer",
87
+ "null"
88
+ ]
89
+ },
90
+ "target_grammar_version": {
91
+ "type": [
92
+ "integer",
93
+ "null"
94
+ ]
95
+ },
96
+ "grammar_disposition": {
97
+ "type": [
98
+ "string",
99
+ "null"
100
+ ]
101
+ },
102
+ "source_unit": {
103
+ "type": [
104
+ "string",
105
+ "null"
106
+ ]
107
+ },
108
+ "target_unit": {
109
+ "type": [
110
+ "string",
111
+ "null"
112
+ ]
113
+ },
114
+ "effective_velocity": {
115
+ "type": [
116
+ "object",
117
+ "null"
118
+ ]
119
+ },
120
+ "velocity_disposition": {
121
+ "type": [
122
+ "string",
123
+ "null"
124
+ ]
125
+ },
126
+ "changed": {
127
+ "type": "boolean"
128
+ },
129
+ "converted_fields": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "object",
133
+ "required": [
134
+ "entity_kind",
135
+ "entity_id",
136
+ "field_path",
137
+ "original",
138
+ "converted",
139
+ "canonical_token"
140
+ ],
141
+ "properties": {
142
+ "entity_kind": {
143
+ "type": "string"
144
+ },
145
+ "entity_id": {
146
+ "type": "string"
147
+ },
148
+ "field_path": {
149
+ "type": "string"
150
+ },
151
+ "original": {
152
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/quantity"
153
+ },
154
+ "converted": {
155
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/quantity"
156
+ },
157
+ "canonical_token": {
158
+ "type": "string"
159
+ }
160
+ },
161
+ "additionalProperties": false
162
+ }
163
+ },
164
+ "reversibility": {
165
+ "type": [
166
+ "string",
167
+ "null"
168
+ ]
169
+ },
170
+ "qualifications": {
171
+ "type": "array",
172
+ "items": {
173
+ "type": "object"
174
+ }
175
+ },
176
+ "unavailable_causes": {
177
+ "type": "array",
178
+ "items": {
179
+ "type": "object"
180
+ }
181
+ },
182
+ "original_digest": {
183
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableDigest"
184
+ },
185
+ "updated_digest": {
186
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableDigest"
187
+ },
188
+ "updated_text": {
189
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
190
+ },
191
+ "diff": {
192
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
193
+ },
194
+ "edits": {
195
+ "type": "array",
196
+ "items": {
197
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/edit"
198
+ }
199
+ },
200
+ "write": {
201
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/write"
202
+ }
203
+ },
204
+ "additionalProperties": false
205
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mako10k/perttool/schemas/Perttool.VelocityObservationResult.v1.schema.json",
4
+ "title": "Perttool.VelocityObservationResult.v1",
5
+ "type": "object",
6
+ "required": [
7
+ "schema_version",
8
+ "cli_contract_version",
9
+ "tool_version",
10
+ "operation",
11
+ "ok",
12
+ "document_id",
13
+ "source",
14
+ "source_digest",
15
+ "diagnostics",
16
+ "diagnostics_truncated",
17
+ "grammar_version",
18
+ "history",
19
+ "observation"
20
+ ],
21
+ "properties": {
22
+ "schema_version": {
23
+ "const": "Perttool.VelocityObservationResult.v1"
24
+ },
25
+ "cli_contract_version": {
26
+ "const": 6
27
+ },
28
+ "tool_version": {
29
+ "type": "string"
30
+ },
31
+ "operation": {
32
+ "const": "project.observe-velocity"
33
+ },
34
+ "ok": {
35
+ "type": "boolean"
36
+ },
37
+ "document_id": {
38
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
39
+ },
40
+ "source": {
41
+ "type": "string"
42
+ },
43
+ "source_digest": {
44
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableDigest"
45
+ },
46
+ "diagnostics": {
47
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/diagnostics"
48
+ },
49
+ "diagnostics_truncated": {
50
+ "type": "boolean"
51
+ },
52
+ "grammar_version": {
53
+ "type": [
54
+ "integer",
55
+ "null"
56
+ ]
57
+ },
58
+ "history": {
59
+ "type": "object"
60
+ },
61
+ "observation": {
62
+ "type": "object",
63
+ "required": [
64
+ "id",
65
+ "version",
66
+ "history_model_version",
67
+ "selected_task_ids",
68
+ "evidence",
69
+ "candidates"
70
+ ],
71
+ "properties": {
72
+ "id": {
73
+ "const": "perttool.velocity-observation"
74
+ },
75
+ "version": {
76
+ "const": 1
77
+ },
78
+ "history_model_version": {
79
+ "const": 1
80
+ },
81
+ "selected_task_ids": {
82
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/stringArray"
83
+ },
84
+ "evidence": {
85
+ "enum": [
86
+ "declared",
87
+ "git-recorded",
88
+ "all"
89
+ ]
90
+ },
91
+ "candidates": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "object"
95
+ }
96
+ }
97
+ },
98
+ "additionalProperties": false
99
+ }
100
+ },
101
+ "additionalProperties": false
102
+ }