opencode-ship 0.2.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 +57 -0
- package/LICENSE +21 -0
- package/README.md +136 -0
- package/assets/agents/delivery-reviewer.md +80 -0
- package/assets/agents/delivery-verifier.md +61 -0
- package/assets/skills/delivery-workflow/SKILL.md +62 -0
- package/assets/skills/planning-research-checkpoint/SKILL.md +37 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2484 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +1851 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.js +15060 -0
- package/docs/adr/0001-opencode-ship-redesign.md +168 -0
- package/package.json +62 -0
- package/schema/project-adapter.example.json +50 -0
- package/schema/project-adapter.schema.json +132 -0
- package/schema/project-opencode-shim.json +42 -0
- package/schema/ship-config.schema.json +136 -0
- package/schema/ship-lock.schema.json +112 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/Viktorxyz/opencode-delivery/schema/ship-lock.schema.json",
|
|
4
|
+
"title": "opencode-ship install lock",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["contractVersion", "manager", "files", "integrity"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"contractVersion": { "const": 1 },
|
|
10
|
+
"manager": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["schemaVersion", "name", "version", "appliedAt", "config"],
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"properties": {
|
|
15
|
+
"schemaVersion": { "const": 1 },
|
|
16
|
+
"name": { "type": "string", "pattern": "^opencode-ship$" },
|
|
17
|
+
"version": { "type": "string", "minLength": 1 },
|
|
18
|
+
"templateSet": { "type": "string", "minLength": 1 },
|
|
19
|
+
"appliedAt": { "type": "string", "format": "date-time" },
|
|
20
|
+
"config": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": ["path", "sha256"],
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"properties": {
|
|
25
|
+
"path": { "type": "string" },
|
|
26
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
27
|
+
"existed": { "type": "boolean" }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"rootDocuments": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": ["path", "pointers"],
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"properties": {
|
|
37
|
+
"path": { "type": "string" },
|
|
38
|
+
"format": { "enum": ["json", "jsonc"] },
|
|
39
|
+
"pointers": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["pointer", "strategy"],
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"properties": {
|
|
46
|
+
"pointer": { "type": "string", "pattern": "^/" },
|
|
47
|
+
"strategy": { "enum": ["value", "object-entry", "array-member"] },
|
|
48
|
+
"installedSha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
49
|
+
"previous": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": true,
|
|
52
|
+
"properties": {
|
|
53
|
+
"existed": { "type": "boolean" },
|
|
54
|
+
"value": {}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"files": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"required": ["path", "sha256", "mode"],
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"properties": {
|
|
72
|
+
"path": { "type": "string" },
|
|
73
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
74
|
+
"mode": { "type": "integer", "minimum": 0, "maximum": 511 },
|
|
75
|
+
"template": { "type": "string", "minLength": 1 },
|
|
76
|
+
"kind": { "enum": ["plugin", "agent", "skill", "config", "lock"] }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"integrity": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"required": ["lockSha256"],
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"properties": {
|
|
85
|
+
"lockSha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"compat": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"properties": {
|
|
92
|
+
"opencodeMin": { "type": "string" },
|
|
93
|
+
"coreVersion": { "type": "string" }
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"cleanupPending": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"description": "Tasks whose immediate post-merge cleanup could not complete; retry on next delivery task or plugin startup.",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"required": ["taskId", "failedAt", "stage", "reason"],
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"properties": {
|
|
104
|
+
"taskId": { "type": "string" },
|
|
105
|
+
"failedAt": { "type": "string", "format": "date-time" },
|
|
106
|
+
"stage": { "enum": ["preconditions", "worktree-remove", "branch-delete", "manifest-seal", "manifest-delete"] },
|
|
107
|
+
"reason": { "type": "string" }
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|