taggor 0.4.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taggor",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "The taggor CLI: login, init, dev, publish, promote, rollback, sites, data and logs.",
5
5
  "keywords": [
6
6
  "taggor",
@@ -36,10 +36,10 @@
36
36
  "@taggor/api-client": "0.0.0",
37
37
  "@taggor/builder": "0.0.0",
38
38
  "@taggor/config": "0.0.0",
39
- "@taggor/contract": "0.4.0",
40
- "@taggor/runtime": "0.4.0",
41
- "@taggor/server": "0.4.0",
42
- "@taggor/component": "0.4.0",
39
+ "@taggor/contract": "0.5.0",
40
+ "@taggor/runtime": "0.5.0",
41
+ "@taggor/server": "0.5.0",
42
+ "@taggor/component": "0.5.0",
43
43
  "@types/node": "26.6.5",
44
44
  "ajv": "8.20.0",
45
45
  "citty": "0.2.2",
@@ -0,0 +1,114 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "ok": {
8
+ "type": "boolean",
9
+ "const": true
10
+ },
11
+ "command": {
12
+ "type": "string",
13
+ "const": "preview"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "component_id": {
19
+ "type": "string"
20
+ },
21
+ "tag": {
22
+ "type": "string"
23
+ },
24
+ "workspace": {
25
+ "type": ["string", "null"]
26
+ },
27
+ "build_id": {
28
+ "type": ["string", "null"]
29
+ },
30
+ "spent_build": {
31
+ "type": "boolean"
32
+ },
33
+ "version_id": {
34
+ "type": ["string", "null"]
35
+ },
36
+ "semver": {
37
+ "type": ["string", "null"]
38
+ },
39
+ "channel": {
40
+ "anyOf": [
41
+ {
42
+ "type": "string",
43
+ "enum": ["staging", "production"]
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ]
49
+ },
50
+ "preview_url": {
51
+ "type": ["string", "null"]
52
+ },
53
+ "preview_state": {
54
+ "type": "string",
55
+ "enum": ["ready", "off"]
56
+ }
57
+ },
58
+ "required": [
59
+ "component_id",
60
+ "tag",
61
+ "workspace",
62
+ "build_id",
63
+ "spent_build",
64
+ "version_id",
65
+ "semver",
66
+ "channel",
67
+ "preview_url",
68
+ "preview_state"
69
+ ],
70
+ "additionalProperties": false
71
+ }
72
+ },
73
+ "required": ["ok", "command", "data"],
74
+ "additionalProperties": false
75
+ },
76
+ {
77
+ "type": "object",
78
+ "properties": {
79
+ "ok": {
80
+ "type": "boolean",
81
+ "const": false
82
+ },
83
+ "command": {
84
+ "type": "string",
85
+ "const": "preview"
86
+ },
87
+ "error": {
88
+ "type": "object",
89
+ "properties": {
90
+ "code": {
91
+ "type": "string"
92
+ },
93
+ "message": {
94
+ "type": "string"
95
+ },
96
+ "request_id": {
97
+ "type": ["string", "null"]
98
+ },
99
+ "exit_code": {
100
+ "type": "integer",
101
+ "minimum": -9007199254740991,
102
+ "maximum": 9007199254740991
103
+ }
104
+ },
105
+ "required": ["code", "message", "request_id", "exit_code"],
106
+ "additionalProperties": false
107
+ }
108
+ },
109
+ "required": ["ok", "command", "error"],
110
+ "additionalProperties": false
111
+ }
112
+ ],
113
+ "title": "taggor preview --json"
114
+ }
@@ -135,24 +135,31 @@
135
135
  "type": "boolean"
136
136
  },
137
137
  "package": {
138
- "type": "object",
139
- "properties": {
140
- "bytes": {
141
- "type": "integer",
142
- "minimum": -9007199254740991,
143
- "maximum": 9007199254740991
144
- },
145
- "sha256": {
146
- "type": "string"
138
+ "anyOf": [
139
+ {
140
+ "type": "object",
141
+ "properties": {
142
+ "bytes": {
143
+ "type": "integer",
144
+ "minimum": -9007199254740991,
145
+ "maximum": 9007199254740991
146
+ },
147
+ "sha256": {
148
+ "type": "string"
149
+ },
150
+ "files": {
151
+ "type": "integer",
152
+ "minimum": -9007199254740991,
153
+ "maximum": 9007199254740991
154
+ }
155
+ },
156
+ "required": ["bytes", "sha256", "files"],
157
+ "additionalProperties": false
147
158
  },
148
- "files": {
149
- "type": "integer",
150
- "minimum": -9007199254740991,
151
- "maximum": 9007199254740991
159
+ {
160
+ "type": "null"
152
161
  }
153
- },
154
- "required": ["bytes", "sha256", "files"],
155
- "additionalProperties": false
162
+ ]
156
163
  },
157
164
  "skipped": {
158
165
  "type": "array",