@inf-monkeys-tech/monkeys 1.1.57 → 1.1.59
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/lib/contracts/artifact-platform.d.ts +0 -2
- package/lib/contracts/artifact-platform.d.ts.map +1 -1
- package/lib/contracts/artifact-platform.js +1 -11
- package/lib/contracts/artifact-platform.js.map +1 -1
- package/lib/contracts/declarative-control-http.d.ts +47 -47
- package/lib/contracts/declarative-control.d.ts +3 -3
- package/lib/contracts/declarative-diagnostic.d.ts +2 -2
- package/lib/contracts/declarative-document-import.d.ts +2 -2
- package/lib/contracts/declarative-publication-job.d.ts +19 -19
- package/lib/contracts/declarative-publication-verification.d.ts +1 -1
- package/lib/contracts/index.d.ts +0 -1
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +0 -1
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/menu.d.ts +10 -10
- package/lib/contracts/page-expression.d.ts +1 -1
- package/lib/contracts/tenant.d.ts +5 -5
- package/lib/contracts/workflow-definition.d.ts +503 -0
- package/lib/contracts/workflow-definition.d.ts.map +1 -1
- package/lib/contracts/workflow-definition.js +189 -3
- package/lib/contracts/workflow-definition.js.map +1 -1
- package/lib/esm/{chunk-5ZGNWCL4.mjs → chunk-2TZMP3VI.mjs} +307 -466
- package/lib/esm/chunk-2TZMP3VI.mjs.map +1 -0
- package/lib/esm/{chunk-USWQ4YP5.mjs → chunk-6AX5KAJM.mjs} +2 -2
- package/lib/esm/{chunk-FIZWECL6.mjs → chunk-J6ZVASVX.mjs} +169 -15
- package/lib/esm/chunk-J6ZVASVX.mjs.map +1 -0
- package/lib/esm/{chunk-HJNQDSLC.mjs → chunk-MEIIFDVZ.mjs} +2 -2
- package/lib/esm/{chunk-VYC47WKJ.mjs → chunk-VX54ES4K.mjs} +34 -444
- package/lib/esm/chunk-VX54ES4K.mjs.map +1 -0
- package/lib/esm/{chunk-C3X5SSRD.mjs → chunk-WYIVUDQH.mjs} +3 -3
- package/lib/esm/chunk-WYIVUDQH.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +22 -30
- package/lib/esm/index.mjs +26 -46
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +5 -17
- package/lib/esm/schemas/index.mjs +21 -27
- package/lib/json-schema/workflow-definition.schema.json +584 -0
- package/lib/runtime/artifact-session.d.ts +19 -7
- package/lib/runtime/artifact-session.d.ts.map +1 -1
- package/lib/runtime/artifact-session.js +38 -436
- package/lib/runtime/artifact-session.js.map +1 -1
- package/lib/runtime/runtime-definition-wire.d.ts +6 -6
- package/lib/schemas/index.d.ts +112 -12
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +17 -21
- package/lib/schemas/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/contracts/engineering-artifacts.d.ts +0 -359
- package/lib/contracts/engineering-artifacts.d.ts.map +0 -1
- package/lib/contracts/engineering-artifacts.js +0 -191
- package/lib/contracts/engineering-artifacts.js.map +0 -1
- package/lib/esm/chunk-5ZGNWCL4.mjs.map +0 -1
- package/lib/esm/chunk-C3X5SSRD.mjs.map +0 -1
- package/lib/esm/chunk-FIZWECL6.mjs.map +0 -1
- package/lib/esm/chunk-VYC47WKJ.mjs.map +0 -1
- /package/lib/esm/{chunk-USWQ4YP5.mjs.map → chunk-6AX5KAJM.mjs.map} +0 -0
- /package/lib/esm/{chunk-HJNQDSLC.mjs.map → chunk-MEIIFDVZ.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DECLARATIVE_CONTROL_API_PREFIX,
|
|
3
3
|
IsoDateTimeSchema,
|
|
4
4
|
JsonObjectSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J6ZVASVX.mjs";
|
|
6
6
|
|
|
7
7
|
// src/contracts/page-stream.ts
|
|
8
8
|
import { z } from "zod";
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
pageStreamRoutes,
|
|
76
76
|
PageStreamControlResultSchema
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-MEIIFDVZ.mjs.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
PAGE_STREAM_MAX_FRAME_BYTES,
|
|
5
5
|
PageStreamDescriptorSchema,
|
|
6
6
|
PageStreamEventSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MEIIFDVZ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
AccessPolicySchema,
|
|
10
10
|
ActionProgramDefinitionSchema,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
require_validation,
|
|
118
118
|
require_validation_error,
|
|
119
119
|
resolveThemeTokens
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-J6ZVASVX.mjs";
|
|
121
121
|
import {
|
|
122
122
|
__commonJS,
|
|
123
123
|
__toESM
|
|
@@ -1164,441 +1164,37 @@ function compileViewSpecToRenderTree(specInput, options = {}) {
|
|
|
1164
1164
|
nodes: [rootNode, ...blockNodes]
|
|
1165
1165
|
});
|
|
1166
1166
|
}
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1197
|
-
],
|
|
1198
|
-
wiring: []
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
contract: "ViewSpec",
|
|
1202
|
-
schemaVersion: 1,
|
|
1203
|
-
viewId: "board.linesheet",
|
|
1204
|
-
title: { "zh-CN": "Linesheet \u89C6\u56FE", "en-US": "Linesheet View" },
|
|
1205
|
-
subject: {
|
|
1206
|
-
kind: "artifact",
|
|
1207
|
-
ontologyId: "DesignProjects",
|
|
1208
|
-
artifactKind: "board",
|
|
1209
|
-
recordIdParam: "designBoardId"
|
|
1210
|
-
},
|
|
1211
|
-
query: { source: "relation", relationPath: "linesheet_items" },
|
|
1212
|
-
layout: { mode: "single", regions: [{ id: "main", slot: "main" }] },
|
|
1213
|
-
blocks: [
|
|
1214
|
-
{
|
|
1215
|
-
blockId: "linesheet",
|
|
1216
|
-
capability: "studio.capability.workflow-page.linesheet",
|
|
1217
|
-
slot: "main",
|
|
1218
|
-
dataSource: { kind: "artifact.body", session: "loro", slice: "linesheet" },
|
|
1219
|
-
config: {}
|
|
1220
|
-
}
|
|
1221
|
-
],
|
|
1222
|
-
wiring: []
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
contract: "ViewSpec",
|
|
1226
|
-
schemaVersion: 1,
|
|
1227
|
-
viewId: "board.properties",
|
|
1228
|
-
title: { "zh-CN": "\u5C5E\u6027\u4E0E\u7248\u672C", "en-US": "Properties & History" },
|
|
1229
|
-
subject: {
|
|
1230
|
-
kind: "artifact",
|
|
1231
|
-
ontologyId: "DesignProjects",
|
|
1232
|
-
artifactKind: "board",
|
|
1233
|
-
recordIdParam: "designBoardId"
|
|
1234
|
-
},
|
|
1235
|
-
query: { source: "self" },
|
|
1236
|
-
layout: {
|
|
1237
|
-
mode: "split-horizontal",
|
|
1238
|
-
regions: [
|
|
1239
|
-
{ id: "properties", slot: "left", size: "50%" },
|
|
1240
|
-
{ id: "history", slot: "right", size: "50%" }
|
|
1241
|
-
]
|
|
1242
|
-
},
|
|
1243
|
-
blocks: [
|
|
1244
|
-
{
|
|
1245
|
-
blockId: "properties",
|
|
1246
|
-
capability: "monkeys.design.record-detail",
|
|
1247
|
-
slot: "left",
|
|
1248
|
-
dataSource: { kind: "record.fields", recordRef: "subject" },
|
|
1249
|
-
config: {}
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
blockId: "history",
|
|
1253
|
-
capability: "monkeys.design.record-history",
|
|
1254
|
-
slot: "right",
|
|
1255
|
-
dataSource: { kind: "record.fields", recordRef: "subject" },
|
|
1256
|
-
config: {}
|
|
1257
|
-
}
|
|
1258
|
-
],
|
|
1259
|
-
wiring: []
|
|
1260
|
-
}
|
|
1261
|
-
]
|
|
1262
|
-
});
|
|
1263
|
-
var WORKFLOW_ARTIFACT_PROFILE = ArtifactProfileSchema.parse({
|
|
1264
|
-
contract: "ArtifactProfile",
|
|
1265
|
-
schemaVersion: 1,
|
|
1266
|
-
artifactKind: "workflow",
|
|
1267
|
-
bodySchemaRef: "workflow-definition@1",
|
|
1268
|
-
storageMode: "loro-aggregate",
|
|
1269
|
-
crdtCodec: "loro-v1",
|
|
1270
|
-
defaultViewId: "workflow.process",
|
|
1271
|
-
views: [
|
|
1272
|
-
{
|
|
1273
|
-
contract: "ViewSpec",
|
|
1274
|
-
schemaVersion: 1,
|
|
1275
|
-
viewId: "workflow.process",
|
|
1276
|
-
title: { "zh-CN": "\u6D41\u7A0B\u89C6\u56FE", "en-US": "Process View" },
|
|
1277
|
-
subject: {
|
|
1278
|
-
kind: "artifact",
|
|
1279
|
-
ontologyId: "workflow-definitions",
|
|
1280
|
-
artifactKind: "workflow",
|
|
1281
|
-
recordIdParam: "workflowId"
|
|
1282
|
-
},
|
|
1283
|
-
query: { source: "self" },
|
|
1284
|
-
layout: { mode: "single", regions: [{ id: "main", slot: "main" }] },
|
|
1285
|
-
blocks: [
|
|
1286
|
-
{
|
|
1287
|
-
blockId: "flow-dag",
|
|
1288
|
-
capability: "studio.capability.workflow-page.process",
|
|
1289
|
-
slot: "main",
|
|
1290
|
-
dataSource: { kind: "artifact.body", session: "loro" },
|
|
1291
|
-
config: {}
|
|
1292
|
-
}
|
|
1293
|
-
],
|
|
1294
|
-
wiring: []
|
|
1295
|
-
},
|
|
1296
|
-
{
|
|
1297
|
-
contract: "ViewSpec",
|
|
1298
|
-
schemaVersion: 1,
|
|
1299
|
-
viewId: "workflow.preview",
|
|
1300
|
-
title: { "zh-CN": "\u8868\u5355\u89C6\u56FE", "en-US": "Form View" },
|
|
1301
|
-
subject: {
|
|
1302
|
-
kind: "artifact",
|
|
1303
|
-
ontologyId: "workflow-definitions",
|
|
1304
|
-
artifactKind: "workflow",
|
|
1305
|
-
recordIdParam: "workflowId"
|
|
1306
|
-
},
|
|
1307
|
-
query: { source: "relation", relationPath: "runs" },
|
|
1308
|
-
layout: {
|
|
1309
|
-
mode: "split-horizontal",
|
|
1310
|
-
regions: [
|
|
1311
|
-
{ id: "form", slot: "left", size: "34%", minSize: 320, collapsible: true },
|
|
1312
|
-
{ id: "waterfall", slot: "right", size: "66%" }
|
|
1313
|
-
]
|
|
1314
|
-
},
|
|
1315
|
-
blocks: [
|
|
1316
|
-
{
|
|
1317
|
-
blockId: "run-form",
|
|
1318
|
-
capability: "studio.capability.workflow-run-form",
|
|
1319
|
-
slot: "left",
|
|
1320
|
-
dataSource: { kind: "collection.query", queryRef: "view.query", relationPath: "runs", mode: "create" },
|
|
1321
|
-
config: {}
|
|
1322
|
-
},
|
|
1323
|
-
{
|
|
1324
|
-
blockId: "run-waterfall",
|
|
1325
|
-
capability: "studio.capability.workflow-run-waterfall",
|
|
1326
|
-
slot: "right",
|
|
1327
|
-
dataSource: { kind: "collection.query", queryRef: "view.query", relationPath: "runs", mode: "read" },
|
|
1328
|
-
config: {}
|
|
1329
|
-
}
|
|
1330
|
-
],
|
|
1331
|
-
wiring: [
|
|
1332
|
-
{
|
|
1333
|
-
sourceBlockId: "run-form",
|
|
1334
|
-
event: "run.started",
|
|
1335
|
-
targetBlockId: "run-waterfall",
|
|
1336
|
-
action: "collection.prependPlaceholder"
|
|
1337
|
-
}
|
|
1338
|
-
]
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
contract: "ViewSpec",
|
|
1342
|
-
schemaVersion: 1,
|
|
1343
|
-
viewId: "workflow.log",
|
|
1344
|
-
title: { "zh-CN": "\u65E5\u5FD7\u89C6\u56FE", "en-US": "Log View" },
|
|
1345
|
-
subject: {
|
|
1346
|
-
kind: "artifact",
|
|
1347
|
-
ontologyId: "workflow-definitions",
|
|
1348
|
-
artifactKind: "workflow",
|
|
1349
|
-
recordIdParam: "workflowId"
|
|
1350
|
-
},
|
|
1351
|
-
query: { source: "relation", relationPath: "runs" },
|
|
1352
|
-
layout: { mode: "single", regions: [{ id: "main", slot: "main" }] },
|
|
1353
|
-
blocks: [
|
|
1354
|
-
{
|
|
1355
|
-
blockId: "run-log-table",
|
|
1356
|
-
capability: "studio.capability.workflow-page.log",
|
|
1357
|
-
slot: "main",
|
|
1358
|
-
dataSource: { kind: "collection.query", queryRef: "view.query", relationPath: "runs", mode: "read" },
|
|
1359
|
-
config: {}
|
|
1360
|
-
}
|
|
1361
|
-
],
|
|
1362
|
-
wiring: []
|
|
1363
|
-
},
|
|
1364
|
-
{
|
|
1365
|
-
contract: "ViewSpec",
|
|
1366
|
-
schemaVersion: 1,
|
|
1367
|
-
viewId: "workflow.chat",
|
|
1368
|
-
title: { "zh-CN": "\u5BF9\u8BDD\u89C6\u56FE", "en-US": "Chat View" },
|
|
1369
|
-
subject: {
|
|
1370
|
-
kind: "artifact",
|
|
1371
|
-
ontologyId: "workflow-definitions",
|
|
1372
|
-
artifactKind: "workflow",
|
|
1373
|
-
recordIdParam: "workflowId"
|
|
1374
|
-
},
|
|
1375
|
-
query: { source: "relation", relationPath: "sessions" },
|
|
1376
|
-
layout: { mode: "single", regions: [{ id: "main", slot: "main" }] },
|
|
1377
|
-
blocks: [
|
|
1378
|
-
{
|
|
1379
|
-
blockId: "chat-stream",
|
|
1380
|
-
capability: "studio.capability.workflow-page.chat",
|
|
1381
|
-
slot: "main",
|
|
1382
|
-
dataSource: { kind: "collection.query", queryRef: "view.query", relationPath: "sessions", mode: "read-write" },
|
|
1383
|
-
config: {}
|
|
1384
|
-
}
|
|
1385
|
-
],
|
|
1386
|
-
wiring: []
|
|
1387
|
-
}
|
|
1388
|
-
]
|
|
1389
|
-
});
|
|
1390
|
-
var DOCUMENT_ARTIFACT_PROFILE = ArtifactProfileSchema.parse({
|
|
1391
|
-
contract: "ArtifactProfile",
|
|
1392
|
-
schemaVersion: 1,
|
|
1393
|
-
artifactKind: "document",
|
|
1394
|
-
bodySchemaRef: "markdown-document@1",
|
|
1395
|
-
storageMode: "loro-aggregate",
|
|
1396
|
-
crdtCodec: "loro-v1",
|
|
1397
|
-
defaultViewId: "document.editor",
|
|
1398
|
-
views: [
|
|
1399
|
-
{
|
|
1400
|
-
contract: "ViewSpec",
|
|
1401
|
-
schemaVersion: 1,
|
|
1402
|
-
viewId: "document.editor",
|
|
1403
|
-
title: { "zh-CN": "\u6587\u6863\u89C6\u56FE", "en-US": "Document View" },
|
|
1404
|
-
subject: { kind: "artifact", ontologyId: "documents", artifactKind: "document", recordIdParam: "documentId" },
|
|
1405
|
-
query: { source: "self" },
|
|
1406
|
-
layout: { mode: "single", regions: [{ id: "main", slot: "main" }] },
|
|
1407
|
-
blocks: [
|
|
1408
|
-
{
|
|
1409
|
-
blockId: "markdown",
|
|
1410
|
-
capability: "monkeys.design.markdown-document",
|
|
1411
|
-
slot: "main",
|
|
1412
|
-
dataSource: { kind: "artifact.body", session: "loro" },
|
|
1413
|
-
config: {}
|
|
1414
|
-
}
|
|
1415
|
-
],
|
|
1416
|
-
wiring: []
|
|
1417
|
-
}
|
|
1418
|
-
]
|
|
1419
|
-
});
|
|
1420
|
-
var CAD_ASSEMBLY_ARTIFACT_PROFILE = ArtifactProfileSchema.parse({
|
|
1421
|
-
contract: "ArtifactProfile",
|
|
1422
|
-
schemaVersion: 1,
|
|
1423
|
-
artifactKind: "cad.assembly",
|
|
1424
|
-
bodySchemaRef: "cad-artifact-document@1",
|
|
1425
|
-
storageMode: "loro-aggregate",
|
|
1426
|
-
crdtCodec: "loro-v1",
|
|
1427
|
-
defaultViewId: "cad.viewport3d",
|
|
1428
|
-
views: [
|
|
1429
|
-
{
|
|
1430
|
-
contract: "ViewSpec",
|
|
1431
|
-
schemaVersion: 1,
|
|
1432
|
-
viewId: "cad.viewport3d",
|
|
1433
|
-
title: { "zh-CN": "3D \u5EFA\u6A21\u89C6\u56FE", "en-US": "3D Modeling View" },
|
|
1434
|
-
subject: { kind: "artifact", ontologyId: "cad-assemblies", artifactKind: "cad.assembly", recordIdParam: "artifactId" },
|
|
1435
|
-
query: { source: "self" },
|
|
1436
|
-
layout: {
|
|
1437
|
-
mode: "three-pane",
|
|
1438
|
-
regions: [
|
|
1439
|
-
{ id: "tree", slot: "left", size: 280, collapsible: true },
|
|
1440
|
-
{ id: "viewport", slot: "main" },
|
|
1441
|
-
{ id: "inspector", slot: "right", size: 320, collapsible: true }
|
|
1442
|
-
]
|
|
1443
|
-
},
|
|
1444
|
-
blocks: [
|
|
1445
|
-
{
|
|
1446
|
-
blockId: "feature-tree",
|
|
1447
|
-
capability: "studio.capability.cad.feature-tree",
|
|
1448
|
-
slot: "left",
|
|
1449
|
-
dataSource: { kind: "artifact.body", session: "loro", slice: "features" },
|
|
1450
|
-
config: {}
|
|
1451
|
-
},
|
|
1452
|
-
{
|
|
1453
|
-
blockId: "viewport-3d",
|
|
1454
|
-
capability: "studio.capability.cad.viewport-3d",
|
|
1455
|
-
slot: "main",
|
|
1456
|
-
dataSource: { kind: "artifact.body", session: "loro" },
|
|
1457
|
-
config: {}
|
|
1458
|
-
},
|
|
1459
|
-
{
|
|
1460
|
-
blockId: "inspector",
|
|
1461
|
-
capability: "monkeys.design.record-detail",
|
|
1462
|
-
slot: "right",
|
|
1463
|
-
dataSource: { kind: "record.fields", recordRef: "$state.selectedNodeId" },
|
|
1464
|
-
config: {}
|
|
1465
|
-
}
|
|
1466
|
-
],
|
|
1467
|
-
wiring: [
|
|
1468
|
-
{
|
|
1469
|
-
sourceBlockId: "feature-tree",
|
|
1470
|
-
event: "node.selected",
|
|
1471
|
-
targetBlockId: "viewport-3d",
|
|
1472
|
-
action: "viewport.highlightNode"
|
|
1473
|
-
}
|
|
1474
|
-
]
|
|
1475
|
-
},
|
|
1476
|
-
{
|
|
1477
|
-
contract: "ViewSpec",
|
|
1478
|
-
schemaVersion: 1,
|
|
1479
|
-
viewId: "cad.bom",
|
|
1480
|
-
title: { "zh-CN": "BOM \u89C6\u56FE", "en-US": "BOM View" },
|
|
1481
|
-
subject: { kind: "artifact", ontologyId: "cad-assemblies", artifactKind: "cad.assembly", recordIdParam: "artifactId" },
|
|
1482
|
-
query: { source: "relation", relationPath: "parts" },
|
|
1483
|
-
layout: { mode: "single", regions: [{ id: "main", slot: "main" }] },
|
|
1484
|
-
blocks: [
|
|
1485
|
-
{
|
|
1486
|
-
blockId: "bom-table",
|
|
1487
|
-
capability: "monkeys.design.ontology-table",
|
|
1488
|
-
slot: "main",
|
|
1489
|
-
dataSource: { kind: "collection.query", queryRef: "view.query", relationPath: "parts", mode: "read-write" },
|
|
1490
|
-
config: {}
|
|
1491
|
-
}
|
|
1492
|
-
],
|
|
1493
|
-
wiring: []
|
|
1494
|
-
}
|
|
1495
|
-
]
|
|
1496
|
-
});
|
|
1497
|
-
var EDA_CIRCUIT_ARTIFACT_PROFILE = ArtifactProfileSchema.parse({
|
|
1498
|
-
contract: "ArtifactProfile",
|
|
1499
|
-
schemaVersion: 1,
|
|
1500
|
-
artifactKind: "eda.circuit",
|
|
1501
|
-
bodySchemaRef: "eda-circuit-document@1",
|
|
1502
|
-
storageMode: "loro-aggregate",
|
|
1503
|
-
crdtCodec: "loro-v1",
|
|
1504
|
-
defaultViewId: "eda.schematic",
|
|
1505
|
-
views: [
|
|
1506
|
-
{
|
|
1507
|
-
contract: "ViewSpec",
|
|
1508
|
-
schemaVersion: 1,
|
|
1509
|
-
viewId: "eda.schematic",
|
|
1510
|
-
title: { "zh-CN": "\u539F\u7406\u56FE\u89C6\u56FE", "en-US": "Schematic View" },
|
|
1511
|
-
subject: { kind: "artifact", ontologyId: "eda-circuits", artifactKind: "eda.circuit", recordIdParam: "artifactId" },
|
|
1512
|
-
query: { source: "self" },
|
|
1513
|
-
layout: {
|
|
1514
|
-
mode: "three-pane",
|
|
1515
|
-
regions: [
|
|
1516
|
-
{ id: "library", slot: "left", size: 280, collapsible: true },
|
|
1517
|
-
{ id: "schematic", slot: "main" },
|
|
1518
|
-
{ id: "inspector", slot: "right", size: 320, collapsible: true }
|
|
1519
|
-
]
|
|
1520
|
-
},
|
|
1521
|
-
blocks: [
|
|
1522
|
-
{
|
|
1523
|
-
blockId: "component-library",
|
|
1524
|
-
capability: "monkeys.design.ontology-table",
|
|
1525
|
-
slot: "left",
|
|
1526
|
-
dataSource: { kind: "collection.query", queryRef: "global.electronic-components", mode: "read" },
|
|
1527
|
-
config: {}
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
blockId: "schematic-canvas",
|
|
1531
|
-
capability: "studio.capability.eda.schematic-editor",
|
|
1532
|
-
slot: "main",
|
|
1533
|
-
dataSource: { kind: "artifact.body", session: "loro", slice: "schematic" },
|
|
1534
|
-
config: {}
|
|
1535
|
-
},
|
|
1536
|
-
{
|
|
1537
|
-
blockId: "inspector",
|
|
1538
|
-
capability: "monkeys.design.record-detail",
|
|
1539
|
-
slot: "right",
|
|
1540
|
-
dataSource: { kind: "record.fields", recordRef: "$state.selectedComponentId" },
|
|
1541
|
-
config: {}
|
|
1542
|
-
}
|
|
1543
|
-
],
|
|
1544
|
-
wiring: [
|
|
1545
|
-
{
|
|
1546
|
-
sourceBlockId: "schematic-canvas",
|
|
1547
|
-
event: "component.selected",
|
|
1548
|
-
targetStateKey: "selectedComponentId",
|
|
1549
|
-
action: "state.set"
|
|
1550
|
-
}
|
|
1551
|
-
]
|
|
1552
|
-
},
|
|
1553
|
-
{
|
|
1554
|
-
contract: "ViewSpec",
|
|
1555
|
-
schemaVersion: 1,
|
|
1556
|
-
viewId: "eda.pcb",
|
|
1557
|
-
title: { "zh-CN": "PCB \u89C6\u56FE", "en-US": "PCB Layout View" },
|
|
1558
|
-
subject: { kind: "artifact", ontologyId: "eda-circuits", artifactKind: "eda.circuit", recordIdParam: "artifactId" },
|
|
1559
|
-
query: { source: "self" },
|
|
1560
|
-
layout: { mode: "single", regions: [{ id: "main", slot: "main" }] },
|
|
1561
|
-
blocks: [
|
|
1562
|
-
{
|
|
1563
|
-
blockId: "pcb-canvas",
|
|
1564
|
-
capability: "studio.capability.eda.pcb-editor",
|
|
1565
|
-
slot: "main",
|
|
1566
|
-
dataSource: { kind: "artifact.body", session: "loro", slice: "pcb" },
|
|
1567
|
-
config: {}
|
|
1568
|
-
}
|
|
1569
|
-
],
|
|
1570
|
-
wiring: []
|
|
1571
|
-
},
|
|
1572
|
-
{
|
|
1573
|
-
contract: "ViewSpec",
|
|
1574
|
-
schemaVersion: 1,
|
|
1575
|
-
viewId: "eda.bom",
|
|
1576
|
-
title: { "zh-CN": "BOM / \u7F51\u8868\u89C6\u56FE", "en-US": "BOM & Netlist View" },
|
|
1577
|
-
subject: { kind: "artifact", ontologyId: "eda-circuits", artifactKind: "eda.circuit", recordIdParam: "artifactId" },
|
|
1578
|
-
query: { source: "relation", relationPath: "bom_items" },
|
|
1579
|
-
layout: { mode: "single", regions: [{ id: "main", slot: "main" }] },
|
|
1580
|
-
blocks: [
|
|
1581
|
-
{
|
|
1582
|
-
blockId: "bom-table",
|
|
1583
|
-
capability: "monkeys.design.ontology-table",
|
|
1584
|
-
slot: "main",
|
|
1585
|
-
dataSource: { kind: "collection.query", queryRef: "view.query", relationPath: "bom_items", mode: "read-write" },
|
|
1586
|
-
config: {}
|
|
1587
|
-
}
|
|
1588
|
-
],
|
|
1589
|
-
wiring: []
|
|
1167
|
+
function createArtifactRegistry(initialProfiles = []) {
|
|
1168
|
+
const profiles = /* @__PURE__ */ new Map();
|
|
1169
|
+
const registerProfile = (profileInput, options = {}) => {
|
|
1170
|
+
const profile = ArtifactProfileSchema.parse(profileInput);
|
|
1171
|
+
if (profiles.has(profile.artifactKind) && !options.replace) {
|
|
1172
|
+
throw new Error(`ArtifactProfile for kind "${profile.artifactKind}" is already registered.`);
|
|
1173
|
+
}
|
|
1174
|
+
profiles.set(profile.artifactKind, profile);
|
|
1175
|
+
return profile;
|
|
1176
|
+
};
|
|
1177
|
+
for (const profile of initialProfiles) {
|
|
1178
|
+
registerProfile(profile);
|
|
1179
|
+
}
|
|
1180
|
+
const getProfile = (artifactKind) => profiles.get(artifactKind);
|
|
1181
|
+
const resolveView = (artifactKind, viewId) => {
|
|
1182
|
+
const profile = profiles.get(artifactKind);
|
|
1183
|
+
if (!profile) return void 0;
|
|
1184
|
+
const targetId = viewId ?? profile.defaultViewId;
|
|
1185
|
+
return profile.views.find((view) => view.viewId === targetId);
|
|
1186
|
+
};
|
|
1187
|
+
return Object.freeze({
|
|
1188
|
+
registerProfile,
|
|
1189
|
+
unregisterProfile: (artifactKind) => profiles.delete(artifactKind),
|
|
1190
|
+
getProfile,
|
|
1191
|
+
listProfiles: () => Object.freeze(Array.from(profiles.values())),
|
|
1192
|
+
resolveView,
|
|
1193
|
+
compileView: (artifactKind, viewId, options) => {
|
|
1194
|
+
const view = resolveView(artifactKind, viewId);
|
|
1195
|
+
return view ? compileViewSpecToRenderTree(view, options) : void 0;
|
|
1590
1196
|
}
|
|
1591
|
-
|
|
1592
|
-
});
|
|
1593
|
-
var BUILTIN_ARTIFACT_PROFILES = Object.freeze({
|
|
1594
|
-
board: DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
1595
|
-
workflow: WORKFLOW_ARTIFACT_PROFILE,
|
|
1596
|
-
document: DOCUMENT_ARTIFACT_PROFILE,
|
|
1597
|
-
"cad.assembly": CAD_ASSEMBLY_ARTIFACT_PROFILE,
|
|
1598
|
-
"eda.circuit": EDA_CIRCUIT_ARTIFACT_PROFILE
|
|
1599
|
-
});
|
|
1600
|
-
function resolveBuiltinArtifactProfile(artifactKind) {
|
|
1601
|
-
return BUILTIN_ARTIFACT_PROFILES[artifactKind];
|
|
1197
|
+
});
|
|
1602
1198
|
}
|
|
1603
1199
|
|
|
1604
1200
|
// src/runtime/agent-session-projector.ts
|
|
@@ -8170,13 +7766,7 @@ export {
|
|
|
8170
7766
|
compileCapabilityRegistry,
|
|
8171
7767
|
buildArtifactCollabRoomId,
|
|
8172
7768
|
compileViewSpecToRenderTree,
|
|
8173
|
-
|
|
8174
|
-
WORKFLOW_ARTIFACT_PROFILE,
|
|
8175
|
-
DOCUMENT_ARTIFACT_PROFILE,
|
|
8176
|
-
CAD_ASSEMBLY_ARTIFACT_PROFILE,
|
|
8177
|
-
EDA_CIRCUIT_ARTIFACT_PROFILE,
|
|
8178
|
-
BUILTIN_ARTIFACT_PROFILES,
|
|
8179
|
-
resolveBuiltinArtifactProfile,
|
|
7769
|
+
createArtifactRegistry,
|
|
8180
7770
|
createAgentSessionEventProjection,
|
|
8181
7771
|
projectAgentSessionEvents,
|
|
8182
7772
|
toAgentSessionViewModel,
|
|
@@ -8312,4 +7902,4 @@ export {
|
|
|
8312
7902
|
pageMountParentHref,
|
|
8313
7903
|
nativePageMountPlan
|
|
8314
7904
|
};
|
|
8315
|
-
//# sourceMappingURL=chunk-
|
|
7905
|
+
//# sourceMappingURL=chunk-VX54ES4K.mjs.map
|