@lambdacurry/arbor 0.4.28 → 0.4.29
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/arbor.js +9 -1
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -17185,6 +17185,10 @@ function parseArgs(argv) {
|
|
|
17185
17185
|
}
|
|
17186
17186
|
return { positionals, flags };
|
|
17187
17187
|
}
|
|
17188
|
+
function clamp(text3, max = 140) {
|
|
17189
|
+
const t = text3.trim().replace(/\s+/g, " ");
|
|
17190
|
+
return t.length > max ? `${t.slice(0, max - 1)}…` : t;
|
|
17191
|
+
}
|
|
17188
17192
|
var PKG = (() => {
|
|
17189
17193
|
try {
|
|
17190
17194
|
const pkg = JSON.parse(readFileSync3(fileURLToPath(new URL("../package.json", import.meta.url)), "utf8"));
|
|
@@ -17206,9 +17210,13 @@ async function renderMe(ctx, action) {
|
|
|
17206
17210
|
const setLines = (charter ? ` charter: ${charter}
|
|
17207
17211
|
` : "") + (caps.length > 0 ? ` capabilities: ${caps.join(", ")}
|
|
17208
17212
|
` : "");
|
|
17213
|
+
const setCharters = me.spaceCharters ?? [];
|
|
17214
|
+
const charterLines = setCharters.length > 0 ? ` space charters:
|
|
17215
|
+
` + setCharters.map((s) => ` • ${s.spaceTitle} — ${clamp(s.charter)}
|
|
17216
|
+
`).join("") : "";
|
|
17209
17217
|
const human = `${me.profile.displayName} · ${me.profile.kind} · org-role ${me.profile.orgRole}
|
|
17210
17218
|
` + ` org ${me.profile.orgId} · resolved via ${me.client.kind}
|
|
17211
|
-
` + setLines + (gaps.length > 0 ? ` to be more legible to your team, set: ${gaps.join("; ")} (\`introduce\`)
|
|
17219
|
+
` + setLines + charterLines + (gaps.length > 0 ? ` to be more legible to your team, set: ${gaps.join("; ")} (\`introduce\`)
|
|
17212
17220
|
` : "") + spaceLines;
|
|
17213
17221
|
emitDual(me, human, action, ctx);
|
|
17214
17222
|
}
|
package/package.json
CHANGED