@llamaventures/cli 2.0.1 → 2.0.2

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 CHANGED
@@ -4,6 +4,28 @@ This package is the authenticated tool boundary for Llama Command. For Deal
4
4
  work, the interface is intentionally small: search, read, create, and write.
5
5
  Do not bypass it with SQL, Google APIs, or retired HTTP routes.
6
6
 
7
+ ## Mandatory live bootstrap
8
+
9
+ Before any Llama workflow, run:
10
+
11
+ ```bash
12
+ llama agent bootstrap
13
+ ```
14
+
15
+ The authenticated response contains the current private Llama Brain with
16
+ exactly two components: the approved Investment Framework V3 Markdown (how to
17
+ think) and the Llama Command operating skill (how to work). Beside Brain it
18
+ contains the separate current Live Deal Page field contract (what every visible
19
+ slot means and how to verify a good write). The public CLI intentionally bundles
20
+ none of this private content; it only fetches it after authentication.
21
+
22
+ CLI is the Agent's tool, not Brain. Do not substitute a private skill wrapper
23
+ for either canonical Brain component.
24
+
25
+ Do not assume the Page is only `description` plus `notes`, and do not infer its
26
+ schema from a previous session. If bootstrap fails, repair authentication or
27
+ upgrade the CLI before writing; do not guess the fields.
28
+
7
29
  ## The Deal model
8
30
 
9
31
  Each company has five business resources:
@@ -17,6 +39,21 @@ Each company has five business resources:
17
39
  Archive, trash, status, founder, opinion, fact, memo section, and artifact kind
18
40
  are data or labels inside these resources. They are not separate tools.
19
41
 
42
+ Information and Page are deliberately different. Information is traceable
43
+ working memory; it never becomes Page automatically. Page is the bounded,
44
+ human-visible current projection, so patch the exact semantic fields described
45
+ by the live contract instead of hiding structured analysis in `notes`.
46
+
47
+ Every Page content field is Agent-writable. A field's `author` or
48
+ `semanticOwner` describes attribution, not permission. Preserve a real human
49
+ judgment with its author; otherwise label the value as an Agent proposal / 待人确认.
50
+
51
+ `page.patch` uses JSON Merge Patch: objects merge, `null` deletes, and arrays
52
+ replace the entire array. Before changing one `whatTheyDo`, `peopleSteps`,
53
+ `foundersJson`, or `industryMaps` item, read the current Page, preserve every
54
+ sibling item, and submit the complete updated array. The live field contract
55
+ includes the exact payload path and write mode for all 61 semantic fields.
56
+
20
57
  ## Exactly four Deal actions
21
58
 
22
59
  ```bash
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.2] - 2026-08-31
4
+
5
+ - Correct the authenticated runtime model: Brain has exactly two private
6
+ components, Investment Framework V3 and the Llama Command operating skill.
7
+ - Load the complete Live Deal Page field prompts beside Brain as a separate
8
+ current CLI/MCP tool contract.
9
+ - Keep all Brain and Page prompt bytes server-owned and out of the public npm
10
+ artifact.
11
+
3
12
  ## [2.0.1] - 2026-08-30
4
13
 
5
14
  - Ship the four-action Occam Deal surface from the audited cleanup commit.
@@ -30,6 +39,14 @@ this project adheres to [Semantic Versioning](https://semver.org).
30
39
 
31
40
  ## [Unreleased]
32
41
 
42
+ ### Changed
43
+ - Make the authenticated live bootstrap mandatory before Deal work and clarify
44
+ that it loads the server-owned two-part private Brain plus the separate Live
45
+ Deal Page field contract. CLI remains only the tool/transport layer.
46
+ - Teach CLI and MCP Agents that Information never updates Page automatically,
47
+ every Page content field is Agent-writable, and field authorship controls
48
+ attribution rather than permission.
49
+
33
50
  ## [1.26.0] - 2026-08-11
34
51
 
35
52
  ### Added
package/README.md CHANGED
@@ -158,6 +158,13 @@ llama skills search "<task>"
158
158
  llama skills show <slug>
159
159
  ```
160
160
 
161
+ Agents should run `llama agent bootstrap` before Deal work. The command loads
162
+ the authenticated, server-owned private Brain: Investment Framework V3 for
163
+ thinking plus the Llama Command operating skill for working. It also loads the
164
+ separate current Live Deal Page field contract for writing. None of that private
165
+ content is shipped in this public package; CLI is only the tool and authenticated
166
+ transport.
167
+
161
168
  The live server briefing is authoritative. The bundled
162
169
  `AGENT_BRIEFING.md` is an offline fallback with the same four-action contract.
163
170
 
package/README.zh-CN.md CHANGED
@@ -151,6 +151,12 @@ llama skills search "<任务>"
151
151
  llama skills show <slug>
152
152
  ```
153
153
 
154
+ Agent 在处理 Deal 前应先运行 `llama agent bootstrap`。该命令会从鉴权后的
155
+ Llama Command 服务端加载两部分私有 Brain:负责投资思考的 Investment
156
+ Framework V3,以及负责如何在 Command 工作的 Llama Command operating skill;
157
+ 同时加载独立的、实时的 Live Deal Page 字段契约。所有私有内容都不会进入公开
158
+ npm 包;CLI 只是 Agent 的工具和鉴权运输层。
159
+
154
160
  服务端实时 briefing 是权威合同;包内 `AGENT_BRIEFING.md` 是相同四动作
155
161
  合同的离线兜底。
156
162
 
package/bin/llama-mcp.mjs CHANGED
@@ -70,7 +70,7 @@ server.registerTool(
70
70
  server.registerTool(
71
71
  "read_deal",
72
72
  {
73
- description: "Read one Deal. Live Page is always returned; expand only the resource needed.",
73
+ description: "Read one Deal. Live Page and its current private field contract are always returned; Information is memory and never updates Page automatically.",
74
74
  inputSchema: {
75
75
  dealId: z.string().min(1),
76
76
  detail: z.enum(["overview", "memory", "files", "conversation", "history", "all"]).optional(),
@@ -99,7 +99,7 @@ server.registerTool(
99
99
  server.registerTool(
100
100
  "write_deal",
101
101
  {
102
- description: "The only Deal mutation tool: input.submit, information.put, page.patch, or artifact.put. Human-visible Page prose uses one value with both en and zh.",
102
+ description: "The only Deal mutation tool: input.submit, information.put, page.patch, or artifact.put. All Page content fields are Agent-writable; author controls attribution, not permission. Use the read/bootstrap field contract and bilingual Page prose. page.patch is JSON Merge Patch: arrays replace whole arrays, so read-modify-write and preserve sibling slots.",
103
103
  inputSchema: {
104
104
  operation: z.enum(["input.submit", "information.put", "page.patch", "artifact.put"]),
105
105
  dealId: z.string().uuid(),
@@ -152,7 +152,7 @@ server.registerTool(
152
152
  server.registerTool(
153
153
  "agent_bootstrap",
154
154
  {
155
- description: "Fetch the authenticated runtime contract and visible Llama OS skills.",
155
+ description: "Mandatory before Llama work: fetch the authenticated two-part private Brain (Investment Framework V3 + Llama Command operating skill), the separate current Live Deal Page field contract, runtime contract, and visible Llama OS skills.",
156
156
  inputSchema: { limit: z.number().int().min(1).max(100).optional() },
157
157
  },
158
158
  async ({ limit } = {}) => {
@@ -361,7 +361,7 @@ server.registerTool(
361
361
  server.registerPrompt(
362
362
  "agent_briefing",
363
363
  {
364
- description: "Fetch the authenticated current agent contract; bundled text is only an offline fallback.",
364
+ description: "Mandatory before Llama work: fetch the authenticated two-part private Brain, the separate current Live Deal Page field contract, and runtime contract; bundled text is only an offline fallback.",
365
365
  },
366
366
  async () => {
367
367
  const headers = await getAuthHeaders();
package/bin/llama.mjs CHANGED
@@ -69,6 +69,16 @@ Exactly four actions:
69
69
  llama deal create --json <file|->
70
70
  llama deal write --json <file|->
71
71
 
72
+ Before any Page write:
73
+ llama agent bootstrap
74
+
75
+ The authenticated bootstrap contains the two-part private Llama Brain:
76
+ Investment Framework V3 plus the Llama Command operating skill. It also
77
+ contains the separate current 61-field Page contract. CLI is the tool, not
78
+ Brain. Information never updates Page automatically. page.patch is JSON
79
+ Merge Patch: objects merge, null deletes, and arrays replace whole arrays, so
80
+ read-modify-write complete Page arrays and preserve sibling slots.
81
+
72
82
  create JSON:
73
83
  {"companyName":"Acme","page":{},"information":[],"origin":{"kind":"user","originalUserUtterance":"..."}}
74
84
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "format": "llama.cli-build.v1",
3
3
  "packageName": "@llamaventures/cli",
4
- "packageVersion": "2.0.1",
5
- "sourceSha": "ac71158a0bd630d602012e5750be8c1babb93f2d",
4
+ "packageVersion": "2.0.2",
5
+ "sourceSha": "dc52c43363b050072c70f45144909d93b4f42028",
6
6
  "sourceKind": "github",
7
7
  "sourceDirty": false,
8
8
  "coreApiContract": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llamaventures/cli",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "CLI + MCP server for the Llama Ventures investment workbench (command.llamaventures.vc).",
5
5
  "type": "module",
6
6
  "scripts": {