githolon 0.27.0 → 0.27.1

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 (2) hide show
  1. package/dist/cli.mjs +5 -6
  2. package/package.json +3 -3
package/dist/cli.mjs CHANGED
@@ -651,12 +651,11 @@ async function wsRetire(ws, opts) {
651
651
  let v;
652
652
  try {
653
653
  const principal = resolveGovernancePrincipal2(opts);
654
- v = await signAndPostGovernance2(
655
- parent,
656
- "retireWorkspace",
657
- { workspaceId: ws, retiredBy: principal, retiredAt: Date.now() },
658
- opts
659
- );
654
+ const payload = { workspaceId: ws, retiredBy: principal, retiredAt: Date.now() };
655
+ v = await signAndPostGovernance2(parent, "retireOwnWorkspace", payload, opts);
656
+ if (!v.ok && v.status === 422) {
657
+ v = await signAndPostGovernance2(parent, "retireWorkspace", payload, opts);
658
+ }
660
659
  } catch (e) {
661
660
  err2(e.message);
662
661
  return 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githolon",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "type": "module",
5
5
  "description": "githolon — the Nomos developer CLI: Rails-style generators for @githolon/dsl domains + the package compiler. Kernel-independent.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@bjorn3/browser_wasi_shim": "0.4.2",
32
- "@githolon/client": "^0.27.0",
33
- "@githolon/dsl": "^0.27.0",
32
+ "@githolon/client": "^0.27.1",
33
+ "@githolon/dsl": "^0.27.1",
34
34
  "isomorphic-git": "^1.38.4"
35
35
  },
36
36
  "devDependencies": {