@happyvertical/smrt-cli 0.52.0 → 0.53.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 (44) hide show
  1. package/AGENTS.md +1 -0
  2. package/README.md +1 -0
  3. package/dist/{ApiKey-BZmbOTnL-CMUo3WLf.js → ApiKey-BZmbOTnL-d61__hH4.js} +2 -2
  4. package/dist/ApiKeyCollection-Bfb_nw81-BVJ-i1Aw.js +2 -0
  5. package/dist/AuditLogCollection-B1YonCAP-bpq7rM2b.js +2 -0
  6. package/dist/{NostrIdentity-n70E0vck-BD7uutxz.js → NostrIdentity-n70E0vck-CmFPKTaE.js} +3 -3
  7. package/dist/NostrIdentityCollection-Ca74dkaL-C0rNgSy-.js +2 -0
  8. package/dist/{OidcIdentity-Cb1bxreM-DY0aRLu-.js → OidcIdentity-Cb1bxreM-L5LCgsel.js} +2 -2
  9. package/dist/OidcIdentityCollection-TV8VdK69-CUmZ-j4r.js +2 -0
  10. package/dist/ProfileAssetCollection-B9hacUJa-C53RAi1e.js +2 -0
  11. package/dist/{ProfileCollection-DuJT7Mum-D_ScbSMu.js → ProfileCollection-DuJT7Mum-zuWR2h3v.js} +26 -26
  12. package/dist/ProfileLinkCollection-4uNURz32-Fmbnrmyr.js +2 -0
  13. package/dist/ProfileMetadataCollection-DQhbfEfa-D30yWyzB.js +2 -0
  14. package/dist/{ProfileMetafieldCollection-CoBuM_5G-BDwo4x3z.js → ProfileMetafieldCollection-CoBuM_5G-TNxSMsBJ.js} +1 -1
  15. package/dist/{ProfileRelationshipCollection-DUVgaIqf-BRrBeg1Q.js → ProfileRelationshipCollection-DUVgaIqf-CKcxS2xW.js} +1 -1
  16. package/dist/{ProfileRelationshipTermCollection-DtA9OM23-D4WMfN9a.js → ProfileRelationshipTermCollection-DtA9OM23-h-4GhOFl.js} +1 -1
  17. package/dist/{ProfileRelationshipType-BRiRka6t-B32A4UFT.js → ProfileRelationshipType-BRiRka6t-BFgCVe6p.js} +1 -1
  18. package/dist/{ProfileRelationshipTypeCollection-BdXwd7Kf-BqQa8Awc.js → ProfileRelationshipTypeCollection-BdXwd7Kf-Djb3_k5Z.js} +1 -1
  19. package/dist/cli-generator.d.ts.map +1 -1
  20. package/dist/commands/db-qualified-names.d.ts +39 -0
  21. package/dist/commands/db-qualified-names.d.ts.map +1 -0
  22. package/dist/commands/gnode.d.ts.map +1 -1
  23. package/dist/commands/index.d.ts +1 -0
  24. package/dist/commands/index.d.ts.map +1 -1
  25. package/dist/commands/mcp-apps-packaging.d.ts +24 -0
  26. package/dist/commands/mcp-apps-packaging.d.ts.map +1 -0
  27. package/dist/commands/utilities.d.ts.map +1 -1
  28. package/dist/{commands-BvcMfEoO.js → commands-e1tsvozP.js} +487 -6
  29. package/dist/{dist-BTxdRxKP.js → dist-8C4XjDhz.js} +2 -2
  30. package/dist/{dist-Dm4q4uB4.js → dist-CLA60jwS.js} +4 -4
  31. package/dist/{dist-qJw7ALwV.js → dist-CksLvqnZ.js} +10 -6
  32. package/dist/{dist-vJJL0WMc.js → dist-DtTkpUee.js} +26 -26
  33. package/dist/index.js +17 -11
  34. package/dist/{oidcProvisioningPrimitives-D9OYu5-F-D9DQdiwS.js → oidcProvisioningPrimitives-D9OYu5-F-CJ6bTipi.js} +4 -4
  35. package/dist/resolveIdentity-B-PK6RwU-DxJFF8ad.js +2 -0
  36. package/package.json +16 -15
  37. package/dist/ApiKeyCollection-Bfb_nw81-C3Xz7MUq.js +0 -2
  38. package/dist/AuditLogCollection-B1YonCAP-DmmboC_X.js +0 -2
  39. package/dist/NostrIdentityCollection-Ca74dkaL--KYlM_ou.js +0 -2
  40. package/dist/OidcIdentityCollection-TV8VdK69-DPeFJt3R.js +0 -2
  41. package/dist/ProfileAssetCollection-B9hacUJa-6R8lwjti.js +0 -2
  42. package/dist/ProfileLinkCollection-4uNURz32-lMKBjaik.js +0 -2
  43. package/dist/ProfileMetadataCollection-DQhbfEfa-B1QlmBkX.js +0 -2
  44. package/dist/resolveIdentity-B-PK6RwU-Dvqeq9-I.js +0 -2
package/dist/index.js CHANGED
@@ -49,63 +49,63 @@ var _playgroundCommands = null;
49
49
  var _workbenchCommands = null;
50
50
  async function getGnodeCommands() {
51
51
  if (!_gnodeCommands) {
52
- const { gnodeCommands } = await import("./commands-BvcMfEoO.js");
52
+ const { gnodeCommands } = await import("./commands-e1tsvozP.js");
53
53
  _gnodeCommands = gnodeCommands;
54
54
  }
55
55
  return _gnodeCommands;
56
56
  }
57
57
  async function getGitCommands() {
58
58
  if (!_gitCommands) {
59
- const { gitCommands } = await import("./commands-BvcMfEoO.js");
59
+ const { gitCommands } = await import("./commands-e1tsvozP.js");
60
60
  _gitCommands = gitCommands;
61
61
  }
62
62
  return _gitCommands;
63
63
  }
64
64
  async function getGenerateCommands() {
65
65
  if (!_generateCommands) {
66
- const { generateCommands } = await import("./commands-BvcMfEoO.js");
66
+ const { generateCommands } = await import("./commands-e1tsvozP.js");
67
67
  _generateCommands = generateCommands;
68
68
  }
69
69
  return _generateCommands;
70
70
  }
71
71
  async function getInitCommands() {
72
72
  if (!_initCommands) {
73
- const { initCommands } = await import("./commands-BvcMfEoO.js");
73
+ const { initCommands } = await import("./commands-e1tsvozP.js");
74
74
  _initCommands = initCommands;
75
75
  }
76
76
  return _initCommands;
77
77
  }
78
78
  async function getUtilityCommands() {
79
79
  if (!_utilityCommands) {
80
- const { utilityCommands } = await import("./commands-BvcMfEoO.js");
80
+ const { utilityCommands } = await import("./commands-e1tsvozP.js");
81
81
  _utilityCommands = utilityCommands;
82
82
  }
83
83
  return _utilityCommands;
84
84
  }
85
85
  async function getDispatchCommands() {
86
86
  if (!_dispatchCommands) {
87
- const { dispatchCommands } = await import("./commands-BvcMfEoO.js");
87
+ const { dispatchCommands } = await import("./commands-e1tsvozP.js");
88
88
  _dispatchCommands = dispatchCommands;
89
89
  }
90
90
  return _dispatchCommands;
91
91
  }
92
92
  async function getDocsCommands() {
93
93
  if (!_docsCommands) {
94
- const { docsCommands } = await import("./commands-BvcMfEoO.js");
94
+ const { docsCommands } = await import("./commands-e1tsvozP.js");
95
95
  _docsCommands = docsCommands;
96
96
  }
97
97
  return _docsCommands;
98
98
  }
99
99
  async function getPlaygroundCommands() {
100
100
  if (!_playgroundCommands) {
101
- const { playgroundCommands } = await import("./commands-BvcMfEoO.js");
101
+ const { playgroundCommands } = await import("./commands-e1tsvozP.js");
102
102
  _playgroundCommands = playgroundCommands;
103
103
  }
104
104
  return _playgroundCommands;
105
105
  }
106
106
  async function getWorkbenchCommands() {
107
107
  if (!_workbenchCommands) {
108
- const { workbenchCommands } = await import("./commands-BvcMfEoO.js");
108
+ const { workbenchCommands } = await import("./commands-e1tsvozP.js");
109
109
  _workbenchCommands = workbenchCommands;
110
110
  }
111
111
  return _workbenchCommands;
@@ -820,7 +820,8 @@ var CLIGenerator = class {
820
820
  ...playgroundCommands,
821
821
  ...workbenchCommands
822
822
  };
823
- const builtInCommand = builtInCommands[parsed.command] ?? Object.values(builtInCommands).find((cmd) => cmd.name === parsed.command || cmd.aliases?.includes(parsed.command ?? ""));
823
+ const builtInMatch = matchLeadingCommand(processedArgv, [], builtInCommands);
824
+ const builtInCommand = builtInMatch.command ?? builtInCommands[parsed.command] ?? Object.values(builtInCommands).find((cmd) => cmd.name === parsed.command || cmd.aliases?.includes(parsed.command ?? ""));
824
825
  if (builtInCommand) {
825
826
  const requiredArgCount = countRequiredArgs(builtInCommand.args);
826
827
  if (parsed.args.length < requiredArgCount) {
@@ -832,7 +833,12 @@ var CLIGenerator = class {
832
833
  this.exitWithError(`Command '${parsed.command}' has no handler defined`);
833
834
  return;
834
835
  }
835
- const reParsed = parseCliCommandArgs(processedArgv, [builtInCommand], {});
836
+ const start = firstArgumentIndex(processedArgv);
837
+ const reParsed = parseCliCommandArgs(builtInMatch.command && builtInMatch.wordCount > 1 ? [
838
+ ...processedArgv.slice(0, start),
839
+ builtInCommand.name,
840
+ ...processedArgv.slice(start + builtInMatch.wordCount)
841
+ ] : processedArgv, [builtInCommand], {});
836
842
  try {
837
843
  await builtInCommand.handler(reParsed.args, reParsed.options);
838
844
  return;
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { c as isSystemContext } from "./dist-BTxdRxKP.js";
3
- import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-BD7uutxz.js";
4
- import { t as OidcIdentity } from "./OidcIdentity-Cb1bxreM-DY0aRLu-.js";
5
- import { c as saveOidcRaceArbiter, i as ProfileType, n as ProfileCollection, t as Profile } from "./ProfileCollection-DuJT7Mum-D_ScbSMu.js";
2
+ import { c as isSystemContext } from "./dist-8C4XjDhz.js";
3
+ import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-CmFPKTaE.js";
4
+ import { t as OidcIdentity } from "./OidcIdentity-Cb1bxreM-L5LCgsel.js";
5
+ import { c as saveOidcRaceArbiter, i as ProfileType, n as ProfileCollection, t as Profile } from "./ProfileCollection-DuJT7Mum-zuWR2h3v.js";
6
6
  import { SmrtCollection, smrt } from "@happyvertical/smrt-core";
7
7
  //#region ../profiles/dist/chunks/oidcProvisioningPrimitives-D9OYu5-F.js
8
8
  var oidcProvisioningPrimitives_D9OYu5_F_exports = /* @__PURE__ */ __exportAll({
@@ -0,0 +1,2 @@
1
+ import { i as resolveIdentity_exports } from "./dist-DtTkpUee.js";
2
+ export { resolveIdentity_exports as i };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-cli",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "Developer CLI for SMRT framework - introspection, testing, and project management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,22 +25,23 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@happyvertical/ai": "^0.96.1",
29
- "@happyvertical/files": "^0.96.1",
30
- "@happyvertical/logger": "^0.96.1",
31
- "@happyvertical/smrt-agents": "0.52.0",
32
- "@happyvertical/smrt-config": "0.52.0",
33
- "@happyvertical/smrt-core": "0.52.0",
34
- "@happyvertical/smrt-dev-mcp": "0.52.0",
35
- "@happyvertical/smrt-ledgers": "0.52.0",
36
- "@happyvertical/smrt-playground": "0.52.0",
37
- "@happyvertical/smrt-types": "0.52.0",
38
- "@happyvertical/smrt-users": "0.52.0",
39
- "@happyvertical/sql": "^0.96.1",
40
- "@happyvertical/utils": "^0.96.1",
28
+ "@happyvertical/ai": "^0.98.0",
29
+ "@happyvertical/files": "^0.98.0",
30
+ "@happyvertical/logger": "^0.98.0",
31
+ "@happyvertical/smrt-agents": "0.53.0",
32
+ "@happyvertical/smrt-config": "0.53.0",
33
+ "@happyvertical/smrt-core": "0.53.0",
34
+ "@happyvertical/smrt-dev-mcp": "0.53.0",
35
+ "@happyvertical/smrt-ledgers": "0.53.0",
36
+ "@happyvertical/smrt-playground": "0.53.0",
37
+ "@happyvertical/smrt-types": "0.53.0",
38
+ "@happyvertical/smrt-users": "0.53.0",
39
+ "@happyvertical/sql": "^0.98.0",
40
+ "@happyvertical/utils": "^0.98.0",
41
41
  "acorn": "^8.18.0",
42
42
  "fast-glob": "3.3.3",
43
- "tar": "^7.5.22"
43
+ "tar": "^7.5.22",
44
+ "ajv": "8.20.0"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@types/node": "24.13.6",
@@ -1,2 +0,0 @@
1
- import { L as ApiKeyCollection_exports } from "./dist-vJJL0WMc.js";
2
- export { ApiKeyCollection_exports as n };
@@ -1,2 +0,0 @@
1
- import { F as AuditLogCollection_exports } from "./dist-vJJL0WMc.js";
2
- export { AuditLogCollection_exports as n };
@@ -1,2 +0,0 @@
1
- import { M as NostrIdentityCollection_exports } from "./dist-vJJL0WMc.js";
2
- export { NostrIdentityCollection_exports as n };
@@ -1,2 +0,0 @@
1
- import { A as OidcIdentityCollection_exports } from "./dist-vJJL0WMc.js";
2
- export { OidcIdentityCollection_exports as r };
@@ -1,2 +0,0 @@
1
- import { D as ProfileAssetCollection_exports } from "./dist-vJJL0WMc.js";
2
- export { ProfileAssetCollection_exports as n };
@@ -1,2 +0,0 @@
1
- import { S as ProfileLinkCollection_exports } from "./dist-vJJL0WMc.js";
2
- export { ProfileLinkCollection_exports as r };
@@ -1,2 +0,0 @@
1
- import { v as ProfileMetadataCollection_exports } from "./dist-vJJL0WMc.js";
2
- export { ProfileMetadataCollection_exports as n };
@@ -1,2 +0,0 @@
1
- import { i as resolveIdentity_exports } from "./dist-vJJL0WMc.js";
2
- export { resolveIdentity_exports as i };