@axiom-lattice/gateway 4.4.0 → 4.4.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/{a2a-standard-P7JDL6ZA.mjs → a2a-standard-RWR5JTMH.mjs} +2 -2
- package/dist/a2a-standard-RWR5JTMH.mjs.map +1 -0
- package/dist/embed/{embed-page-AgentDetailSideApp-PSRQVFNR.js → embed-page-AgentDetailSideApp-2BDEWFQ6.js} +1 -1
- package/dist/embed/embed-page-AgentGovernanceWorkbench-WG7E3G5T.js +5 -0
- package/dist/embed/{embed-page-MessageGraph-PDNQ67T4.js → embed-page-MessageGraph-5SWPEQ4V.js} +1 -1
- package/dist/embed/{embed-page-ReactChart-25KAFLQ3.js → embed-page-ReactChart-ZYWRXIMC.js} +1 -1
- package/dist/embed/{embed-page-TasksSideApp-DLH5LRMS.js → embed-page-TasksSideApp-X6255GEF.js} +1 -1
- package/dist/embed/{embed-page-TeamWorkspace-2WJJWF25.js → embed-page-TeamWorkspace-XNZM7AV7.js} +1 -1
- package/dist/embed/{embed-page-TopologyRuntimeView-WDQRHDMO.js → embed-page-TopologyRuntimeView-DGSHSTIU.js} +1 -1
- package/dist/embed/{embed-page-WorkflowAutomationView-BAMJ2WVB.js → embed-page-WorkflowAutomationView-BHIRIWV3.js} +1 -1
- package/dist/embed/embed-page-chunk-DEDTYRZE.js +245 -0
- package/dist/embed/{embed-page-chunk-XVUA7UHE.js → embed-page-chunk-HEO7X7LH.js} +1 -1
- package/dist/embed/{embed-page-chunk-TL2AYM76.js → embed-page-chunk-JMZ7OODN.js} +1 -1
- package/dist/embed/{embed-page-chunk-OBM5EUWZ.js → embed-page-chunk-SPC4BYNU.js} +192 -192
- package/dist/embed/{embed-page-chunk-LOXLXZNP.js → embed-page-chunk-XUXEGF3S.js} +1 -1
- package/dist/embed/{embed-page-chunk-MQDYZS3S.js → embed-page-chunk-YCX5YZRP.js} +1 -1
- package/dist/embed/embed-page.js +1 -1
- package/dist/index.js +9 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/dist/a2a-standard-P7JDL6ZA.mjs.map +0 -1
- package/dist/embed/embed-page-AgentGovernanceWorkbench-UPQHJZD7.js +0 -5
- package/dist/embed/embed-page-chunk-SSC7ANWV.js +0 -245
package/dist/index.mjs
CHANGED
|
@@ -12497,6 +12497,8 @@ function createTaskController(deps) {
|
|
|
12497
12497
|
ownerType = "agent";
|
|
12498
12498
|
ownerId = body.ownerId ?? "";
|
|
12499
12499
|
}
|
|
12500
|
+
const requestedSource = body.context?.source;
|
|
12501
|
+
const source = typeof requestedSource === "string" && requestedSource.length > 0 && requestedSource !== "project_room" && requestedSource !== "project_task" ? requestedSource : "project_room";
|
|
12500
12502
|
const created = await deps.tasks.create({
|
|
12501
12503
|
...body,
|
|
12502
12504
|
tenantId,
|
|
@@ -12508,7 +12510,7 @@ function createTaskController(deps) {
|
|
|
12508
12510
|
result: void 0,
|
|
12509
12511
|
failureReason: void 0,
|
|
12510
12512
|
requireReview: false,
|
|
12511
|
-
context: { ...body.context ?? {}, source
|
|
12513
|
+
context: { ...body.context ?? {}, source }
|
|
12512
12514
|
});
|
|
12513
12515
|
return reply.code(201).send({ success: true, data: created });
|
|
12514
12516
|
});
|
|
@@ -17634,7 +17636,6 @@ import {
|
|
|
17634
17636
|
} from "@axiom-lattice/protocols";
|
|
17635
17637
|
var SYSTEM_ACTOR2 = "system";
|
|
17636
17638
|
var TERMINAL_ACTIONS = ["completed", "failed", "interrupted", "cancelled"];
|
|
17637
|
-
var MAX_LEARNING_ROUND_ANCESTORS = 8;
|
|
17638
17639
|
var ProjectTaskObserver = class {
|
|
17639
17640
|
/** @param deps Durable stores and Project Task runtime services. @param options Positive bounded scan limits. */
|
|
17640
17641
|
constructor(deps, options) {
|
|
@@ -17816,7 +17817,6 @@ var ProjectTaskObserver = class {
|
|
|
17816
17817
|
signal ?? (signal = this.deps.signal);
|
|
17817
17818
|
if (signal?.aborted || this.disposed) return;
|
|
17818
17819
|
if (!isProjectLifecycleTask(task) || task.ownerType !== "agent") return;
|
|
17819
|
-
if (await this.belongsToLearningRound(task)) return;
|
|
17820
17820
|
if (task.status === "pending") {
|
|
17821
17821
|
if (signal?.aborted || this.disposed) return;
|
|
17822
17822
|
const dependencies = await this.dependencyState(task);
|
|
@@ -17860,7 +17860,6 @@ var ProjectTaskObserver = class {
|
|
|
17860
17860
|
const createdBy = readCreatedBy(task.context?.created_by);
|
|
17861
17861
|
if (!createdBy || task.ownerType !== "agent" || createdBy.assistantId === task.ownerId) return;
|
|
17862
17862
|
try {
|
|
17863
|
-
if (await this.belongsToLearningRound(task)) return;
|
|
17864
17863
|
const room = await this.exactMainRoom(task);
|
|
17865
17864
|
const from = await this.deps.bots.findById(task.tenantId, createdBy.membershipId) ?? await this.deps.bots.findByAssistant(task.tenantId, task.projectId, createdBy.assistantId);
|
|
17866
17865
|
const to = await this.deps.bots.findByAssistant(task.tenantId, task.projectId, task.ownerId);
|
|
@@ -17877,22 +17876,6 @@ var ProjectTaskObserver = class {
|
|
|
17877
17876
|
await this.safeWarning(task, "delegation", error);
|
|
17878
17877
|
}
|
|
17879
17878
|
}
|
|
17880
|
-
// SCOPE-COMPAT: learning rounds (metadata.trainingRound) and their subtrees execute in the
|
|
17881
|
-
// architect's builder thread (canvas CopilotPanel), not the Project Room runtime. Exempting
|
|
17882
|
-
// them here keeps admission hints, startup reconciliation, and dependent re-evaluation from
|
|
17883
|
-
// claiming these tasks — no roster warnings, no restart noise, and no double execution if
|
|
17884
|
-
// the architect later joins the room roster.
|
|
17885
|
-
async belongsToLearningRound(task) {
|
|
17886
|
-
let current = task;
|
|
17887
|
-
for (let depth = 0; current && depth < MAX_LEARNING_ROUND_ANCESTORS; depth += 1) {
|
|
17888
|
-
if (current.metadata?.trainingRound === true) return true;
|
|
17889
|
-
if (!current.parentId) return false;
|
|
17890
|
-
const parent = snapshotTaskItem(await this.deps.tasks.getById(current.tenantId, current.parentId));
|
|
17891
|
-
if (!parent || parent.id !== current.parentId || parent.tenantId !== current.tenantId) return false;
|
|
17892
|
-
current = parent;
|
|
17893
|
-
}
|
|
17894
|
-
return false;
|
|
17895
|
-
}
|
|
17896
17879
|
/** Collects every bounded dependent ID before re-reading or scheduling any dependent. */
|
|
17897
17880
|
async reevaluateDependents(task) {
|
|
17898
17881
|
const { ids } = await this.collectDependentIds(task);
|
|
@@ -17991,7 +17974,6 @@ var ProjectTaskObserver = class {
|
|
|
17991
17974
|
}
|
|
17992
17975
|
async wakeParent(child) {
|
|
17993
17976
|
if (!child.parentId) return;
|
|
17994
|
-
if (await this.belongsToLearningRound(child)) return;
|
|
17995
17977
|
const parent = snapshotTaskItem(await this.deps.tasks.getById(child.tenantId, child.parentId));
|
|
17996
17978
|
if (!parent || parent.id !== child.parentId || child.parentId !== parent.id || parent.ownerType !== "agent" || parent.workspaceId !== child.workspaceId || parent.projectId !== child.projectId || parent.status !== "interrupted" || !parent.dependencies?.includes(child.id)) return;
|
|
17997
17979
|
const interruption = parseExternalDependency2(parent.context?.interruption);
|
|
@@ -23547,9 +23529,13 @@ var MessageRouter = class {
|
|
|
23547
23529
|
});
|
|
23548
23530
|
}
|
|
23549
23531
|
}
|
|
23532
|
+
const metadata = message.content.metadata;
|
|
23550
23533
|
const queueMessage = {
|
|
23551
23534
|
input: { id: inputMessageId, message: message.content.text },
|
|
23552
|
-
custom_run_config:
|
|
23535
|
+
custom_run_config: {
|
|
23536
|
+
...metadata && typeof metadata === "object" && !Array.isArray(metadata) ? metadata : {},
|
|
23537
|
+
channelRun: true
|
|
23538
|
+
},
|
|
23553
23539
|
...resumeCommand ? { command: resumeCommand } : {}
|
|
23554
23540
|
};
|
|
23555
23541
|
let cleanupReplySubscription;
|
|
@@ -24052,7 +24038,7 @@ var start = async (config) => {
|
|
|
24052
24038
|
});
|
|
24053
24039
|
try {
|
|
24054
24040
|
const { A2AAuthService, parseEnvKeys } = await import("./A2AAuthService-7UGQ7GMW.mjs");
|
|
24055
|
-
const { registerA2AStandardRoutes } = await import("./a2a-standard-
|
|
24041
|
+
const { registerA2AStandardRoutes } = await import("./a2a-standard-RWR5JTMH.mjs");
|
|
24056
24042
|
const a2a = await import("./a2a-FGYX2HH3.mjs");
|
|
24057
24043
|
const a2aKeyStore = getStoreLattice28("default", "a2aApiKey").store;
|
|
24058
24044
|
const assistantStore = getStoreLattice28("default", "assistant").store;
|