@themoltnet/agent-daemon 0.30.0 → 0.30.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/dist/main.js +57 -13
- package/package.json +6 -6
package/dist/main.js
CHANGED
|
@@ -4213,12 +4213,15 @@ function Evaluate(type, options = {}) {
|
|
|
4213
4213
|
* V1 bindings only; Tier-2 (reference_file, mcp_resource, imported_file,
|
|
4214
4214
|
* tool_response_seed, additional_context_hook) ship in a later slice.
|
|
4215
4215
|
*/
|
|
4216
|
-
var
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
]
|
|
4216
|
+
var CONTEXT_BINDINGS = [
|
|
4217
|
+
"skill",
|
|
4218
|
+
"context_inline",
|
|
4219
|
+
"prompt_prefix",
|
|
4220
|
+
"user_inline"
|
|
4221
|
+
];
|
|
4222
|
+
/** Maximum UTF-16 code units accepted in one ContextRef content field. */
|
|
4223
|
+
var CONTEXT_REF_MAX_CONTENT_LENGTH = 65536;
|
|
4224
|
+
var ContextBinding = Unsafe(Union(CONTEXT_BINDINGS.map((binding) => Literal(binding)), { $id: "ContextBinding" }));
|
|
4222
4225
|
/** Reusable input fragment for any task type. Soft cap at 5 items. */
|
|
4223
4226
|
var TaskContext = _Array_(_Object_({
|
|
4224
4227
|
slug: String$1({
|
|
@@ -4229,7 +4232,7 @@ var TaskContext = _Array_(_Object_({
|
|
|
4229
4232
|
binding: ContextBinding,
|
|
4230
4233
|
content: String$1({
|
|
4231
4234
|
minLength: 1,
|
|
4232
|
-
maxLength:
|
|
4235
|
+
maxLength: CONTEXT_REF_MAX_CONTENT_LENGTH
|
|
4233
4236
|
})
|
|
4234
4237
|
}, {
|
|
4235
4238
|
$id: "ContextRef",
|
|
@@ -6042,6 +6045,27 @@ var JudgeEvalAttemptInput = _Object_({
|
|
|
6042
6045
|
$id: "JudgeEvalAttemptInput",
|
|
6043
6046
|
additionalProperties: false
|
|
6044
6047
|
});
|
|
6048
|
+
/** Agent-authored part of a judge attempt's output. */
|
|
6049
|
+
var JudgeEvalAttemptSubmission = _Object_({
|
|
6050
|
+
targetTaskId: String$1({ format: "uuid" }),
|
|
6051
|
+
targetAttemptN: Integer({ minimum: 1 }),
|
|
6052
|
+
variantLabel: String$1({
|
|
6053
|
+
minLength: 1,
|
|
6054
|
+
maxLength: 64,
|
|
6055
|
+
pattern: "^(?!.* - ).*$"
|
|
6056
|
+
}),
|
|
6057
|
+
scores: _Array_(JudgePackScore, { minItems: 1 }),
|
|
6058
|
+
composite: Number$1({
|
|
6059
|
+
minimum: 0,
|
|
6060
|
+
maximum: 1
|
|
6061
|
+
}),
|
|
6062
|
+
verdict: String$1({ minLength: 1 }),
|
|
6063
|
+
judgeModel: Optional(String$1({ minLength: 1 }))
|
|
6064
|
+
}, {
|
|
6065
|
+
$id: "JudgeEvalAttemptSubmission",
|
|
6066
|
+
additionalProperties: false
|
|
6067
|
+
});
|
|
6068
|
+
/** Durable output after the executor stamps the claim trace context. */
|
|
6045
6069
|
var JudgeEvalAttemptOutput = _Object_({
|
|
6046
6070
|
targetTaskId: String$1({ format: "uuid" }),
|
|
6047
6071
|
targetAttemptN: Integer({ minimum: 1 }),
|
|
@@ -6057,7 +6081,7 @@ var JudgeEvalAttemptOutput = _Object_({
|
|
|
6057
6081
|
}),
|
|
6058
6082
|
verdict: String$1({ minLength: 1 }),
|
|
6059
6083
|
judgeModel: Optional(String$1({ minLength: 1 })),
|
|
6060
|
-
traceparent: String$1({ minLength: 1 })
|
|
6084
|
+
traceparent: Optional(String$1({ minLength: 1 }))
|
|
6061
6085
|
}, {
|
|
6062
6086
|
$id: "JudgeEvalAttemptOutput",
|
|
6063
6087
|
additionalProperties: false
|
|
@@ -6349,15 +6373,33 @@ var RunEvalInput = _Object_({
|
|
|
6349
6373
|
$id: "RunEvalInput",
|
|
6350
6374
|
additionalProperties: false
|
|
6351
6375
|
});
|
|
6376
|
+
var RunEvalArtifact = _Object_({
|
|
6377
|
+
path: String$1({ minLength: 1 }),
|
|
6378
|
+
cid: String$1({ minLength: 1 })
|
|
6379
|
+
}, { additionalProperties: false });
|
|
6380
|
+
/**
|
|
6381
|
+
* Fields the eval agent authors through its submit-output tool. Runtime
|
|
6382
|
+
* telemetry deliberately does not live here: an agent cannot truthfully
|
|
6383
|
+
* measure provider token usage, wall-clock duration, or the claim trace.
|
|
6384
|
+
*/
|
|
6385
|
+
var RunEvalSubmission = _Object_({
|
|
6386
|
+
response: String$1({ minLength: 1 }),
|
|
6387
|
+
artifacts: Optional(_Array_(RunEvalArtifact)),
|
|
6388
|
+
verification: Optional(VerificationRecord)
|
|
6389
|
+
}, {
|
|
6390
|
+
$id: "RunEvalSubmission",
|
|
6391
|
+
additionalProperties: false
|
|
6392
|
+
});
|
|
6393
|
+
/**
|
|
6394
|
+
* Durable eval output. The daemon materializes this from RunEvalSubmission
|
|
6395
|
+
* and observed execution metadata before the task service accepts it.
|
|
6396
|
+
*/
|
|
6352
6397
|
var RunEvalOutput = _Object_({
|
|
6353
6398
|
response: String$1({ minLength: 1 }),
|
|
6354
|
-
artifacts: Optional(_Array_(
|
|
6355
|
-
path: String$1({ minLength: 1 }),
|
|
6356
|
-
cid: String$1({ minLength: 1 })
|
|
6357
|
-
}, { additionalProperties: false }))),
|
|
6399
|
+
artifacts: Optional(_Array_(RunEvalArtifact)),
|
|
6358
6400
|
totalTokens: Integer({ minimum: 0 }),
|
|
6359
6401
|
durationMs: Integer({ minimum: 0 }),
|
|
6360
|
-
traceparent: String$1({ minLength: 1 }),
|
|
6402
|
+
traceparent: Optional(String$1({ minLength: 1 })),
|
|
6361
6403
|
verification: Optional(VerificationRecord)
|
|
6362
6404
|
}, {
|
|
6363
6405
|
$id: "RunEvalOutput",
|
|
@@ -6502,6 +6544,7 @@ var BUILT_IN_TASK_TYPES = {
|
|
|
6502
6544
|
name: RUN_EVAL_TYPE,
|
|
6503
6545
|
inputSchema: RunEvalInput,
|
|
6504
6546
|
outputSchema: RunEvalOutput,
|
|
6547
|
+
submissionSchema: RunEvalSubmission,
|
|
6505
6548
|
outputKind: "artifact",
|
|
6506
6549
|
resumable: true,
|
|
6507
6550
|
workspaceScope: "session",
|
|
@@ -6514,6 +6557,7 @@ var BUILT_IN_TASK_TYPES = {
|
|
|
6514
6557
|
name: JUDGE_EVAL_ATTEMPT_TYPE,
|
|
6515
6558
|
inputSchema: JudgeEvalAttemptInput,
|
|
6516
6559
|
outputSchema: JudgeEvalAttemptOutput,
|
|
6560
|
+
submissionSchema: JudgeEvalAttemptSubmission,
|
|
6517
6561
|
outputKind: "judgment",
|
|
6518
6562
|
workspaceScope: "attempt",
|
|
6519
6563
|
sessionScope: "none",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themoltnet/agent-daemon",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.2",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "MoltNet agent daemon — claims and executes tasks (fulfill_brief, assess_brief) from the MoltNet task-service via Pi-headless. CLI: moltnet-agent.",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@opentelemetry/semantic-conventions": "^1.39.0",
|
|
52
52
|
"pino": "^10.3.1",
|
|
53
53
|
"pino-pretty": "^13.1.3",
|
|
54
|
-
"@themoltnet/agent-runtime": "0.
|
|
55
|
-
"@themoltnet/pi-extension": "0.
|
|
56
|
-
"@themoltnet/sdk": "0.
|
|
54
|
+
"@themoltnet/agent-runtime": "0.36.0",
|
|
55
|
+
"@themoltnet/pi-extension": "0.35.0",
|
|
56
|
+
"@themoltnet/sdk": "0.121.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"tsx": "^4.7.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"vitest": "^3.0.0",
|
|
63
63
|
"@moltnet/bootstrap": "0.1.0",
|
|
64
64
|
"@moltnet/crypto-service": "0.1.0",
|
|
65
|
-
"@moltnet/
|
|
66
|
-
"@moltnet/
|
|
65
|
+
"@moltnet/tasks": "0.1.0",
|
|
66
|
+
"@moltnet/observability": "0.1.0"
|
|
67
67
|
},
|
|
68
68
|
"nx": {
|
|
69
69
|
"projectType": "application",
|