@agimon-ai/doompi-core 0.0.1-alpha.89 → 0.0.1-alpha.91
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/apiContracts.cjs +71 -3
- package/dist/apiContracts.cjs.map +1 -1
- package/dist/apiContracts.d.mts +59 -0
- package/dist/apiContracts.d.mts.map +1 -1
- package/dist/apiContracts.mjs +71 -3
- package/dist/apiContracts.mjs.map +1 -1
- package/dist/headlessHub.cjs +13 -4
- package/dist/headlessHub.cjs.map +1 -1
- package/dist/headlessHub.mjs +13 -4
- package/dist/headlessHub.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/machineApi.cjs +22 -3
- package/dist/machineApi.cjs.map +1 -1
- package/dist/machineApi.d.mts.map +1 -1
- package/dist/machineApi.mjs +20 -2
- package/dist/machineApi.mjs.map +1 -1
- package/dist/mcpProjection.cjs +1 -0
- package/dist/mcpProjection.d.mts +2 -2
- package/dist/mcpProjection.mjs +2 -2
- package/dist/sessionProtocol.d.mts +2 -2
- package/dist/src/pi/piSessionRuntime.cjs +42 -5
- package/dist/src/pi/piSessionRuntime.cjs.map +1 -1
- package/dist/src/pi/piSessionRuntime.d.mts.map +1 -1
- package/dist/src/pi/piSessionRuntime.mjs +42 -5
- package/dist/src/pi/piSessionRuntime.mjs.map +1 -1
- package/dist/src/schemas/hubChannel.d.mts +3 -0
- package/dist/src/schemas/hubChannel.d.mts.map +1 -1
- package/dist/src/schemas/mcpProjection.cjs +3 -0
- package/dist/src/schemas/mcpProjection.cjs.map +1 -1
- package/dist/src/schemas/mcpProjection.d.mts +8 -0
- package/dist/src/schemas/mcpProjection.d.mts.map +1 -1
- package/dist/src/schemas/mcpProjection.mjs +3 -1
- package/dist/src/schemas/mcpProjection.mjs.map +1 -1
- package/dist/src/schemas/sessionProtocol.cjs.map +1 -1
- package/dist/src/schemas/sessionProtocol.d.mts +39 -0
- package/dist/src/schemas/sessionProtocol.d.mts.map +1 -1
- package/dist/src/schemas/sessionProtocol.mjs.map +1 -1
- package/dist/src/server/directHarnessRuntime.cjs +868 -41
- package/dist/src/server/directHarnessRuntime.cjs.map +1 -1
- package/dist/src/server/directHarnessRuntime.mjs +869 -42
- package/dist/src/server/directHarnessRuntime.mjs.map +1 -1
- package/dist/src/server/headlessProtocol.cjs +4 -1
- package/dist/src/server/headlessProtocol.cjs.map +1 -1
- package/dist/src/server/headlessProtocol.mjs +4 -1
- package/dist/src/server/headlessProtocol.mjs.map +1 -1
- package/dist/src/server/sessionMcpRoutes.cjs +27 -8
- package/dist/src/server/sessionMcpRoutes.cjs.map +1 -1
- package/dist/src/server/sessionMcpRoutes.mjs +27 -8
- package/dist/src/server/sessionMcpRoutes.mjs.map +1 -1
- package/dist/src/services/piExtensionHost/index.cjs +43 -3
- package/dist/src/services/piExtensionHost/index.cjs.map +1 -1
- package/dist/src/services/piExtensionHost/index.mjs +44 -5
- package/dist/src/services/piExtensionHost/index.mjs.map +1 -1
- package/dist/src/services/sessionMcpConversations/index.cjs +25 -2
- package/dist/src/services/sessionMcpConversations/index.cjs.map +1 -1
- package/dist/src/services/sessionMcpConversations/index.mjs +25 -2
- package/dist/src/services/sessionMcpConversations/index.mjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.cjs +21 -5
- package/dist/src/systems/main/adapters/headlessSessionHost.cjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.d.mts.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.mjs +22 -6
- package/dist/src/systems/main/adapters/headlessSessionHost.mjs.map +1 -1
- package/dist/src/types/server/directHarnessRuntime.d.mts +29 -2
- package/dist/src/types/server/directHarnessRuntime.d.mts.map +1 -1
- package/dist/src/web/types/webPlugin.d.mts +4 -0
- package/dist/src/web/types/webPlugin.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/apiContracts.cjs
CHANGED
|
@@ -525,7 +525,14 @@ const SessionSummarySchema = typebox.Type.Object({
|
|
|
525
525
|
id: Text$2,
|
|
526
526
|
name: Text$2,
|
|
527
527
|
createdAt: Text$2,
|
|
528
|
-
cwd: Optional$2(Text$2)
|
|
528
|
+
cwd: Optional$2(Text$2),
|
|
529
|
+
setupKind: Optional$2(typebox.Type.Union([typebox.Type.Literal("managed-worktree"), typebox.Type.Literal("existing-directory")])),
|
|
530
|
+
status: Optional$2(typebox.Type.Union([
|
|
531
|
+
typebox.Type.Literal("provisioning"),
|
|
532
|
+
typebox.Type.Literal("failed"),
|
|
533
|
+
typebox.Type.Literal("interrupted")
|
|
534
|
+
])),
|
|
535
|
+
errorCode: Optional$2(typebox.Type.Union([typebox.Type.Literal("SESSION_WORKTREE_PROVISION_FAILED"), typebox.Type.Literal("SESSION_UNAVAILABLE")]))
|
|
529
536
|
}))),
|
|
530
537
|
/** Present and true for a recorded session the server has not reopened yet. */
|
|
531
538
|
dormant: Optional$2(Flag$2)
|
|
@@ -1251,6 +1258,35 @@ const Message = typebox.Type.Object({
|
|
|
1251
1258
|
text: Text,
|
|
1252
1259
|
images: Optional(typebox.Type.Array(Image))
|
|
1253
1260
|
});
|
|
1261
|
+
const Lifecycle = typebox.Type.Object({
|
|
1262
|
+
revision: NumberValue,
|
|
1263
|
+
operation: typebox.Type.Union([typebox.Type.Null(), typebox.Type.Object({
|
|
1264
|
+
id: Text,
|
|
1265
|
+
kind: typebox.Type.Union([
|
|
1266
|
+
typebox.Type.Literal("run"),
|
|
1267
|
+
typebox.Type.Literal("compaction"),
|
|
1268
|
+
typebox.Type.Literal("navigation")
|
|
1269
|
+
]),
|
|
1270
|
+
status: typebox.Type.Union([typebox.Type.Literal("open"), typebox.Type.Literal("aborting")])
|
|
1271
|
+
})]),
|
|
1272
|
+
paused: Flag,
|
|
1273
|
+
queue: typebox.Type.Array(typebox.Type.Object({
|
|
1274
|
+
id: Text,
|
|
1275
|
+
text: Text,
|
|
1276
|
+
images: Optional(typebox.Type.Array(Image)),
|
|
1277
|
+
delivery: typebox.Type.Union([
|
|
1278
|
+
typebox.Type.Literal("steer"),
|
|
1279
|
+
typebox.Type.Literal("followUp"),
|
|
1280
|
+
typebox.Type.Literal("nextRun")
|
|
1281
|
+
]),
|
|
1282
|
+
scheduling: typebox.Type.Union([typebox.Type.Literal("automatic"), typebox.Type.Literal("held")]),
|
|
1283
|
+
disposition: typebox.Type.Union([
|
|
1284
|
+
typebox.Type.Literal("pending"),
|
|
1285
|
+
typebox.Type.Literal("handoff"),
|
|
1286
|
+
typebox.Type.Literal("uncertain")
|
|
1287
|
+
])
|
|
1288
|
+
}))
|
|
1289
|
+
});
|
|
1254
1290
|
const Frame = typebox.Type.Intersect([typebox.Type.Object({ type: Text }), typebox.Type.Record(Text, Json$1)], { description: "Discriminated extension presentation frame; selected channel schemas describe package payloads." });
|
|
1255
1291
|
const HubClientFrame = typebox.Type.Union([
|
|
1256
1292
|
typebox.Type.Object({
|
|
@@ -1368,7 +1404,8 @@ const SessionServiceStateSchema = typebox.Type.Object({
|
|
|
1368
1404
|
locked: Flag,
|
|
1369
1405
|
revision: NumberValue,
|
|
1370
1406
|
queuedSteer: typebox.Type.Array(User),
|
|
1371
|
-
queuedSteerCount: NumberValue
|
|
1407
|
+
queuedSteerCount: NumberValue,
|
|
1408
|
+
lifecycle: Optional(Lifecycle)
|
|
1372
1409
|
}),
|
|
1373
1410
|
progress: typebox.Type.Union([typebox.Type.Null(), typebox.Type.Union([
|
|
1374
1411
|
typebox.Type.Object({
|
|
@@ -1423,9 +1460,36 @@ const SessionMethodSchemas = {
|
|
|
1423
1460
|
})])]) },
|
|
1424
1461
|
steer: { input: typebox.Type.Tuple([typebox.Type.Union([Text, Message])]) },
|
|
1425
1462
|
abort: { input: typebox.Type.Tuple([]) },
|
|
1463
|
+
abortOperation: { input: typebox.Type.Tuple([typebox.Type.Object({ operationId: Text })]) },
|
|
1426
1464
|
setModel: { input: typebox.Type.Tuple([Model]) },
|
|
1427
1465
|
setThinking: { input: typebox.Type.Tuple([Thinking]) },
|
|
1428
1466
|
followUp: { input: typebox.Type.Tuple([Message]) },
|
|
1467
|
+
enqueueAutomatic: {
|
|
1468
|
+
input: typebox.Type.Tuple([Message]),
|
|
1469
|
+
output: typebox.Type.Object({ id: Text })
|
|
1470
|
+
},
|
|
1471
|
+
removeQueued: {
|
|
1472
|
+
input: typebox.Type.Tuple([typebox.Type.Object({ id: Text })]),
|
|
1473
|
+
output: typebox.Type.Union([
|
|
1474
|
+
typebox.Type.Literal("removed"),
|
|
1475
|
+
typebox.Type.Literal("in_flight"),
|
|
1476
|
+
typebox.Type.Literal("already_consumed"),
|
|
1477
|
+
typebox.Type.Literal("not_found")
|
|
1478
|
+
])
|
|
1479
|
+
},
|
|
1480
|
+
promoteQueued: {
|
|
1481
|
+
input: typebox.Type.Tuple([typebox.Type.Object({
|
|
1482
|
+
id: Text,
|
|
1483
|
+
operationId: Text
|
|
1484
|
+
})]),
|
|
1485
|
+
output: typebox.Type.Union([
|
|
1486
|
+
typebox.Type.Literal("promoted"),
|
|
1487
|
+
typebox.Type.Literal("in_flight"),
|
|
1488
|
+
typebox.Type.Literal("target_changed"),
|
|
1489
|
+
typebox.Type.Literal("not_found")
|
|
1490
|
+
])
|
|
1491
|
+
},
|
|
1492
|
+
resumeQueue: { input: typebox.Type.Tuple([]) },
|
|
1429
1493
|
clearQueue: {
|
|
1430
1494
|
input: typebox.Type.Tuple([]),
|
|
1431
1495
|
output: typebox.Type.Object({
|
|
@@ -1485,7 +1549,11 @@ const SessionMethodSchemas = {
|
|
|
1485
1549
|
sessionName: Optional(Text),
|
|
1486
1550
|
autoCompactionEnabled: Flag,
|
|
1487
1551
|
messageCount: NumberValue,
|
|
1488
|
-
pendingMessageCount: NumberValue
|
|
1552
|
+
pendingMessageCount: NumberValue,
|
|
1553
|
+
operationId: Optional(Text),
|
|
1554
|
+
executionStatus: Optional(typebox.Type.Union([typebox.Type.Literal("open"), typebox.Type.Literal("aborting")])),
|
|
1555
|
+
queuePaused: Optional(Flag),
|
|
1556
|
+
queueRevision: Optional(NumberValue)
|
|
1489
1557
|
})
|
|
1490
1558
|
},
|
|
1491
1559
|
getSessionStats: {
|