taggor 0.4.0 → 0.6.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 +1 -2
- package/README.md +15 -13
- package/bin/taggor.js +1 -1
- package/dist/taggor.mjs +1624 -1608
- package/package.json +6 -5
- package/schemas/metrics-parameters.json +136 -0
- package/schemas/metrics.json +2 -2
- package/schemas/preview.json +114 -0
- package/schemas/publish.json +23 -16
- package/schemas/usage.json +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taggor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.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,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.
|
|
40
|
-
"@taggor/
|
|
41
|
-
"@taggor/
|
|
42
|
-
"@taggor/
|
|
39
|
+
"@taggor/contract": "0.6.0",
|
|
40
|
+
"@taggor/test-page": "0.0.0",
|
|
41
|
+
"@taggor/runtime": "0.6.0",
|
|
42
|
+
"@taggor/server": "0.6.0",
|
|
43
|
+
"@taggor/component": "0.6.0",
|
|
43
44
|
"@types/node": "26.6.5",
|
|
44
45
|
"ajv": "8.20.0",
|
|
45
46
|
"citty": "0.2.2",
|
|
@@ -0,0 +1,136 @@
|
|
|
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": "metrics parameters"
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"workspace_id": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"from": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"to": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"environment": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"as_of": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"available": {
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
},
|
|
36
|
+
"reason": {
|
|
37
|
+
"type": ["string", "null"]
|
|
38
|
+
},
|
|
39
|
+
"truncated": {
|
|
40
|
+
"type": "boolean"
|
|
41
|
+
},
|
|
42
|
+
"parameters": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"event": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"parameter": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"total": {
|
|
54
|
+
"type": "number"
|
|
55
|
+
},
|
|
56
|
+
"values": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"value": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"events": {
|
|
65
|
+
"type": "number"
|
|
66
|
+
},
|
|
67
|
+
"other": {
|
|
68
|
+
"type": "boolean"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": ["value", "events", "other"],
|
|
72
|
+
"additionalProperties": false
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": ["event", "parameter", "total", "values"],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"workspace_id",
|
|
83
|
+
"from",
|
|
84
|
+
"to",
|
|
85
|
+
"environment",
|
|
86
|
+
"as_of",
|
|
87
|
+
"available",
|
|
88
|
+
"reason",
|
|
89
|
+
"truncated",
|
|
90
|
+
"parameters"
|
|
91
|
+
],
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": ["ok", "command", "data"],
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"ok": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"const": false
|
|
104
|
+
},
|
|
105
|
+
"command": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"const": "metrics parameters"
|
|
108
|
+
},
|
|
109
|
+
"error": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"code": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"message": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"request_id": {
|
|
119
|
+
"type": ["string", "null"]
|
|
120
|
+
},
|
|
121
|
+
"exit_code": {
|
|
122
|
+
"type": "integer",
|
|
123
|
+
"minimum": -9007199254740991,
|
|
124
|
+
"maximum": 9007199254740991
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": ["code", "message", "request_id", "exit_code"],
|
|
128
|
+
"additionalProperties": false
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": ["ok", "command", "error"],
|
|
132
|
+
"additionalProperties": false
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"title": "taggor metrics parameters --json"
|
|
136
|
+
}
|
package/schemas/metrics.json
CHANGED
|
@@ -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
|
+
}
|
package/schemas/publish.json
CHANGED
|
@@ -135,24 +135,31 @@
|
|
|
135
135
|
"type": "boolean"
|
|
136
136
|
},
|
|
137
137
|
"package": {
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
149
|
-
"type": "
|
|
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",
|
package/schemas/usage.json
CHANGED
|
@@ -112,9 +112,6 @@
|
|
|
112
112
|
"overage": {
|
|
113
113
|
"type": "object",
|
|
114
114
|
"properties": {
|
|
115
|
-
"mode": {
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
115
|
"enabled": {
|
|
119
116
|
"type": "boolean"
|
|
120
117
|
},
|
|
@@ -168,7 +165,6 @@
|
|
|
168
165
|
}
|
|
169
166
|
},
|
|
170
167
|
"required": [
|
|
171
|
-
"mode",
|
|
172
168
|
"enabled",
|
|
173
169
|
"spend_cap_usd_cents",
|
|
174
170
|
"spend_cap_used_percent",
|