taggor 0.6.0 → 0.8.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/EXIT_CODES.md +11 -11
- package/dist/taggor.mjs +1628 -790
- package/package.json +5 -5
- package/schemas/attach.json +86 -6
- package/schemas/detach.json +2 -2
- package/schemas/init.json +4 -0
- package/schemas/pin.json +164 -0
- package/schemas/promote.json +130 -26
- package/schemas/publish.json +274 -13
- package/schemas/rollback.json +130 -26
- package/schemas/sites-create.json +53 -14
- package/schemas/sites-domains-set.json +38 -7
- package/schemas/sites-list.json +27 -7
- package/schemas/sites-props-set.json +81 -3
- package/schemas/sites-protection-set.json +2 -2
- package/schemas/sites-server-keys-create.json +9 -0
- package/schemas/sites-server-keys-list.json +7 -3
- package/schemas/sites-server-keys-revoke.json +9 -0
- package/schemas/sites-show.json +265 -0
- package/schemas/sites-snippet.json +43 -6
- package/schemas/unpin.json +168 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taggor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "The taggor CLI: login, init, dev, publish, promote, rollback, sites, data and logs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"taggor",
|
|
@@ -36,11 +36,11 @@
|
|
|
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.
|
|
39
|
+
"@taggor/contract": "0.8.0",
|
|
40
40
|
"@taggor/test-page": "0.0.0",
|
|
41
|
-
"@taggor/runtime": "0.
|
|
42
|
-
"@taggor/server": "0.
|
|
43
|
-
"@taggor/component": "0.
|
|
41
|
+
"@taggor/runtime": "0.8.0",
|
|
42
|
+
"@taggor/server": "0.8.0",
|
|
43
|
+
"@taggor/component": "0.8.0",
|
|
44
44
|
"@types/node": "26.6.5",
|
|
45
45
|
"ajv": "8.20.0",
|
|
46
46
|
"citty": "0.2.2",
|
package/schemas/attach.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"site_id": {
|
|
19
19
|
"type": "string"
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"site_name": {
|
|
22
22
|
"type": "string"
|
|
23
23
|
},
|
|
24
24
|
"component_id": {
|
|
@@ -27,19 +27,99 @@
|
|
|
27
27
|
"tag": {
|
|
28
28
|
"type": "string"
|
|
29
29
|
},
|
|
30
|
-
"channel": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"enum": ["production", "staging"]
|
|
33
|
-
},
|
|
34
30
|
"created": {
|
|
35
31
|
"type": "boolean"
|
|
36
32
|
},
|
|
33
|
+
"production": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"served_version_id": {
|
|
37
|
+
"type": ["string", "null"]
|
|
38
|
+
},
|
|
39
|
+
"served_semver": {
|
|
40
|
+
"type": ["string", "null"]
|
|
41
|
+
},
|
|
42
|
+
"source": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": [
|
|
45
|
+
"pinned_version",
|
|
46
|
+
"production_channel",
|
|
47
|
+
"staging_channel",
|
|
48
|
+
"fallback_to_production_channel",
|
|
49
|
+
"none"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"pinned_version_id": {
|
|
53
|
+
"type": ["string", "null"]
|
|
54
|
+
},
|
|
55
|
+
"suspended_props": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"served_version_id",
|
|
64
|
+
"served_semver",
|
|
65
|
+
"source",
|
|
66
|
+
"pinned_version_id",
|
|
67
|
+
"suspended_props"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
},
|
|
71
|
+
"staging": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"served_version_id": {
|
|
75
|
+
"type": ["string", "null"]
|
|
76
|
+
},
|
|
77
|
+
"served_semver": {
|
|
78
|
+
"type": ["string", "null"]
|
|
79
|
+
},
|
|
80
|
+
"source": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"enum": [
|
|
83
|
+
"pinned_version",
|
|
84
|
+
"production_channel",
|
|
85
|
+
"staging_channel",
|
|
86
|
+
"fallback_to_production_channel",
|
|
87
|
+
"none"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"pinned_version_id": {
|
|
91
|
+
"type": ["string", "null"]
|
|
92
|
+
},
|
|
93
|
+
"suspended_props": {
|
|
94
|
+
"type": "array",
|
|
95
|
+
"items": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": [
|
|
101
|
+
"served_version_id",
|
|
102
|
+
"served_semver",
|
|
103
|
+
"source",
|
|
104
|
+
"pinned_version_id",
|
|
105
|
+
"suspended_props"
|
|
106
|
+
],
|
|
107
|
+
"additionalProperties": false
|
|
108
|
+
},
|
|
37
109
|
"loading": {
|
|
38
110
|
"type": "string",
|
|
39
111
|
"enum": ["eager", "idle"]
|
|
40
112
|
}
|
|
41
113
|
},
|
|
42
|
-
"required": [
|
|
114
|
+
"required": [
|
|
115
|
+
"site_id",
|
|
116
|
+
"site_name",
|
|
117
|
+
"component_id",
|
|
118
|
+
"tag",
|
|
119
|
+
"created",
|
|
120
|
+
"production",
|
|
121
|
+
"staging"
|
|
122
|
+
],
|
|
43
123
|
"additionalProperties": false
|
|
44
124
|
}
|
|
45
125
|
},
|
package/schemas/detach.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"site_id": {
|
|
19
19
|
"type": "string"
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"site_name": {
|
|
22
22
|
"type": "string"
|
|
23
23
|
},
|
|
24
24
|
"component_id": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"const": false
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
"required": ["site_id", "
|
|
35
|
+
"required": ["site_id", "site_name", "component_id", "tag", "attached"],
|
|
36
36
|
"additionalProperties": false
|
|
37
37
|
}
|
|
38
38
|
},
|
package/schemas/init.json
CHANGED
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
"already_listed": {
|
|
41
41
|
"type": "boolean"
|
|
42
42
|
},
|
|
43
|
+
"exists_in_workspace": {
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
},
|
|
43
46
|
"managed": {
|
|
44
47
|
"type": "boolean"
|
|
45
48
|
},
|
|
@@ -92,6 +95,7 @@
|
|
|
92
95
|
"written",
|
|
93
96
|
"overwritten",
|
|
94
97
|
"already_listed",
|
|
98
|
+
"exists_in_workspace",
|
|
95
99
|
"managed",
|
|
96
100
|
"workspace",
|
|
97
101
|
"agent"
|
package/schemas/pin.json
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
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": "pin"
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"site_id": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"site_name": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"environment": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["production", "staging"]
|
|
27
|
+
},
|
|
28
|
+
"component_id": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"tag": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"production": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"served_version_id": {
|
|
38
|
+
"type": ["string", "null"]
|
|
39
|
+
},
|
|
40
|
+
"served_semver": {
|
|
41
|
+
"type": ["string", "null"]
|
|
42
|
+
},
|
|
43
|
+
"source": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": [
|
|
46
|
+
"pinned_version",
|
|
47
|
+
"production_channel",
|
|
48
|
+
"staging_channel",
|
|
49
|
+
"fallback_to_production_channel",
|
|
50
|
+
"none"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"pinned_version_id": {
|
|
54
|
+
"type": ["string", "null"]
|
|
55
|
+
},
|
|
56
|
+
"suspended_props": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"served_version_id",
|
|
65
|
+
"served_semver",
|
|
66
|
+
"source",
|
|
67
|
+
"pinned_version_id",
|
|
68
|
+
"suspended_props"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
"staging": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"served_version_id": {
|
|
76
|
+
"type": ["string", "null"]
|
|
77
|
+
},
|
|
78
|
+
"served_semver": {
|
|
79
|
+
"type": ["string", "null"]
|
|
80
|
+
},
|
|
81
|
+
"source": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": [
|
|
84
|
+
"pinned_version",
|
|
85
|
+
"production_channel",
|
|
86
|
+
"staging_channel",
|
|
87
|
+
"fallback_to_production_channel",
|
|
88
|
+
"none"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"pinned_version_id": {
|
|
92
|
+
"type": ["string", "null"]
|
|
93
|
+
},
|
|
94
|
+
"suspended_props": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": [
|
|
102
|
+
"served_version_id",
|
|
103
|
+
"served_semver",
|
|
104
|
+
"source",
|
|
105
|
+
"pinned_version_id",
|
|
106
|
+
"suspended_props"
|
|
107
|
+
],
|
|
108
|
+
"additionalProperties": false
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"site_id",
|
|
113
|
+
"site_name",
|
|
114
|
+
"environment",
|
|
115
|
+
"component_id",
|
|
116
|
+
"tag",
|
|
117
|
+
"production",
|
|
118
|
+
"staging"
|
|
119
|
+
],
|
|
120
|
+
"additionalProperties": false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": ["ok", "command", "data"],
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "object",
|
|
128
|
+
"properties": {
|
|
129
|
+
"ok": {
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"const": false
|
|
132
|
+
},
|
|
133
|
+
"command": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"const": "pin"
|
|
136
|
+
},
|
|
137
|
+
"error": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"code": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"message": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"request_id": {
|
|
147
|
+
"type": ["string", "null"]
|
|
148
|
+
},
|
|
149
|
+
"exit_code": {
|
|
150
|
+
"type": "integer",
|
|
151
|
+
"minimum": -9007199254740991,
|
|
152
|
+
"maximum": 9007199254740991
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": ["code", "message", "request_id", "exit_code"],
|
|
156
|
+
"additionalProperties": false
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"required": ["ok", "command", "error"],
|
|
160
|
+
"additionalProperties": false
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"title": "taggor pin --json"
|
|
164
|
+
}
|
package/schemas/promote.json
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"required": ["version_id", "semver"],
|
|
69
69
|
"additionalProperties": false
|
|
70
70
|
},
|
|
71
|
-
"
|
|
71
|
+
"pinned_sites": {
|
|
72
72
|
"type": "array",
|
|
73
73
|
"items": {
|
|
74
74
|
"type": "object",
|
|
@@ -76,37 +76,31 @@
|
|
|
76
76
|
"site_id": {
|
|
77
77
|
"type": "string"
|
|
78
78
|
},
|
|
79
|
-
"
|
|
79
|
+
"site_name": {
|
|
80
80
|
"type": "string"
|
|
81
81
|
},
|
|
82
|
-
"
|
|
82
|
+
"environment": {
|
|
83
83
|
"type": "string",
|
|
84
|
-
"enum": ["
|
|
84
|
+
"enum": ["production", "staging"]
|
|
85
85
|
},
|
|
86
|
-
"
|
|
87
|
-
"type": "
|
|
88
|
-
"items": {
|
|
89
|
-
"type": "string"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"suspended": {
|
|
93
|
-
"type": "array",
|
|
94
|
-
"items": {
|
|
95
|
-
"type": "string"
|
|
96
|
-
}
|
|
86
|
+
"pinned_version_id": {
|
|
87
|
+
"type": "string"
|
|
97
88
|
},
|
|
98
|
-
"
|
|
99
|
-
"type": "
|
|
100
|
-
"items": {
|
|
101
|
-
"type": "string"
|
|
102
|
-
}
|
|
89
|
+
"pinned_semver": {
|
|
90
|
+
"type": ["string", "null"]
|
|
103
91
|
}
|
|
104
92
|
},
|
|
105
|
-
"required": [
|
|
93
|
+
"required": [
|
|
94
|
+
"site_id",
|
|
95
|
+
"site_name",
|
|
96
|
+
"environment",
|
|
97
|
+
"pinned_version_id",
|
|
98
|
+
"pinned_semver"
|
|
99
|
+
],
|
|
106
100
|
"additionalProperties": false
|
|
107
101
|
}
|
|
108
102
|
},
|
|
109
|
-
"
|
|
103
|
+
"suspended_site_props": {
|
|
110
104
|
"type": "array",
|
|
111
105
|
"items": {
|
|
112
106
|
"type": "object",
|
|
@@ -114,13 +108,122 @@
|
|
|
114
108
|
"site_id": {
|
|
115
109
|
"type": "string"
|
|
116
110
|
},
|
|
117
|
-
"
|
|
111
|
+
"site_name": {
|
|
118
112
|
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"environment": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"enum": ["production", "staging"]
|
|
117
|
+
},
|
|
118
|
+
"props": {
|
|
119
|
+
"type": "array",
|
|
120
|
+
"items": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
}
|
|
119
123
|
}
|
|
120
124
|
},
|
|
121
|
-
"required": ["site_id", "
|
|
125
|
+
"required": ["site_id", "site_name", "environment", "props"],
|
|
122
126
|
"additionalProperties": false
|
|
123
127
|
}
|
|
128
|
+
},
|
|
129
|
+
"attached_sites": {
|
|
130
|
+
"anyOf": [
|
|
131
|
+
{
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"site_id": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"site_name": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"production": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"served_version_id": {
|
|
146
|
+
"type": ["string", "null"]
|
|
147
|
+
},
|
|
148
|
+
"served_semver": {
|
|
149
|
+
"type": ["string", "null"]
|
|
150
|
+
},
|
|
151
|
+
"source": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"enum": [
|
|
154
|
+
"pinned_version",
|
|
155
|
+
"production_channel",
|
|
156
|
+
"staging_channel",
|
|
157
|
+
"fallback_to_production_channel",
|
|
158
|
+
"none"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"pinned_version_id": {
|
|
162
|
+
"type": ["string", "null"]
|
|
163
|
+
},
|
|
164
|
+
"suspended_props": {
|
|
165
|
+
"type": "array",
|
|
166
|
+
"items": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"required": [
|
|
172
|
+
"served_version_id",
|
|
173
|
+
"served_semver",
|
|
174
|
+
"source",
|
|
175
|
+
"pinned_version_id",
|
|
176
|
+
"suspended_props"
|
|
177
|
+
],
|
|
178
|
+
"additionalProperties": false
|
|
179
|
+
},
|
|
180
|
+
"staging": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"properties": {
|
|
183
|
+
"served_version_id": {
|
|
184
|
+
"type": ["string", "null"]
|
|
185
|
+
},
|
|
186
|
+
"served_semver": {
|
|
187
|
+
"type": ["string", "null"]
|
|
188
|
+
},
|
|
189
|
+
"source": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"pinned_version",
|
|
193
|
+
"production_channel",
|
|
194
|
+
"staging_channel",
|
|
195
|
+
"fallback_to_production_channel",
|
|
196
|
+
"none"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"pinned_version_id": {
|
|
200
|
+
"type": ["string", "null"]
|
|
201
|
+
},
|
|
202
|
+
"suspended_props": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"required": [
|
|
210
|
+
"served_version_id",
|
|
211
|
+
"served_semver",
|
|
212
|
+
"source",
|
|
213
|
+
"pinned_version_id",
|
|
214
|
+
"suspended_props"
|
|
215
|
+
],
|
|
216
|
+
"additionalProperties": false
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"required": ["site_id", "site_name", "production", "staging"],
|
|
220
|
+
"additionalProperties": false
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "null"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
124
227
|
}
|
|
125
228
|
},
|
|
126
229
|
"required": [
|
|
@@ -132,8 +235,9 @@
|
|
|
132
235
|
"changed",
|
|
133
236
|
"from",
|
|
134
237
|
"to",
|
|
135
|
-
"
|
|
136
|
-
"
|
|
238
|
+
"pinned_sites",
|
|
239
|
+
"suspended_site_props",
|
|
240
|
+
"attached_sites"
|
|
137
241
|
],
|
|
138
242
|
"additionalProperties": false
|
|
139
243
|
}
|