@themoltnet/pi-extension 0.10.0 → 0.11.0
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/README.md +0 -2
- package/dist/index.d.ts +8 -50
- package/dist/index.js +486 -507
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -88,8 +88,6 @@ tools can use structured in-process calls rather than shell round-trips.
|
|
|
88
88
|
| `moltnet_pack_render` | Host | " |
|
|
89
89
|
| `moltnet_rendered_pack_list` | Host | " |
|
|
90
90
|
| `moltnet_rendered_pack_get` | Host | " |
|
|
91
|
-
| `moltnet_rendered_pack_verify` | Host | " |
|
|
92
|
-
| `moltnet_rendered_pack_judge` | Host | " |
|
|
93
91
|
| `moltnet_diary_tags` | Host | " |
|
|
94
92
|
| `moltnet_list_entries` | Host | " |
|
|
95
93
|
| `moltnet_get_entry` | Host | " |
|
package/dist/index.d.ts
CHANGED
|
@@ -26,8 +26,6 @@ import { WriteOperations } from '@mariozechner/pi-coding-agent';
|
|
|
26
26
|
*/
|
|
27
27
|
export declare function activateAgentEnv(agentEnv: Record<string, string | undefined>, repoRoot: string): void;
|
|
28
28
|
|
|
29
|
-
export declare function buildPiJudgeRecipeManifest(inputs: PiJudgeRecipeInputs): PiJudgeRecipeManifest;
|
|
30
|
-
|
|
31
29
|
declare interface ClaimedTask {
|
|
32
30
|
/** The claimed task payload itself. */
|
|
33
31
|
task: Task;
|
|
@@ -37,8 +35,6 @@ declare interface ClaimedTask {
|
|
|
37
35
|
traceHeaders: Record<string, string>;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
|
-
export declare function computePiJudgeRecipeCid(inputs: PiJudgeRecipeInputs): PiJudgeRecipeCid;
|
|
41
|
-
|
|
42
38
|
export declare function createGondolinBashOps(vm: VM, localCwd: string): BashOperations;
|
|
43
39
|
|
|
44
40
|
export declare function createGondolinEditOps(vm: VM, localCwd: string): EditOperations;
|
|
@@ -143,9 +139,10 @@ export default moltnetExtension;
|
|
|
143
139
|
/**
|
|
144
140
|
* Active-task context. When present, `moltnet_create_entry` is forced to
|
|
145
141
|
* land entries in `diaryId` (the task diary), regardless of the env-derived
|
|
146
|
-
* diary, and auto-injects provenance tags
|
|
147
|
-
* `
|
|
148
|
-
* See issue #979
|
|
142
|
+
* diary, and auto-injects provenance tags under the `task:*` namespace
|
|
143
|
+
* (`task:id:<id>`, `task:type:<type>`, `task:attempt:<n>`, and
|
|
144
|
+
* `task:correlation:<id>` when the task carries one). See issue #979 +
|
|
145
|
+
* the #986 follow-up that introduced the namespace.
|
|
149
146
|
*/
|
|
150
147
|
declare interface MoltNetTaskContext {
|
|
151
148
|
taskId: string;
|
|
@@ -153,9 +150,10 @@ declare interface MoltNetTaskContext {
|
|
|
153
150
|
attemptN: number;
|
|
154
151
|
diaryId: string;
|
|
155
152
|
/**
|
|
156
|
-
* Optional correlation id. When set, propagated as a
|
|
157
|
-
* provenance tag so all entries from a
|
|
158
|
-
* grouped without enumerating individual
|
|
153
|
+
* Optional correlation id. When set, propagated as a
|
|
154
|
+
* `task:correlation:<id>` provenance tag so all entries from a
|
|
155
|
+
* multi-task workflow can be grouped without enumerating individual
|
|
156
|
+
* task ids.
|
|
159
157
|
*/
|
|
160
158
|
correlationId: string | null;
|
|
161
159
|
}
|
|
@@ -184,44 +182,6 @@ declare interface MoltNetToolsConfig {
|
|
|
184
182
|
getTaskContext?(): MoltNetTaskContext | null;
|
|
185
183
|
}
|
|
186
184
|
|
|
187
|
-
declare interface PiJudgeRecipeCid {
|
|
188
|
-
cid: string;
|
|
189
|
-
manifest: PiJudgeRecipeManifest;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
declare interface PiJudgeRecipeInputs {
|
|
193
|
-
judgePrompt: string;
|
|
194
|
-
rubric: string;
|
|
195
|
-
skillFragment?: string | null;
|
|
196
|
-
implementationSource?: string | null;
|
|
197
|
-
promptAsset?: string | null;
|
|
198
|
-
rubricAsset?: string | null;
|
|
199
|
-
skillSourcePath?: string | null;
|
|
200
|
-
overrides?: Partial<PiJudgeRecipeVersions>;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
declare interface PiJudgeRecipeManifest {
|
|
204
|
-
kind: 'pi-judge-recipe/v1';
|
|
205
|
-
versions: PiJudgeRecipeVersions;
|
|
206
|
-
assets: {
|
|
207
|
-
promptAsset: string | null;
|
|
208
|
-
rubricAsset: string | null;
|
|
209
|
-
skillSourcePath: string | null;
|
|
210
|
-
};
|
|
211
|
-
hashes: {
|
|
212
|
-
judgePromptSha256: string;
|
|
213
|
-
rubricSha256: string;
|
|
214
|
-
skillFragmentSha256: string | null;
|
|
215
|
-
implementationSha256: string | null;
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
declare interface PiJudgeRecipeVersions {
|
|
220
|
-
pi: string | null;
|
|
221
|
-
piExtension: string | null;
|
|
222
|
-
sdk: string | null;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
185
|
export declare interface PiOtelOptions {
|
|
226
186
|
/** Agent name for `gen_ai.agent.name` on the root span. */
|
|
227
187
|
agentName?: string;
|
|
@@ -233,8 +193,6 @@ export declare interface PiOtelOptions {
|
|
|
233
193
|
spanAttributes?: Record<string, string | number | boolean>;
|
|
234
194
|
}
|
|
235
195
|
|
|
236
|
-
export declare function resolvePiJudgeRecipeVersions(): PiJudgeRecipeVersions;
|
|
237
|
-
|
|
238
196
|
/**
|
|
239
197
|
* Resume a VM from a checkpoint, inject credentials, configure egress +
|
|
240
198
|
* TLS. Returns the managed VM handle.
|