omnius 1.0.673 → 1.0.674
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/index.js +63 -15
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -657089,11 +657089,14 @@ ${read3.content}`;
|
|
|
657089
657089
|
if (selected.size > 0)
|
|
657090
657090
|
selectedBy = "inference";
|
|
657091
657091
|
}
|
|
657092
|
-
|
|
657093
|
-
|
|
657094
|
-
|
|
657095
|
-
|
|
657096
|
-
|
|
657092
|
+
if (selected.size > 0 || process.env["OMNIUS_FAILURE_PATTERN_TRACE"] === "1") {
|
|
657093
|
+
this.emit({
|
|
657094
|
+
type: "status",
|
|
657095
|
+
content: `Failure handoff semantic selection: ${selected.size}/${candidates.length} persisted pattern(s) selected by ${selectedBy}`,
|
|
657096
|
+
visibility: "telemetry",
|
|
657097
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
657098
|
+
});
|
|
657099
|
+
}
|
|
657097
657100
|
return selected;
|
|
657098
657101
|
}
|
|
657099
657102
|
_persistCompletionContract(contract) {
|
|
@@ -784051,6 +784054,7 @@ function selectTelegramFinalResponse(args) {
|
|
|
784051
784054
|
return "";
|
|
784052
784055
|
}
|
|
784053
784056
|
function formatTelegramProgressEvent(event) {
|
|
784057
|
+
if (event.visibility === "telemetry") return null;
|
|
784054
784058
|
if (event.type === "tool_call" && event.toolName === "task_complete")
|
|
784055
784059
|
return null;
|
|
784056
784060
|
if (event.type === "tool_result" && event.toolName === "task_complete")
|
|
@@ -784245,9 +784249,11 @@ function previewTelegramAdminArgs(args, maxLength = 220) {
|
|
|
784245
784249
|
return sanitizeTelegramProgressText(String(args), maxLength);
|
|
784246
784250
|
}
|
|
784247
784251
|
}
|
|
784248
|
-
function telegramAdminLivePanelIntakeText(
|
|
784249
|
-
|
|
784250
|
-
|
|
784252
|
+
function telegramAdminLivePanelIntakeText(modelAuthoredComprehension) {
|
|
784253
|
+
return sanitizeTelegramProgressText(
|
|
784254
|
+
stripTelegramHiddenThinking(modelAuthoredComprehension ?? "").replace(/\s+/g, " ").trim(),
|
|
784255
|
+
500
|
|
784256
|
+
);
|
|
784251
784257
|
}
|
|
784252
784258
|
function telegramAdminEventTurn(event) {
|
|
784253
784259
|
const turn = event.turn;
|
|
@@ -784311,7 +784317,7 @@ function createTelegramAdminLivePanelState(args) {
|
|
|
784311
784317
|
},
|
|
784312
784318
|
status: "running",
|
|
784313
784319
|
requestPreview,
|
|
784314
|
-
intakeText: telegramAdminLivePanelIntakeText(
|
|
784320
|
+
intakeText: telegramAdminLivePanelIntakeText(args.intakeComprehension),
|
|
784315
784321
|
responseText: "",
|
|
784316
784322
|
responseSegments: [],
|
|
784317
784323
|
responseSegmentSequence: 0,
|
|
@@ -784402,6 +784408,26 @@ function applyTelegramAdminLivePanelEvent(state5, event) {
|
|
|
784402
784408
|
}
|
|
784403
784409
|
return;
|
|
784404
784410
|
}
|
|
784411
|
+
if (event.type === "trajectory_checkpoint" && event.trajectory?.groundingSource === "model") {
|
|
784412
|
+
const assessment = sanitizeTelegramProgressText(
|
|
784413
|
+
event.trajectory.situationAssessment ?? "",
|
|
784414
|
+
360
|
|
784415
|
+
);
|
|
784416
|
+
const nextAction = sanitizeTelegramProgressText(
|
|
784417
|
+
event.trajectory.nextAction ?? "",
|
|
784418
|
+
220
|
|
784419
|
+
);
|
|
784420
|
+
const orientation = [
|
|
784421
|
+
assessment,
|
|
784422
|
+
nextAction ? `Next: ${nextAction}` : ""
|
|
784423
|
+
].filter(Boolean).join("\n");
|
|
784424
|
+
if (orientation) {
|
|
784425
|
+
state5.intakeText = orientation;
|
|
784426
|
+
state5.updatedAt = Date.now();
|
|
784427
|
+
if (state5.activePage !== "response") state5.dirtyPages.response = true;
|
|
784428
|
+
}
|
|
784429
|
+
return;
|
|
784430
|
+
}
|
|
784405
784431
|
if (event.type === "status" && event.content) {
|
|
784406
784432
|
const content = stripTelegramHiddenThinking(event.content).trim();
|
|
784407
784433
|
if (!content || isTelegramInternalStatusText(content)) return;
|
|
@@ -784418,19 +784444,23 @@ function applyTelegramAdminLivePanelEvent(state5, event) {
|
|
|
784418
784444
|
}
|
|
784419
784445
|
}
|
|
784420
784446
|
function renderTelegramAdminWorkingSummary(state5) {
|
|
784421
|
-
const
|
|
784447
|
+
const progressCandidates = [
|
|
784422
784448
|
state5.todoTransitionLines.at(-1),
|
|
784423
784449
|
state5.mutationLines.at(-1),
|
|
784424
|
-
state5.toolLines.at(-1)
|
|
784425
|
-
state5.logLines.at(-1)
|
|
784450
|
+
state5.toolLines.at(-1)
|
|
784426
784451
|
].filter((line) => Boolean(line?.trim())).map((line) => sanitizeTelegramProgressText(line, 180));
|
|
784427
|
-
const summaries = [...new Set(
|
|
784452
|
+
const summaries = [...new Set(progressCandidates)].slice(0, 3);
|
|
784453
|
+
const heading = summaries.length > 0 ? "Current step" : state5.intakeText ? "Understanding" : "Intake";
|
|
784454
|
+
if (summaries.length === 0 && state5.intakeText) {
|
|
784455
|
+
summaries.push(state5.intakeText);
|
|
784456
|
+
}
|
|
784428
784457
|
if (summaries.length === 0 && state5.requestPreview) {
|
|
784429
784458
|
summaries.push(`Accepted: ${state5.requestPreview}`);
|
|
784430
784459
|
}
|
|
784431
784460
|
if (summaries.length === 0) return "<i>Working…</i>";
|
|
784432
784461
|
return [
|
|
784433
784462
|
"<i>Working</i>",
|
|
784463
|
+
`<b>${heading}</b>`,
|
|
784434
784464
|
`<blockquote expandable>${escapeTelegramHTML(summaries.join("\n"))}</blockquote>`
|
|
784435
784465
|
].join("\n");
|
|
784436
784466
|
}
|
|
@@ -797135,7 +797165,8 @@ ${TELEGRAM_PUBLIC_ORCHESTRATOR_CONTRACT}`
|
|
|
797135
797165
|
const state5 = createTelegramAdminLivePanelState({
|
|
797136
797166
|
nonce: randomBytes30(8).toString("hex"),
|
|
797137
797167
|
chatId: msg.chatId,
|
|
797138
|
-
requestText: msg.text
|
|
797168
|
+
requestText: msg.text,
|
|
797169
|
+
intakeComprehension: subAgent.intakeComprehension
|
|
797139
797170
|
});
|
|
797140
797171
|
subAgent.adminLivePanelNonce = state5.nonce;
|
|
797141
797172
|
this.telegramAdminLivePanels.set(state5.nonce, state5);
|
|
@@ -797195,7 +797226,7 @@ ${TELEGRAM_PUBLIC_ORCHESTRATOR_CONTRACT}`
|
|
|
797195
797226
|
if (event.contextFrame || state5.contextPages.length === 0 && (subAgent.contextFrame || subAgent.promptSnapshot)) {
|
|
797196
797227
|
this.refreshTelegramAdminLivePanelContextPages(state5, subAgent, msg);
|
|
797197
797228
|
}
|
|
797198
|
-
if (state5.messageId === void 0 && !state5.responseText.trim() && !state5.todoSnapshot && state5.toolLines.length === 0 && state5.mutationLines.length === 0 && state5.logLines.length === 0) {
|
|
797229
|
+
if (state5.messageId === void 0 && !state5.responseText.trim() && !state5.intakeText.trim() && !state5.todoSnapshot && state5.toolLines.length === 0 && state5.mutationLines.length === 0 && state5.logLines.length === 0) {
|
|
797199
797230
|
return;
|
|
797200
797231
|
}
|
|
797201
797232
|
const now2 = Date.now();
|
|
@@ -798423,6 +798454,7 @@ Join: ${newUrl}`
|
|
|
798423
798454
|
runId: `telegram:${randomBytes30(8).toString("hex")}`,
|
|
798424
798455
|
taskEpoch: work.intakeRecords[work.intakeRecords.length - 1]?.taskEpoch ?? this.telegramTaskEpoch(sessionKey),
|
|
798425
798456
|
expectedOutcomeContract: decision2.expectedOutcomeContract,
|
|
798457
|
+
intakeComprehension: decision2.expectedOutcomeContract?.reason || decision2.reason,
|
|
798426
798458
|
creativeWorkspaceRoot: this.creativeWorkspaceRootForMessage(
|
|
798427
798459
|
msg,
|
|
798428
798460
|
toolContext
|
|
@@ -798814,6 +798846,7 @@ ${errMsg}`,
|
|
|
798814
798846
|
runId: `telegram:${randomBytes30(8).toString("hex")}`,
|
|
798815
798847
|
taskEpoch: this.telegramTaskEpoch(sessionKey),
|
|
798816
798848
|
expectedOutcomeContract,
|
|
798849
|
+
intakeComprehension: expectedOutcomeContract?.reason,
|
|
798817
798850
|
creativeWorkspaceRoot: this.creativeWorkspaceRootForMessage(
|
|
798818
798851
|
msg,
|
|
798819
798852
|
toolContext
|
|
@@ -799608,6 +799641,11 @@ ${creativeWorkspace}` : ""
|
|
|
799608
799641
|
];
|
|
799609
799642
|
if (state5.activePage !== "response")
|
|
799610
799643
|
state5.dirtyPages.response = true;
|
|
799644
|
+
this.updateTelegramAdminLivePanelFromRunEvent(
|
|
799645
|
+
subAgent,
|
|
799646
|
+
msg,
|
|
799647
|
+
event
|
|
799648
|
+
);
|
|
799611
799649
|
}
|
|
799612
799650
|
}
|
|
799613
799651
|
if (event.type === "run_finished") {
|
|
@@ -799876,6 +799914,16 @@ ${additionalContext}`;
|
|
|
799876
799914
|
mediaContext,
|
|
799877
799915
|
additionalContext
|
|
799878
799916
|
};
|
|
799917
|
+
if (isAdminDM) {
|
|
799918
|
+
const state5 = this.ensureTelegramAdminLivePanel(subAgent, msg);
|
|
799919
|
+
this.refreshTelegramAdminLivePanelContextPages(state5, subAgent, msg);
|
|
799920
|
+
try {
|
|
799921
|
+
await this.renderTelegramAdminLivePanel(state5);
|
|
799922
|
+
subAgent.liveMessageId = state5.messageId ?? null;
|
|
799923
|
+
subAgent.lastEditMs = Date.now();
|
|
799924
|
+
} catch {
|
|
799925
|
+
}
|
|
799926
|
+
}
|
|
799879
799927
|
const result = await runWithOmniusContext(
|
|
799880
799928
|
{
|
|
799881
799929
|
runId: subAgent.viewId,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.674",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.674",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED