@on-par/factory-cli 0.9.11-next.3 → 0.9.11-next.30
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/README.md +1 -1
- package/dist/cli/base-health-ci.d.ts +4 -0
- package/dist/cli/base-health-ci.d.ts.map +1 -0
- package/dist/cli/base-health-ci.js +9 -0
- package/dist/cli/base-health-ci.js.map +1 -0
- package/dist/cli/base-hold.d.ts +14 -11
- package/dist/cli/base-hold.d.ts.map +1 -1
- package/dist/cli/base-hold.js +43 -20
- package/dist/cli/base-hold.js.map +1 -1
- package/dist/cli/cost-json.d.ts +5 -31
- package/dist/cli/cost-json.d.ts.map +1 -1
- package/dist/cli/cost-json.js.map +1 -1
- package/dist/cli/daemon.d.ts +2 -15
- package/dist/cli/daemon.d.ts.map +1 -1
- package/dist/cli/daemon.js +5 -11
- package/dist/cli/daemon.js.map +1 -1
- package/dist/cli/doctor.js +1 -1
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/index.d.ts +5 -16
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +20 -25
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/json-contract.d.ts +234 -0
- package/dist/cli/json-contract.d.ts.map +1 -0
- package/dist/cli/json-contract.js +171 -0
- package/dist/cli/json-contract.js.map +1 -0
- package/dist/cli/land-pr.d.ts.map +1 -1
- package/dist/cli/land-pr.js +5 -0
- package/dist/cli/land-pr.js.map +1 -1
- package/dist/cli/lane-environment-pause-error.d.ts +19 -0
- package/dist/cli/lane-environment-pause-error.d.ts.map +1 -0
- package/dist/cli/lane-environment-pause-error.js +24 -0
- package/dist/cli/lane-environment-pause-error.js.map +1 -0
- package/dist/cli/logs.d.ts +14 -0
- package/dist/cli/logs.d.ts.map +1 -1
- package/dist/cli/logs.js +46 -4
- package/dist/cli/logs.js.map +1 -1
- package/dist/cli/program-observe.d.ts.map +1 -1
- package/dist/cli/program-observe.js +5 -2
- package/dist/cli/program-observe.js.map +1 -1
- package/dist/cli/queue-list.d.ts +6 -24
- package/dist/cli/queue-list.d.ts.map +1 -1
- package/dist/cli/queue-list.js +6 -1
- package/dist/cli/queue-list.js.map +1 -1
- package/dist/cli/run-branch.d.ts +24 -0
- package/dist/cli/run-branch.d.ts.map +1 -0
- package/dist/cli/run-branch.js +38 -0
- package/dist/cli/run-branch.js.map +1 -0
- package/dist/cli/run-lane.d.ts.map +1 -1
- package/dist/cli/run-lane.js +5 -2
- package/dist/cli/run-lane.js.map +1 -1
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +3 -3
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/runs-diffstat.d.ts +6 -25
- package/dist/cli/runs-diffstat.d.ts.map +1 -1
- package/dist/cli/runs-diffstat.js.map +1 -1
- package/dist/cli/runs.d.ts +4 -19
- package/dist/cli/runs.d.ts.map +1 -1
- package/dist/cli/runs.js +1 -1
- package/dist/cli/runs.js.map +1 -1
- package/dist/cli/self-update-stop.d.ts +7 -0
- package/dist/cli/self-update-stop.d.ts.map +1 -0
- package/dist/cli/self-update-stop.js +27 -0
- package/dist/cli/self-update-stop.js.map +1 -0
- package/dist/cli/ship-run-state.d.ts +5 -0
- package/dist/cli/ship-run-state.d.ts.map +1 -0
- package/dist/cli/ship-run-state.js +12 -0
- package/dist/cli/ship-run-state.js.map +1 -0
- package/dist/cli/ship-steps.d.ts +1 -1
- package/dist/cli/ship-steps.d.ts.map +1 -1
- package/dist/cli/ship-steps.js +5 -2
- package/dist/cli/ship-steps.js.map +1 -1
- package/dist/cli/ship.d.ts.map +1 -1
- package/dist/cli/ship.js +25 -21
- package/dist/cli/ship.js.map +1 -1
- package/dist/cli/status-json.d.ts +7 -28
- package/dist/cli/status-json.d.ts.map +1 -1
- package/dist/cli/status-json.js +3 -1
- package/dist/cli/status-json.js.map +1 -1
- package/dist/cli/status.d.ts.map +1 -1
- package/dist/cli/status.js +4 -1
- package/dist/cli/status.js.map +1 -1
- package/dist/cli/usage-json.d.ts +4 -13
- package/dist/cli/usage-json.d.ts.map +1 -1
- package/dist/cli/usage-json.js.map +1 -1
- package/package.json +8 -5
- package/schemas/cost.schema.json +100 -0
- package/schemas/daemon-status.schema.json +44 -0
- package/schemas/logs-line.schema.json +114 -0
- package/schemas/queue-list.schema.json +77 -0
- package/schemas/runs-diffstat.schema.json +81 -0
- package/schemas/runs.schema.json +75 -0
- package/schemas/status.schema.json +200 -0
- package/schemas/usage.schema.json +28 -0
package/dist/cli/usage-json.d.ts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import type { SubscriptionUsage } from '@on-par/factory-core';
|
|
2
|
+
import type { UsageJson } from './json-contract.js';
|
|
3
|
+
/** `factory usage --json` payload (#2270); absent readings are null, never 0 (ADR-0099). */
|
|
4
|
+
export type { UsageJson } from './json-contract.js';
|
|
2
5
|
/** Hours in the trailing usage window `factory usage` reports on. */
|
|
3
6
|
export declare const USAGE_WINDOW_HOURS: number;
|
|
4
|
-
export type UsageJsonSource = '
|
|
5
|
-
/** `factory usage --json` payload (#2270). Absent readings are null, never 0 (ADR-0099).
|
|
6
|
-
* Additive changes only; bump schemaVersion on a breaking change. */
|
|
7
|
-
export interface UsageJson {
|
|
8
|
-
schemaVersion: 1;
|
|
9
|
-
source: UsageJsonSource;
|
|
10
|
-
/** Percent of the window used, 0-100 scale. */
|
|
11
|
-
utilizationPct: number | null;
|
|
12
|
-
resetsAt: string | null;
|
|
13
|
-
windowHours: number;
|
|
14
|
-
/** Trailing-window list-price estimate in USD. */
|
|
15
|
-
estimateUsd: number | null;
|
|
16
|
-
}
|
|
7
|
+
export type UsageJsonSource = UsageJson['source'];
|
|
17
8
|
/** Builds the `factory usage --json` payload: the real subscription reading when present, else the
|
|
18
9
|
* list-price heuristic against `cap`, else an explicit `unavailable` record. Numbers are not rounded. */
|
|
19
10
|
export declare function buildUsageJson(subscription: SubscriptionUsage | null, estimateUsd: number | null, cap: number): UsageJson;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-json.d.ts","sourceRoot":"","sources":["../../src/cli/usage-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"usage-json.d.ts","sourceRoot":"","sources":["../../src/cli/usage-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,4FAA4F;AAC5F,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qEAAqE;AACrE,eAAO,MAAM,kBAAkB,QAAiC,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAElD;0GAC0G;AAC1G,wBAAgB,cAAc,CAC5B,YAAY,EAAE,iBAAiB,GAAG,IAAI,EACtC,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,GAAG,EAAE,MAAM,GACV,SAAS,CA6BX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-json.js","sourceRoot":"","sources":["../../src/cli/usage-json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"usage-json.js","sourceRoot":"","sources":["../../src/cli/usage-json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMnE,qEAAqE;AACrE,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,GAAG,SAAS,CAAC;AAIjE;0GAC0G;AAC1G,MAAM,UAAU,cAAc,CAC5B,YAAsC,EACtC,WAA0B,EAC1B,GAAW;IAEX,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;QAC1B,OAAO;YACL,aAAa,EAAE,CAAC;YAChB,MAAM,EAAE,cAAc;YACtB,cAAc,EAAE,YAAY,CAAC,mBAAmB;YAChD,QAAQ,EAAE,YAAY,CAAC,gBAAgB;YACvC,WAAW,EAAE,kBAAkB;YAC/B,WAAW;SACZ,CAAC;IACJ,CAAC;IACD,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QACzB,OAAO;YACL,aAAa,EAAE,CAAC;YAChB,MAAM,EAAE,WAAW;YACnB,cAAc,EAAE,CAAC,WAAW,GAAG,GAAG,CAAC,GAAG,GAAG;YACzC,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,kBAAkB;YAC/B,WAAW;SACZ,CAAC;IACJ,CAAC;IACD,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,MAAM,EAAE,aAAa;QACrB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,IAAI;KAClB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@on-par/factory-cli",
|
|
3
|
-
"version": "0.9.11-next.
|
|
3
|
+
"version": "0.9.11-next.30",
|
|
4
4
|
"description": "On PAR Dev's Software Factory CLI: takes a GitHub issue through plan, build and check with AI agents, then opens a ready-for-review PR.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
|
20
|
+
"schemas",
|
|
20
21
|
"!dist/.tsbuildinfo"
|
|
21
22
|
],
|
|
22
23
|
"publishConfig": {
|
|
@@ -47,12 +48,14 @@
|
|
|
47
48
|
"@octokit/plugin-retry": "^8.1.1",
|
|
48
49
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
49
50
|
"@octokit/rest": "^22.0.0",
|
|
50
|
-
"@on-par/factory-core": "0.9.11-next.
|
|
51
|
-
"@on-par/factory-tui": "0.9.11-next.
|
|
52
|
-
"commander": "^15.0.0"
|
|
51
|
+
"@on-par/factory-core": "0.9.11-next.30",
|
|
52
|
+
"@on-par/factory-tui": "0.9.11-next.30",
|
|
53
|
+
"commander": "^15.0.0",
|
|
54
|
+
"zod": "^4.6.5"
|
|
53
55
|
},
|
|
54
56
|
"license": "MIT",
|
|
55
57
|
"devDependencies": {
|
|
56
|
-
"@types/node": "^26.6.5"
|
|
58
|
+
"@types/node": "^26.6.5",
|
|
59
|
+
"ajv": "^8.20.0"
|
|
57
60
|
}
|
|
58
61
|
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"type": "number",
|
|
7
|
+
"const": 1
|
|
8
|
+
},
|
|
9
|
+
"rows": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"ts": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"issue": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"task": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"model": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"inputTokens": {
|
|
27
|
+
"type": "number"
|
|
28
|
+
},
|
|
29
|
+
"outputTokens": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
},
|
|
32
|
+
"cacheReadTokens": {
|
|
33
|
+
"type": ["number", "null"]
|
|
34
|
+
},
|
|
35
|
+
"cacheCreationTokens": {
|
|
36
|
+
"type": ["number", "null"]
|
|
37
|
+
},
|
|
38
|
+
"cost": {
|
|
39
|
+
"type": ["number", "null"]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": [
|
|
43
|
+
"ts",
|
|
44
|
+
"issue",
|
|
45
|
+
"task",
|
|
46
|
+
"model",
|
|
47
|
+
"inputTokens",
|
|
48
|
+
"outputTokens",
|
|
49
|
+
"cacheReadTokens",
|
|
50
|
+
"cacheCreationTokens",
|
|
51
|
+
"cost"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"perModel": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"model": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"tasks": {
|
|
65
|
+
"type": "number"
|
|
66
|
+
},
|
|
67
|
+
"inputTokens": {
|
|
68
|
+
"type": "number"
|
|
69
|
+
},
|
|
70
|
+
"outputTokens": {
|
|
71
|
+
"type": "number"
|
|
72
|
+
},
|
|
73
|
+
"cost": {
|
|
74
|
+
"type": ["number", "null"]
|
|
75
|
+
},
|
|
76
|
+
"unpricedCount": {
|
|
77
|
+
"type": "number"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": ["model", "tasks", "inputTokens", "outputTokens", "cost", "unpricedCount"],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"total": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"cost": {
|
|
88
|
+
"type": ["number", "null"]
|
|
89
|
+
},
|
|
90
|
+
"unpricedCount": {
|
|
91
|
+
"type": "number"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": ["cost", "unpricedCount"],
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": ["schemaVersion", "rows", "perModel", "total"],
|
|
99
|
+
"additionalProperties": false
|
|
100
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"type": "number",
|
|
7
|
+
"const": 1
|
|
8
|
+
},
|
|
9
|
+
"running": {
|
|
10
|
+
"type": "boolean"
|
|
11
|
+
},
|
|
12
|
+
"pid": {
|
|
13
|
+
"type": ["number", "null"]
|
|
14
|
+
},
|
|
15
|
+
"uptimeSec": {
|
|
16
|
+
"type": ["number", "null"]
|
|
17
|
+
},
|
|
18
|
+
"plistInstalled": {
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
},
|
|
21
|
+
"repos": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"slug": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"checkoutPath": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"state": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["active", "paused", "draining", "detached"]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["slug", "checkoutPath", "state"],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": ["schemaVersion", "running", "pid", "uptimeSec", "plistInstalled", "repos"],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"ts": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"type": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"issue": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"msg": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"level": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["debug", "info", "warn", "error"]
|
|
20
|
+
},
|
|
21
|
+
"lane": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"repo": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"phase": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"actor": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"failoverReason": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"fingerprint": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"evidence": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {},
|
|
42
|
+
"additionalProperties": {}
|
|
43
|
+
},
|
|
44
|
+
"rework": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {},
|
|
47
|
+
"additionalProperties": {}
|
|
48
|
+
},
|
|
49
|
+
"readiness": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {},
|
|
52
|
+
"additionalProperties": {}
|
|
53
|
+
},
|
|
54
|
+
"queueReprioritization": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {},
|
|
57
|
+
"additionalProperties": {}
|
|
58
|
+
},
|
|
59
|
+
"prClassification": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {},
|
|
62
|
+
"additionalProperties": {}
|
|
63
|
+
},
|
|
64
|
+
"lanePaused": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {},
|
|
67
|
+
"additionalProperties": {}
|
|
68
|
+
},
|
|
69
|
+
"stewardTriggered": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {},
|
|
72
|
+
"additionalProperties": {}
|
|
73
|
+
},
|
|
74
|
+
"flakyTests": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {},
|
|
77
|
+
"additionalProperties": {}
|
|
78
|
+
},
|
|
79
|
+
"checkFailure": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {},
|
|
82
|
+
"additionalProperties": {}
|
|
83
|
+
},
|
|
84
|
+
"ciFailure": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {},
|
|
87
|
+
"additionalProperties": {}
|
|
88
|
+
},
|
|
89
|
+
"model": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"tokens": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"input": {
|
|
96
|
+
"type": "number"
|
|
97
|
+
},
|
|
98
|
+
"output": {
|
|
99
|
+
"type": "number"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": ["input", "output"],
|
|
103
|
+
"additionalProperties": false
|
|
104
|
+
},
|
|
105
|
+
"durationMs": {
|
|
106
|
+
"type": "number"
|
|
107
|
+
},
|
|
108
|
+
"cursor": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": ["ts", "type", "issue", "msg"],
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"type": "number",
|
|
7
|
+
"const": 1
|
|
8
|
+
},
|
|
9
|
+
"lanes": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"lane": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"issue": {
|
|
23
|
+
"type": "number"
|
|
24
|
+
},
|
|
25
|
+
"title": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"status": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": ["queued", "in-progress", "parked"]
|
|
31
|
+
},
|
|
32
|
+
"order": {
|
|
33
|
+
"type": "number"
|
|
34
|
+
},
|
|
35
|
+
"claimedBy": {
|
|
36
|
+
"type": ["string", "null"]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": ["issue", "status", "order", "claimedBy"],
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": ["lane", "items"],
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"orderConflicts": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"lane": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"order": {
|
|
57
|
+
"type": ["number", "null"]
|
|
58
|
+
},
|
|
59
|
+
"issues": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "number"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"reason": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"enum": ["missing-order-label", "multiple-order-labels", "malformed-order-label"]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": ["lane", "order", "issues"],
|
|
71
|
+
"additionalProperties": false
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": ["schemaVersion", "lanes", "orderConflicts"],
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"type": "number",
|
|
7
|
+
"const": 1
|
|
8
|
+
},
|
|
9
|
+
"issue": {
|
|
10
|
+
"type": "number"
|
|
11
|
+
},
|
|
12
|
+
"branch": {
|
|
13
|
+
"type": ["string", "null"]
|
|
14
|
+
},
|
|
15
|
+
"base": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"files": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"path": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"added": {
|
|
29
|
+
"type": ["number", "null"]
|
|
30
|
+
},
|
|
31
|
+
"deleted": {
|
|
32
|
+
"type": ["number", "null"]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["path", "added", "deleted"],
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "null"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"totals": {
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"files": {
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
"added": {
|
|
53
|
+
"type": "number"
|
|
54
|
+
},
|
|
55
|
+
"deleted": {
|
|
56
|
+
"type": "number"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": ["files", "added", "deleted"],
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "null"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"reason": {
|
|
68
|
+
"anyOf": [
|
|
69
|
+
{
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": ["branch-missing", "base-missing", "no-branch"]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "null"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": ["schemaVersion", "issue", "branch", "base", "files", "totals", "reason"],
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"type": "number",
|
|
7
|
+
"const": 1
|
|
8
|
+
},
|
|
9
|
+
"runs": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"issue": {
|
|
15
|
+
"type": "number"
|
|
16
|
+
},
|
|
17
|
+
"lane": {
|
|
18
|
+
"type": ["string", "null"]
|
|
19
|
+
},
|
|
20
|
+
"repo": {
|
|
21
|
+
"type": ["string", "null"]
|
|
22
|
+
},
|
|
23
|
+
"status": {
|
|
24
|
+
"type": ["string", "null"]
|
|
25
|
+
},
|
|
26
|
+
"phase": {
|
|
27
|
+
"anyOf": [
|
|
28
|
+
{
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": ["plan", "build", "check", "ship"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "null"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"branch": {
|
|
38
|
+
"type": ["string", "null"]
|
|
39
|
+
},
|
|
40
|
+
"prNumber": {
|
|
41
|
+
"type": ["number", "null"]
|
|
42
|
+
},
|
|
43
|
+
"model": {
|
|
44
|
+
"type": ["string", "null"]
|
|
45
|
+
},
|
|
46
|
+
"attempts": {
|
|
47
|
+
"type": ["number", "null"]
|
|
48
|
+
},
|
|
49
|
+
"startedAt": {
|
|
50
|
+
"type": ["string", "null"]
|
|
51
|
+
},
|
|
52
|
+
"updatedAt": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"issue",
|
|
58
|
+
"lane",
|
|
59
|
+
"repo",
|
|
60
|
+
"status",
|
|
61
|
+
"phase",
|
|
62
|
+
"branch",
|
|
63
|
+
"prNumber",
|
|
64
|
+
"model",
|
|
65
|
+
"attempts",
|
|
66
|
+
"startedAt",
|
|
67
|
+
"updatedAt"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": ["schemaVersion", "runs"],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|