@jungjaehoon/mama-os 0.27.5 → 0.28.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/CHANGELOG.md +8 -0
- package/dist/agent/agent-loop.d.ts.map +1 -1
- package/dist/agent/agent-loop.js +7 -7
- package/dist/agent/agent-loop.js.map +1 -1
- package/dist/agent/code-act/host-bridge.d.ts.map +1 -1
- package/dist/agent/code-act/host-bridge.js +7 -0
- package/dist/agent/code-act/host-bridge.js.map +1 -1
- package/dist/agent/gateway-tool-executor.d.ts.map +1 -1
- package/dist/agent/gateway-tool-executor.js +24 -10
- package/dist/agent/gateway-tool-executor.js.map +1 -1
- package/dist/agent/gateway-tools.md +1 -0
- package/dist/agent/tool-registry.d.ts.map +1 -1
- package/dist/agent/tool-registry.js +6 -0
- package/dist/agent/tool-registry.js.map +1 -1
- package/dist/agent/types.d.ts +1 -9
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.js +11 -44
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/config/types.d.ts.map +1 -1
- package/dist/cli/config/types.js +1 -0
- package/dist/cli/config/types.js.map +1 -1
- package/dist/cli/runtime/agent-loop-init.d.ts.map +1 -1
- package/dist/cli/runtime/agent-loop-init.js +13 -9
- package/dist/cli/runtime/agent-loop-init.js.map +1 -1
- package/dist/cli/runtime/api-routes-init.d.ts.map +1 -1
- package/dist/cli/runtime/api-routes-init.js +56 -409
- package/dist/cli/runtime/api-routes-init.js.map +1 -1
- package/dist/cli/runtime/temporal-init.d.ts +0 -2
- package/dist/cli/runtime/temporal-init.d.ts.map +1 -1
- package/dist/cli/runtime/temporal-init.js +1 -18
- package/dist/cli/runtime/temporal-init.js.map +1 -1
- package/dist/gateways/message-router.d.ts.map +1 -1
- package/dist/gateways/message-router.js +14 -1
- package/dist/gateways/message-router.js.map +1 -1
- package/dist/operator/console-brief.d.ts +14 -0
- package/dist/operator/console-brief.d.ts.map +1 -0
- package/dist/operator/console-brief.js +111 -0
- package/dist/operator/console-brief.js.map +1 -0
- package/dist/operator/task-ledger.d.ts +1 -1
- package/dist/operator/task-ledger.js +1 -1
- package/dist/operator/temporal-runtime.d.ts +1 -4
- package/dist/operator/temporal-runtime.d.ts.map +1 -1
- package/dist/operator/temporal-runtime.js +8 -16
- package/dist/operator/temporal-runtime.js.map +1 -1
- package/dist/operator/worker-run.d.ts +2 -3
- package/dist/operator/worker-run.d.ts.map +1 -1
- package/dist/operator/worker-run.js +1 -2
- package/dist/operator/worker-run.js.map +1 -1
- package/dist/operator/workorder-consumer.d.ts +5 -7
- package/dist/operator/workorder-consumer.d.ts.map +1 -1
- package/dist/operator/workorder-consumer.js +3 -4
- package/dist/operator/workorder-consumer.js.map +1 -1
- package/dist/operator/workorder-publishers.d.ts +12 -31
- package/dist/operator/workorder-publishers.d.ts.map +1 -1
- package/dist/operator/workorder-publishers.js +19 -48
- package/dist/operator/workorder-publishers.js.map +1 -1
- package/package.json +1 -1
- package/dist/operator/shadow-capture.d.ts +0 -20
- package/dist/operator/shadow-capture.d.ts.map +0 -1
- package/dist/operator/shadow-capture.js +0 -34
- package/dist/operator/shadow-capture.js.map +0 -1
|
@@ -513,7 +513,6 @@ class GatewayToolExecutor {
|
|
|
513
513
|
parentToolName: executionContext?.parentToolName,
|
|
514
514
|
backgroundTasks: executionContext?.backgroundTasks,
|
|
515
515
|
disallowedGatewayTools: executionContext?.disallowedGatewayTools,
|
|
516
|
-
reportPublisherOverride: executionContext?.reportPublisherOverride,
|
|
517
516
|
};
|
|
518
517
|
}
|
|
519
518
|
getExecutionState() {
|
|
@@ -552,9 +551,6 @@ class GatewayToolExecutor {
|
|
|
552
551
|
backgroundTasks: active.backgroundTasks ?? fallback.backgroundTasks,
|
|
553
552
|
// Never merged from fallback - blocks are strictly per-call.
|
|
554
553
|
disallowedGatewayTools: active.disallowedGatewayTools,
|
|
555
|
-
// Never merged from fallback - a lingering global capture override
|
|
556
|
-
// would swallow LIVE publishes (Stage-2 shadow seam).
|
|
557
|
-
reportPublisherOverride: active.reportPublisherOverride,
|
|
558
554
|
};
|
|
559
555
|
}
|
|
560
556
|
getActiveContext() {
|
|
@@ -2108,11 +2104,8 @@ class GatewayToolExecutor {
|
|
|
2108
2104
|
throw new types_js_1.AgentError('Temporal report_publish accepts exactly the host-derived pipeline slot', 'TOOL_ERROR', undefined, false);
|
|
2109
2105
|
}
|
|
2110
2106
|
}
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
const activePublisher = this.getExecutionState().reportPublisherOverride ?? this.reportPublisher;
|
|
2114
|
-
if (activePublisher) {
|
|
2115
|
-
activePublisher(slotsInput);
|
|
2107
|
+
if (this.reportPublisher) {
|
|
2108
|
+
this.reportPublisher(slotsInput);
|
|
2116
2109
|
const slotNames = Object.keys(slotsInput);
|
|
2117
2110
|
return {
|
|
2118
2111
|
success: true,
|
|
@@ -2167,7 +2160,7 @@ class GatewayToolExecutor {
|
|
|
2167
2160
|
return {
|
|
2168
2161
|
success: false,
|
|
2169
2162
|
code: 'workorder_machinery_disabled',
|
|
2170
|
-
error: '
|
|
2163
|
+
error: 'The workorder request handler is not wired on this deployment (boot-order fault).',
|
|
2171
2164
|
};
|
|
2172
2165
|
}
|
|
2173
2166
|
const enqueued = this.workOrderRequestHandler(requestedKind);
|
|
@@ -2193,6 +2186,27 @@ class GatewayToolExecutor {
|
|
|
2193
2186
|
}
|
|
2194
2187
|
return { success: true, data: { kinds: this.taskLedger.workOrderStats() } };
|
|
2195
2188
|
}
|
|
2189
|
+
case 'console_brief_update': {
|
|
2190
|
+
const { updateConsoleBrief } = await import('../operator/console-brief.js');
|
|
2191
|
+
const briefContent = input.content;
|
|
2192
|
+
if (typeof briefContent !== 'string') {
|
|
2193
|
+
return { success: false, error: 'console_brief_update requires string content' };
|
|
2194
|
+
}
|
|
2195
|
+
try {
|
|
2196
|
+
updateConsoleBrief(briefContent);
|
|
2197
|
+
}
|
|
2198
|
+
catch (err) {
|
|
2199
|
+
return { success: false, error: err instanceof Error ? err.message : String(err) };
|
|
2200
|
+
}
|
|
2201
|
+
// Observability over restriction: the agent editing its own operating
|
|
2202
|
+
// brief is logged loudly, never silently absorbed. The next NEW/re-anchored
|
|
2203
|
+
// owner session picks it up via the policy fingerprint.
|
|
2204
|
+
console.log(`[console-brief] agent updated its own operating brief (${briefContent.length} chars)`);
|
|
2205
|
+
return {
|
|
2206
|
+
success: true,
|
|
2207
|
+
message: 'Operating brief updated; it applies from the next session re-anchor.',
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
2196
2210
|
case 'board_read': {
|
|
2197
2211
|
if (!this.reportReader) {
|
|
2198
2212
|
return {
|