@plasm_lang/vercel-agent 0.3.120 → 0.3.123
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/package.json +2 -2
- package/src/nitro/copy-vercel-function-assets.ts +4 -1
- package/templates/mcp-radar/agent/catalogs/proof/README.md +108 -0
- package/templates/mcp-radar/agent/catalogs/proof/domain.yaml +960 -0
- package/templates/mcp-radar/agent/catalogs/proof/eval/cases.yaml +128 -0
- package/templates/mcp-radar/agent/catalogs/proof/mappings.yaml +1340 -0
- package/templates/mcp-radar/lib/radar-archive-status.ts +97 -0
- package/templates/mcp-radar/lib/radar-state.ts +7 -36
- package/templates/mcp-radar/lib/run-radar.ts +9 -26
- package/templates/mcp-radar/package.json +5 -6
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Proof — NL eval / form coverage. Run from repo root:
|
|
2
|
+
# cargo run -p plasm-eval -- coverage --schema apis/proof --cases apis/proof/eval/cases.yaml
|
|
3
|
+
#
|
|
4
|
+
# Goals are agent-shaped: join + read (real-backend flow), then create/update/query/chain as needed.
|
|
5
|
+
- id: proof-01-join-read
|
|
6
|
+
schema: proof
|
|
7
|
+
goal: "For shared document slug acme, set presence for automation agent 'plasm-bot', then load editor state and the markdown body so I can answer the user in that doc."
|
|
8
|
+
tags: [agent, multi_step]
|
|
9
|
+
covers: [multi_step, get, invoke]
|
|
10
|
+
expect:
|
|
11
|
+
entities_any: [Document, EditorState]
|
|
12
|
+
|
|
13
|
+
- id: proof-02-markdown-projection
|
|
14
|
+
schema: proof
|
|
15
|
+
goal: "Fetch only the markdown field for document beta using the fast markdown read path."
|
|
16
|
+
tags: [get, projection]
|
|
17
|
+
covers: [get, projection]
|
|
18
|
+
expect:
|
|
19
|
+
entities_any: [Document]
|
|
20
|
+
projection_contains: [markdown]
|
|
21
|
+
|
|
22
|
+
- id: proof-03-block-snapshot
|
|
23
|
+
schema: proof
|
|
24
|
+
goal: "List current blocks for document gamma so I can anchor a structural edit on block refs."
|
|
25
|
+
tags: [query]
|
|
26
|
+
covers: [query_filtered]
|
|
27
|
+
expect:
|
|
28
|
+
entities_any: [Document, Block]
|
|
29
|
+
|
|
30
|
+
- id: proof-04-new-doc
|
|
31
|
+
schema: proof
|
|
32
|
+
goal: "Create a new shared document whose initial body is markdown '# Kickoff notes' for the retro."
|
|
33
|
+
tags: [create]
|
|
34
|
+
covers: [create]
|
|
35
|
+
expect:
|
|
36
|
+
entities_any: [ShareLink]
|
|
37
|
+
|
|
38
|
+
- id: proof-05-read-title
|
|
39
|
+
schema: proof
|
|
40
|
+
goal: "Load document delta with document_get and read its title for the sprint header."
|
|
41
|
+
tags: [get, projection]
|
|
42
|
+
covers: [get, projection]
|
|
43
|
+
expect:
|
|
44
|
+
entities_any: [Document]
|
|
45
|
+
projection_contains: [title]
|
|
46
|
+
|
|
47
|
+
- id: proof-06-pending-events
|
|
48
|
+
schema: proof
|
|
49
|
+
goal: "Fetch pending collaboration events for document epsilon scoped by that document, after event id evt-9 if present."
|
|
50
|
+
tags: [query, collab]
|
|
51
|
+
covers: [query_filtered, reverse]
|
|
52
|
+
expect:
|
|
53
|
+
entities_any: [Document, CollaborationEvent]
|
|
54
|
+
|
|
55
|
+
- id: proof-07-chain-blocks
|
|
56
|
+
schema: proof
|
|
57
|
+
goal: "From document zeta, follow the blocks relation to read structural chunk refs for the editor."
|
|
58
|
+
tags: [chain]
|
|
59
|
+
covers: [chain]
|
|
60
|
+
expect:
|
|
61
|
+
entities_any: [Document, Block]
|
|
62
|
+
|
|
63
|
+
- id: proof-08-bug-report
|
|
64
|
+
schema: proof
|
|
65
|
+
goal: "Send a global bug report to Proof with a short summary and pasted HTTP error context."
|
|
66
|
+
tags: [meta]
|
|
67
|
+
covers: [create]
|
|
68
|
+
expect:
|
|
69
|
+
entities_any: [BugReport]
|
|
70
|
+
|
|
71
|
+
- id: proof-09-suggestion-insert
|
|
72
|
+
schema: proof
|
|
73
|
+
goal: >
|
|
74
|
+
On shared document iota, as automation user plasm-bot, propose an insert suggestion: anchor on
|
|
75
|
+
the exact quoted phrase 'Status' in the body and suggest inserting the line 'Status: green'
|
|
76
|
+
for human review (do not apply yet).
|
|
77
|
+
tags: [invoke, suggestion]
|
|
78
|
+
covers: [invoke]
|
|
79
|
+
reference_expr: >
|
|
80
|
+
Document(iota).annotation-suggestion-insert(agent_id="plasm-bot",by="plasm-bot",quote="Status",content="Status: green")
|
|
81
|
+
expect:
|
|
82
|
+
entities_any: [Document]
|
|
83
|
+
|
|
84
|
+
- id: proof-10-suggestion-delete
|
|
85
|
+
schema: proof
|
|
86
|
+
goal: >
|
|
87
|
+
For document kappa, propose a delete suggestion anchored on the quoted passage 'Draft watermark'
|
|
88
|
+
so collaborators can accept or reject removing that text.
|
|
89
|
+
tags: [invoke, suggestion]
|
|
90
|
+
covers: [invoke]
|
|
91
|
+
reference_expr: >
|
|
92
|
+
Document(kappa).annotation-suggestion-delete(agent_id="plasm-bot",by="plasm-bot",quote="Draft watermark")
|
|
93
|
+
expect:
|
|
94
|
+
entities_any: [Document]
|
|
95
|
+
|
|
96
|
+
- id: proof-11-suggestion-accept
|
|
97
|
+
schema: proof
|
|
98
|
+
goal: >
|
|
99
|
+
Apply the pending suggestion mark sug-42 on document lambda as user plasm-bot so the proposed
|
|
100
|
+
edit becomes real document content.
|
|
101
|
+
tags: [invoke, suggestion]
|
|
102
|
+
covers: [invoke]
|
|
103
|
+
reference_expr: >
|
|
104
|
+
Document(lambda).annotation-suggestion-accept(agent_id="plasm-bot",by="plasm-bot",mark_id="sug-42")
|
|
105
|
+
expect:
|
|
106
|
+
entities_any: [Document]
|
|
107
|
+
|
|
108
|
+
- id: proof-12-state-then-ops
|
|
109
|
+
schema: proof
|
|
110
|
+
goal: >
|
|
111
|
+
Bind the share link for document mu, call editor_state_get so the session picks up baseToken,
|
|
112
|
+
then add a comment on quoted text without passing base_token on the invoke line.
|
|
113
|
+
tags: [agent, session, invoke]
|
|
114
|
+
covers: [multi_step, get, invoke]
|
|
115
|
+
expect:
|
|
116
|
+
entities_any: [Document, EditorState]
|
|
117
|
+
|
|
118
|
+
- id: proof-13-base-token-override
|
|
119
|
+
schema: proof
|
|
120
|
+
goal: >
|
|
121
|
+
On document nu, call annotation-suggestion-reject with an explicit base_token=\"tok-override-9\"
|
|
122
|
+
to force that precondition for one request.
|
|
123
|
+
tags: [invoke, suggestion]
|
|
124
|
+
covers: [invoke]
|
|
125
|
+
reference_expr: >
|
|
126
|
+
Document(nu).annotation-suggestion-reject(agent_id="plasm-bot",by="plasm-bot",mark_id="sug-1",base_token="tok-override-9")
|
|
127
|
+
expect:
|
|
128
|
+
entities_any: [Document]
|