@lambdacurry/arbor 0.4.19 → 0.4.21
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 +17 -9
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __returnValue = (v) => v;
|
|
4
|
+
function __exportSetter(name, newValue) {
|
|
5
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
6
|
+
}
|
|
3
7
|
var __export = (target, all) => {
|
|
4
8
|
for (var name in all)
|
|
5
9
|
__defProp(target, name, {
|
|
6
10
|
get: all[name],
|
|
7
11
|
enumerable: true,
|
|
8
12
|
configurable: true,
|
|
9
|
-
set: (
|
|
13
|
+
set: __exportSetter.bind(all, name)
|
|
10
14
|
});
|
|
11
15
|
};
|
|
12
16
|
|
|
@@ -13174,7 +13178,7 @@ function finalize(ctx, schema) {
|
|
|
13174
13178
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
13175
13179
|
} else if (ctx.target === "draft-04") {
|
|
13176
13180
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
13177
|
-
} else if (ctx.target === "openapi-3.0") {}
|
|
13181
|
+
} else if (ctx.target === "openapi-3.0") {}
|
|
13178
13182
|
if (ctx.external?.uri) {
|
|
13179
13183
|
const id = ctx.external.registry.get(schema)?.id;
|
|
13180
13184
|
if (!id)
|
|
@@ -13418,7 +13422,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
|
|
|
13418
13422
|
if (val === undefined) {
|
|
13419
13423
|
if (ctx.unrepresentable === "throw") {
|
|
13420
13424
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
13421
|
-
}
|
|
13425
|
+
}
|
|
13422
13426
|
} else if (typeof val === "bigint") {
|
|
13423
13427
|
if (ctx.unrepresentable === "throw") {
|
|
13424
13428
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -16321,7 +16325,7 @@ var ACTIONS = [
|
|
|
16321
16325
|
title: "Read a thread",
|
|
16322
16326
|
description: "Read the full state of the thread you're working in — objective, every contribution + stamp, and its OPEN REQUESTS. Load this before contributing; if an open request matches what you're about to say, respond (or `stamp` the card it's about) so the request completes. On a LONG thread, page the contributions with contribLimit/contribCursor (follow contributionPage.nextCursor) to bound how much you load at once.",
|
|
16323
16327
|
inputSchema: {
|
|
16324
|
-
|
|
16328
|
+
threadId: exports_external.string().describe("the thread id, e.g. thr_…"),
|
|
16325
16329
|
contribLimit: exports_external.number().int().positive().optional().describe("max contributions to return (AD-151 keyset paging) — omit to load the whole thread; set on a long thread to bound context"),
|
|
16326
16330
|
contribCursor: exports_external.string().optional().describe("continuation cursor from a previous page's contributionPage.nextCursor")
|
|
16327
16331
|
},
|
|
@@ -16522,7 +16526,7 @@ var ACTIONS = [
|
|
|
16522
16526
|
title: "Read a space",
|
|
16523
16527
|
description: "Read one space by id — its details, the topics under it, and the full MEMBER roster: who's here, their role, their capabilities, and each member's space charter (how they operate in THIS space, AD-152) plus their identity charter. Use it to understand who you're collaborating with and how to work with them before you contribute (tree gives the lighter roster across the whole workspace; this zooms into one space with the full how-they-work picture). Space-access gated, like every read.",
|
|
16524
16528
|
inputSchema: {
|
|
16525
|
-
|
|
16529
|
+
spaceId: exports_external.string().min(1).describe("the space id")
|
|
16526
16530
|
},
|
|
16527
16531
|
surfaces: ["mcp", "cli"],
|
|
16528
16532
|
run: forward("space.get")
|
|
@@ -16532,7 +16536,7 @@ var ACTIONS = [
|
|
|
16532
16536
|
title: "Read a topic",
|
|
16533
16537
|
description: "Read one topic by id — its details + the threads under it. Use it to zoom into a single topic (tree gives the whole workspace). Space-access gated, like every read.",
|
|
16534
16538
|
inputSchema: {
|
|
16535
|
-
|
|
16539
|
+
topicId: exports_external.string().min(1).describe("the topic id")
|
|
16536
16540
|
},
|
|
16537
16541
|
surfaces: ["mcp", "cli"],
|
|
16538
16542
|
run: forward("topic.get")
|
|
@@ -17124,8 +17128,11 @@ async function renderMe(ctx, action) {
|
|
|
17124
17128
|
` : "");
|
|
17125
17129
|
emitDual(me, human, action, ctx);
|
|
17126
17130
|
}
|
|
17131
|
+
var CLI_NOTE = `On this CLI, before your first write: flag names are kebab-derived from the inputs (\`--thread-id\`, \`--request-id\`, \`--contribution-id\` — not \`--thread\`/\`--request\`), so check \`arbor help\` or \`arbor <command> --help\` for a command's exact flags instead of guessing. Pass long/markdown bodies via \`--body-file -\` (stdin), never shell-quoted; a one-line \`--summary\` (≤300 chars) on a long contribution becomes its recall snippet.`;
|
|
17127
17132
|
function renderOrient(ctx) {
|
|
17128
|
-
emitDual({ orientation: ORIENTATION }, `${ORIENTATION}
|
|
17133
|
+
emitDual({ orientation: ORIENTATION, cliNote: CLI_NOTE }, `${ORIENTATION}
|
|
17134
|
+
|
|
17135
|
+
${CLI_NOTE}
|
|
17129
17136
|
`, "orient", ctx);
|
|
17130
17137
|
}
|
|
17131
17138
|
function renderVersion(ctx) {
|
|
@@ -17138,8 +17145,7 @@ never asserts it. Run \`arbor whoami\` to confirm, \`arbor tree\` to map the wor
|
|
|
17138
17145
|
|
|
17139
17146
|
${ORIENTATION}
|
|
17140
17147
|
|
|
17141
|
-
|
|
17142
|
-
\`--summary\` (≤300 chars) to a long contribution — it's the recall snippet AND sharpens recall.
|
|
17148
|
+
${CLI_NOTE}
|
|
17143
17149
|
|
|
17144
17150
|
Usage: arbor <command> [--flags]
|
|
17145
17151
|
|
|
@@ -17248,6 +17254,8 @@ async function main() {
|
|
|
17248
17254
|
advise(`
|
|
17249
17255
|
${ORIENTATION}
|
|
17250
17256
|
|
|
17257
|
+
${CLI_NOTE}
|
|
17258
|
+
|
|
17251
17259
|
Run \`arbor help\` for the full command surface.
|
|
17252
17260
|
`, ctx);
|
|
17253
17261
|
return;
|
package/package.json
CHANGED