@capxul/cli 4.20.0-beta.13 → 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/browser/signer.js.map +1 -1
- package/dist/main.mjs +47 -23
- package/dist/main.mjs.map +1 -1
- package/package.json +4 -4
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.
|
|
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.
|
|
68883
|
-
const sdkVersion = "4.20.0-beta.
|
|
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("-");
|
|
@@ -69971,10 +69973,21 @@ function observeInvocation(input, work) {
|
|
|
69971
69973
|
dropped += 1;
|
|
69972
69974
|
return;
|
|
69973
69975
|
}
|
|
69974
|
-
const props =
|
|
69975
|
-
|
|
69976
|
-
|
|
69977
|
-
|
|
69976
|
+
const props = {};
|
|
69977
|
+
const shape = catalog.fields.props;
|
|
69978
|
+
const members = "fields" in shape ? [shape] : shape.members;
|
|
69979
|
+
for (const member of members) for (const key of Object.keys(member.fields)) {
|
|
69980
|
+
if ([
|
|
69981
|
+
"actor_id",
|
|
69982
|
+
"actor_kind",
|
|
69983
|
+
"auth_user_id",
|
|
69984
|
+
"anonymous_id",
|
|
69985
|
+
"cli_identity_kind",
|
|
69986
|
+
"distinct_id",
|
|
69987
|
+
"$groups"
|
|
69988
|
+
].includes(key)) continue;
|
|
69989
|
+
const value = own(properties, key);
|
|
69990
|
+
if (value !== void 0) props[key] = value;
|
|
69978
69991
|
}
|
|
69979
69992
|
const decoded = Schema.decodeUnknownOption(catalog)({
|
|
69980
69993
|
name: event,
|
|
@@ -72103,6 +72116,19 @@ const saveOrganizationSelection = (config, authUserId, organizationId, stillAuth
|
|
|
72103
72116
|
}), stillAuthenticated))) return yield* Effect.fail(Errors.notAuthenticated("The local selection or session changed. Retry the command."));
|
|
72104
72117
|
});
|
|
72105
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
|
|
72106
72132
|
//#region src/commands/org/internal/presentation.ts
|
|
72107
72133
|
const readiness = (value) => value === null ? "unknown" : String(value);
|
|
72108
72134
|
const organizationLabel = (organization) => `${terminalText(organization.name)} (@${terminalText(organization.handle)}, ${terminalText(organization.id)})`;
|
|
@@ -72152,8 +72178,15 @@ const organizationMeLines = (member) => [
|
|
|
72152
72178
|
"Capabilities",
|
|
72153
72179
|
` Can manage people: ${member.capabilities.canManagePeople}`,
|
|
72154
72180
|
` Can spend: ${member.capabilities.canSpend}`,
|
|
72155
|
-
"
|
|
72156
|
-
...member.
|
|
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) => [
|
|
72157
72190
|
` Name: ${terminalText(budget.label)}`,
|
|
72158
72191
|
` Budget ID: ${terminalText(budget.id)}`,
|
|
72159
72192
|
` Per-payment cap: ${budget.limit === null ? "no cap" : terminalText(budget.limit.value)} ${terminalText(budget.asset.symbol)}`,
|
|
@@ -74948,17 +74981,6 @@ const samePolicy = (left, right) => {
|
|
|
74948
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(",");
|
|
74949
74982
|
};
|
|
74950
74983
|
const allowanceReset = (before, after) => before?.type === "budget" && before.limit !== null || before !== null && after.type === "budget" && after.limit !== null;
|
|
74951
|
-
const policyLines = (label, policy) => {
|
|
74952
|
-
if (policy === null) return [`${label}: none`];
|
|
74953
|
-
if (policy.type === "managePeople") return [`${label}: Manage people`];
|
|
74954
|
-
return [
|
|
74955
|
-
`${label}: Budget`,
|
|
74956
|
-
` Asset ID: ${terminalText(policy.asset)}`,
|
|
74957
|
-
` Per-payment cap: ${policy.limit === null ? "no cap" : terminalText(policy.limit)}`,
|
|
74958
|
-
` Recipients: ${policy.scope.recipients.type === "anyone" ? "Anyone" : policy.scope.recipients.accounts.map(terminalText).join(", ")}`,
|
|
74959
|
-
` Actions: ${policy.scope.actions.map((action) => action === "pay" ? "Payments (single and batch)" : "Commitments").join(", ")}`
|
|
74960
|
-
];
|
|
74961
|
-
};
|
|
74962
74984
|
//#endregion
|
|
74963
74985
|
//#region src/commands/org/subcommands/permission/internal/presentation.ts
|
|
74964
74986
|
const cap = (permission) => {
|
|
@@ -79957,7 +79979,9 @@ const detailLines = (activity, id) => [
|
|
|
79957
79979
|
`${activity.kind === "movement" ? "Movement" : "Payment"} ${terminalText(id)}`,
|
|
79958
79980
|
...activity.kind === "payment" ? paymentLines(activity.payment) : [`Document state: ${activity.documentState}`, `Amount: ${terminalText(activity.evidence.rawAmount)} raw units`],
|
|
79959
79981
|
...activity.evidence === null ? [] : [`Transaction: ${terminalText(activity.evidence.transactionHash)} (chain ${activity.evidence.chainId}, block ${activity.evidence.blockNumber})`],
|
|
79960
|
-
...(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)}`]
|
|
79961
79985
|
];
|
|
79962
79986
|
const annotationPreview = (annotation, actor) => [
|
|
79963
79987
|
`Activity: ${annotation.reference.kind} ${terminalText(annotation.reference.id)}`,
|