@capxul/cli 4.20.0-beta.14 → 4.20.0-beta.16

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/main.mjs CHANGED
@@ -16127,7 +16127,7 @@ function signerFailure(source, operation, cause) {
16127
16127
  }
16128
16128
  //#endregion
16129
16129
  //#region ../../packages/sdk/package.json
16130
- var version$3 = "4.20.0-beta.14";
16130
+ var version$3 = "4.20.0-beta.16";
16131
16131
  //#endregion
16132
16132
  //#region ../../packages/sdk/src/telemetry/exception-projection.ts
16133
16133
  /** Fixed fallback for failures that have no safe message. */
@@ -31846,7 +31846,8 @@ function executionDependencies$1(deps) {
31846
31846
  convexCall: deps.convexCall,
31847
31847
  functions: moneyExecutionContract,
31848
31848
  runPromise: deps.runPromise,
31849
- signer: deps.signer
31849
+ signer: deps.signer,
31850
+ ...deps.telemetry === void 0 ? {} : { telemetry: deps.telemetry }
31850
31851
  };
31851
31852
  }
31852
31853
  function validateRunItems(input) {
@@ -66674,7 +66675,8 @@ function makeOrgMethods(deps) {
66674
66675
  ...deps.requestKeyScope === void 0 ? {} : { requestKeyScope: deps.requestKeyScope },
66675
66676
  ...deps.actor === void 0 ? {} : { actor: deps.actor },
66676
66677
  ...deps.chainId === void 0 ? {} : { chainId: Number(deps.chainId) },
66677
- ...deps.signer === void 0 ? {} : { signer: deps.signer }
66678
+ ...deps.signer === void 0 ? {} : { signer: deps.signer },
66679
+ ...deps.telemetry === void 0 ? {} : { telemetry: deps.telemetry }
66678
66680
  }, String(orgId))
66679
66681
  };
66680
66682
  }
@@ -68879,8 +68881,8 @@ function captureException(telemetry, error, context) {
68879
68881
  }
68880
68882
  //#endregion
68881
68883
  //#region src/runtime/version.ts
68882
- const cliVersion = "4.20.0-beta.14";
68883
- const sdkVersion = "4.20.0-beta.14";
68884
+ const cliVersion = "4.20.0-beta.16";
68885
+ const sdkVersion = "4.20.0-beta.16";
68884
68886
  const ReleaseVersion = Schema.String.check(Schema.isMaxLength(256), Schema.isPattern(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/u)).pipe(Schema.brand("CliReleaseVersion"));
68885
68887
  const parts = (version) => {
68886
68888
  const [core = "", ...prerelease] = version.split("+")[0].split("-");
@@ -72114,6 +72116,19 @@ const saveOrganizationSelection = (config, authUserId, organizationId, stillAuth
72114
72116
  }), stillAuthenticated))) return yield* Effect.fail(Errors.notAuthenticated("The local selection or session changed. Retry the command."));
72115
72117
  });
72116
72118
  //#endregion
72119
+ //#region src/commands/org/internal/policy-presentation.ts
72120
+ const policyLines = (label, policy) => {
72121
+ if (policy === null) return [`${label}: none`];
72122
+ if (policy.type === "managePeople") return [`${label}: Manage people`];
72123
+ return [
72124
+ `${label}: Budget`,
72125
+ ` Asset ID: ${terminalText(policy.asset)}`,
72126
+ ` Per-payment cap: ${policy.limit === null ? "no cap" : terminalText(policy.limit)}`,
72127
+ ` Recipients: ${policy.scope.recipients.type === "anyone" ? "Anyone" : policy.scope.recipients.accounts.map(terminalText).join(", ")}`,
72128
+ ` Actions: ${policy.scope.actions.map((action) => action === "pay" ? "Payments (single and batch)" : "Commitments").join(", ")}`
72129
+ ];
72130
+ };
72131
+ //#endregion
72117
72132
  //#region src/commands/org/internal/presentation.ts
72118
72133
  const readiness = (value) => value === null ? "unknown" : String(value);
72119
72134
  const organizationLabel = (organization) => `${terminalText(organization.name)} (@${terminalText(organization.handle)}, ${terminalText(organization.id)})`;
@@ -72163,8 +72178,15 @@ const organizationMeLines = (member) => [
72163
72178
  "Capabilities",
72164
72179
  ` Can manage people: ${member.capabilities.canManagePeople}`,
72165
72180
  ` Can spend: ${member.capabilities.canSpend}`,
72166
- "Budgets (per-payment caps)",
72167
- ...member.budgets.length === 0 ? ["No Budgets found."] : member.budgets.flatMap((budget) => [
72181
+ "Budget and Permission assignments",
72182
+ ...member.member.assignments.length === 0 ? ["No Budget or Permission assignments found."] : member.member.assignments.flatMap((assignment) => [
72183
+ ` Assignment ID: ${terminalText(assignment.id)}`,
72184
+ assignment.authority.type === "budget" ? ` Budget ID: ${terminalText(assignment.authority.budgetId)}` : ` Permission ID: ${terminalText(assignment.authority.permissionId)}`,
72185
+ ` State: ${terminalText(assignment.state)}`,
72186
+ ...policyLines(" Policy", assignment.policy)
72187
+ ]),
72188
+ "Named Budgets (per-payment caps)",
72189
+ ...member.budgets.length === 0 ? ["No named Budgets found."] : member.budgets.flatMap((budget) => [
72168
72190
  ` Name: ${terminalText(budget.label)}`,
72169
72191
  ` Budget ID: ${terminalText(budget.id)}`,
72170
72192
  ` Per-payment cap: ${budget.limit === null ? "no cap" : terminalText(budget.limit.value)} ${terminalText(budget.asset.symbol)}`,
@@ -74959,17 +74981,6 @@ const samePolicy = (left, right) => {
74959
74981
  return left.asset === right.asset && cap$1(left.limit) === cap$1(right.limit) && recipients(left) === recipients(right) && [...left.scope.actions].sort().join(",") === [...right.scope.actions].sort().join(",");
74960
74982
  };
74961
74983
  const allowanceReset = (before, after) => before?.type === "budget" && before.limit !== null || before !== null && after.type === "budget" && after.limit !== null;
74962
- const policyLines = (label, policy) => {
74963
- if (policy === null) return [`${label}: none`];
74964
- if (policy.type === "managePeople") return [`${label}: Manage people`];
74965
- return [
74966
- `${label}: Budget`,
74967
- ` Asset ID: ${terminalText(policy.asset)}`,
74968
- ` Per-payment cap: ${policy.limit === null ? "no cap" : terminalText(policy.limit)}`,
74969
- ` Recipients: ${policy.scope.recipients.type === "anyone" ? "Anyone" : policy.scope.recipients.accounts.map(terminalText).join(", ")}`,
74970
- ` Actions: ${policy.scope.actions.map((action) => action === "pay" ? "Payments (single and batch)" : "Commitments").join(", ")}`
74971
- ];
74972
- };
74973
74984
  //#endregion
74974
74985
  //#region src/commands/org/subcommands/permission/internal/presentation.ts
74975
74986
  const cap = (permission) => {
@@ -79968,7 +79979,9 @@ const detailLines = (activity, id) => [
79968
79979
  `${activity.kind === "movement" ? "Movement" : "Payment"} ${terminalText(id)}`,
79969
79980
  ...activity.kind === "payment" ? paymentLines(activity.payment) : [`Document state: ${activity.documentState}`, `Amount: ${terminalText(activity.evidence.rawAmount)} raw units`],
79970
79981
  ...activity.evidence === null ? [] : [`Transaction: ${terminalText(activity.evidence.transactionHash)} (chain ${activity.evidence.chainId}, block ${activity.evidence.blockNumber})`],
79971
- ...(activity.kind === "payment" ? activity.payment.documents : activity.documents).map((document) => `Document ${document.role} ${document.kind}: ${terminalText(document.documentHash)} ${terminalText(document.contentHash)}`)
79982
+ ...(activity.kind === "payment" ? activity.payment.documents : activity.documents).map((document) => `Document ${document.role} ${document.kind}: ${terminalText(document.documentHash)} ${terminalText(document.contentHash)}`),
79983
+ ...activity.annotation?.accountingCategory === void 0 ? [] : [`Category: ${terminalText(activity.annotation.accountingCategory)}`],
79984
+ ...activity.annotation?.memo === void 0 ? [] : [`Memo: ${terminalText(activity.annotation.memo)}`]
79972
79985
  ];
79973
79986
  const annotationPreview = (annotation, actor) => [
79974
79987
  `Activity: ${annotation.reference.kind} ${terminalText(annotation.reference.id)}`,