@agimon-ai/po-core 0.0.0-alpha.11 → 0.0.0-alpha.12
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 +24 -88
- package/dist/apiContracts.cjs.map +1 -1
- package/dist/apiContracts.d.mts +30 -307
- package/dist/apiContracts.d.mts.map +1 -1
- package/dist/apiContracts.mjs +24 -88
- package/dist/apiContracts.mjs.map +1 -1
- package/dist/headlessProtocol.cjs +1 -1
- package/dist/headlessProtocol.cjs.map +1 -1
- package/dist/headlessProtocol.mjs +1 -1
- package/dist/headlessProtocol.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/server.cjs +0 -2
- package/dist/server.d.mts +2 -3
- package/dist/server.mjs +1 -2
- package/dist/sessionProtocol.d.mts +2 -2
- package/dist/src/pi/piSessionRuntime.cjs +140 -50
- package/dist/src/pi/piSessionRuntime.cjs.map +1 -1
- package/dist/src/pi/piSessionRuntime.d.mts +1 -4
- package/dist/src/pi/piSessionRuntime.d.mts.map +1 -1
- package/dist/src/pi/piSessionRuntime.mjs +139 -49
- package/dist/src/pi/piSessionRuntime.mjs.map +1 -1
- package/dist/src/schemas/protocolSessionContract.d.mts +30 -307
- package/dist/src/schemas/protocolSessionContract.d.mts.map +1 -1
- package/dist/src/schemas/sessionApiContracts.cjs +24 -88
- package/dist/src/schemas/sessionApiContracts.cjs.map +1 -1
- package/dist/src/schemas/sessionApiContracts.mjs +24 -88
- package/dist/src/schemas/sessionApiContracts.mjs.map +1 -1
- package/dist/src/schemas/sessionProtocol.cjs.map +1 -1
- package/dist/src/schemas/sessionProtocol.d.mts +25 -29
- package/dist/src/schemas/sessionProtocol.d.mts.map +1 -1
- package/dist/src/schemas/sessionProtocol.mjs.map +1 -1
- package/dist/src/services/sessionPresentation/index.cjs +1 -26
- package/dist/src/services/sessionPresentation/index.cjs.map +1 -1
- package/dist/src/services/sessionPresentation/index.mjs +1 -26
- package/dist/src/services/sessionPresentation/index.mjs.map +1 -1
- package/dist/src/services/sqliteTranscriptReader/index.cjs +1 -2
- package/dist/src/services/sqliteTranscriptReader/index.cjs.map +1 -1
- package/dist/src/services/sqliteTranscriptReader/index.mjs +1 -2
- package/dist/src/services/sqliteTranscriptReader/index.mjs.map +1 -1
- package/dist/src/services/transcriptPages/index.cjs.map +1 -1
- package/dist/src/services/transcriptPages/index.mjs.map +1 -1
- package/dist/src/systems/child/adapters/headlessChildSessionService.cjs +1 -2
- package/dist/src/systems/child/adapters/headlessChildSessionService.cjs.map +1 -1
- package/dist/src/systems/child/adapters/headlessChildSessionService.mjs +1 -2
- package/dist/src/systems/child/adapters/headlessChildSessionService.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/src/services/rpcTranscript/index.cjs +0 -633
- package/dist/src/services/rpcTranscript/index.cjs.map +0 -1
- package/dist/src/services/rpcTranscript/index.d.mts +0 -50
- package/dist/src/services/rpcTranscript/index.d.mts.map +0 -1
- package/dist/src/services/rpcTranscript/index.mjs +0 -632
- package/dist/src/services/rpcTranscript/index.mjs.map +0 -1
package/dist/apiContracts.cjs
CHANGED
|
@@ -1325,66 +1325,12 @@ const TextPart = typebox.Type.Object({
|
|
|
1325
1325
|
type: typebox.Type.Literal("text"),
|
|
1326
1326
|
text: Text
|
|
1327
1327
|
});
|
|
1328
|
-
const
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
content: typebox.Type.Array(Content),
|
|
1333
|
-
timestamp: NumberValue
|
|
1328
|
+
const ThinkingPart = typebox.Type.Object({
|
|
1329
|
+
type: typebox.Type.Literal("thinking"),
|
|
1330
|
+
thinking: Text,
|
|
1331
|
+
redacted: Optional(typebox.Type.Literal(true))
|
|
1334
1332
|
});
|
|
1335
|
-
const
|
|
1336
|
-
User,
|
|
1337
|
-
typebox.Type.Object({
|
|
1338
|
-
id: Text,
|
|
1339
|
-
role: typebox.Type.Literal("assistant"),
|
|
1340
|
-
content: typebox.Type.Array(typebox.Type.Union([
|
|
1341
|
-
TextPart,
|
|
1342
|
-
typebox.Type.Object({
|
|
1343
|
-
type: typebox.Type.Literal("thinking"),
|
|
1344
|
-
thinking: Text,
|
|
1345
|
-
redacted: Optional(typebox.Type.Literal(true))
|
|
1346
|
-
}),
|
|
1347
|
-
typebox.Type.Object({
|
|
1348
|
-
type: typebox.Type.Literal("toolCall"),
|
|
1349
|
-
toolCallId: Text,
|
|
1350
|
-
toolName: Text,
|
|
1351
|
-
input: Json$1
|
|
1352
|
-
})
|
|
1353
|
-
])),
|
|
1354
|
-
model: Model,
|
|
1355
|
-
status: typebox.Type.Union([
|
|
1356
|
-
typebox.Type.Literal("streaming"),
|
|
1357
|
-
typebox.Type.Literal("complete"),
|
|
1358
|
-
typebox.Type.Literal("aborted"),
|
|
1359
|
-
typebox.Type.Literal("error")
|
|
1360
|
-
]),
|
|
1361
|
-
stopReason: Optional(typebox.Type.Union([
|
|
1362
|
-
typebox.Type.Literal("stop"),
|
|
1363
|
-
typebox.Type.Literal("length"),
|
|
1364
|
-
typebox.Type.Literal("toolUse"),
|
|
1365
|
-
typebox.Type.Literal("aborted"),
|
|
1366
|
-
typebox.Type.Literal("error")
|
|
1367
|
-
])),
|
|
1368
|
-
errorMessage: Optional(Text),
|
|
1369
|
-
timestamp: NumberValue
|
|
1370
|
-
}),
|
|
1371
|
-
typebox.Type.Object({
|
|
1372
|
-
id: Text,
|
|
1373
|
-
role: typebox.Type.Literal("tool"),
|
|
1374
|
-
toolCallId: Text,
|
|
1375
|
-
toolName: Text,
|
|
1376
|
-
input: Json$1,
|
|
1377
|
-
content: typebox.Type.Array(Content),
|
|
1378
|
-
details: Optional(Json$1),
|
|
1379
|
-
status: typebox.Type.Union([
|
|
1380
|
-
typebox.Type.Literal("running"),
|
|
1381
|
-
typebox.Type.Literal("complete"),
|
|
1382
|
-
typebox.Type.Literal("error")
|
|
1383
|
-
]),
|
|
1384
|
-
isError: Flag,
|
|
1385
|
-
timestamp: NumberValue
|
|
1386
|
-
})
|
|
1387
|
-
]);
|
|
1333
|
+
const Content = typebox.Type.Union([Image, TextPart]);
|
|
1388
1334
|
const Usage = typebox.Type.Object({
|
|
1389
1335
|
input: NumberValue,
|
|
1390
1336
|
output: NumberValue,
|
|
@@ -1428,36 +1374,10 @@ const ProtocolEvent = typebox.Type.Object({
|
|
|
1428
1374
|
});
|
|
1429
1375
|
const SessionServiceStateSchema = typebox.Type.Object({
|
|
1430
1376
|
snapshot: typebox.Type.Object({
|
|
1431
|
-
id: Text,
|
|
1432
|
-
cwd: Text,
|
|
1433
|
-
name: Optional(Text),
|
|
1434
|
-
createdAt: NumberValue,
|
|
1435
|
-
updatedAt: NumberValue,
|
|
1436
|
-
phase: Phase,
|
|
1437
|
-
model: Model,
|
|
1438
|
-
thinkingLevel: Thinking,
|
|
1439
1377
|
fastMode: Flag,
|
|
1440
|
-
attached: Flag,
|
|
1441
1378
|
locked: Flag,
|
|
1442
|
-
revision: NumberValue,
|
|
1443
|
-
queuedSteer: typebox.Type.Array(User),
|
|
1444
|
-
queuedSteerCount: NumberValue,
|
|
1445
1379
|
lifecycle: Optional(Lifecycle)
|
|
1446
1380
|
}),
|
|
1447
|
-
progress: typebox.Type.Union([typebox.Type.Null(), typebox.Type.Union([
|
|
1448
|
-
typebox.Type.Object({
|
|
1449
|
-
type: typebox.Type.Literal("item_started"),
|
|
1450
|
-
item: Transcript
|
|
1451
|
-
}),
|
|
1452
|
-
typebox.Type.Object({
|
|
1453
|
-
type: typebox.Type.Literal("item_updated"),
|
|
1454
|
-
item: Transcript
|
|
1455
|
-
}),
|
|
1456
|
-
typebox.Type.Object({
|
|
1457
|
-
type: typebox.Type.Literal("item_finished"),
|
|
1458
|
-
item: Transcript
|
|
1459
|
-
})
|
|
1460
|
-
])]),
|
|
1461
1381
|
presentation: Optional(typebox.Type.Object({
|
|
1462
1382
|
revision: NumberValue,
|
|
1463
1383
|
dropped: NumberValue,
|
|
@@ -1465,7 +1385,24 @@ const SessionServiceStateSchema = typebox.Type.Object({
|
|
|
1465
1385
|
events: typebox.Type.Array(ProtocolEvent),
|
|
1466
1386
|
projections: typebox.Type.Array(ProtocolEvent)
|
|
1467
1387
|
})),
|
|
1468
|
-
|
|
1388
|
+
live: Optional(typebox.Type.Object({
|
|
1389
|
+
phase: Phase,
|
|
1390
|
+
message: Optional(typebox.Type.Object({
|
|
1391
|
+
role: typebox.Type.Literal("assistant"),
|
|
1392
|
+
content: typebox.Type.Array(typebox.Type.Union([TextPart, ThinkingPart])),
|
|
1393
|
+
model: Text,
|
|
1394
|
+
timestamp: NumberValue
|
|
1395
|
+
})),
|
|
1396
|
+
tools: typebox.Type.Record(Text, typebox.Type.Object({
|
|
1397
|
+
toolCallId: Text,
|
|
1398
|
+
toolName: Text,
|
|
1399
|
+
args: Json$1,
|
|
1400
|
+
partialResult: Optional(typebox.Type.Object({
|
|
1401
|
+
content: typebox.Type.Array(Content),
|
|
1402
|
+
details: Optional(Json$1)
|
|
1403
|
+
}))
|
|
1404
|
+
}))
|
|
1405
|
+
}))
|
|
1469
1406
|
});
|
|
1470
1407
|
/** Argument and result schemas of the `po.session` methods; the Chord contract and the API docs both read them. */
|
|
1471
1408
|
const SessionMethodSchemas = {
|
|
@@ -1484,8 +1421,7 @@ const SessionMethodSchemas = {
|
|
|
1484
1421
|
newerCursor: typebox.Type.Union([Text, typebox.Type.Null()]),
|
|
1485
1422
|
generation: NumberValue,
|
|
1486
1423
|
revision: NumberValue,
|
|
1487
|
-
context: typebox.Type.Array(Json$1)
|
|
1488
|
-
drafts: typebox.Type.Array(Transcript)
|
|
1424
|
+
context: typebox.Type.Array(Json$1)
|
|
1489
1425
|
})
|
|
1490
1426
|
},
|
|
1491
1427
|
prompt: { args: typebox.Type.Union([Text, typebox.Type.Object({
|