taggor 0.7.0 → 0.9.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.
Files changed (49) hide show
  1. package/EXIT_CODES.md +11 -11
  2. package/dist/taggor.mjs +5208 -1842
  3. package/package.json +9 -5
  4. package/schemas/agent-install.json +16 -0
  5. package/schemas/attach.json +102 -6
  6. package/schemas/check.json +18 -2
  7. package/schemas/codegen.json +181 -0
  8. package/schemas/components-archive.json +92 -0
  9. package/schemas/components-list.json +127 -0
  10. package/schemas/components-restore.json +92 -0
  11. package/schemas/data-collections.json +20 -0
  12. package/schemas/data-export.json +16 -0
  13. package/schemas/detach.json +18 -2
  14. package/schemas/dev.json +16 -0
  15. package/schemas/init.json +16 -0
  16. package/schemas/login.json +16 -0
  17. package/schemas/logout.json +16 -0
  18. package/schemas/logs.json +16 -0
  19. package/schemas/metrics-parameters.json +16 -0
  20. package/schemas/metrics.json +16 -0
  21. package/schemas/pin.json +180 -0
  22. package/schemas/preview.json +16 -0
  23. package/schemas/projects-clean.json +16 -0
  24. package/schemas/projects-list.json +16 -0
  25. package/schemas/promote.json +146 -26
  26. package/schemas/publish.json +306 -29
  27. package/schemas/pull.json +16 -0
  28. package/schemas/rollback.json +146 -26
  29. package/schemas/sites-create.json +75 -20
  30. package/schemas/sites-delete.json +127 -0
  31. package/schemas/sites-disable.json +126 -0
  32. package/schemas/sites-domains-set.json +54 -7
  33. package/schemas/sites-enable.json +126 -0
  34. package/schemas/sites-list.json +43 -7
  35. package/schemas/sites-props-set.json +97 -3
  36. package/schemas/sites-protection-set.json +18 -2
  37. package/schemas/sites-server-keys-create.json +30 -5
  38. package/schemas/sites-server-keys-list.json +23 -3
  39. package/schemas/sites-server-keys-revoke.json +28 -3
  40. package/schemas/sites-show.json +281 -0
  41. package/schemas/sites-snippet.json +59 -6
  42. package/schemas/sites-update.json +130 -0
  43. package/schemas/unpin.json +184 -0
  44. package/schemas/usage.json +16 -0
  45. package/schemas/versions.json +16 -0
  46. package/schemas/whoami.json +16 -0
  47. package/schemas/workspaces-list.json +105 -0
  48. package/schemas/workspaces-update.json +112 -0
  49. package/schemas/workspaces-use.json +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taggor",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "The taggor CLI: login, init, dev, publish, promote, rollback, sites, data and logs.",
5
5
  "keywords": [
6
6
  "taggor",
@@ -36,16 +36,20 @@
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.7.0",
39
+ "@taggor/contract": "0.9.0",
40
+ "@taggor/react": "0.9.0",
40
41
  "@taggor/test-page": "0.0.0",
41
- "@taggor/runtime": "0.7.0",
42
- "@taggor/server": "0.7.0",
43
- "@taggor/component": "0.7.0",
42
+ "@taggor/runtime": "0.9.0",
43
+ "@taggor/server": "0.9.0",
44
+ "@taggor/component": "0.9.0",
44
45
  "@types/node": "26.6.5",
46
+ "@types/react": "19.3.0",
45
47
  "ajv": "8.20.0",
46
48
  "citty": "0.2.2",
47
49
  "preact": "10.29.8",
48
50
  "tar": "7.5.22",
51
+ "vue": "3.5.44",
52
+ "vue-tsc": "3.3.13",
49
53
  "zod": "4.6.7"
50
54
  },
51
55
  "scripts": {
@@ -117,6 +117,22 @@
117
117
  "type": "integer",
118
118
  "minimum": -9007199254740991,
119
119
  "maximum": 9007199254740991
120
+ },
121
+ "api_code": {
122
+ "type": "string"
123
+ },
124
+ "hint": {
125
+ "type": "string"
126
+ },
127
+ "docs_url": {
128
+ "type": "string"
129
+ },
130
+ "human_action": {
131
+ "type": "object",
132
+ "propertyNames": {
133
+ "type": "string"
134
+ },
135
+ "additionalProperties": {}
120
136
  }
121
137
  },
122
138
  "required": ["code", "message", "request_id", "exit_code"],
@@ -18,7 +18,7 @@
18
18
  "site_id": {
19
19
  "type": "string"
20
20
  },
21
- "site_key": {
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": ["site_id", "site_key", "component_id", "tag", "channel", "created"],
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
  },
@@ -73,6 +153,22 @@
73
153
  "type": "integer",
74
154
  "minimum": -9007199254740991,
75
155
  "maximum": 9007199254740991
156
+ },
157
+ "api_code": {
158
+ "type": "string"
159
+ },
160
+ "hint": {
161
+ "type": "string"
162
+ },
163
+ "docs_url": {
164
+ "type": "string"
165
+ },
166
+ "human_action": {
167
+ "type": "object",
168
+ "propertyNames": {
169
+ "type": "string"
170
+ },
171
+ "additionalProperties": {}
76
172
  }
77
173
  },
78
174
  "required": ["code", "message", "request_id", "exit_code"],
@@ -27,7 +27,7 @@
27
27
  "items": {
28
28
  "type": "object",
29
29
  "properties": {
30
- "name": {
30
+ "tag": {
31
31
  "type": "string"
32
32
  },
33
33
  "path": {
@@ -108,7 +108,7 @@
108
108
  }
109
109
  }
110
110
  },
111
- "required": ["name", "path", "ok", "duration_ms", "gates", "diagnostics"],
111
+ "required": ["tag", "path", "ok", "duration_ms", "gates", "diagnostics"],
112
112
  "additionalProperties": false
113
113
  }
114
114
  }
@@ -148,6 +148,22 @@
148
148
  "minimum": -9007199254740991,
149
149
  "maximum": 9007199254740991
150
150
  },
151
+ "api_code": {
152
+ "type": "string"
153
+ },
154
+ "hint": {
155
+ "type": "string"
156
+ },
157
+ "docs_url": {
158
+ "type": "string"
159
+ },
160
+ "human_action": {
161
+ "type": "object",
162
+ "propertyNames": {
163
+ "type": "string"
164
+ },
165
+ "additionalProperties": {}
166
+ },
151
167
  "errors": {
152
168
  "type": "array",
153
169
  "items": {
@@ -0,0 +1,181 @@
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": "codegen"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "target": {
19
+ "type": "string",
20
+ "enum": ["react", "vue"]
21
+ },
22
+ "site_id": {
23
+ "type": "string"
24
+ },
25
+ "site_name": {
26
+ "type": "string"
27
+ },
28
+ "environment": {
29
+ "type": "string",
30
+ "enum": ["production", "staging"]
31
+ },
32
+ "site_key": {
33
+ "type": "string"
34
+ },
35
+ "loader_url": {
36
+ "type": "string"
37
+ },
38
+ "root": {
39
+ "type": "string"
40
+ },
41
+ "check": {
42
+ "type": "boolean"
43
+ },
44
+ "changed": {
45
+ "type": "boolean"
46
+ },
47
+ "components": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "object",
51
+ "properties": {
52
+ "component_id": {
53
+ "type": "string"
54
+ },
55
+ "tag": {
56
+ "type": "string"
57
+ },
58
+ "version_id": {
59
+ "type": "string"
60
+ },
61
+ "semver": {
62
+ "type": "string"
63
+ },
64
+ "name": {
65
+ "type": ["string", "null"]
66
+ }
67
+ },
68
+ "required": ["component_id", "tag", "version_id", "semver", "name"],
69
+ "additionalProperties": false
70
+ }
71
+ },
72
+ "skipped": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "object",
76
+ "properties": {
77
+ "tag": {
78
+ "type": "string"
79
+ },
80
+ "reason": {
81
+ "type": "string",
82
+ "enum": ["archived", "not_served"]
83
+ }
84
+ },
85
+ "required": ["tag", "reason"],
86
+ "additionalProperties": false
87
+ }
88
+ },
89
+ "files": {
90
+ "type": "array",
91
+ "items": {
92
+ "type": "object",
93
+ "properties": {
94
+ "path": {
95
+ "type": "string"
96
+ },
97
+ "status": {
98
+ "type": "string",
99
+ "enum": ["written", "unchanged", "removed"]
100
+ }
101
+ },
102
+ "required": ["path", "status"],
103
+ "additionalProperties": false
104
+ }
105
+ }
106
+ },
107
+ "required": [
108
+ "target",
109
+ "site_id",
110
+ "site_name",
111
+ "environment",
112
+ "site_key",
113
+ "loader_url",
114
+ "root",
115
+ "check",
116
+ "changed",
117
+ "components",
118
+ "skipped",
119
+ "files"
120
+ ],
121
+ "additionalProperties": false
122
+ }
123
+ },
124
+ "required": ["ok", "command", "data"],
125
+ "additionalProperties": false
126
+ },
127
+ {
128
+ "type": "object",
129
+ "properties": {
130
+ "ok": {
131
+ "type": "boolean",
132
+ "const": false
133
+ },
134
+ "command": {
135
+ "type": "string",
136
+ "const": "codegen"
137
+ },
138
+ "error": {
139
+ "type": "object",
140
+ "properties": {
141
+ "code": {
142
+ "type": "string"
143
+ },
144
+ "message": {
145
+ "type": "string"
146
+ },
147
+ "request_id": {
148
+ "type": ["string", "null"]
149
+ },
150
+ "exit_code": {
151
+ "type": "integer",
152
+ "minimum": -9007199254740991,
153
+ "maximum": 9007199254740991
154
+ },
155
+ "api_code": {
156
+ "type": "string"
157
+ },
158
+ "hint": {
159
+ "type": "string"
160
+ },
161
+ "docs_url": {
162
+ "type": "string"
163
+ },
164
+ "human_action": {
165
+ "type": "object",
166
+ "propertyNames": {
167
+ "type": "string"
168
+ },
169
+ "additionalProperties": {}
170
+ }
171
+ },
172
+ "required": ["code", "message", "request_id", "exit_code"],
173
+ "additionalProperties": false
174
+ }
175
+ },
176
+ "required": ["ok", "command", "error"],
177
+ "additionalProperties": false
178
+ }
179
+ ],
180
+ "title": "taggor codegen --json"
181
+ }
@@ -0,0 +1,92 @@
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": "components archive"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "component_id": {
19
+ "type": "string"
20
+ },
21
+ "tag": {
22
+ "type": "string"
23
+ },
24
+ "archived_at": {
25
+ "type": ["string", "null"]
26
+ },
27
+ "changed": {
28
+ "type": "boolean"
29
+ }
30
+ },
31
+ "required": ["component_id", "tag", "archived_at", "changed"],
32
+ "additionalProperties": false
33
+ }
34
+ },
35
+ "required": ["ok", "command", "data"],
36
+ "additionalProperties": false
37
+ },
38
+ {
39
+ "type": "object",
40
+ "properties": {
41
+ "ok": {
42
+ "type": "boolean",
43
+ "const": false
44
+ },
45
+ "command": {
46
+ "type": "string",
47
+ "const": "components archive"
48
+ },
49
+ "error": {
50
+ "type": "object",
51
+ "properties": {
52
+ "code": {
53
+ "type": "string"
54
+ },
55
+ "message": {
56
+ "type": "string"
57
+ },
58
+ "request_id": {
59
+ "type": ["string", "null"]
60
+ },
61
+ "exit_code": {
62
+ "type": "integer",
63
+ "minimum": -9007199254740991,
64
+ "maximum": 9007199254740991
65
+ },
66
+ "api_code": {
67
+ "type": "string"
68
+ },
69
+ "hint": {
70
+ "type": "string"
71
+ },
72
+ "docs_url": {
73
+ "type": "string"
74
+ },
75
+ "human_action": {
76
+ "type": "object",
77
+ "propertyNames": {
78
+ "type": "string"
79
+ },
80
+ "additionalProperties": {}
81
+ }
82
+ },
83
+ "required": ["code", "message", "request_id", "exit_code"],
84
+ "additionalProperties": false
85
+ }
86
+ },
87
+ "required": ["ok", "command", "error"],
88
+ "additionalProperties": false
89
+ }
90
+ ],
91
+ "title": "taggor components archive --json"
92
+ }
@@ -0,0 +1,127 @@
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": "components list"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "archived": {
19
+ "type": "boolean"
20
+ },
21
+ "components": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "object",
25
+ "properties": {
26
+ "id": {
27
+ "type": "string"
28
+ },
29
+ "tag": {
30
+ "type": "string"
31
+ },
32
+ "description": {
33
+ "type": ["string", "null"]
34
+ },
35
+ "created_at": {
36
+ "type": ["string", "null"]
37
+ },
38
+ "archived_at": {
39
+ "type": ["string", "null"]
40
+ },
41
+ "channels": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "name": {
47
+ "type": "string"
48
+ },
49
+ "version_id": {
50
+ "type": ["string", "null"]
51
+ },
52
+ "semver": {
53
+ "type": ["string", "null"]
54
+ }
55
+ },
56
+ "required": ["name", "version_id", "semver"],
57
+ "additionalProperties": false
58
+ }
59
+ }
60
+ },
61
+ "required": ["id", "tag", "description", "created_at", "archived_at", "channels"],
62
+ "additionalProperties": false
63
+ }
64
+ }
65
+ },
66
+ "required": ["archived", "components"],
67
+ "additionalProperties": false
68
+ }
69
+ },
70
+ "required": ["ok", "command", "data"],
71
+ "additionalProperties": false
72
+ },
73
+ {
74
+ "type": "object",
75
+ "properties": {
76
+ "ok": {
77
+ "type": "boolean",
78
+ "const": false
79
+ },
80
+ "command": {
81
+ "type": "string",
82
+ "const": "components list"
83
+ },
84
+ "error": {
85
+ "type": "object",
86
+ "properties": {
87
+ "code": {
88
+ "type": "string"
89
+ },
90
+ "message": {
91
+ "type": "string"
92
+ },
93
+ "request_id": {
94
+ "type": ["string", "null"]
95
+ },
96
+ "exit_code": {
97
+ "type": "integer",
98
+ "minimum": -9007199254740991,
99
+ "maximum": 9007199254740991
100
+ },
101
+ "api_code": {
102
+ "type": "string"
103
+ },
104
+ "hint": {
105
+ "type": "string"
106
+ },
107
+ "docs_url": {
108
+ "type": "string"
109
+ },
110
+ "human_action": {
111
+ "type": "object",
112
+ "propertyNames": {
113
+ "type": "string"
114
+ },
115
+ "additionalProperties": {}
116
+ }
117
+ },
118
+ "required": ["code", "message", "request_id", "exit_code"],
119
+ "additionalProperties": false
120
+ }
121
+ },
122
+ "required": ["ok", "command", "error"],
123
+ "additionalProperties": false
124
+ }
125
+ ],
126
+ "title": "taggor components list --json"
127
+ }