@myagentroam/node 0.12.11 → 0.12.13
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/marctl/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"0.12.
|
|
1
|
+
{"type":"module","version":"0.12.13"}
|
package/dist/opencode-runtime.js
CHANGED
|
@@ -43,6 +43,9 @@ export function openCodeProfileModels(catalog) {
|
|
|
43
43
|
const modelId = boundedString(model.id) ?? boundedString(key);
|
|
44
44
|
if (modelId === undefined)
|
|
45
45
|
return [];
|
|
46
|
+
const qualifiedModelId = `${providerId}/${modelId}`;
|
|
47
|
+
if (qualifiedModelId.length > 128)
|
|
48
|
+
return [];
|
|
46
49
|
const variants = Object.entries(model.variants ?? {})
|
|
47
50
|
.filter(([, value]) => value.disabled !== true)
|
|
48
51
|
.map(([id]) => id)
|
|
@@ -50,7 +53,7 @@ export function openCodeProfileModels(catalog) {
|
|
|
50
53
|
.slice(0, 32);
|
|
51
54
|
return [
|
|
52
55
|
{
|
|
53
|
-
id:
|
|
56
|
+
id: qualifiedModelId,
|
|
54
57
|
label: (boundedString(model.name) ?? modelId).slice(0, 128),
|
|
55
58
|
supportedEfforts: variants
|
|
56
59
|
}
|
|
@@ -66,9 +69,14 @@ export function openCodeContextLimits(catalog) {
|
|
|
66
69
|
provider.source === 'config')
|
|
67
70
|
.flatMap((provider) => Object.entries(provider.models ?? {}).flatMap(([key, model]) => {
|
|
68
71
|
const modelId = boundedString(model.id) ?? boundedString(key);
|
|
72
|
+
if (modelId === undefined)
|
|
73
|
+
return [];
|
|
74
|
+
const qualifiedModelId = `${provider.id}/${modelId}`;
|
|
69
75
|
const context = model.limit?.context;
|
|
70
|
-
return
|
|
71
|
-
|
|
76
|
+
return qualifiedModelId.length <= 128 &&
|
|
77
|
+
Number.isSafeInteger(context) &&
|
|
78
|
+
(context ?? 0) > 0
|
|
79
|
+
? [[qualifiedModelId, context]]
|
|
72
80
|
: [];
|
|
73
81
|
})));
|
|
74
82
|
}
|
|
@@ -1275,15 +1275,20 @@ export function codexUserInputQuestions(value) {
|
|
|
1275
1275
|
: [])
|
|
1276
1276
|
: [];
|
|
1277
1277
|
return {
|
|
1278
|
-
id:
|
|
1278
|
+
id: raw.id,
|
|
1279
|
+
nativeId: raw.id,
|
|
1279
1280
|
prompt: compactRunnerText(raw.question, 5_000),
|
|
1280
1281
|
options,
|
|
1281
1282
|
allowOther: raw.isOther === true
|
|
1282
1283
|
};
|
|
1283
1284
|
});
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1285
|
+
if (questions.some((question) => question === undefined))
|
|
1286
|
+
return [];
|
|
1287
|
+
const normalized = questions;
|
|
1288
|
+
// Alias the whole request so an existing short ID cannot collide with a generated one.
|
|
1289
|
+
return normalized.some((question) => question.id.length > 128)
|
|
1290
|
+
? normalized.map((question, index) => ({ ...question, id: `question-${index}` }))
|
|
1291
|
+
: normalized;
|
|
1287
1292
|
}
|
|
1288
1293
|
export function codexItemStatus(value, completed) {
|
|
1289
1294
|
if (value === 'failed')
|
|
@@ -546,6 +546,7 @@ export class CodexManagedRunController {
|
|
|
546
546
|
requestId: nativeRequestId,
|
|
547
547
|
questions: questions.map((question) => ({
|
|
548
548
|
id: question.id,
|
|
549
|
+
nativeId: question.nativeId,
|
|
549
550
|
options: question.options.map((option) => option.value),
|
|
550
551
|
allowOther: question.allowOther
|
|
551
552
|
}))
|
|
@@ -278,9 +278,9 @@ export class RunnerInteractionService {
|
|
|
278
278
|
pending.runId !== runId ||
|
|
279
279
|
this.options.runtime.getRun(runId) === undefined)
|
|
280
280
|
throw new Error('USER_INPUT_NOT_FOUND');
|
|
281
|
-
const answers =
|
|
281
|
+
const answers = Object.create(null);
|
|
282
282
|
for (const question of pending.questions)
|
|
283
|
-
answers[question.
|
|
283
|
+
answers[question.nativeId] = {
|
|
284
284
|
answers: this.answers(rawAnswers[question.id], question.allowOther, (value) => question.options.includes(value))
|
|
285
285
|
};
|
|
286
286
|
codex.respond(pending.requestId, { answers }, runId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.13",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"license": "Apache-2.0 AND GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"turndown-plugin-gfm": "^1.0.2",
|
|
43
43
|
"ws": "^8.21.3",
|
|
44
44
|
"zod": "4.4.3",
|
|
45
|
-
"@myagentroam/
|
|
46
|
-
"@myagentroam/
|
|
45
|
+
"@myagentroam/agent": "0.12.13",
|
|
46
|
+
"@myagentroam/protocol": "0.12.13"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/turndown": "^5.0.6",
|
|
50
50
|
"@types/ws": "^8.18.1",
|
|
51
51
|
"@myagentroam/code-navigation": "0.11.1",
|
|
52
|
-
"@myagentroam/marctl": "0.12.
|
|
52
|
+
"@myagentroam/marctl": "0.12.13"
|
|
53
53
|
},
|
|
54
54
|
"exports": {
|
|
55
55
|
"./config": {
|