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.
@@ -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
+ }