githolon 0.100.4 → 0.100.5

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 +9 -6
  2. package/package.json +3 -3
package/dist/cli.mjs CHANGED
@@ -3570,12 +3570,15 @@ async function signAndPostChildLifecycle(parent, child, creator, action, opts) {
3570
3570
  return signAndPostPreparedOffer(
3571
3571
  parent,
3572
3572
  void 0,
3573
- (actor) => action === "retire" ? {
3574
- directiveId: "retireChild",
3575
- payload: { child, principal: creator, retiredBy: lineageIdentity(actor), retiredAt: Date.now() }
3576
- } : {
3577
- directiveId: "reclaimChild",
3578
- payload: { child, reclaimedBy: lineageIdentity(actor), reclaimedAt: Date.now() }
3573
+ (actor) => {
3574
+ const creatorActing = creator !== "" && sameIdentity(creator, actor);
3575
+ return action === "retire" ? {
3576
+ directiveId: creatorActing ? "retireChild" : "retireChildAsAdmin",
3577
+ payload: { child, principal: creator, retiredBy: lineageIdentity(actor), retiredAt: Date.now() }
3578
+ } : {
3579
+ directiveId: creatorActing ? "reclaimChild" : "reclaimChildAsAdmin",
3580
+ payload: { child, reclaimedBy: lineageIdentity(actor), reclaimedAt: Date.now() }
3581
+ };
3579
3582
  },
3580
3583
  opts,
3581
3584
  "self-if-unenrolled",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githolon",
3
- "version": "0.100.4",
3
+ "version": "0.100.5",
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.100.4",
33
- "@githolon/dsl": "^0.100.4",
32
+ "@githolon/client": "^0.100.5",
33
+ "@githolon/dsl": "^0.100.5",
34
34
  "isomorphic-git": "^1.38.4"
35
35
  },
36
36
  "devDependencies": {