asdm-cli 0.1.1 → 0.1.2

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/dist/index.mjs CHANGED
@@ -755,7 +755,7 @@ var TelemetryWriter = class {
755
755
  const fullEvent = {
756
756
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
757
757
  machineId: machineId(),
758
- version: "0.1.1",
758
+ version: "0.1.2",
759
759
  ...event
760
760
  };
761
761
  const line = JSON.stringify(fullEvent) + "\n";
@@ -904,7 +904,7 @@ var logger = {
904
904
  };
905
905
 
906
906
  // src/cli/commands/init.ts
907
- var DEFAULT_REGISTRY = "github://your-org/asdm-registry";
907
+ var DEFAULT_REGISTRY = "github://lennonalvesdias/asdm";
908
908
  var init_default = defineCommand({
909
909
  meta: {
910
910
  name: "init",
@@ -979,7 +979,7 @@ import path11 from "path";
979
979
 
980
980
  // src/core/registry-client.ts
981
981
  var GITHUB_API_BASE = "https://api.github.com";
982
- var GITHUB_RAW_BASE = "https://github.com";
982
+ var GITHUB_RAW_BASE = "https://raw.githubusercontent.com";
983
983
  var FETCH_TIMEOUT_MS = 1e4;
984
984
  function getGithubToken() {
985
985
  return process.env["ASDM_GITHUB_TOKEN"] ?? process.env["GITHUB_TOKEN"];
@@ -1089,13 +1089,13 @@ var RegistryClient = class {
1089
1089
  return manifestResponse.json();
1090
1090
  }
1091
1091
  /**
1092
- * Download a specific asset file from a GitHub Release.
1092
+ * Download a specific asset file from the registry via raw GitHub content.
1093
1093
  *
1094
1094
  * @param assetPath - Registry-relative path (e.g., "agents/code-reviewer.asdm.md")
1095
1095
  * @param version - Release tag version (e.g., "1.0.0")
1096
1096
  */
1097
1097
  async downloadAsset(assetPath, version) {
1098
- const url = `${GITHUB_RAW_BASE}/${this.org}/${this.repo}/releases/download/v${version}/${assetPath}`;
1098
+ const url = `${GITHUB_RAW_BASE}/${this.org}/${this.repo}/refs/tags/v${version}/registry/${assetPath}`;
1099
1099
  const response = await fetchWithRetry(
1100
1100
  url,
1101
1101
  { headers: this.headers },
@@ -1378,7 +1378,7 @@ async function loadAdapters(providers) {
1378
1378
  return adapters;
1379
1379
  }
1380
1380
  async function getCliVersion() {
1381
- return "0.1.1";
1381
+ return "0.1.2";
1382
1382
  }
1383
1383
  async function sync(options) {
1384
1384
  const startTime = Date.now();
@@ -2252,7 +2252,7 @@ var version_default = defineCommand10({
2252
2252
  description: "Print CLI version and environment info"
2253
2253
  },
2254
2254
  run(_ctx) {
2255
- console.log(`asdm v${"0.1.1"}`);
2255
+ console.log(`asdm v${"0.1.2"}`);
2256
2256
  console.log(`node ${process.version}`);
2257
2257
  console.log(`os ${os3.type()} ${os3.release()} (${process.platform})`);
2258
2258
  }
@@ -2987,7 +2987,7 @@ async function checkForUpdate(currentVersion) {
2987
2987
  var rootCommand = defineCommand16({
2988
2988
  meta: {
2989
2989
  name: "asdm",
2990
- version: "0.1.1",
2990
+ version: "0.1.2",
2991
2991
  description: "Agentic Software Delivery Model \u2014 Write Once, Emit Many"
2992
2992
  },
2993
2993
  subCommands: {
@@ -3033,9 +3033,9 @@ async function main() {
3033
3033
  await runMain(rootCommand);
3034
3034
  if (process.exitCode !== void 0 && process.exitCode !== 0) return;
3035
3035
  try {
3036
- const latestVersion = await checkForUpdate("0.1.1");
3036
+ const latestVersion = await checkForUpdate("0.1.2");
3037
3037
  if (latestVersion) {
3038
- printUpdateBox("0.1.1", latestVersion);
3038
+ printUpdateBox("0.1.2", latestVersion);
3039
3039
  }
3040
3040
  } catch {
3041
3041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asdm-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Agentic Software Delivery Model — CLI for unified AI coding assistant governance",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://asdm.dev/schemas/manifest.schema.json",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "policy": {
5
5
  "locked_fields": [
6
6
  "telemetry",
@@ -22,7 +22,7 @@
22
22
  "claude-code",
23
23
  "copilot"
24
24
  ],
25
- "min_cli_version": "0.1.1"
25
+ "min_cli_version": "0.1.2"
26
26
  },
27
27
  "profiles": {
28
28
  "base": {
@@ -0,0 +1,253 @@
1
+ {
2
+ "$schema": "https://asdm.dev/schemas/manifest.schema.json",
3
+ "version": "0.1.2",
4
+ "policy": {
5
+ "locked_fields": [
6
+ "telemetry",
7
+ "install_hooks",
8
+ "auto_verify"
9
+ ],
10
+ "telemetry": true,
11
+ "auto_verify": true,
12
+ "install_hooks": true,
13
+ "allowed_profiles": [
14
+ "base",
15
+ "fullstack-engineer",
16
+ "data-analytics",
17
+ "mobile",
18
+ "security"
19
+ ],
20
+ "allowed_providers": [
21
+ "opencode",
22
+ "claude-code",
23
+ "copilot"
24
+ ],
25
+ "min_cli_version": "0.1.2"
26
+ },
27
+ "profiles": {
28
+ "base": {
29
+ "agents": [
30
+ "code-reviewer",
31
+ "documentation-writer"
32
+ ],
33
+ "skills": [
34
+ "plan-protocol",
35
+ "code-review"
36
+ ],
37
+ "commands": [
38
+ "check-file",
39
+ "summarize"
40
+ ],
41
+ "providers": [
42
+ "opencode",
43
+ "claude-code",
44
+ "copilot"
45
+ ]
46
+ },
47
+ "data-analytics": {
48
+ "extends": [
49
+ "base"
50
+ ],
51
+ "agents": [
52
+ "code-reviewer",
53
+ "data-analyst",
54
+ "documentation-writer"
55
+ ],
56
+ "skills": [
57
+ "plan-protocol",
58
+ "code-review",
59
+ "data-pipeline"
60
+ ],
61
+ "commands": [
62
+ "check-file",
63
+ "summarize",
64
+ "analyze-schema"
65
+ ],
66
+ "providers": [
67
+ "opencode",
68
+ "claude-code",
69
+ "copilot"
70
+ ]
71
+ },
72
+ "fullstack-engineer": {
73
+ "extends": [
74
+ "base"
75
+ ],
76
+ "agents": [
77
+ "code-reviewer",
78
+ "documentation-writer",
79
+ "architect",
80
+ "test-engineer"
81
+ ],
82
+ "skills": [
83
+ "plan-protocol",
84
+ "code-review",
85
+ "frontend-design",
86
+ "api-design"
87
+ ],
88
+ "commands": [
89
+ "check-file",
90
+ "summarize",
91
+ "generate-types",
92
+ "scaffold-component"
93
+ ],
94
+ "providers": [
95
+ "opencode",
96
+ "claude-code",
97
+ "copilot"
98
+ ]
99
+ },
100
+ "mobile": {
101
+ "extends": [
102
+ "base"
103
+ ],
104
+ "agents": [
105
+ "code-reviewer",
106
+ "documentation-writer",
107
+ "mobile-engineer"
108
+ ],
109
+ "skills": [
110
+ "plan-protocol",
111
+ "code-review",
112
+ "mobile-patterns"
113
+ ],
114
+ "commands": [
115
+ "check-file",
116
+ "summarize",
117
+ "scaffold-component"
118
+ ],
119
+ "providers": [
120
+ "opencode",
121
+ "claude-code",
122
+ "copilot"
123
+ ]
124
+ },
125
+ "security": {
126
+ "extends": [
127
+ "base"
128
+ ],
129
+ "agents": [
130
+ "code-reviewer",
131
+ "security-auditor",
132
+ "documentation-writer"
133
+ ],
134
+ "skills": [
135
+ "plan-protocol",
136
+ "code-review",
137
+ "threat-modeling"
138
+ ],
139
+ "commands": [
140
+ "check-file",
141
+ "summarize",
142
+ "audit-deps"
143
+ ],
144
+ "providers": [
145
+ "opencode",
146
+ "claude-code",
147
+ "copilot"
148
+ ]
149
+ }
150
+ },
151
+ "assets": {
152
+ "agents/architect.asdm.md": {
153
+ "sha256": "cac0b010fd350f9d23bfbb090327dc2e8e971be9daafa764269619224c5ca742",
154
+ "size": 3011,
155
+ "version": "1.0.0"
156
+ },
157
+ "agents/code-reviewer.asdm.md": {
158
+ "sha256": "682c73710a84ad8c40e3d8548f82811390ce3db32c6f136116afcde7f87fc75d",
159
+ "size": 2911,
160
+ "version": "1.0.0"
161
+ },
162
+ "agents/data-analyst.asdm.md": {
163
+ "sha256": "bb0ce105b9dd19eaef3be5d6b76f5ad273b4b95057d3bb2c998acbaf3dfc7589",
164
+ "size": 2865,
165
+ "version": "1.0.0"
166
+ },
167
+ "agents/documentation-writer.asdm.md": {
168
+ "sha256": "05f22780898bdc7dc9e842caab967241b99e02ca7d43d30b09ca8d19fc85d63a",
169
+ "size": 2788,
170
+ "version": "1.0.0"
171
+ },
172
+ "agents/mobile-engineer.asdm.md": {
173
+ "sha256": "ab51f952dcc8ce72cf3f48359e11c30fc7a3f5b32b534e56b04ee47cd382c3bd",
174
+ "size": 2903,
175
+ "version": "1.0.0"
176
+ },
177
+ "agents/security-auditor.asdm.md": {
178
+ "sha256": "8285378a7b30009a02f537d9fc882344c50444c1c1fe1b0ff35b8e49e475b2eb",
179
+ "size": 3167,
180
+ "version": "1.0.0"
181
+ },
182
+ "agents/test-engineer.asdm.md": {
183
+ "sha256": "e23266b82c0e3ccb96d613167c3c27d88651ff159fcb8e9b8eaf34b125681278",
184
+ "size": 2811,
185
+ "version": "1.0.0"
186
+ },
187
+ "skills/api-design/SKILL.asdm.md": {
188
+ "sha256": "637fc8014c22ddd8fa9122a44eb68cef70ffecfed724e8535b8d7d54091c579c",
189
+ "size": 3506,
190
+ "version": "1.0.0"
191
+ },
192
+ "skills/code-review/SKILL.asdm.md": {
193
+ "sha256": "de2011667b7f9e5c07cef878d43e85bb2d9fa2109c4ba64e161b6038012fab20",
194
+ "size": 3112,
195
+ "version": "1.0.0"
196
+ },
197
+ "skills/data-pipeline/SKILL.asdm.md": {
198
+ "sha256": "35e45153c4eafc4f1654b46865a226509634b3659365b03e19de482d10233699",
199
+ "size": 3686,
200
+ "version": "1.0.0"
201
+ },
202
+ "skills/frontend-design/SKILL.asdm.md": {
203
+ "sha256": "9cdddedd6f2b6caa8bafb8f8fa9864b6473c89170c4feedd05aaa9f1a30a8d3f",
204
+ "size": 3267,
205
+ "version": "1.0.0"
206
+ },
207
+ "skills/mobile-patterns/SKILL.asdm.md": {
208
+ "sha256": "9f336da4b1979cbdadad95012a4347f0e9830597f60e98e9084d6a0d07459acd",
209
+ "size": 3561,
210
+ "version": "1.0.0"
211
+ },
212
+ "skills/plan-protocol/SKILL.asdm.md": {
213
+ "sha256": "c0226a04e91caedc6dd9b51946508b9c05c29b51aa3402217c176161c0e7a16c",
214
+ "size": 2781,
215
+ "version": "1.0.0"
216
+ },
217
+ "skills/threat-modeling/SKILL.asdm.md": {
218
+ "sha256": "255ec1cc1773315b994bff8f09e647750210bc34f233c5ff83053fb6568f67e5",
219
+ "size": 4256,
220
+ "version": "1.0.0"
221
+ },
222
+ "commands/analyze-schema.asdm.md": {
223
+ "sha256": "2c855b9b02257cecc71c5a03faa05da52e215df148aa141c9258db8e0d2b6174",
224
+ "size": 2538,
225
+ "version": "1.0.0"
226
+ },
227
+ "commands/audit-deps.asdm.md": {
228
+ "sha256": "b5d54e07d9596b996090aae8e83476fb2d53b62301dd3feef82facd3d08f7150",
229
+ "size": 2781,
230
+ "version": "1.0.0"
231
+ },
232
+ "commands/check-file.asdm.md": {
233
+ "sha256": "3090793fb1eb3484626f7a4c9569df87ff486586e2e3f4046c15749003a4af73",
234
+ "size": 1700,
235
+ "version": "1.0.0"
236
+ },
237
+ "commands/generate-types.asdm.md": {
238
+ "sha256": "d1b1401c495410ee68aedc055700cfb11794228d8f363bdf6463b75e58bdff20",
239
+ "size": 2259,
240
+ "version": "1.0.0"
241
+ },
242
+ "commands/scaffold-component.asdm.md": {
243
+ "sha256": "312cf07c16a44fe334037281213aed99d8410070acbfe35e6ae0968ec8a5263f",
244
+ "size": 2327,
245
+ "version": "1.0.0"
246
+ },
247
+ "commands/summarize.asdm.md": {
248
+ "sha256": "0f52ab9a25f6f802aa2a9025d8a4e9a5825aa04ba94173884bb189566ad07ad0",
249
+ "size": 1919,
250
+ "version": "1.0.0"
251
+ }
252
+ }
253
+ }