@codeworksh/cli 0.0.1-dev.20260923023259 → 0.0.1-dev.20260923102823

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 (78) hide show
  1. package/README.md +16 -18
  2. package/{add--i7mPR73.mjs → add-D1yPPRz2.mjs} +4 -4
  3. package/{add--i7mPR73.mjs.map → add-D1yPPRz2.mjs.map} +1 -1
  4. package/catalog-BtH_l7f2.mjs +17 -0
  5. package/catalog-BtH_l7f2.mjs.map +1 -0
  6. package/{check-Dq2WOgap.mjs → check-B7Uh_G-l.mjs} +4 -4
  7. package/{check-Dq2WOgap.mjs.map → check-B7Uh_G-l.mjs.map} +1 -1
  8. package/{commonjs-BDiLMfFF.mjs → commonjs-bcl-ngMU.mjs} +3 -3
  9. package/{commonjs-BDiLMfFF.mjs.map → commonjs-bcl-ngMU.mjs.map} +1 -1
  10. package/{definitions-Dfwyyv_K.mjs → definitions-XbglYT7Q.mjs} +3 -3
  11. package/{definitions-Dfwyyv_K.mjs.map → definitions-XbglYT7Q.mjs.map} +1 -1
  12. package/{entries-Gfsq7U4P.mjs → entries-B4tUkrxs.mjs} +2 -2
  13. package/{entries-Gfsq7U4P.mjs.map → entries-B4tUkrxs.mjs.map} +1 -1
  14. package/{error-BrbT9_4g.mjs → error-DG5INUkQ.mjs} +2185 -2090
  15. package/error-DG5INUkQ.mjs.map +1 -0
  16. package/{harness-Bgvrr0ZB.mjs → harness-LSywfXzo.mjs} +2 -2
  17. package/{harness-Bgvrr0ZB.mjs.map → harness-LSywfXzo.mjs.map} +1 -1
  18. package/index.d.mts +1 -5
  19. package/index.mjs +18 -18
  20. package/index.mjs.map +1 -1
  21. package/{install-DoO4D3fk.mjs → install-zXEeTQ8w.mjs} +4 -4
  22. package/{install-DoO4D3fk.mjs.map → install-zXEeTQ8w.mjs.map} +1 -1
  23. package/{lib-CyynPpjH.mjs → lib-BCUUrctP.mjs} +5 -5
  24. package/{lib-CyynPpjH.mjs.map → lib-BCUUrctP.mjs.map} +1 -1
  25. package/{lib-Dw7R2suc.mjs → lib-CNtGmPS7.mjs} +5 -5
  26. package/{lib-Dw7R2suc.mjs.map → lib-CNtGmPS7.mjs.map} +1 -1
  27. package/{lib-JQygPqgO.mjs → lib-CZnS894S.mjs} +3 -3
  28. package/{lib-JQygPqgO.mjs.map → lib-CZnS894S.mjs.map} +1 -1
  29. package/{lib-BkWR53Bz.mjs → lib-DHoZNIet.mjs} +6 -6
  30. package/{lib-BkWR53Bz.mjs.map → lib-DHoZNIet.mjs.map} +1 -1
  31. package/{link-B1zfETsS.mjs → link-DquUj9D6.mjs} +3 -3
  32. package/{link-B1zfETsS.mjs.map → link-DquUj9D6.mjs.map} +1 -1
  33. package/{list-CfPfmfe0.mjs → list-C1ZWDpwI.mjs} +6 -5
  34. package/list-C1ZWDpwI.mjs.map +1 -0
  35. package/{list-3OR68HpY.mjs → list-eorMHI-g.mjs} +4 -4
  36. package/{list-3OR68HpY.mjs.map → list-eorMHI-g.mjs.map} +1 -1
  37. package/{login-GFV3Z9f2.mjs → login-DEjauWkd.mjs} +4 -4
  38. package/{login-GFV3Z9f2.mjs.map → login-DEjauWkd.mjs.map} +1 -1
  39. package/{logout-D17TQUfo.mjs → logout-BUY-ESj_.mjs} +4 -4
  40. package/{logout-D17TQUfo.mjs.map → logout-BUY-ESj_.mjs.map} +1 -1
  41. package/{p-map-C2WSUhyP.mjs → p-map-CMI1i54p.mjs} +2 -2
  42. package/{p-map-C2WSUhyP.mjs.map → p-map-CMI1i54p.mjs.map} +1 -1
  43. package/package.json +2 -2
  44. package/{providers-DLXs9aWZ.mjs → providers-wTGawU9e.mjs} +6 -5
  45. package/providers-wTGawU9e.mjs.map +1 -0
  46. package/refresh-B2jxJmk1.mjs +16 -0
  47. package/refresh-B2jxJmk1.mjs.map +1 -0
  48. package/{refresh-BTNuP1zL.mjs → refresh-C7e_qZit.mjs} +4 -4
  49. package/{refresh-BTNuP1zL.mjs.map → refresh-C7e_qZit.mjs.map} +1 -1
  50. package/{reload-BzwsCBQq.mjs → reload-B5LO2rk9.mjs} +3 -3
  51. package/{reload-BzwsCBQq.mjs.map → reload-B5LO2rk9.mjs.map} +1 -1
  52. package/{remove-DgB3l5JL.mjs → remove-CTVgJKXM.mjs} +4 -4
  53. package/{remove-DgB3l5JL.mjs.map → remove-CTVgJKXM.mjs.map} +1 -1
  54. package/{run-BVo4XsL6.mjs → run-CORFA6op.mjs} +4 -4
  55. package/{run-BVo4XsL6.mjs.map → run-CORFA6op.mjs.map} +1 -1
  56. package/{runtime-Dl621FOp.mjs → runtime-Bp4kILYn.mjs} +12 -19
  57. package/{runtime-Dl621FOp.mjs.map → runtime-Bp4kILYn.mjs.map} +1 -1
  58. package/{serve-Dpep18-A.mjs → serve-DzaOcgKC.mjs} +8 -5
  59. package/{serve-Dpep18-A.mjs.map → serve-DzaOcgKC.mjs.map} +1 -1
  60. package/{settings-C52IrA72.mjs → settings-tMD7Y0ev.mjs} +2 -2
  61. package/{settings-C52IrA72.mjs.map → settings-tMD7Y0ev.mjs.map} +1 -1
  62. package/{shared-Uwjcofff.mjs → shared-D8hbPMPF.mjs} +3 -3
  63. package/{shared-Uwjcofff.mjs.map → shared-D8hbPMPF.mjs.map} +1 -1
  64. package/{status-DPYq2Sx4.mjs → status-CrAKnTHQ.mjs} +4 -4
  65. package/{status-DPYq2Sx4.mjs.map → status-CrAKnTHQ.mjs.map} +1 -1
  66. package/{type-defs-BZxrtlVD.mjs → type-defs-JBxRyl-4.mjs} +3 -3
  67. package/{type-defs-BZxrtlVD.mjs.map → type-defs-JBxRyl-4.mjs.map} +1 -1
  68. package/{update-CJrBbHwq.mjs → update-DK7kAVc3.mjs} +4 -4
  69. package/{update-CJrBbHwq.mjs.map → update-DK7kAVc3.mjs.map} +1 -1
  70. package/{valid-BWgW_TUl.mjs → valid-Bc7tec52.mjs} +2 -2
  71. package/{valid-BWgW_TUl.mjs.map → valid-Bc7tec52.mjs.map} +1 -1
  72. package/catalog-DJxy_lne.mjs +0 -31
  73. package/catalog-DJxy_lne.mjs.map +0 -1
  74. package/error-BrbT9_4g.mjs.map +0 -1
  75. package/generate-DrGYpD3l.mjs +0 -35
  76. package/generate-DrGYpD3l.mjs.map +0 -1
  77. package/list-CfPfmfe0.mjs.map +0 -1
  78. package/providers-DLXs9aWZ.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { I as projectRoot, K as parse, L as anchor, P as load, bt as resolve, q as probe$1 } from "./error-BrbT9_4g.mjs";
1
+ import { F as projectRoot, G as parse, I as anchor, K as probe$1, N as load, St as resolve } from "./error-DG5INUkQ.mjs";
2
2
  import { Effect, Option, Path } from "effect";
3
3
  //#region src/cli/cmd/handlers/plugin/entries.ts
4
4
  /** Only a string entry loads a module; `{ package }` is configuration for one already selected. */
@@ -45,4 +45,4 @@ const fetchable = (target) => target === void 0 || target.kind === "local" ? voi
45
45
  //#endregion
46
46
  export { probe as n, read as r, fetchable as t };
47
47
 
48
- //# sourceMappingURL=entries-Gfsq7U4P.mjs.map
48
+ //# sourceMappingURL=entries-B4tUkrxs.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"entries-Gfsq7U4P.mjs","names":["Global.resolve","Settings.projectRoot","Settings.load","Plugin.parse","Plugin.anchor","Plugin.probe"],"sources":["../../src/cli/cmd/handlers/plugin/entries.ts"],"sourcesContent":["import { Global, Plugin, Settings } from \"@codeworksh/harness/effect\";\nimport { Effect, Option, Path } from \"effect\";\nimport type { Shared } from \"./settings.ts\";\n\n/**\n * Every plugin entry the settings files name, across every layer, in the order they accumulate.\n *\n * This is what `install`, `list`, `check` and `update` all operate on: unlike `add` and `remove`,\n * none of them writes an entry. They read what is already there and act on the store -- each one\n * under the `.npmrc` context of the file that declared it, which is what keys the artifact.\n */\nexport interface Entry {\n\t/** The reference as the settings file spells it: the string a person will search for. */\n\treadonly written: string;\n\t/** The same reference, anchored to the file that declared it. This is what resolves. */\n\treadonly reference: string;\n\t/** Which settings file declared it. */\n\treadonly file: string;\n\t/**\n\t * The `.npmrc` anchor for the entry's store identity: the project that declared it, so the\n\t * registry context is the same wherever this command happens to run.\n\t */\n\treadonly from: string;\n\t/** Absent for an unparseable entry and for a local path. */\n\treadonly target: Plugin.Target | undefined;\n}\n\n/** Only a string entry loads a module; `{ package }` is configuration for one already selected. */\nconst moduleOf = (entry: unknown): string | undefined => (typeof entry === \"string\" ? entry : undefined);\n\nexport const read = Effect.fn(\"CLI.plugin.entries\")(function* (shared: Shared) {\n\tconst nodePath = yield* Path.Path;\n\tconst cwd = nodePath.resolve(\".\");\n\tconst paths = yield* Global.resolve(Option.isNone(shared.home) ? {} : { home: shared.home.value });\n\tconst root = yield* Settings.projectRoot(cwd, paths.home);\n\tconst config = yield* Settings.load({\n\t\thome: paths.home,\n\t\t...(root === undefined ? {} : { hostDir: root }),\n\t\t...(Option.isNone(shared.userConfigDir) ? {} : { userConfigDir: shared.userConfigDir.value }),\n\t});\n\n\tconst seen = new Set<string>();\n\tconst entries: Entry[] = [];\n\tfor (const one of config.declared) {\n\t\tconst reference = moduleOf(one.entry);\n\t\t// Loading is keyed by the module, so the same one named twice is one entry here too.\n\t\tif (reference === undefined || seen.has(reference)) continue;\n\t\tseen.add(reference);\n\t\t// Already anchored to the file that declared it, so `cwd` here only affects a reference\n\t\t// no settings file produced.\n\t\tconst target = yield* Plugin.parse(reference, cwd).pipe(Effect.option);\n\t\tentries.push({\n\t\t\twritten: moduleOf(one.written) ?? reference,\n\t\t\treference,\n\t\t\tfile: one.file,\n\t\t\tfrom: Plugin.anchor(one.file, cwd),\n\t\t\ttarget: Option.getOrUndefined(target),\n\t\t});\n\t}\n\treturn { entries: entries as ReadonlyArray<Entry>, cache: paths.cache };\n});\n\n/**\n * The network half, handed to the store so the store itself never opens a socket.\n *\n * `probe` bypasses pacote's own metadata cache, because a staleness check that reads a cache is\n * not a staleness check. `from` is the host directory: a probe that read a different `.npmrc`\n * chain than the install would answer about a registry nothing is ever fetched from.\n */\nexport const probe =\n\t(cache: string, from: string): Plugin.Probe =>\n\t(target) =>\n\t\tPlugin.probe(target, cache, from);\n\n/** Only a fetched target has a store entry; a local one is loaded where it lies. */\nexport const fetchable = (target: Plugin.Target | undefined): Plugin.Fetchable | undefined =>\n\ttarget === undefined || target.kind === \"local\" ? undefined : target;\n"],"mappings":";;;;AA4BA,MAAM,YAAY,UAAwC,OAAO,UAAU,WAAW,QAAQ,KAAA;AAE9F,MAAa,OAAO,OAAO,GAAG,oBAAoB,CAAC,CAAC,WAAW,QAAgB;CAE9E,MAAM,OAAM,OADY,KAAK,KAAA,CACR,QAAQ,GAAG;CAChC,MAAM,QAAQ,OAAOA,QAAe,OAAO,OAAO,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,MAAM,OAAO,KAAK,MAAM,CAAC;CACjG,MAAM,OAAO,OAAOC,YAAqB,KAAK,MAAM,IAAI;CACxD,MAAM,SAAS,OAAOC,KAAc;EACnC,MAAM,MAAM;EACZ,GAAI,SAAS,KAAA,IAAY,CAAC,IAAI,EAAE,SAAS,KAAK;EAC9C,GAAI,OAAO,OAAO,OAAO,aAAa,IAAI,CAAC,IAAI,EAAE,eAAe,OAAO,cAAc,MAAM;CAC5F,CAAC;CAED,MAAM,uBAAO,IAAI,IAAY;CAC7B,MAAM,UAAmB,CAAC;CAC1B,KAAK,MAAM,OAAO,OAAO,UAAU;EAClC,MAAM,YAAY,SAAS,IAAI,KAAK;EAEpC,IAAI,cAAc,KAAA,KAAa,KAAK,IAAI,SAAS,GAAG;EACpD,KAAK,IAAI,SAAS;EAGlB,MAAM,SAAS,OAAOC,MAAa,WAAW,GAAG,CAAC,CAAC,KAAK,OAAO,MAAM;EACrE,QAAQ,KAAK;GACZ,SAAS,SAAS,IAAI,OAAO,KAAK;GAClC;GACA,MAAM,IAAI;GACV,MAAMC,OAAc,IAAI,MAAM,GAAG;GACjC,QAAQ,OAAO,eAAe,MAAM;EACrC,CAAC;CACF;CACA,OAAO;EAAW;EAAiC,OAAO,MAAM;CAAM;AACvE,CAAC;;;;;;;;AASD,MAAa,SACX,OAAe,UACf,WACAC,QAAa,QAAQ,OAAO,IAAI;;AAGlC,MAAa,aAAa,WACzB,WAAW,KAAA,KAAa,OAAO,SAAS,UAAU,KAAA,IAAY"}
1
+ {"version":3,"file":"entries-B4tUkrxs.mjs","names":["Global.resolve","Settings.projectRoot","Settings.load","Plugin.parse","Plugin.anchor","Plugin.probe"],"sources":["../../src/cli/cmd/handlers/plugin/entries.ts"],"sourcesContent":["import { Global, Plugin, Settings } from \"@codeworksh/harness/effect\";\nimport { Effect, Option, Path } from \"effect\";\nimport type { Shared } from \"./settings.ts\";\n\n/**\n * Every plugin entry the settings files name, across every layer, in the order they accumulate.\n *\n * This is what `install`, `list`, `check` and `update` all operate on: unlike `add` and `remove`,\n * none of them writes an entry. They read what is already there and act on the store -- each one\n * under the `.npmrc` context of the file that declared it, which is what keys the artifact.\n */\nexport interface Entry {\n\t/** The reference as the settings file spells it: the string a person will search for. */\n\treadonly written: string;\n\t/** The same reference, anchored to the file that declared it. This is what resolves. */\n\treadonly reference: string;\n\t/** Which settings file declared it. */\n\treadonly file: string;\n\t/**\n\t * The `.npmrc` anchor for the entry's store identity: the project that declared it, so the\n\t * registry context is the same wherever this command happens to run.\n\t */\n\treadonly from: string;\n\t/** Absent for an unparseable entry and for a local path. */\n\treadonly target: Plugin.Target | undefined;\n}\n\n/** Only a string entry loads a module; `{ package }` is configuration for one already selected. */\nconst moduleOf = (entry: unknown): string | undefined => (typeof entry === \"string\" ? entry : undefined);\n\nexport const read = Effect.fn(\"CLI.plugin.entries\")(function* (shared: Shared) {\n\tconst nodePath = yield* Path.Path;\n\tconst cwd = nodePath.resolve(\".\");\n\tconst paths = yield* Global.resolve(Option.isNone(shared.home) ? {} : { home: shared.home.value });\n\tconst root = yield* Settings.projectRoot(cwd, paths.home);\n\tconst config = yield* Settings.load({\n\t\thome: paths.home,\n\t\t...(root === undefined ? {} : { hostDir: root }),\n\t\t...(Option.isNone(shared.userConfigDir) ? {} : { userConfigDir: shared.userConfigDir.value }),\n\t});\n\n\tconst seen = new Set<string>();\n\tconst entries: Entry[] = [];\n\tfor (const one of config.declared) {\n\t\tconst reference = moduleOf(one.entry);\n\t\t// Loading is keyed by the module, so the same one named twice is one entry here too.\n\t\tif (reference === undefined || seen.has(reference)) continue;\n\t\tseen.add(reference);\n\t\t// Already anchored to the file that declared it, so `cwd` here only affects a reference\n\t\t// no settings file produced.\n\t\tconst target = yield* Plugin.parse(reference, cwd).pipe(Effect.option);\n\t\tentries.push({\n\t\t\twritten: moduleOf(one.written) ?? reference,\n\t\t\treference,\n\t\t\tfile: one.file,\n\t\t\tfrom: Plugin.anchor(one.file, cwd),\n\t\t\ttarget: Option.getOrUndefined(target),\n\t\t});\n\t}\n\treturn { entries: entries as ReadonlyArray<Entry>, cache: paths.cache };\n});\n\n/**\n * The network half, handed to the store so the store itself never opens a socket.\n *\n * `probe` bypasses pacote's own metadata cache, because a staleness check that reads a cache is\n * not a staleness check. `from` is the host directory: a probe that read a different `.npmrc`\n * chain than the install would answer about a registry nothing is ever fetched from.\n */\nexport const probe =\n\t(cache: string, from: string): Plugin.Probe =>\n\t(target) =>\n\t\tPlugin.probe(target, cache, from);\n\n/** Only a fetched target has a store entry; a local one is loaded where it lies. */\nexport const fetchable = (target: Plugin.Target | undefined): Plugin.Fetchable | undefined =>\n\ttarget === undefined || target.kind === \"local\" ? undefined : target;\n"],"mappings":";;;;AA4BA,MAAM,YAAY,UAAwC,OAAO,UAAU,WAAW,QAAQ,KAAA;AAE9F,MAAa,OAAO,OAAO,GAAG,oBAAoB,CAAC,CAAC,WAAW,QAAgB;CAE9E,MAAM,OAAM,OADY,KAAK,KAAA,CACR,QAAQ,GAAG;CAChC,MAAM,QAAQ,OAAOA,QAAe,OAAO,OAAO,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,MAAM,OAAO,KAAK,MAAM,CAAC;CACjG,MAAM,OAAO,OAAOC,YAAqB,KAAK,MAAM,IAAI;CACxD,MAAM,SAAS,OAAOC,KAAc;EACnC,MAAM,MAAM;EACZ,GAAI,SAAS,KAAA,IAAY,CAAC,IAAI,EAAE,SAAS,KAAK;EAC9C,GAAI,OAAO,OAAO,OAAO,aAAa,IAAI,CAAC,IAAI,EAAE,eAAe,OAAO,cAAc,MAAM;CAC5F,CAAC;CAED,MAAM,uBAAO,IAAI,IAAY;CAC7B,MAAM,UAAmB,CAAC;CAC1B,KAAK,MAAM,OAAO,OAAO,UAAU;EAClC,MAAM,YAAY,SAAS,IAAI,KAAK;EAEpC,IAAI,cAAc,KAAA,KAAa,KAAK,IAAI,SAAS,GAAG;EACpD,KAAK,IAAI,SAAS;EAGlB,MAAM,SAAS,OAAOC,MAAa,WAAW,GAAG,CAAC,CAAC,KAAK,OAAO,MAAM;EACrE,QAAQ,KAAK;GACZ,SAAS,SAAS,IAAI,OAAO,KAAK;GAClC;GACA,MAAM,IAAI;GACV,MAAMC,OAAc,IAAI,MAAM,GAAG;GACjC,QAAQ,OAAO,eAAe,MAAM;EACrC,CAAC;CACF;CACA,OAAO;EAAW;EAAiC,OAAO,MAAM;CAAM;AACvE,CAAC;;;;;;;;AASD,MAAa,SACX,OAAe,UACf,WACAC,QAAa,QAAQ,OAAO,IAAI;;AAGlC,MAAa,aAAa,WACzB,WAAW,KAAA,KAAa,OAAO,SAAS,UAAU,KAAA,IAAY"}