taggor 0.0.0-stage → 0.2.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,69 @@
1
1
  {
2
2
  "name": "taggor",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "description": "The taggor CLI: login, init, dev, publish, promote, rollback, sites, data and logs.",
5
+ "keywords": [
6
+ "taggor",
7
+ "cli",
8
+ "web-components",
9
+ "components",
10
+ "ai-agents"
11
+ ],
12
+ "license": "MIT",
13
+ "homepage": "https://taggor.dev/docs/",
14
+ "engines": {
15
+ "node": ">=20"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "type": "module",
21
+ "bin": {
22
+ "taggor": "./bin/taggor.js"
23
+ },
24
+ "files": [
25
+ "bin",
26
+ "dist/taggor.mjs",
27
+ "schemas",
28
+ "EXIT_CODES.md"
29
+ ],
30
+ "dependencies": {
31
+ "esbuild": "0.28.2",
32
+ "typescript": "6.0.3"
33
+ },
34
+ "devDependencies": {
35
+ "@playwright/test": "1.64.1",
36
+ "@taggor/api-client": "0.0.0",
37
+ "@taggor/builder": "0.0.0",
38
+ "@taggor/config": "0.0.0",
39
+ "@taggor/contract": "0.2.0",
40
+ "@taggor/runtime": "0.2.0",
41
+ "@taggor/server": "0.1.1",
42
+ "@taggor/component": "0.2.0",
43
+ "@types/node": "26.6.5",
44
+ "ajv": "8.20.0",
45
+ "citty": "0.2.2",
46
+ "preact": "10.29.8",
47
+ "tar": "7.5.22",
48
+ "zod": "4.6.7"
49
+ },
50
+ "scripts": {
51
+ "build": "tsc -b tsconfig.build.json && node scripts/bundle.ts",
52
+ "build:dev": "tsc -b tsconfig.build.json && node scripts/build-dev.ts",
53
+ "build:staging": "tsc -b tsconfig.build.json && node scripts/build-staging.ts",
54
+ "build:production": "tsc -b tsconfig.build.json && node scripts/build-production.ts",
55
+ "build:agents": "node scripts/build-agents.ts",
56
+ "agents:guide": "node scripts/gen-agents-guide.ts",
57
+ "agents:bundle": "node scripts/gen-agents-bundle.ts",
58
+ "onboarding:gen": "node scripts/gen-portal-onboarding.ts",
59
+ "agent-setup:gen": "node scripts/gen-agent-setup.ts",
60
+ "typecheck": "tsc -p tsconfig.json",
61
+ "lint": "eslint . --max-warnings 0",
62
+ "schemas:gen": "SCHEMAS_UPDATE=1 vitest run src/interfaces/output/schemas.test.ts && prettier --write schemas",
63
+ "test": "vitest run",
64
+ "test:coverage": "vitest run --coverage",
65
+ "test:live": "vitest run --config vitest.integration.config.js",
66
+ "test:e2e": "playwright test --config e2e/playwright.config.ts",
67
+ "test:e2e:login": "sh scripts/login-e2e.sh"
68
+ }
6
69
  }
@@ -0,0 +1,131 @@
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": "agent install"
14
+ },
15
+ "data": {
16
+ "anyOf": [
17
+ {
18
+ "type": "object",
19
+ "properties": {
20
+ "target": {
21
+ "type": "string",
22
+ "enum": ["claude", "codex", "cursor", "all"]
23
+ },
24
+ "bundle_version": {
25
+ "type": "string"
26
+ },
27
+ "files": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "object",
31
+ "properties": {
32
+ "path": {
33
+ "type": "string"
34
+ },
35
+ "action": {
36
+ "type": "string",
37
+ "enum": ["written", "created", "appended", "updated", "unchanged"]
38
+ }
39
+ },
40
+ "required": ["path", "action"],
41
+ "additionalProperties": false
42
+ }
43
+ },
44
+ "root": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "required": ["target", "bundle_version", "files", "root"],
49
+ "additionalProperties": false
50
+ },
51
+ {
52
+ "type": "object",
53
+ "properties": {
54
+ "bundle_version": {
55
+ "type": "string"
56
+ },
57
+ "installed": {
58
+ "type": "boolean"
59
+ },
60
+ "outdated": {
61
+ "type": "boolean"
62
+ },
63
+ "entries": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "object",
67
+ "properties": {
68
+ "path": {
69
+ "type": "string"
70
+ },
71
+ "installed_version": {
72
+ "type": ["string", "null"]
73
+ },
74
+ "status": {
75
+ "type": "string",
76
+ "enum": ["current", "outdated", "missing"]
77
+ }
78
+ },
79
+ "required": ["path", "installed_version", "status"],
80
+ "additionalProperties": false
81
+ }
82
+ }
83
+ },
84
+ "required": ["bundle_version", "installed", "outdated", "entries"],
85
+ "additionalProperties": false
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ "required": ["ok", "command", "data"],
91
+ "additionalProperties": false
92
+ },
93
+ {
94
+ "type": "object",
95
+ "properties": {
96
+ "ok": {
97
+ "type": "boolean",
98
+ "const": false
99
+ },
100
+ "command": {
101
+ "type": "string",
102
+ "const": "agent install"
103
+ },
104
+ "error": {
105
+ "type": "object",
106
+ "properties": {
107
+ "code": {
108
+ "type": "string"
109
+ },
110
+ "message": {
111
+ "type": "string"
112
+ },
113
+ "request_id": {
114
+ "type": ["string", "null"]
115
+ },
116
+ "exit_code": {
117
+ "type": "integer",
118
+ "minimum": -9007199254740991,
119
+ "maximum": 9007199254740991
120
+ }
121
+ },
122
+ "required": ["code", "message", "request_id", "exit_code"],
123
+ "additionalProperties": false
124
+ }
125
+ },
126
+ "required": ["ok", "command", "error"],
127
+ "additionalProperties": false
128
+ }
129
+ ],
130
+ "title": "taggor agent install --json"
131
+ }
@@ -0,0 +1,109 @@
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": "attach"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "site_id": {
19
+ "type": "string"
20
+ },
21
+ "site_key": {
22
+ "type": "string"
23
+ },
24
+ "component_id": {
25
+ "type": "string"
26
+ },
27
+ "tag": {
28
+ "type": "string"
29
+ },
30
+ "channel": {
31
+ "type": "string",
32
+ "enum": ["production", "staging"]
33
+ },
34
+ "created": {
35
+ "type": "boolean"
36
+ },
37
+ "loading": {
38
+ "type": "string",
39
+ "enum": ["eager", "idle"]
40
+ },
41
+ "site_source": {
42
+ "type": "object",
43
+ "properties": {
44
+ "from": {
45
+ "type": "string",
46
+ "enum": ["flag", "project"]
47
+ },
48
+ "path": {
49
+ "type": ["string", "null"]
50
+ }
51
+ },
52
+ "required": ["from", "path"],
53
+ "additionalProperties": false
54
+ }
55
+ },
56
+ "required": [
57
+ "site_id",
58
+ "site_key",
59
+ "component_id",
60
+ "tag",
61
+ "channel",
62
+ "created",
63
+ "site_source"
64
+ ],
65
+ "additionalProperties": false
66
+ }
67
+ },
68
+ "required": ["ok", "command", "data"],
69
+ "additionalProperties": false
70
+ },
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "ok": {
75
+ "type": "boolean",
76
+ "const": false
77
+ },
78
+ "command": {
79
+ "type": "string",
80
+ "const": "attach"
81
+ },
82
+ "error": {
83
+ "type": "object",
84
+ "properties": {
85
+ "code": {
86
+ "type": "string"
87
+ },
88
+ "message": {
89
+ "type": "string"
90
+ },
91
+ "request_id": {
92
+ "type": ["string", "null"]
93
+ },
94
+ "exit_code": {
95
+ "type": "integer",
96
+ "minimum": -9007199254740991,
97
+ "maximum": 9007199254740991
98
+ }
99
+ },
100
+ "required": ["code", "message", "request_id", "exit_code"],
101
+ "additionalProperties": false
102
+ }
103
+ },
104
+ "required": ["ok", "command", "error"],
105
+ "additionalProperties": false
106
+ }
107
+ ],
108
+ "title": "taggor attach --json"
109
+ }
@@ -0,0 +1,200 @@
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": "check"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "ok": {
19
+ "type": "boolean",
20
+ "const": true
21
+ },
22
+ "version": {
23
+ "type": "string"
24
+ },
25
+ "components": {
26
+ "type": "array",
27
+ "items": {
28
+ "type": "object",
29
+ "properties": {
30
+ "name": {
31
+ "type": "string"
32
+ },
33
+ "path": {
34
+ "type": "string"
35
+ },
36
+ "ok": {
37
+ "type": "boolean"
38
+ },
39
+ "duration_ms": {
40
+ "type": "integer",
41
+ "minimum": -9007199254740991,
42
+ "maximum": 9007199254740991
43
+ },
44
+ "gates": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "object",
48
+ "properties": {
49
+ "gate": {
50
+ "type": "string",
51
+ "enum": ["typecheck", "size", "security"]
52
+ },
53
+ "ok": {
54
+ "type": "boolean"
55
+ },
56
+ "errors": {
57
+ "type": "integer",
58
+ "minimum": -9007199254740991,
59
+ "maximum": 9007199254740991
60
+ },
61
+ "warnings": {
62
+ "type": "integer",
63
+ "minimum": -9007199254740991,
64
+ "maximum": 9007199254740991
65
+ }
66
+ },
67
+ "required": ["gate", "ok", "errors", "warnings"],
68
+ "additionalProperties": false
69
+ }
70
+ },
71
+ "diagnostics": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "code": {
77
+ "type": "string"
78
+ },
79
+ "severity": {
80
+ "type": "string",
81
+ "enum": ["error", "warning"]
82
+ },
83
+ "message": {
84
+ "type": "string"
85
+ },
86
+ "hint": {
87
+ "type": "string"
88
+ },
89
+ "docs_url": {
90
+ "type": "string"
91
+ },
92
+ "file": {
93
+ "type": "string"
94
+ },
95
+ "line": {
96
+ "type": "integer",
97
+ "minimum": -9007199254740991,
98
+ "maximum": 9007199254740991
99
+ },
100
+ "column": {
101
+ "type": "integer",
102
+ "minimum": -9007199254740991,
103
+ "maximum": 9007199254740991
104
+ }
105
+ },
106
+ "required": ["code", "severity", "message"],
107
+ "additionalProperties": false
108
+ }
109
+ }
110
+ },
111
+ "required": ["name", "path", "ok", "duration_ms", "gates", "diagnostics"],
112
+ "additionalProperties": false
113
+ }
114
+ }
115
+ },
116
+ "required": ["ok", "version", "components"],
117
+ "additionalProperties": false
118
+ }
119
+ },
120
+ "required": ["ok", "command", "data"],
121
+ "additionalProperties": false
122
+ },
123
+ {
124
+ "type": "object",
125
+ "properties": {
126
+ "ok": {
127
+ "type": "boolean",
128
+ "const": false
129
+ },
130
+ "command": {
131
+ "type": "string",
132
+ "const": "check"
133
+ },
134
+ "error": {
135
+ "type": "object",
136
+ "properties": {
137
+ "code": {
138
+ "type": "string"
139
+ },
140
+ "message": {
141
+ "type": "string"
142
+ },
143
+ "request_id": {
144
+ "type": ["string", "null"]
145
+ },
146
+ "exit_code": {
147
+ "type": "integer",
148
+ "minimum": -9007199254740991,
149
+ "maximum": 9007199254740991
150
+ },
151
+ "errors": {
152
+ "type": "array",
153
+ "items": {
154
+ "type": "object",
155
+ "properties": {
156
+ "code": {
157
+ "type": "string"
158
+ },
159
+ "severity": {
160
+ "type": "string",
161
+ "enum": ["error", "warning"]
162
+ },
163
+ "message": {
164
+ "type": "string"
165
+ },
166
+ "hint": {
167
+ "type": "string"
168
+ },
169
+ "docs_url": {
170
+ "type": "string"
171
+ },
172
+ "file": {
173
+ "type": "string"
174
+ },
175
+ "line": {
176
+ "type": "integer",
177
+ "minimum": -9007199254740991,
178
+ "maximum": 9007199254740991
179
+ },
180
+ "column": {
181
+ "type": "integer",
182
+ "minimum": -9007199254740991,
183
+ "maximum": 9007199254740991
184
+ }
185
+ },
186
+ "required": ["code", "severity", "message"],
187
+ "additionalProperties": false
188
+ }
189
+ }
190
+ },
191
+ "required": ["code", "message", "request_id", "exit_code"],
192
+ "additionalProperties": false
193
+ }
194
+ },
195
+ "required": ["ok", "command", "error"],
196
+ "additionalProperties": false
197
+ }
198
+ ],
199
+ "title": "taggor check --json"
200
+ }
@@ -0,0 +1,102 @@
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": "data collections"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "collections": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "object",
22
+ "properties": {
23
+ "id": {
24
+ "type": "string"
25
+ },
26
+ "name": {
27
+ "type": "string"
28
+ },
29
+ "component_id": {
30
+ "type": "string"
31
+ },
32
+ "status": {
33
+ "type": "string",
34
+ "enum": ["active", "archived"]
35
+ },
36
+ "retention_days": {
37
+ "type": "integer",
38
+ "minimum": -9007199254740991,
39
+ "maximum": 9007199254740991
40
+ },
41
+ "created_at": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ "required": [
46
+ "id",
47
+ "name",
48
+ "component_id",
49
+ "status",
50
+ "retention_days",
51
+ "created_at"
52
+ ],
53
+ "additionalProperties": false
54
+ }
55
+ }
56
+ },
57
+ "required": ["collections"],
58
+ "additionalProperties": false
59
+ }
60
+ },
61
+ "required": ["ok", "command", "data"],
62
+ "additionalProperties": false
63
+ },
64
+ {
65
+ "type": "object",
66
+ "properties": {
67
+ "ok": {
68
+ "type": "boolean",
69
+ "const": false
70
+ },
71
+ "command": {
72
+ "type": "string",
73
+ "const": "data collections"
74
+ },
75
+ "error": {
76
+ "type": "object",
77
+ "properties": {
78
+ "code": {
79
+ "type": "string"
80
+ },
81
+ "message": {
82
+ "type": "string"
83
+ },
84
+ "request_id": {
85
+ "type": ["string", "null"]
86
+ },
87
+ "exit_code": {
88
+ "type": "integer",
89
+ "minimum": -9007199254740991,
90
+ "maximum": 9007199254740991
91
+ }
92
+ },
93
+ "required": ["code", "message", "request_id", "exit_code"],
94
+ "additionalProperties": false
95
+ }
96
+ },
97
+ "required": ["ok", "command", "error"],
98
+ "additionalProperties": false
99
+ }
100
+ ],
101
+ "title": "taggor data collections --json"
102
+ }