@stigmer/protos 2.0.1 → 3.0.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/ai/stigmer/agentic/agentexecution/v1/approval_pb.d.ts +11 -0
- package/ai/stigmer/agentic/agentexecution/v1/approval_pb.js +2 -1
- package/ai/stigmer/agentic/agentexecution/v1/approval_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +163 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +172 -9
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.d.ts +17 -1
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/api_pb.d.ts +4 -46
- package/ai/stigmer/agentic/session/v1/api_pb.js +1 -7
- package/ai/stigmer/agentic/session/v1/api_pb.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/command_connect.d.ts +0 -18
- package/ai/stigmer/agentic/session/v1/command_connect.js +1 -19
- package/ai/stigmer/agentic/session/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/command_pb.d.ts +1 -18
- package/ai/stigmer/agentic/session/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/session/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/enum_pb.d.ts +6 -7
- package/ai/stigmer/agentic/session/v1/enum_pb.js +6 -7
- package/ai/stigmer/agentic/session/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/io_pb.d.ts +0 -33
- package/ai/stigmer/agentic/session/v1/io_pb.js +1 -7
- package/ai/stigmer/agentic/session/v1/io_pb.js.map +1 -1
- package/ai/stigmer/platform/v1/server_info_connect.d.ts +39 -1
- package/ai/stigmer/platform/v1/server_info_connect.js +40 -2
- package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -1
- package/ai/stigmer/platform/v1/server_info_pb.d.ts +110 -1
- package/ai/stigmer/platform/v1/server_info_pb.js +17 -2
- package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -1
- package/package.json +1 -1
- package/ai/stigmer/agentic/session/v1/memory_pb.d.ts +0 -216
- package/ai/stigmer/agentic/session/v1/memory_pb.js +0 -24
- package/ai/stigmer/agentic/session/v1/memory_pb.js.map +0 -1
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* Describes the file ai/stigmer/agentic/session/v1/memory.proto.
|
|
5
|
-
*/
|
|
6
|
-
export declare const file_ai_stigmer_agentic_session_v1_memory: GenFile;
|
|
7
|
-
/**
|
|
8
|
-
* SessionMemory captures durable conversation state that survives agent
|
|
9
|
-
* eviction, process restarts, and Cursor SDK "agent not found" failures.
|
|
10
|
-
*
|
|
11
|
-
* Updated after each completed execution turn and stored in SessionStatus.
|
|
12
|
-
* When a fresh agent is created (because the previous one expired or the
|
|
13
|
-
* local store lookup failed), the continuation prompt is built from this
|
|
14
|
-
* memory — giving the new agent the full context of the prior conversation.
|
|
15
|
-
*
|
|
16
|
-
* Design: Structured extraction, not LLM summarization. The cursor-runner
|
|
17
|
-
* parses stream events (tool calls, file edits, command outputs) and
|
|
18
|
-
* populates these fields directly. No separate LLM call is made in v1.
|
|
19
|
-
*
|
|
20
|
-
* Token budgets (enforced at persist-time by the runner):
|
|
21
|
-
* durable_summary: max 2k tokens
|
|
22
|
-
* recent_turns: max 4k tokens (last 6 turns, FIFO)
|
|
23
|
-
* tool_observations: max 1k tokens (most recent, FIFO)
|
|
24
|
-
* Total continuation prompt ceiling: 8k tokens
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
|
-
* Persisted in MongoDB as part of the Session document under status.
|
|
28
|
-
* The runner reads it from the activity input (passed by the workflow)
|
|
29
|
-
* and writes it back via gRPC after each completed turn.
|
|
30
|
-
*
|
|
31
|
-
* @generated from message ai.stigmer.agentic.session.v1.SessionMemory
|
|
32
|
-
*/
|
|
33
|
-
export type SessionMemory = Message<"ai.stigmer.agentic.session.v1.SessionMemory"> & {
|
|
34
|
-
/**
|
|
35
|
-
* High-level narrative of what has been accomplished so far.
|
|
36
|
-
*
|
|
37
|
-
* Includes the original goal, current progress, and next steps.
|
|
38
|
-
* Built by the runner from assistant messages — not a verbatim transcript.
|
|
39
|
-
*
|
|
40
|
-
* Token budget: max 2k tokens. Truncated at persist-time if exceeded.
|
|
41
|
-
*
|
|
42
|
-
* @generated from field: string durable_summary = 1;
|
|
43
|
-
*/
|
|
44
|
-
durableSummary: string;
|
|
45
|
-
/**
|
|
46
|
-
* Digest of the workspace state at the time of last persistence.
|
|
47
|
-
*
|
|
48
|
-
* Free-form string capturing relevant workspace context (e.g., git branch,
|
|
49
|
-
* HEAD SHA, working directory). Used by the continuation prompt to help
|
|
50
|
-
* the fresh agent orient itself.
|
|
51
|
-
*
|
|
52
|
-
* @generated from field: string workspace_digest = 2;
|
|
53
|
-
*/
|
|
54
|
-
workspaceDigest: string;
|
|
55
|
-
/**
|
|
56
|
-
* Files created or modified during the session.
|
|
57
|
-
*
|
|
58
|
-
* Extracted from tool-call events (file_edit, file_create, etc.).
|
|
59
|
-
* Helps the continuation prompt tell the fresh agent what has changed.
|
|
60
|
-
*
|
|
61
|
-
* @generated from field: repeated string changed_files = 3;
|
|
62
|
-
*/
|
|
63
|
-
changedFiles: string[];
|
|
64
|
-
/**
|
|
65
|
-
* Outstanding tasks or questions the agent identified but has not completed.
|
|
66
|
-
*
|
|
67
|
-
* Parsed from the agent's final message or todo-list tool calls.
|
|
68
|
-
* Gives the continuation prompt a "pick up where you left off" list.
|
|
69
|
-
*
|
|
70
|
-
* @generated from field: repeated string open_tasks = 4;
|
|
71
|
-
*/
|
|
72
|
-
openTasks: string[];
|
|
73
|
-
/**
|
|
74
|
-
* Summaries of significant tool executions during the session.
|
|
75
|
-
*
|
|
76
|
-
* Captures command, working directory, exit code, and a short output summary.
|
|
77
|
-
* Most recent observations first, FIFO-pruned to ~10 entries.
|
|
78
|
-
*
|
|
79
|
-
* Token budget: max 1k tokens total across all observations.
|
|
80
|
-
*
|
|
81
|
-
* @generated from field: repeated ai.stigmer.agentic.session.v1.ToolObservation tool_observations = 5;
|
|
82
|
-
*/
|
|
83
|
-
toolObservations: ToolObservation[];
|
|
84
|
-
/**
|
|
85
|
-
* Recent conversation turns for verbatim replay in the continuation prompt.
|
|
86
|
-
*
|
|
87
|
-
* Last 6 turns (3 user + 3 assistant), FIFO. Individual turns exceeding
|
|
88
|
-
* 1k tokens are truncated to the last 1k tokens with a "[truncated]" prefix.
|
|
89
|
-
*
|
|
90
|
-
* Token budget: max 4k tokens total across all turns.
|
|
91
|
-
*
|
|
92
|
-
* @generated from field: repeated ai.stigmer.agentic.session.v1.ConversationTurn recent_turns = 6;
|
|
93
|
-
*/
|
|
94
|
-
recentTurns: ConversationTurn[];
|
|
95
|
-
/**
|
|
96
|
-
* Explicit decisions the agent made during the session.
|
|
97
|
-
*
|
|
98
|
-
* Extracted from assistant messages where the agent explains a choice
|
|
99
|
-
* (e.g., "chose library X over Y because..."). Append-only, never pruned,
|
|
100
|
-
* capped at 20 entries.
|
|
101
|
-
*
|
|
102
|
-
* These survive summary regeneration — even if durable_summary is
|
|
103
|
-
* rewritten, the individual decision records are preserved.
|
|
104
|
-
*
|
|
105
|
-
* @generated from field: repeated string decisions = 7;
|
|
106
|
-
*/
|
|
107
|
-
decisions: string[];
|
|
108
|
-
/**
|
|
109
|
-
* Approaches that were tried and failed during the session.
|
|
110
|
-
*
|
|
111
|
-
* Extracted from tool failures, error recoveries, and explicit agent
|
|
112
|
-
* statements about abandoned approaches. Append-only, never pruned,
|
|
113
|
-
* capped at 20 entries.
|
|
114
|
-
*
|
|
115
|
-
* Prevents the continuation agent from repeating mistakes the previous
|
|
116
|
-
* agent already learned from.
|
|
117
|
-
*
|
|
118
|
-
* @generated from field: repeated string failed_attempts = 8;
|
|
119
|
-
*/
|
|
120
|
-
failedAttempts: string[];
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Describes the message ai.stigmer.agentic.session.v1.SessionMemory.
|
|
124
|
-
* Use `create(SessionMemorySchema)` to create a new message.
|
|
125
|
-
*/
|
|
126
|
-
export declare const SessionMemorySchema: GenMessage<SessionMemory>;
|
|
127
|
-
/**
|
|
128
|
-
* ToolObservation captures the outcome of a significant tool execution.
|
|
129
|
-
*
|
|
130
|
-
* Not every tool call produces an observation — only commands with meaningful
|
|
131
|
-
* output (shell commands, file operations with errors, etc.) are recorded.
|
|
132
|
-
* The runner decides which tool calls are "significant" based on tool type
|
|
133
|
-
* and outcome.
|
|
134
|
-
*
|
|
135
|
-
* @generated from message ai.stigmer.agentic.session.v1.ToolObservation
|
|
136
|
-
*/
|
|
137
|
-
export type ToolObservation = Message<"ai.stigmer.agentic.session.v1.ToolObservation"> & {
|
|
138
|
-
/**
|
|
139
|
-
* The command or tool invocation that was executed.
|
|
140
|
-
* Example: "npm install", "git checkout -b feature/foo"
|
|
141
|
-
*
|
|
142
|
-
* @generated from field: string command = 1;
|
|
143
|
-
*/
|
|
144
|
-
command: string;
|
|
145
|
-
/**
|
|
146
|
-
* Working directory where the command was executed.
|
|
147
|
-
* Example: "/workspace/stigmer"
|
|
148
|
-
*
|
|
149
|
-
* @generated from field: string cwd = 2;
|
|
150
|
-
*/
|
|
151
|
-
cwd: string;
|
|
152
|
-
/**
|
|
153
|
-
* Process exit code (0 = success).
|
|
154
|
-
* Meaningful for shell commands; may be 0 for non-shell tools.
|
|
155
|
-
*
|
|
156
|
-
* @generated from field: int32 exit_code = 3;
|
|
157
|
-
*/
|
|
158
|
-
exitCode: number;
|
|
159
|
-
/**
|
|
160
|
-
* Short summary of the tool output.
|
|
161
|
-
*
|
|
162
|
-
* Not the full stdout/stderr — a concise description of what happened.
|
|
163
|
-
* Example: "Installed 42 packages, 0 vulnerabilities"
|
|
164
|
-
* Example: "Command failed: permission denied on /etc/hosts"
|
|
165
|
-
*
|
|
166
|
-
* @generated from field: string summary = 4;
|
|
167
|
-
*/
|
|
168
|
-
summary: string;
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* Describes the message ai.stigmer.agentic.session.v1.ToolObservation.
|
|
172
|
-
* Use `create(ToolObservationSchema)` to create a new message.
|
|
173
|
-
*/
|
|
174
|
-
export declare const ToolObservationSchema: GenMessage<ToolObservation>;
|
|
175
|
-
/**
|
|
176
|
-
* ConversationTurn captures a single message in the conversation for replay.
|
|
177
|
-
*
|
|
178
|
-
* Used in the continuation prompt to give the fresh agent recent context.
|
|
179
|
-
* Content may be truncated if the original message exceeded the per-turn
|
|
180
|
-
* token limit.
|
|
181
|
-
*
|
|
182
|
-
* @generated from message ai.stigmer.agentic.session.v1.ConversationTurn
|
|
183
|
-
*/
|
|
184
|
-
export type ConversationTurn = Message<"ai.stigmer.agentic.session.v1.ConversationTurn"> & {
|
|
185
|
-
/**
|
|
186
|
-
* The role of the message author.
|
|
187
|
-
* Values: "user" or "assistant"
|
|
188
|
-
*
|
|
189
|
-
* @generated from field: string role = 1;
|
|
190
|
-
*/
|
|
191
|
-
role: string;
|
|
192
|
-
/**
|
|
193
|
-
* The message content, potentially truncated.
|
|
194
|
-
*
|
|
195
|
-
* If the original message exceeded 1k tokens, this contains the last
|
|
196
|
-
* 1k tokens prefixed with "[truncated]".
|
|
197
|
-
*
|
|
198
|
-
* @generated from field: string content = 2;
|
|
199
|
-
*/
|
|
200
|
-
content: string;
|
|
201
|
-
/**
|
|
202
|
-
* ISO 8601 timestamp when the message was sent.
|
|
203
|
-
* Example: "2026-05-09T15:30:00Z"
|
|
204
|
-
*
|
|
205
|
-
* Uses string (not google.protobuf.Timestamp) for consistency with
|
|
206
|
-
* AgentMessage.timestamp and other operational timestamps in this domain.
|
|
207
|
-
*
|
|
208
|
-
* @generated from field: string timestamp = 3;
|
|
209
|
-
*/
|
|
210
|
-
timestamp: string;
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* Describes the message ai.stigmer.agentic.session.v1.ConversationTurn.
|
|
214
|
-
* Use `create(ConversationTurnSchema)` to create a new message.
|
|
215
|
-
*/
|
|
216
|
-
export declare const ConversationTurnSchema: GenMessage<ConversationTurn>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
-
// @generated from file ai/stigmer/agentic/session/v1/memory.proto (package ai.stigmer.agentic.session.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
-
/**
|
|
6
|
-
* Describes the file ai/stigmer/agentic/session/v1/memory.proto.
|
|
7
|
-
*/
|
|
8
|
-
export const file_ai_stigmer_agentic_session_v1_memory = /*@__PURE__*/ fileDesc("CiphaS9zdGlnbWVyL2FnZW50aWMvc2Vzc2lvbi92MS9tZW1vcnkucHJvdG8SHWFpLnN0aWdtZXIuYWdlbnRpYy5zZXNzaW9uLnYxIqsCCg1TZXNzaW9uTWVtb3J5EhcKD2R1cmFibGVfc3VtbWFyeRgBIAEoCRIYChB3b3Jrc3BhY2VfZGlnZXN0GAIgASgJEhUKDWNoYW5nZWRfZmlsZXMYAyADKAkSEgoKb3Blbl90YXNrcxgEIAMoCRJJChF0b29sX29ic2VydmF0aW9ucxgFIAMoCzIuLmFpLnN0aWdtZXIuYWdlbnRpYy5zZXNzaW9uLnYxLlRvb2xPYnNlcnZhdGlvbhJFCgxyZWNlbnRfdHVybnMYBiADKAsyLy5haS5zdGlnbWVyLmFnZW50aWMuc2Vzc2lvbi52MS5Db252ZXJzYXRpb25UdXJuEhEKCWRlY2lzaW9ucxgHIAMoCRIXCg9mYWlsZWRfYXR0ZW1wdHMYCCADKAkiUwoPVG9vbE9ic2VydmF0aW9uEg8KB2NvbW1hbmQYASABKAkSCwoDY3dkGAIgASgJEhEKCWV4aXRfY29kZRgDIAEoBRIPCgdzdW1tYXJ5GAQgASgJIkQKEENvbnZlcnNhdGlvblR1cm4SDAoEcm9sZRgBIAEoCRIPCgdjb250ZW50GAIgASgJEhEKCXRpbWVzdGFtcBgDIAEoCWIGcHJvdG8z");
|
|
9
|
-
/**
|
|
10
|
-
* Describes the message ai.stigmer.agentic.session.v1.SessionMemory.
|
|
11
|
-
* Use `create(SessionMemorySchema)` to create a new message.
|
|
12
|
-
*/
|
|
13
|
-
export const SessionMemorySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_session_v1_memory, 0);
|
|
14
|
-
/**
|
|
15
|
-
* Describes the message ai.stigmer.agentic.session.v1.ToolObservation.
|
|
16
|
-
* Use `create(ToolObservationSchema)` to create a new message.
|
|
17
|
-
*/
|
|
18
|
-
export const ToolObservationSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_session_v1_memory, 1);
|
|
19
|
-
/**
|
|
20
|
-
* Describes the message ai.stigmer.agentic.session.v1.ConversationTurn.
|
|
21
|
-
* Use `create(ConversationTurnSchema)` to create a new message.
|
|
22
|
-
*/
|
|
23
|
-
export const ConversationTurnSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_session_v1_memory, 2);
|
|
24
|
-
//# sourceMappingURL=memory_pb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/session/v1/memory_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,yHAAyH;AACzH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAY,aAAa,CAC7E,QAAQ,CAAC,ktBAAktB,CAAC,CAAC;AA6H/tB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AAiD5D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AA0C5D;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC"}
|