@llamaventures/cli 1.6.0 → 1.6.1
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/AGENT_BRIEFING.md +4 -1
- package/README.md +9 -1
- package/bin/llama-mcp.mjs +38 -0
- package/bin/llama.mjs +21 -0
- package/package.json +1 -1
package/AGENT_BRIEFING.md
CHANGED
|
@@ -205,6 +205,9 @@ llama wiki save <slug> --title "..." --file path.html --sources "..." [--content
|
|
|
205
205
|
# --content-type html (or markdown) overrides the inference.
|
|
206
206
|
# Refuses to switch content_type on an existing slug; delete + re-create
|
|
207
207
|
# if you really mean to change format.
|
|
208
|
+
# Delete / restore (soft, reversible — CONSTITUTION §8):
|
|
209
|
+
llama wiki delete <slug> [--lang en|zh]
|
|
210
|
+
llama wiki restore <slug> [--lang en|zh]
|
|
208
211
|
|
|
209
212
|
# Timeline + posts
|
|
210
213
|
llama timeline <dealId>
|
|
@@ -231,7 +234,7 @@ Tools available:
|
|
|
231
234
|
- `auth_status` — verify creds + identity (call first if anything 401s)
|
|
232
235
|
- `deal_search` / `deal_show` / `deal_create` / `deal_update`
|
|
233
236
|
- `brief_blocks` / `brief_add_text` / `brief_add_link` / `brief_add_callout`
|
|
234
|
-
- `wiki_search` / `wiki_save` (accepts `content_type: 'markdown' | 'html'` — HTML entries render as full-viewport sandboxed iframe at `/wiki/<slug>`)
|
|
237
|
+
- `wiki_search` / `wiki_save` (accepts `content_type: 'markdown' | 'html'` — HTML entries render as full-viewport sandboxed iframe at `/wiki/<slug>`) / `wiki_delete` / `wiki_restore` (soft-delete, reversible)
|
|
235
238
|
- `timeline` / `post`
|
|
236
239
|
- `mentions_list`
|
|
237
240
|
- `pitch_start` / `pitch_send_message` / `pitch_upload_file` / `pitch_status` / `pitch_finalize` — public intake (no Llama token needed; for founders / EAs / external agents)
|
package/README.md
CHANGED
|
@@ -209,7 +209,14 @@ llama post <dealId> "message body" [--link url]
|
|
|
209
209
|
|
|
210
210
|
# Wiki
|
|
211
211
|
llama wiki search "<query>"
|
|
212
|
-
llama wiki
|
|
212
|
+
llama wiki read <slug> [--lang en|zh]
|
|
213
|
+
# Markdown entry:
|
|
214
|
+
llama wiki save <slug> --title "..." --content "..." --sources "url1;url2"
|
|
215
|
+
# HTML entry — standalone page at /wiki/<slug> (full-viewport sandboxed iframe):
|
|
216
|
+
llama wiki save <slug> --title "..." --file page.html --sources "..." [--content-type html]
|
|
217
|
+
# Delete / restore (soft, reversible):
|
|
218
|
+
llama wiki delete <slug> [--lang en|zh]
|
|
219
|
+
llama wiki restore <slug> [--lang en|zh]
|
|
213
220
|
|
|
214
221
|
# Mentions inbox
|
|
215
222
|
llama mentions
|
|
@@ -255,6 +262,7 @@ brief_add_link brief_add_callout
|
|
|
255
262
|
timeline post
|
|
256
263
|
|
|
257
264
|
wiki_search wiki_save
|
|
265
|
+
wiki_delete wiki_restore
|
|
258
266
|
|
|
259
267
|
mentions_list
|
|
260
268
|
|
package/bin/llama-mcp.mjs
CHANGED
|
@@ -380,6 +380,44 @@ server.registerTool(
|
|
|
380
380
|
})
|
|
381
381
|
);
|
|
382
382
|
|
|
383
|
+
server.registerTool(
|
|
384
|
+
"wiki_delete",
|
|
385
|
+
{
|
|
386
|
+
description:
|
|
387
|
+
"Soft-delete a wiki page (reversible). The entry stops appearing in " +
|
|
388
|
+
"reads / search / backlinks; for HTML entries the standalone page + " +
|
|
389
|
+
"assets stop resolving too. Restore with wiki_restore. Use when the " +
|
|
390
|
+
"user asks to remove / delete / retire a wiki entry.",
|
|
391
|
+
inputSchema: {
|
|
392
|
+
slug: z.string().describe("kebab-case slug"),
|
|
393
|
+
lang: z.enum(["en", "zh"]).optional().describe("default: en"),
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
async ({ slug, lang }) =>
|
|
397
|
+
callApi(
|
|
398
|
+
"DELETE",
|
|
399
|
+
`/api/wiki/${encodeURIComponent(slug)}?lang=${lang === "zh" ? "zh" : "en"}`
|
|
400
|
+
)
|
|
401
|
+
);
|
|
402
|
+
|
|
403
|
+
server.registerTool(
|
|
404
|
+
"wiki_restore",
|
|
405
|
+
{
|
|
406
|
+
description:
|
|
407
|
+
"Restore a soft-deleted wiki page (undo wiki_delete). Brings back the " +
|
|
408
|
+
"entry + (for HTML entries) its standalone page and assets.",
|
|
409
|
+
inputSchema: {
|
|
410
|
+
slug: z.string().describe("kebab-case slug"),
|
|
411
|
+
lang: z.enum(["en", "zh"]).optional().describe("default: en"),
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
async ({ slug, lang }) =>
|
|
415
|
+
callApi(
|
|
416
|
+
"POST",
|
|
417
|
+
`/api/wiki/${encodeURIComponent(slug)}/restore?lang=${lang === "zh" ? "zh" : "en"}`
|
|
418
|
+
)
|
|
419
|
+
);
|
|
420
|
+
|
|
383
421
|
// ============================================================
|
|
384
422
|
// Timeline + posts
|
|
385
423
|
// ============================================================
|
package/bin/llama.mjs
CHANGED
|
@@ -343,6 +343,9 @@ Wiki:
|
|
|
343
343
|
(.html / .htm extension auto-implies content_type=html)
|
|
344
344
|
➜ Use Wiki when the artifact is NOT tied to one specific deal — sector landscape, market map,
|
|
345
345
|
thesis, framework, methodology. For deal-specific HTML use "llama html upload <dealId>" instead.
|
|
346
|
+
Delete / restore (soft — reversible):
|
|
347
|
+
llama wiki delete <slug> [--lang en|zh]
|
|
348
|
+
llama wiki restore <slug> [--lang en|zh]
|
|
346
349
|
|
|
347
350
|
Memo (long-form HTML investment memo — Memo tab in the UI):
|
|
348
351
|
llama memo show <dealId> [--out <path>] [--json] # default: html → stdout (pipeable to file / browser)
|
|
@@ -1429,6 +1432,24 @@ Routing — is this the right command?
|
|
|
1429
1432
|
return;
|
|
1430
1433
|
}
|
|
1431
1434
|
|
|
1435
|
+
// ----- Wiki: delete (soft) / restore -----
|
|
1436
|
+
// Soft-delete (CONSTITUTION §8 reversible). For HTML entries the
|
|
1437
|
+
// sentinel deal_browse_html body + assets are soft-deleted too;
|
|
1438
|
+
// `llama wiki restore <slug>` brings it all back.
|
|
1439
|
+
if (area === "wiki" && (action === "delete" || action === "restore")) {
|
|
1440
|
+
const { flags, positional } = parseFlags(rest);
|
|
1441
|
+
const slug = positional[0];
|
|
1442
|
+
if (!slug) throw new Error(`Usage: llama wiki ${action} <slug> [--lang en|zh]`);
|
|
1443
|
+
const lang = flags.lang === "zh" ? "zh" : "en";
|
|
1444
|
+
const qs = `?lang=${lang}`;
|
|
1445
|
+
if (action === "delete") {
|
|
1446
|
+
print(await request("DELETE", `/api/wiki/${encodeURIComponent(slug)}${qs}`));
|
|
1447
|
+
} else {
|
|
1448
|
+
print(await request("POST", `/api/wiki/${encodeURIComponent(slug)}/restore${qs}`));
|
|
1449
|
+
}
|
|
1450
|
+
return;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1432
1453
|
// ----- Brief blocks: list / add-* / edit / delete -----
|
|
1433
1454
|
// The block-based deal brief stores an ordered array of typed blocks
|
|
1434
1455
|
// (text / link / embed / callout) per deal. These commands wrap the
|