taggor 0.8.0 → 0.10.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 (50) hide show
  1. package/EXIT_CODES.md +2 -1
  2. package/README.md +4 -0
  3. package/dist/taggor.mjs +3930 -1291
  4. package/package.json +11 -6
  5. package/schemas/agent-install.json +16 -0
  6. package/schemas/attach.json +16 -0
  7. package/schemas/check.json +18 -2
  8. package/schemas/codegen.json +181 -0
  9. package/schemas/components-archive.json +92 -0
  10. package/schemas/components-list.json +127 -0
  11. package/schemas/components-restore.json +92 -0
  12. package/schemas/data-collections.json +20 -0
  13. package/schemas/data-export.json +16 -0
  14. package/schemas/detach.json +16 -0
  15. package/schemas/dev.json +16 -0
  16. package/schemas/init.json +16 -0
  17. package/schemas/login.json +16 -0
  18. package/schemas/logout.json +16 -0
  19. package/schemas/logs.json +16 -0
  20. package/schemas/metrics-parameters.json +16 -0
  21. package/schemas/metrics.json +16 -0
  22. package/schemas/pin.json +16 -0
  23. package/schemas/preview.json +16 -0
  24. package/schemas/projects-clean.json +16 -0
  25. package/schemas/projects-list.json +16 -0
  26. package/schemas/promote.json +16 -0
  27. package/schemas/publish.json +156 -140
  28. package/schemas/pull.json +16 -0
  29. package/schemas/rollback.json +16 -0
  30. package/schemas/sites-create.json +24 -8
  31. package/schemas/sites-delete.json +127 -0
  32. package/schemas/sites-disable.json +126 -0
  33. package/schemas/sites-domains-set.json +24 -8
  34. package/schemas/sites-enable.json +126 -0
  35. package/schemas/sites-list.json +16 -0
  36. package/schemas/sites-props-set.json +16 -0
  37. package/schemas/sites-protection-set.json +16 -0
  38. package/schemas/sites-server-keys-create.json +22 -6
  39. package/schemas/sites-server-keys-list.json +16 -0
  40. package/schemas/sites-server-keys-revoke.json +20 -4
  41. package/schemas/sites-show.json +24 -8
  42. package/schemas/sites-snippet.json +16 -0
  43. package/schemas/sites-update.json +130 -0
  44. package/schemas/unpin.json +16 -0
  45. package/schemas/usage.json +16 -0
  46. package/schemas/versions.json +16 -0
  47. package/schemas/whoami.json +16 -0
  48. package/schemas/workspaces-list.json +105 -0
  49. package/schemas/workspaces-update.json +112 -0
  50. package/schemas/workspaces-use.json +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taggor",
3
- "version": "0.8.0",
3
+ "version": "0.10.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.8.0",
39
+ "@taggor/contract": "0.10.0",
40
+ "@taggor/react": "0.10.0",
40
41
  "@taggor/test-page": "0.0.0",
41
- "@taggor/runtime": "0.8.0",
42
- "@taggor/server": "0.8.0",
43
- "@taggor/component": "0.8.0",
42
+ "@taggor/runtime": "0.10.0",
43
+ "@taggor/server": "0.10.0",
44
+ "@taggor/component": "0.10.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": {
@@ -65,6 +69,7 @@
65
69
  "test:coverage": "vitest run --coverage",
66
70
  "test:live": "vitest run --config vitest.integration.config.js",
67
71
  "test:e2e": "playwright test --config e2e/playwright.config.ts",
68
- "test:e2e:login": "sh scripts/login-e2e.sh"
72
+ "test:e2e:login": "sh scripts/login-e2e.sh",
73
+ "test:e2e:mfa": "sh scripts/login-e2e.sh mfa"
69
74
  }
70
75
  }
@@ -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"],
@@ -153,6 +153,22 @@
153
153
  "type": "integer",
154
154
  "minimum": -9007199254740991,
155
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": {}
156
172
  }
157
173
  },
158
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
+ }
@@ -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 restore"
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 restore"
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 restore --json"
92
+ }
@@ -29,6 +29,9 @@
29
29
  "component_id": {
30
30
  "type": "string"
31
31
  },
32
+ "component_tag": {
33
+ "type": ["string", "null"]
34
+ },
32
35
  "status": {
33
36
  "type": "string",
34
37
  "enum": ["active", "archived"]
@@ -46,6 +49,7 @@
46
49
  "id",
47
50
  "name",
48
51
  "component_id",
52
+ "component_tag",
49
53
  "status",
50
54
  "retention_days",
51
55
  "created_at"
@@ -88,6 +92,22 @@
88
92
  "type": "integer",
89
93
  "minimum": -9007199254740991,
90
94
  "maximum": 9007199254740991
95
+ },
96
+ "api_code": {
97
+ "type": "string"
98
+ },
99
+ "hint": {
100
+ "type": "string"
101
+ },
102
+ "docs_url": {
103
+ "type": "string"
104
+ },
105
+ "human_action": {
106
+ "type": "object",
107
+ "propertyNames": {
108
+ "type": "string"
109
+ },
110
+ "additionalProperties": {}
91
111
  }
92
112
  },
93
113
  "required": ["code", "message", "request_id", "exit_code"],
@@ -68,6 +68,22 @@
68
68
  "type": "integer",
69
69
  "minimum": -9007199254740991,
70
70
  "maximum": 9007199254740991
71
+ },
72
+ "api_code": {
73
+ "type": "string"
74
+ },
75
+ "hint": {
76
+ "type": "string"
77
+ },
78
+ "docs_url": {
79
+ "type": "string"
80
+ },
81
+ "human_action": {
82
+ "type": "object",
83
+ "propertyNames": {
84
+ "type": "string"
85
+ },
86
+ "additionalProperties": {}
71
87
  }
72
88
  },
73
89
  "required": ["code", "message", "request_id", "exit_code"],