perttool 0.4.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 (246) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/README.md +107 -34
  3. package/dist/actuals/lifecycle.d.ts +101 -0
  4. package/dist/actuals/lifecycle.d.ts.map +1 -0
  5. package/dist/actuals/lifecycle.js +329 -0
  6. package/dist/actuals/lifecycle.js.map +1 -0
  7. package/dist/actuals/source.d.ts +36 -0
  8. package/dist/actuals/source.d.ts.map +1 -0
  9. package/dist/actuals/source.js +119 -0
  10. package/dist/actuals/source.js.map +1 -0
  11. package/dist/analysis/temporal-deadline.d.ts +2 -2
  12. package/dist/analysis/temporal-deadline.d.ts.map +1 -1
  13. package/dist/analysis/temporal-deadline.js.map +1 -1
  14. package/dist/analysis/temporal-precedence.d.ts +2 -2
  15. package/dist/analysis/temporal-precedence.d.ts.map +1 -1
  16. package/dist/analysis/temporal-precedence.js +2 -0
  17. package/dist/analysis/temporal-precedence.js.map +1 -1
  18. package/dist/analysis/temporal-resource.d.ts +2 -2
  19. package/dist/analysis/temporal-resource.d.ts.map +1 -1
  20. package/dist/analysis/temporal-resource.js +2 -0
  21. package/dist/analysis/temporal-resource.js.map +1 -1
  22. package/dist/application/analyze.d.ts +1 -0
  23. package/dist/application/analyze.d.ts.map +1 -1
  24. package/dist/application/analyze.js +38 -29
  25. package/dist/application/analyze.js.map +1 -1
  26. package/dist/application/check.d.ts +3 -0
  27. package/dist/application/check.d.ts.map +1 -1
  28. package/dist/application/check.js +17 -1
  29. package/dist/application/check.js.map +1 -1
  30. package/dist/application/contract6-actuals.d.ts +24 -0
  31. package/dist/application/contract6-actuals.d.ts.map +1 -0
  32. package/dist/application/contract6-actuals.js +51 -0
  33. package/dist/application/contract6-actuals.js.map +1 -0
  34. package/dist/application/contract6-mutation.d.ts +18 -0
  35. package/dist/application/contract6-mutation.d.ts.map +1 -0
  36. package/dist/application/contract6-mutation.js +173 -0
  37. package/dist/application/contract6-mutation.js.map +1 -0
  38. package/dist/application/contract6-projection.d.ts +9 -0
  39. package/dist/application/contract6-projection.d.ts.map +1 -0
  40. package/dist/application/contract6-projection.js +105 -0
  41. package/dist/application/contract6-projection.js.map +1 -0
  42. package/dist/application/init.d.ts +1 -1
  43. package/dist/application/init.js +3 -3
  44. package/dist/application/project.js +2 -2
  45. package/dist/application/target-actuals-advance.d.ts +12 -0
  46. package/dist/application/target-actuals-advance.d.ts.map +1 -0
  47. package/dist/application/target-actuals-advance.js +113 -0
  48. package/dist/application/target-actuals-advance.js.map +1 -0
  49. package/dist/application/target-actuals-analysis.d.ts +76 -0
  50. package/dist/application/target-actuals-analysis.d.ts.map +1 -0
  51. package/dist/application/target-actuals-analysis.js +250 -0
  52. package/dist/application/target-actuals-analysis.js.map +1 -0
  53. package/dist/application/target-actuals-mutation.d.ts +28 -0
  54. package/dist/application/target-actuals-mutation.d.ts.map +1 -0
  55. package/dist/application/target-actuals-mutation.js +404 -0
  56. package/dist/application/target-actuals-mutation.js.map +1 -0
  57. package/dist/application/target-actuals-write.d.ts +7 -0
  58. package/dist/application/target-actuals-write.d.ts.map +1 -0
  59. package/dist/application/target-actuals-write.js +37 -0
  60. package/dist/application/target-actuals-write.js.map +1 -0
  61. package/dist/application/target-governance-init.d.ts +3 -3
  62. package/dist/application/target-governance-init.d.ts.map +1 -1
  63. package/dist/application/target-governance-init.js +20 -10
  64. package/dist/application/target-governance-init.js.map +1 -1
  65. package/dist/application/target-governance-project.d.ts +4 -4
  66. package/dist/application/target-governance-project.d.ts.map +1 -1
  67. package/dist/application/target-governance-project.js +4 -2
  68. package/dist/application/target-governance-project.js.map +1 -1
  69. package/dist/application/target-governance-write.d.ts +8 -0
  70. package/dist/application/target-governance-write.d.ts.map +1 -1
  71. package/dist/application/target-governance-write.js +1 -1
  72. package/dist/application/target-governance-write.js.map +1 -1
  73. package/dist/application/target-mutate.d.ts +3 -1
  74. package/dist/application/target-mutate.d.ts.map +1 -1
  75. package/dist/application/target-mutate.js +34 -2
  76. package/dist/application/target-mutate.js.map +1 -1
  77. package/dist/application/target-project-history.d.ts +18 -0
  78. package/dist/application/target-project-history.d.ts.map +1 -0
  79. package/dist/application/target-project-history.js +279 -0
  80. package/dist/application/target-project-history.js.map +1 -0
  81. package/dist/application/target-temporal-analysis.d.ts +7 -1
  82. package/dist/application/target-temporal-analysis.d.ts.map +1 -1
  83. package/dist/application/target-temporal-analysis.js +10 -8
  84. package/dist/application/target-temporal-analysis.js.map +1 -1
  85. package/dist/application/target-temporal-input.d.ts +6 -4
  86. package/dist/application/target-temporal-input.d.ts.map +1 -1
  87. package/dist/application/target-temporal-input.js +10 -1
  88. package/dist/application/target-temporal-input.js.map +1 -1
  89. package/dist/application/target-unit-migration-candidate.d.ts +2 -2
  90. package/dist/application/target-unit-migration-candidate.d.ts.map +1 -1
  91. package/dist/application/target-unit-migration-candidate.js +21 -10
  92. package/dist/application/target-unit-migration-candidate.js.map +1 -1
  93. package/dist/application/target-unit-migration-request.d.ts +4 -4
  94. package/dist/application/target-unit-migration-request.d.ts.map +1 -1
  95. package/dist/application/target-unit-migration-request.js +6 -4
  96. package/dist/application/target-unit-migration-request.js.map +1 -1
  97. package/dist/application/target-unit-migration-result.d.ts +5 -5
  98. package/dist/application/target-unit-migration-result.d.ts.map +1 -1
  99. package/dist/application/target-unit-migration-result.js +1 -1
  100. package/dist/application/target-unit-migration-result.js.map +1 -1
  101. package/dist/application/target-velocity-observation.d.ts +11 -0
  102. package/dist/application/target-velocity-observation.d.ts.map +1 -0
  103. package/dist/application/target-velocity-observation.js +201 -0
  104. package/dist/application/target-velocity-observation.js.map +1 -0
  105. package/dist/application/unit-migration.d.ts +2 -2
  106. package/dist/application/unit-migration.d.ts.map +1 -1
  107. package/dist/application/unit-migration.js +2 -2
  108. package/dist/cli.js +309 -45
  109. package/dist/cli.js.map +1 -1
  110. package/dist/command/actuals-discovery.d.ts +26 -0
  111. package/dist/command/actuals-discovery.d.ts.map +1 -0
  112. package/dist/command/actuals-discovery.js +328 -0
  113. package/dist/command/actuals-discovery.js.map +1 -0
  114. package/dist/command/actuals-usage.d.ts +22 -0
  115. package/dist/command/actuals-usage.d.ts.map +1 -0
  116. package/dist/command/actuals-usage.js +122 -0
  117. package/dist/command/actuals-usage.js.map +1 -0
  118. package/dist/formatter/source-formatter.d.ts +3 -3
  119. package/dist/formatter/source-formatter.d.ts.map +1 -1
  120. package/dist/formatter/source-formatter.js +53 -5
  121. package/dist/formatter/source-formatter.js.map +1 -1
  122. package/dist/formatter/target-source-formatter.d.ts +2 -1
  123. package/dist/formatter/target-source-formatter.d.ts.map +1 -1
  124. package/dist/formatter/target-source-formatter.js +18 -2
  125. package/dist/formatter/target-source-formatter.js.map +1 -1
  126. package/dist/governance/authority.d.ts +7 -3
  127. package/dist/governance/authority.d.ts.map +1 -1
  128. package/dist/governance/authority.js.map +1 -1
  129. package/dist/governance/source.d.ts +2 -2
  130. package/dist/governance/source.d.ts.map +1 -1
  131. package/dist/governance/source.js.map +1 -1
  132. package/dist/help/actuals-guide.d.ts +10 -0
  133. package/dist/help/actuals-guide.d.ts.map +1 -0
  134. package/dist/help/actuals-guide.js +23 -0
  135. package/dist/help/actuals-guide.js.map +1 -0
  136. package/dist/help/guide.d.ts +1 -1
  137. package/dist/help/guide.d.ts.map +1 -1
  138. package/dist/help/registry.d.ts.map +1 -1
  139. package/dist/help/registry.js +97 -7
  140. package/dist/help/registry.js.map +1 -1
  141. package/dist/history/git-probe.d.ts +56 -0
  142. package/dist/history/git-probe.d.ts.map +1 -0
  143. package/dist/history/git-probe.js +574 -0
  144. package/dist/history/git-probe.js.map +1 -0
  145. package/dist/history/project-history.d.ts +112 -0
  146. package/dist/history/project-history.d.ts.map +1 -0
  147. package/dist/history/project-history.js +786 -0
  148. package/dist/history/project-history.js.map +1 -0
  149. package/dist/history/velocity-observation.d.ts +69 -0
  150. package/dist/history/velocity-observation.d.ts.map +1 -0
  151. package/dist/history/velocity-observation.js +604 -0
  152. package/dist/history/velocity-observation.js.map +1 -0
  153. package/dist/index.d.ts +21 -10
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.js +10 -5
  156. package/dist/index.js.map +1 -1
  157. package/dist/io/target-safe-write.d.ts +4 -1
  158. package/dist/io/target-safe-write.d.ts.map +1 -1
  159. package/dist/io/target-safe-write.js +19 -1
  160. package/dist/io/target-safe-write.js.map +1 -1
  161. package/dist/migration/conversion.d.ts +1 -1
  162. package/dist/migration/conversion.d.ts.map +1 -1
  163. package/dist/migration/grammar-boundary.d.ts +1 -1
  164. package/dist/migration/grammar-boundary.d.ts.map +1 -1
  165. package/dist/migration/grammar-boundary.js +11 -3
  166. package/dist/migration/grammar-boundary.js.map +1 -1
  167. package/dist/migration/request.d.ts +5 -5
  168. package/dist/migration/request.d.ts.map +1 -1
  169. package/dist/migration/request.js +15 -2
  170. package/dist/migration/request.js.map +1 -1
  171. package/dist/model/calendar.d.ts +2 -0
  172. package/dist/model/calendar.d.ts.map +1 -1
  173. package/dist/model/calendar.js +19 -0
  174. package/dist/model/calendar.js.map +1 -1
  175. package/dist/model/declaration-fields.d.ts +8 -0
  176. package/dist/model/declaration-fields.d.ts.map +1 -1
  177. package/dist/model/declaration-fields.js +13 -0
  178. package/dist/model/declaration-fields.js.map +1 -1
  179. package/dist/model/exact-person-hours-source.d.ts +2 -0
  180. package/dist/model/exact-person-hours-source.d.ts.map +1 -0
  181. package/dist/model/exact-person-hours-source.js +10 -0
  182. package/dist/model/exact-person-hours-source.js.map +1 -0
  183. package/dist/model/syntax.d.ts +23 -8
  184. package/dist/model/syntax.d.ts.map +1 -1
  185. package/dist/model/syntax.js.map +1 -1
  186. package/dist/mutation/actuals.d.ts +17 -0
  187. package/dist/mutation/actuals.d.ts.map +1 -0
  188. package/dist/mutation/actuals.js +90 -0
  189. package/dist/mutation/actuals.js.map +1 -0
  190. package/dist/mutation/advance.d.ts +9 -3
  191. package/dist/mutation/advance.d.ts.map +1 -1
  192. package/dist/mutation/advance.js +41 -12
  193. package/dist/mutation/advance.js.map +1 -1
  194. package/dist/mutation/entity-editor.d.ts +2 -2
  195. package/dist/mutation/entity-editor.d.ts.map +1 -1
  196. package/dist/mutation/entity-editor.js.map +1 -1
  197. package/dist/mutation/project.d.ts +2 -0
  198. package/dist/mutation/project.d.ts.map +1 -1
  199. package/dist/mutation/project.js +13 -4
  200. package/dist/mutation/project.js.map +1 -1
  201. package/dist/mutation/source.d.ts +3 -3
  202. package/dist/mutation/source.d.ts.map +1 -1
  203. package/dist/mutation/source.js.map +1 -1
  204. package/dist/parser/document-parser.d.ts +8 -1
  205. package/dist/parser/document-parser.d.ts.map +1 -1
  206. package/dist/parser/document-parser.js +151 -23
  207. package/dist/parser/document-parser.js.map +1 -1
  208. package/dist/recommendation/override-types.d.ts +2 -2
  209. package/dist/recommendation/override.d.ts +2 -2
  210. package/dist/recommendation/override.d.ts.map +1 -1
  211. package/dist/recommendation/override.js +2 -2
  212. package/dist/recommendation/override.js.map +1 -1
  213. package/dist/schema/registry.d.ts +36 -0
  214. package/dist/schema/registry.d.ts.map +1 -0
  215. package/dist/schema/registry.js +156 -0
  216. package/dist/schema/registry.js.map +1 -0
  217. package/dist/semantic/target-validator.d.ts +13 -2
  218. package/dist/semantic/target-validator.d.ts.map +1 -1
  219. package/dist/semantic/target-validator.js +46 -2
  220. package/dist/semantic/target-validator.js.map +1 -1
  221. package/dist/semantic/validator.d.ts +4 -1
  222. package/dist/semantic/validator.d.ts.map +1 -1
  223. package/dist/semantic/validator.js +152 -6
  224. package/dist/semantic/validator.js.map +1 -1
  225. package/dist/version.d.ts +1 -1
  226. package/dist/version.js +1 -1
  227. package/package.json +7 -3
  228. package/schemas/Perttool.AgentGuidanceResult.v1.schema.json +152 -0
  229. package/schemas/Perttool.AnalysisResult.v4.schema.json +124 -0
  230. package/schemas/Perttool.CheckResult.v3.schema.json +159 -0
  231. package/schemas/Perttool.CliError.v1.schema.json +83 -0
  232. package/schemas/Perttool.CommandHelpResult.v1.schema.json +165 -0
  233. package/schemas/Perttool.Common.v1.schema.json +508 -0
  234. package/schemas/Perttool.ExportResult.v1.schema.json +96 -0
  235. package/schemas/Perttool.FormatResult.v1.schema.json +82 -0
  236. package/schemas/Perttool.GuideResult.v1.schema.json +104 -0
  237. package/schemas/Perttool.ImportResult.v1.schema.json +111 -0
  238. package/schemas/Perttool.InitResult.v1.schema.json +70 -0
  239. package/schemas/Perttool.MutationResult.v3.schema.json +143 -0
  240. package/schemas/Perttool.NextResult.v5.schema.json +139 -0
  241. package/schemas/Perttool.OverrideDecision.v1.schema.json +170 -0
  242. package/schemas/Perttool.ProjectHistoryResult.v1.schema.json +139 -0
  243. package/schemas/Perttool.ProjectResult.v3.schema.json +144 -0
  244. package/schemas/Perttool.SchemaResult.v1.schema.json +84 -0
  245. package/schemas/Perttool.UnitMigrationResult.v3.schema.json +205 -0
  246. package/schemas/Perttool.VelocityObservationResult.v1.schema.json +102 -0
@@ -0,0 +1,152 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mako10k/perttool/schemas/Perttool.AgentGuidanceResult.v1.schema.json",
4
+ "title": "Perttool.AgentGuidanceResult.v1",
5
+ "type": "object",
6
+ "required": [
7
+ "schema_version",
8
+ "cli_contract_version",
9
+ "guidance_interface_version",
10
+ "profile_schema_version",
11
+ "profile_data_version",
12
+ "guidance_taxonomy_version",
13
+ "risk_taxonomy_version",
14
+ "description_registry_version",
15
+ "description_locale",
16
+ "staleness_policy_version",
17
+ "tool_version",
18
+ "operation",
19
+ "ok",
20
+ "profile_digest",
21
+ "snapshot_as_of",
22
+ "query",
23
+ "providers",
24
+ "guidance_records",
25
+ "risk_records",
26
+ "sources",
27
+ "capabilities",
28
+ "diagnostics"
29
+ ],
30
+ "properties": {
31
+ "schema_version": {
32
+ "const": "Perttool.AgentGuidanceResult.v1"
33
+ },
34
+ "cli_contract_version": {
35
+ "const": 6
36
+ },
37
+ "guidance_interface_version": {
38
+ "const": 1
39
+ },
40
+ "profile_schema_version": {
41
+ "type": "string"
42
+ },
43
+ "profile_data_version": {
44
+ "type": "integer",
45
+ "minimum": 1
46
+ },
47
+ "guidance_taxonomy_version": {
48
+ "type": "integer",
49
+ "minimum": 1
50
+ },
51
+ "risk_taxonomy_version": {
52
+ "type": "integer",
53
+ "minimum": 1
54
+ },
55
+ "description_registry_version": {
56
+ "type": "integer",
57
+ "minimum": 1
58
+ },
59
+ "description_locale": {
60
+ "const": "en"
61
+ },
62
+ "staleness_policy_version": {
63
+ "type": "integer",
64
+ "minimum": 1
65
+ },
66
+ "tool_version": {
67
+ "type": "string"
68
+ },
69
+ "operation": {
70
+ "const": "agent.help"
71
+ },
72
+ "ok": {
73
+ "type": "boolean"
74
+ },
75
+ "profile_digest": {
76
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/digest"
77
+ },
78
+ "snapshot_as_of": {
79
+ "type": "string"
80
+ },
81
+ "query": {
82
+ "type": "object"
83
+ },
84
+ "providers": {
85
+ "type": "array",
86
+ "items": {
87
+ "type": "object"
88
+ }
89
+ },
90
+ "guidance_records": {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "object"
94
+ }
95
+ },
96
+ "risk_records": {
97
+ "type": "array",
98
+ "items": {
99
+ "type": "object"
100
+ }
101
+ },
102
+ "sources": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "object"
106
+ }
107
+ },
108
+ "capabilities": {
109
+ "type": "object",
110
+ "required": [
111
+ "reads_project_files",
112
+ "writes_files",
113
+ "executes_hooks",
114
+ "executes_commands",
115
+ "accesses_network",
116
+ "reads_provider_state",
117
+ "writes_provider_state"
118
+ ],
119
+ "properties": {
120
+ "reads_project_files": {
121
+ "type": "boolean"
122
+ },
123
+ "writes_files": {
124
+ "type": "boolean"
125
+ },
126
+ "executes_hooks": {
127
+ "type": "boolean"
128
+ },
129
+ "executes_commands": {
130
+ "type": "boolean"
131
+ },
132
+ "accesses_network": {
133
+ "type": "boolean"
134
+ },
135
+ "reads_provider_state": {
136
+ "type": "boolean"
137
+ },
138
+ "writes_provider_state": {
139
+ "type": "boolean"
140
+ }
141
+ },
142
+ "additionalProperties": false
143
+ },
144
+ "diagnostics": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "object"
148
+ }
149
+ }
150
+ },
151
+ "additionalProperties": false
152
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mako10k/perttool/schemas/Perttool.AnalysisResult.v4.schema.json",
4
+ "title": "Perttool.AnalysisResult.v4",
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
+ "task_actuals",
19
+ "mode",
20
+ "precision",
21
+ "precedence",
22
+ "resource",
23
+ "temporal"
24
+ ],
25
+ "properties": {
26
+ "schema_version": {
27
+ "const": "Perttool.AnalysisResult.v4"
28
+ },
29
+ "cli_contract_version": {
30
+ "const": 6
31
+ },
32
+ "tool_version": {
33
+ "type": "string"
34
+ },
35
+ "operation": {
36
+ "const": "dag.analyze"
37
+ },
38
+ "ok": {
39
+ "type": "boolean"
40
+ },
41
+ "document_id": {
42
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
43
+ },
44
+ "source": {
45
+ "type": "string"
46
+ },
47
+ "source_digest": {
48
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/digest"
49
+ },
50
+ "diagnostics": {
51
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/diagnostics"
52
+ },
53
+ "diagnostics_truncated": {
54
+ "type": "boolean"
55
+ },
56
+ "grammar_version": {
57
+ "type": [
58
+ "integer",
59
+ "null"
60
+ ],
61
+ "minimum": 1,
62
+ "maximum": 5
63
+ },
64
+ "task_actuals": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "object"
68
+ }
69
+ },
70
+ "mode": {
71
+ "enum": [
72
+ "precedence",
73
+ "resource",
74
+ "both"
75
+ ]
76
+ },
77
+ "precision": {
78
+ "type": "integer",
79
+ "minimum": 0,
80
+ "maximum": 9
81
+ },
82
+ "duration_unit": {
83
+ "enum": [
84
+ "day",
85
+ "hour",
86
+ "point"
87
+ ]
88
+ },
89
+ "critical_epsilon": {
90
+ "type": "object"
91
+ },
92
+ "velocity": {
93
+ "type": [
94
+ "object",
95
+ "null"
96
+ ]
97
+ },
98
+ "velocity_forecast": {
99
+ "type": [
100
+ "object",
101
+ "null"
102
+ ]
103
+ },
104
+ "precedence": {
105
+ "type": [
106
+ "object",
107
+ "null"
108
+ ]
109
+ },
110
+ "resource": {
111
+ "type": [
112
+ "object",
113
+ "null"
114
+ ]
115
+ },
116
+ "temporal": {
117
+ "type": [
118
+ "object",
119
+ "null"
120
+ ]
121
+ }
122
+ },
123
+ "additionalProperties": false
124
+ }
@@ -0,0 +1,159 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mako10k/perttool/schemas/Perttool.CheckResult.v3.schema.json",
4
+ "title": "Perttool.CheckResult.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
+ "grammar_version",
18
+ "summary",
19
+ "temporal_inputs",
20
+ "actuals_inputs"
21
+ ],
22
+ "properties": {
23
+ "schema_version": {
24
+ "const": "Perttool.CheckResult.v3"
25
+ },
26
+ "cli_contract_version": {
27
+ "const": 6
28
+ },
29
+ "tool_version": {
30
+ "type": "string"
31
+ },
32
+ "operation": {
33
+ "const": "document.check"
34
+ },
35
+ "ok": {
36
+ "type": "boolean"
37
+ },
38
+ "document_id": {
39
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
40
+ },
41
+ "source": {
42
+ "type": "string"
43
+ },
44
+ "source_digest": {
45
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/digest"
46
+ },
47
+ "diagnostics": {
48
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/diagnostics"
49
+ },
50
+ "diagnostics_truncated": {
51
+ "type": "boolean"
52
+ },
53
+ "grammar_version": {
54
+ "type": [
55
+ "integer",
56
+ "null"
57
+ ],
58
+ "minimum": 1,
59
+ "maximum": 5
60
+ },
61
+ "summary": {
62
+ "type": "object",
63
+ "required": [
64
+ "resources",
65
+ "milestones",
66
+ "tasks",
67
+ "gates",
68
+ "errors",
69
+ "warnings"
70
+ ],
71
+ "properties": {
72
+ "resources": {
73
+ "type": "integer",
74
+ "minimum": 0
75
+ },
76
+ "milestones": {
77
+ "type": "integer",
78
+ "minimum": 0
79
+ },
80
+ "tasks": {
81
+ "type": "integer",
82
+ "minimum": 0
83
+ },
84
+ "gates": {
85
+ "type": "integer",
86
+ "minimum": 0
87
+ },
88
+ "errors": {
89
+ "type": "integer",
90
+ "minimum": 0
91
+ },
92
+ "warnings": {
93
+ "type": "integer",
94
+ "minimum": 0
95
+ }
96
+ },
97
+ "additionalProperties": false
98
+ },
99
+ "temporal_inputs": {
100
+ "type": [
101
+ "object",
102
+ "null"
103
+ ],
104
+ "required": [
105
+ "anchor",
106
+ "milestone_deadlines",
107
+ "task_constraints"
108
+ ],
109
+ "properties": {
110
+ "anchor": {
111
+ "oneOf": [
112
+ {
113
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/calendarValue"
114
+ },
115
+ {
116
+ "type": "null"
117
+ }
118
+ ]
119
+ },
120
+ "milestone_deadlines": {
121
+ "type": "array",
122
+ "items": {
123
+ "type": "object"
124
+ }
125
+ },
126
+ "task_constraints": {
127
+ "type": "array",
128
+ "items": {
129
+ "type": "object"
130
+ }
131
+ }
132
+ },
133
+ "additionalProperties": false
134
+ },
135
+ "actuals_inputs": {
136
+ "type": [
137
+ "object",
138
+ "null"
139
+ ],
140
+ "required": [
141
+ "model_version",
142
+ "events"
143
+ ],
144
+ "properties": {
145
+ "model_version": {
146
+ "const": 1
147
+ },
148
+ "events": {
149
+ "type": "array",
150
+ "items": {
151
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/workEvent"
152
+ }
153
+ }
154
+ },
155
+ "additionalProperties": false
156
+ }
157
+ },
158
+ "additionalProperties": false
159
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mako10k/perttool/schemas/Perttool.CliError.v1.schema.json",
4
+ "title": "Perttool.CliError.v1",
5
+ "type": "object",
6
+ "required": [
7
+ "schema_version",
8
+ "cli_contract_version",
9
+ "tool_version",
10
+ "operation",
11
+ "ok",
12
+ "diagnostics"
13
+ ],
14
+ "properties": {
15
+ "schema_version": {
16
+ "const": "Perttool.CliError.v1"
17
+ },
18
+ "cli_contract_version": {
19
+ "const": 6
20
+ },
21
+ "tool_version": {
22
+ "type": "string"
23
+ },
24
+ "operation": {
25
+ "type": [
26
+ "string",
27
+ "null"
28
+ ]
29
+ },
30
+ "ok": {
31
+ "const": false
32
+ },
33
+ "help_target": {
34
+ "type": "object",
35
+ "required": [
36
+ "resource",
37
+ "action"
38
+ ],
39
+ "properties": {
40
+ "resource": {
41
+ "type": [
42
+ "string",
43
+ "null"
44
+ ]
45
+ },
46
+ "action": {
47
+ "type": [
48
+ "string",
49
+ "null"
50
+ ]
51
+ }
52
+ },
53
+ "additionalProperties": false
54
+ },
55
+ "usage": {
56
+ "type": "object",
57
+ "required": [
58
+ "kind",
59
+ "token",
60
+ "suggestion"
61
+ ],
62
+ "properties": {
63
+ "kind": {
64
+ "type": "string"
65
+ },
66
+ "token": {
67
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
68
+ },
69
+ "suggestion": {
70
+ "type": [
71
+ "object",
72
+ "null"
73
+ ]
74
+ }
75
+ },
76
+ "additionalProperties": false
77
+ },
78
+ "diagnostics": {
79
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/diagnostics"
80
+ }
81
+ },
82
+ "additionalProperties": false
83
+ }
@@ -0,0 +1,165 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mako10k/perttool/schemas/Perttool.CommandHelpResult.v1.schema.json",
4
+ "title": "Perttool.CommandHelpResult.v1",
5
+ "type": "object",
6
+ "required": [
7
+ "schema_version",
8
+ "cli_contract_version",
9
+ "tool_version",
10
+ "operation",
11
+ "ok",
12
+ "query",
13
+ "resources",
14
+ "commands",
15
+ "diagnostics"
16
+ ],
17
+ "properties": {
18
+ "schema_version": {
19
+ "const": "Perttool.CommandHelpResult.v1"
20
+ },
21
+ "cli_contract_version": {
22
+ "const": 6
23
+ },
24
+ "tool_version": {
25
+ "type": "string"
26
+ },
27
+ "operation": {
28
+ "const": "help"
29
+ },
30
+ "ok": {
31
+ "type": "boolean"
32
+ },
33
+ "query": {
34
+ "type": "object",
35
+ "required": [
36
+ "resource",
37
+ "action"
38
+ ],
39
+ "properties": {
40
+ "resource": {
41
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
42
+ },
43
+ "action": {
44
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
45
+ }
46
+ },
47
+ "additionalProperties": false
48
+ },
49
+ "resources": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "object",
53
+ "required": [
54
+ "name",
55
+ "summary",
56
+ "actions"
57
+ ],
58
+ "properties": {
59
+ "name": {
60
+ "type": "string"
61
+ },
62
+ "summary": {
63
+ "type": "string"
64
+ },
65
+ "actions": {
66
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/stringArray"
67
+ }
68
+ },
69
+ "additionalProperties": false
70
+ }
71
+ },
72
+ "commands": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "object",
76
+ "required": [
77
+ "cli_contract_version",
78
+ "path",
79
+ "operation",
80
+ "summary",
81
+ "operands",
82
+ "options",
83
+ "input",
84
+ "output",
85
+ "stdin",
86
+ "effect",
87
+ "result_schemas",
88
+ "exit_statuses",
89
+ "examples"
90
+ ],
91
+ "properties": {
92
+ "cli_contract_version": {
93
+ "const": 6
94
+ },
95
+ "path": {
96
+ "type": "array",
97
+ "items": {
98
+ "type": "string"
99
+ },
100
+ "minItems": 1,
101
+ "maxItems": 2
102
+ },
103
+ "operation": {
104
+ "type": "string"
105
+ },
106
+ "summary": {
107
+ "type": "string"
108
+ },
109
+ "operands": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "object"
113
+ }
114
+ },
115
+ "options": {
116
+ "type": "array",
117
+ "items": {
118
+ "type": "object"
119
+ }
120
+ },
121
+ "input": {
122
+ "enum": [
123
+ "none",
124
+ "document",
125
+ "artifact"
126
+ ]
127
+ },
128
+ "output": {
129
+ "type": "object"
130
+ },
131
+ "stdin": {
132
+ "type": "object"
133
+ },
134
+ "effect": {
135
+ "enum": [
136
+ "read",
137
+ "preview",
138
+ "write-or-create"
139
+ ]
140
+ },
141
+ "result_schemas": {
142
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/stringArray"
143
+ },
144
+ "exit_statuses": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "object"
148
+ }
149
+ },
150
+ "examples": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "object"
154
+ }
155
+ }
156
+ },
157
+ "additionalProperties": false
158
+ }
159
+ },
160
+ "diagnostics": {
161
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/diagnostics"
162
+ }
163
+ },
164
+ "additionalProperties": false
165
+ }