@axiom-lattice/react-sdk 4.3.0 → 4.4.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/dist/{AgentDetailSideApp-TI7723CK.mjs → AgentDetailSideApp-RW6B3BGT.mjs} +7 -7
- package/dist/AgentGovernanceWorkbench-OXGHJNFL.mjs +19 -0
- package/dist/{MessageGraph-ES3P4VLY.mjs → MessageGraph-BVP2M3TM.mjs} +3 -3
- package/dist/{ReactChart-6AYFMCMD.mjs → ReactChart-3XHMWXL6.mjs} +3 -3
- package/dist/{TasksSideApp-7R42CIFG.mjs → TasksSideApp-MLG7XUQA.mjs} +4 -4
- package/dist/{TeamWorkspace-JQ762PEX.mjs → TeamWorkspace-IENL2T4X.mjs} +3 -3
- package/dist/{TopologyRuntimeView-OJ35YYVM.mjs → TopologyRuntimeView-B5TVUTAB.mjs} +4 -4
- package/dist/{WorkflowAutomationView-3AS77NKN.mjs → WorkflowAutomationView-ZKTUYMPU.mjs} +6 -6
- package/dist/{chunk-4FI66ZJ3.mjs → chunk-2NCNDHTI.mjs} +2 -2
- package/dist/{chunk-ENLK3ODS.mjs → chunk-3JNBTKKB.mjs} +2 -2
- package/dist/{chunk-2ZK7AUQW.mjs → chunk-ADZRYRP6.mjs} +9 -5
- package/dist/chunk-ADZRYRP6.mjs.map +1 -0
- package/dist/{chunk-4SVLWYLW.mjs → chunk-AJLGOGUB.mjs} +2 -2
- package/dist/{chunk-NSGSGYM7.mjs → chunk-HLVE2SB7.mjs} +48 -1
- package/dist/chunk-HLVE2SB7.mjs.map +1 -0
- package/dist/{chunk-YUV4WO25.mjs → chunk-N5VEHSQU.mjs} +160 -69
- package/dist/chunk-N5VEHSQU.mjs.map +1 -0
- package/dist/{chunk-3NR7UAPT.mjs → chunk-ORTSDZD4.mjs} +26 -44
- package/dist/chunk-ORTSDZD4.mjs.map +1 -0
- package/dist/{chunk-DBTFQUSQ.mjs → chunk-XE2ZIE2L.mjs} +4 -4
- package/dist/{embed-page-AgentDetailSideApp-PSRQVFNR.js → embed-page-AgentDetailSideApp-2BDEWFQ6.js} +1 -1
- package/dist/embed-page-AgentGovernanceWorkbench-WG7E3G5T.js +5 -0
- package/dist/{embed-page-MessageGraph-PDNQ67T4.js → embed-page-MessageGraph-5SWPEQ4V.js} +1 -1
- package/dist/{embed-page-ReactChart-25KAFLQ3.js → embed-page-ReactChart-ZYWRXIMC.js} +1 -1
- package/dist/{embed-page-TasksSideApp-DLH5LRMS.js → embed-page-TasksSideApp-X6255GEF.js} +1 -1
- package/dist/{embed-page-TeamWorkspace-2WJJWF25.js → embed-page-TeamWorkspace-XNZM7AV7.js} +1 -1
- package/dist/{embed-page-TopologyRuntimeView-WDQRHDMO.js → embed-page-TopologyRuntimeView-DGSHSTIU.js} +1 -1
- package/dist/{embed-page-WorkflowAutomationView-BAMJ2WVB.js → embed-page-WorkflowAutomationView-BHIRIWV3.js} +1 -1
- package/dist/embed-page-chunk-DEDTYRZE.js +245 -0
- package/dist/{embed-page-chunk-XVUA7UHE.js → embed-page-chunk-HEO7X7LH.js} +1 -1
- package/dist/{embed-page-chunk-TL2AYM76.js → embed-page-chunk-JMZ7OODN.js} +1 -1
- package/dist/{embed-page-chunk-OBM5EUWZ.js → embed-page-chunk-SPC4BYNU.js} +192 -192
- package/dist/{embed-page-chunk-LOXLXZNP.js → embed-page-chunk-XUXEGF3S.js} +1 -1
- package/dist/{embed-page-chunk-MQDYZS3S.js → embed-page-chunk-YCX5YZRP.js} +1 -1
- package/dist/embed-page.js +1 -1
- package/dist/index.d.mts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +2029 -1890
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -8
- package/dist/index.mjs.map +1 -1
- package/dist/web-app.js +48 -3
- package/dist/web-app.js.map +1 -1
- package/dist/web-app.mjs +5 -4
- package/dist/web-app.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/AgentGovernanceWorkbench-2MPAB6UF.mjs +0 -19
- package/dist/chunk-2ZK7AUQW.mjs.map +0 -1
- package/dist/chunk-3NR7UAPT.mjs.map +0 -1
- package/dist/chunk-NSGSGYM7.mjs.map +0 -1
- package/dist/chunk-YUV4WO25.mjs.map +0 -1
- package/dist/embed-page-AgentGovernanceWorkbench-UPQHJZD7.js +0 -5
- package/dist/embed-page-chunk-SSC7ANWV.js +0 -245
- /package/dist/{AgentDetailSideApp-TI7723CK.mjs.map → AgentDetailSideApp-RW6B3BGT.mjs.map} +0 -0
- /package/dist/{AgentGovernanceWorkbench-2MPAB6UF.mjs.map → AgentGovernanceWorkbench-OXGHJNFL.mjs.map} +0 -0
- /package/dist/{MessageGraph-ES3P4VLY.mjs.map → MessageGraph-BVP2M3TM.mjs.map} +0 -0
- /package/dist/{ReactChart-6AYFMCMD.mjs.map → ReactChart-3XHMWXL6.mjs.map} +0 -0
- /package/dist/{TasksSideApp-7R42CIFG.mjs.map → TasksSideApp-MLG7XUQA.mjs.map} +0 -0
- /package/dist/{TeamWorkspace-JQ762PEX.mjs.map → TeamWorkspace-IENL2T4X.mjs.map} +0 -0
- /package/dist/{TopologyRuntimeView-OJ35YYVM.mjs.map → TopologyRuntimeView-B5TVUTAB.mjs.map} +0 -0
- /package/dist/{WorkflowAutomationView-3AS77NKN.mjs.map → WorkflowAutomationView-ZKTUYMPU.mjs.map} +0 -0
- /package/dist/{chunk-4FI66ZJ3.mjs.map → chunk-2NCNDHTI.mjs.map} +0 -0
- /package/dist/{chunk-ENLK3ODS.mjs.map → chunk-3JNBTKKB.mjs.map} +0 -0
- /package/dist/{chunk-4SVLWYLW.mjs.map → chunk-AJLGOGUB.mjs.map} +0 -0
- /package/dist/{chunk-DBTFQUSQ.mjs.map → chunk-XE2ZIE2L.mjs.map} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotPanel,
|
|
3
3
|
TrainingContextCard
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2NCNDHTI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
WorkflowCanvas_default,
|
|
7
7
|
expandWorkflow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3JNBTKKB.mjs";
|
|
9
9
|
import {
|
|
10
10
|
AgentWebAppRuntimeClient,
|
|
11
11
|
AgentWebAppRuntimeClientError
|
|
12
12
|
} from "./chunk-7QQKL657.mjs";
|
|
13
13
|
import {
|
|
14
14
|
TaskOutlineList
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AJLGOGUB.mjs";
|
|
16
16
|
import {
|
|
17
17
|
WorkflowGraphBase,
|
|
18
18
|
applyDagreLayout
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
useOpenTaskChat,
|
|
52
52
|
useWorkbenchNavStyles,
|
|
53
53
|
useWorkspaceContext
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-N5VEHSQU.mjs";
|
|
55
55
|
import {
|
|
56
56
|
Background,
|
|
57
57
|
Controls,
|
|
@@ -1284,13 +1284,13 @@ function toAttachmentItems(files) {
|
|
|
1284
1284
|
return files.map((f) => ({ id: f.uri, name: f.name || f.uri }));
|
|
1285
1285
|
}
|
|
1286
1286
|
function buildTrainingRoundsQuery(agentId, projectId) {
|
|
1287
|
-
const q = `
|
|
1287
|
+
const q = `metadata=${encodeURIComponent(
|
|
1288
1288
|
JSON.stringify({ trainingRound: "true", targetAgentId: agentId })
|
|
1289
1289
|
)}`;
|
|
1290
1290
|
return `/api/tasks?${q}${projectId ? `&projectId=${projectId}` : ""}`;
|
|
1291
1291
|
}
|
|
1292
1292
|
function buildSubTasksQuery(roundTaskId, projectId) {
|
|
1293
|
-
const q = `
|
|
1293
|
+
const q = `parentId=${roundTaskId}`;
|
|
1294
1294
|
return `/api/tasks?${q}${projectId ? `&projectId=${projectId}` : ""}`;
|
|
1295
1295
|
}
|
|
1296
1296
|
function buildBuilderThreadId(tenantId, agentId) {
|
|
@@ -1305,6 +1305,9 @@ async function startLearningRound(params) {
|
|
|
1305
1305
|
ownerId: "agent-architect",
|
|
1306
1306
|
workspaceId: params.workspaceId ?? void 0,
|
|
1307
1307
|
projectId: params.projectId ?? void 0,
|
|
1308
|
+
// Explicit non-governed origin: the round is project-scoped (for queries)
|
|
1309
|
+
// but executed by the architect's builder run, NOT the Project Room runtime.
|
|
1310
|
+
context: { source: "learning" },
|
|
1308
1311
|
metadata: {
|
|
1309
1312
|
trainingRound: true,
|
|
1310
1313
|
targetAgentId: params.targetAgentId
|
|
@@ -1348,13 +1351,14 @@ function getLearningTargetMode(assistant) {
|
|
|
1348
1351
|
return graph.type === "workflow" ? "existing-workflow" : "existing-agent";
|
|
1349
1352
|
}
|
|
1350
1353
|
function buildLearningKickoff(input) {
|
|
1351
|
-
const
|
|
1354
|
+
const targetForm = input.targetMode === "placeholder" ? "Target form: learning placeholder (architecture undecided)." : input.targetMode === "existing-workflow" ? "Target form: existing Workflow." : "Target form: existing Capability or Orchestra.";
|
|
1352
1355
|
return [
|
|
1353
1356
|
`Learning goal (draft \u2014 confirm with the user before any observation or design): ${input.goal}`,
|
|
1354
1357
|
`Exact target ID: "${input.targetAgentId}".`,
|
|
1355
1358
|
`Exact round Task ID: "${input.roundTaskId}".`,
|
|
1356
|
-
|
|
1357
|
-
|
|
1359
|
+
`That exact Task is your bound tracking task: your main task and Belief root for this round.`,
|
|
1360
|
+
`Reconcile it; create every child under it; never create a new main or round task.`,
|
|
1361
|
+
targetForm,
|
|
1358
1362
|
...input.files?.length ? [`Reference files: ${input.files.map((file) => `${file.name || file.uri} (${file.uri})`).join(", ")}. Read them before designing; in your first reply state which files you actually read and what you took from each.`] : []
|
|
1359
1363
|
].join("\n");
|
|
1360
1364
|
}
|
|
@@ -2048,25 +2052,18 @@ var LearningTaskDetailBody = ({
|
|
|
2048
2052
|
if (!displayedTask?.id) return;
|
|
2049
2053
|
const taskId = displayedTask.id;
|
|
2050
2054
|
let cancelled = false;
|
|
2051
|
-
|
|
2052
|
-
const poll = async () => {
|
|
2055
|
+
const load = async () => {
|
|
2053
2056
|
if (document.hidden) return;
|
|
2054
2057
|
await loadWorkItems(taskId, false);
|
|
2055
|
-
if (!cancelled && mountedRef.current && selectedTaskIdRef.current === taskId && !document.hidden) {
|
|
2056
|
-
pollId = window.setTimeout(() => void poll(), 5e3);
|
|
2057
|
-
}
|
|
2058
2058
|
};
|
|
2059
2059
|
const onVisibilityChange = () => {
|
|
2060
2060
|
if (cancelled || !mountedRef.current || document.hidden) return;
|
|
2061
|
-
|
|
2062
|
-
pollId = void 0;
|
|
2063
|
-
void poll();
|
|
2061
|
+
void load();
|
|
2064
2062
|
};
|
|
2065
2063
|
document.addEventListener("visibilitychange", onVisibilityChange);
|
|
2066
|
-
void
|
|
2064
|
+
void load();
|
|
2067
2065
|
return () => {
|
|
2068
2066
|
cancelled = true;
|
|
2069
|
-
if (pollId !== void 0) window.clearTimeout(pollId);
|
|
2070
2067
|
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
2071
2068
|
};
|
|
2072
2069
|
}, [displayedTask?.id]);
|
|
@@ -2329,7 +2326,6 @@ var LearningProgressCard = ({
|
|
|
2329
2326
|
}
|
|
2330
2327
|
setLiveItem(null);
|
|
2331
2328
|
let cancelled = false;
|
|
2332
|
-
let pollId;
|
|
2333
2329
|
const refreshLiveItem = () => {
|
|
2334
2330
|
if (document.hidden) return Promise.resolve();
|
|
2335
2331
|
const start = liveTargetCursorRef.current % liveTargetIds.length;
|
|
@@ -2342,23 +2338,16 @@ var LearningProgressCard = ({
|
|
|
2342
2338
|
const meaningful = itemGroups.flat().filter((i) => !/^Status changed to\b/i.test(i.summary ?? ""));
|
|
2343
2339
|
const sorted = [...meaningful].sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
|
2344
2340
|
setLiveItem(sorted[0] ?? null);
|
|
2345
|
-
}).finally(() => {
|
|
2346
|
-
if (!cancelled && mountedRef.current && !document.hidden) {
|
|
2347
|
-
pollId = window.setTimeout(() => void refreshLiveItem(), 5e3);
|
|
2348
|
-
}
|
|
2349
2341
|
});
|
|
2350
2342
|
};
|
|
2351
2343
|
const onVisibilityChange = () => {
|
|
2352
2344
|
if (cancelled || !mountedRef.current || document.hidden) return;
|
|
2353
|
-
if (pollId !== void 0) window.clearTimeout(pollId);
|
|
2354
|
-
pollId = void 0;
|
|
2355
2345
|
void refreshLiveItem();
|
|
2356
2346
|
};
|
|
2357
2347
|
document.addEventListener("visibilitychange", onVisibilityChange);
|
|
2358
2348
|
void refreshLiveItem();
|
|
2359
2349
|
return () => {
|
|
2360
2350
|
cancelled = true;
|
|
2361
|
-
if (pollId !== void 0) window.clearTimeout(pollId);
|
|
2362
2351
|
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
2363
2352
|
};
|
|
2364
2353
|
}, [liveTargetKey]);
|
|
@@ -8095,7 +8084,6 @@ function mapToolToEntityGroups(toolName) {
|
|
|
8095
8084
|
|
|
8096
8085
|
// src/components/Governance/useEntityRefresher.ts
|
|
8097
8086
|
var REFRESH_DEBOUNCE_MS = 300;
|
|
8098
|
-
var LEARNING_POLL_MS = 3e5;
|
|
8099
8087
|
var emptyLearningTasks = () => ({
|
|
8100
8088
|
rounds: [],
|
|
8101
8089
|
round: null,
|
|
@@ -8277,19 +8265,7 @@ function useEntityRefresher(params) {
|
|
|
8277
8265
|
[schedule]
|
|
8278
8266
|
);
|
|
8279
8267
|
useEffect23(() => {
|
|
8280
|
-
|
|
8281
|
-
let timer;
|
|
8282
|
-
const poll = async () => {
|
|
8283
|
-
await refreshLearningTasks();
|
|
8284
|
-
if (!cancelled) timer = setTimeout(() => {
|
|
8285
|
-
void poll();
|
|
8286
|
-
}, LEARNING_POLL_MS);
|
|
8287
|
-
};
|
|
8288
|
-
void poll();
|
|
8289
|
-
return () => {
|
|
8290
|
-
cancelled = true;
|
|
8291
|
-
if (timer) clearTimeout(timer);
|
|
8292
|
-
};
|
|
8268
|
+
void refreshLearningTasks();
|
|
8293
8269
|
}, [refreshLearningTasks]);
|
|
8294
8270
|
useEffect23(
|
|
8295
8271
|
() => () => {
|
|
@@ -8338,6 +8314,7 @@ var AgentDetailView = ({
|
|
|
8338
8314
|
onAssistantUpdated,
|
|
8339
8315
|
onAgentListInvalidated,
|
|
8340
8316
|
initialMessage = null,
|
|
8317
|
+
initialMessageCustomRunConfig = null,
|
|
8341
8318
|
initialProjectId = null
|
|
8342
8319
|
}) => {
|
|
8343
8320
|
const [dockView, setDockView] = useState25(() => initialDockView(initialTab));
|
|
@@ -8356,7 +8333,11 @@ var AgentDetailView = ({
|
|
|
8356
8333
|
const architectRestoreFocusRef = useRef17(null);
|
|
8357
8334
|
const configurationDockFocusRef = useRef17(null);
|
|
8358
8335
|
const [initialMessageRequest, setInitialMessageRequest] = useState25(
|
|
8359
|
-
() => initialMessage ? {
|
|
8336
|
+
() => initialMessage ? {
|
|
8337
|
+
requestId: `initial:${assistant.id}`,
|
|
8338
|
+
content: initialMessage,
|
|
8339
|
+
...initialMessageCustomRunConfig ? { customRunConfig: initialMessageCustomRunConfig } : {}
|
|
8340
|
+
} : null
|
|
8360
8341
|
);
|
|
8361
8342
|
const { workspaceId, trainingProjects } = useWorkspaceContext();
|
|
8362
8343
|
const trainingProjectId = getTrainingProjectId(assistant.graphDefinition);
|
|
@@ -8378,7 +8359,8 @@ var AgentDetailView = ({
|
|
|
8378
8359
|
files,
|
|
8379
8360
|
projectId: learningProjectId ?? void 0,
|
|
8380
8361
|
workspaceId: learningProject?.workspaceId ?? workspaceId ?? void 0
|
|
8381
|
-
})
|
|
8362
|
+
}),
|
|
8363
|
+
customRunConfig: { execution: { taskId: roundTaskId } }
|
|
8382
8364
|
});
|
|
8383
8365
|
};
|
|
8384
8366
|
const handleInitialMessageSubmitted = (requestId) => {
|
|
@@ -8777,4 +8759,4 @@ export {
|
|
|
8777
8759
|
AgentConfigGraph,
|
|
8778
8760
|
AgentDetailView
|
|
8779
8761
|
};
|
|
8780
|
-
//# sourceMappingURL=chunk-
|
|
8762
|
+
//# sourceMappingURL=chunk-ORTSDZD4.mjs.map
|