stitchkit-tui 0.1.1 → 0.1.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/cli.js +124 -124
- package/dist/core/index.js +26 -26
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/index.js +160 -160
- package/dist/session.d.ts.map +1 -1
- package/package.json +9 -9
package/dist/cli.js
CHANGED
|
@@ -914,7 +914,7 @@ function projectAgentTuiTranscript(snapshot) {
|
|
|
914
914
|
}
|
|
915
915
|
|
|
916
916
|
// src/App.tsx
|
|
917
|
-
import {
|
|
917
|
+
import { jsxDEV } from "@opentui/react/jsx-dev-runtime";
|
|
918
918
|
function isDialog(value) {
|
|
919
919
|
return ["help", "model", "sessions", "status", "tools", "skills", "permissions"].includes(value);
|
|
920
920
|
}
|
|
@@ -1196,14 +1196,14 @@ function AgentTuiApp({
|
|
|
1196
1196
|
};
|
|
1197
1197
|
});
|
|
1198
1198
|
const selectedModelIndex = Math.max(0, visibleModels.models.findIndex(({ id }) => id === state.selectedModelId));
|
|
1199
|
-
return /* @__PURE__ */
|
|
1199
|
+
return /* @__PURE__ */ jsxDEV("box", {
|
|
1200
1200
|
style: {
|
|
1201
1201
|
width: "100%",
|
|
1202
1202
|
height: "100%",
|
|
1203
1203
|
flexDirection: "column"
|
|
1204
1204
|
},
|
|
1205
1205
|
children: [
|
|
1206
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ jsxDEV("box", {
|
|
1207
1207
|
style: {
|
|
1208
1208
|
height: 1,
|
|
1209
1209
|
paddingLeft: compact ? 1 : 2,
|
|
@@ -1212,25 +1212,25 @@ function AgentTuiApp({
|
|
|
1212
1212
|
flexDirection: "row"
|
|
1213
1213
|
},
|
|
1214
1214
|
children: [
|
|
1215
|
-
/* @__PURE__ */
|
|
1215
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1216
1216
|
fg: theme.accent,
|
|
1217
|
-
children: /* @__PURE__ */
|
|
1217
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1218
1218
|
children: [
|
|
1219
1219
|
"\u25C6 ",
|
|
1220
1220
|
title
|
|
1221
1221
|
]
|
|
1222
|
-
})
|
|
1223
|
-
}),
|
|
1224
|
-
!compact ? /* @__PURE__ */
|
|
1222
|
+
}, undefined, true, undefined, this)
|
|
1223
|
+
}, undefined, false, undefined, this),
|
|
1224
|
+
!compact ? /* @__PURE__ */ jsxDEV("text", {
|
|
1225
1225
|
fg: theme.muted,
|
|
1226
1226
|
children: [
|
|
1227
1227
|
" \xB7 ",
|
|
1228
1228
|
selectedModel?.name ?? state.selectedModelId
|
|
1229
1229
|
]
|
|
1230
|
-
}) : null
|
|
1230
|
+
}, undefined, true, undefined, this) : null
|
|
1231
1231
|
]
|
|
1232
|
-
}),
|
|
1233
|
-
/* @__PURE__ */
|
|
1232
|
+
}, undefined, true, undefined, this),
|
|
1233
|
+
/* @__PURE__ */ jsxDEV("scrollbox", {
|
|
1234
1234
|
ref: transcriptRef,
|
|
1235
1235
|
focused: !dialog2 && !state.pendingApproval,
|
|
1236
1236
|
stickyScroll: viewport2.followTail,
|
|
@@ -1244,53 +1244,53 @@ function AgentTuiApp({
|
|
|
1244
1244
|
scrollbarOptions: { visible: !compact }
|
|
1245
1245
|
},
|
|
1246
1246
|
children: [
|
|
1247
|
-
entries.length === 0 ? /* @__PURE__ */
|
|
1247
|
+
entries.length === 0 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1248
1248
|
style: { flexDirection: "column", paddingTop: 1 },
|
|
1249
1249
|
children: [
|
|
1250
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1251
1251
|
fg: theme.primary,
|
|
1252
|
-
children: /* @__PURE__ */
|
|
1252
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1253
1253
|
children: "What do you want to build?"
|
|
1254
|
-
})
|
|
1255
|
-
}),
|
|
1256
|
-
/* @__PURE__ */
|
|
1254
|
+
}, undefined, false, undefined, this)
|
|
1255
|
+
}, undefined, false, undefined, this),
|
|
1256
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1257
1257
|
fg: theme.muted,
|
|
1258
1258
|
children: "Type / for commands"
|
|
1259
|
-
})
|
|
1259
|
+
}, undefined, false, undefined, this)
|
|
1260
1260
|
]
|
|
1261
|
-
}) : entries.map((entry) => /* @__PURE__ */
|
|
1261
|
+
}, undefined, true, undefined, this) : entries.map((entry) => /* @__PURE__ */ jsxDEV("box", {
|
|
1262
1262
|
style: { flexDirection: "column", marginBottom: 1 },
|
|
1263
1263
|
children: [
|
|
1264
|
-
/* @__PURE__ */
|
|
1264
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1265
1265
|
fg: entry.role === "you" ? theme.accent : theme.muted,
|
|
1266
|
-
children: /* @__PURE__ */
|
|
1266
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1267
1267
|
children: roleLabel(entry.role)
|
|
1268
|
-
})
|
|
1269
|
-
}),
|
|
1270
|
-
/* @__PURE__ */
|
|
1268
|
+
}, undefined, false, undefined, this)
|
|
1269
|
+
}, undefined, false, undefined, this),
|
|
1270
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1271
1271
|
fg: toneColor(entry.tone, theme),
|
|
1272
1272
|
children: entry.text
|
|
1273
|
-
})
|
|
1273
|
+
}, undefined, false, undefined, this)
|
|
1274
1274
|
]
|
|
1275
|
-
}, entry.id)),
|
|
1276
|
-
Object.entries(state.streaming).map(([streamRunId, text]) => /* @__PURE__ */
|
|
1275
|
+
}, entry.id, true, undefined, this)),
|
|
1276
|
+
Object.entries(state.streaming).map(([streamRunId, text]) => /* @__PURE__ */ jsxDEV("box", {
|
|
1277
1277
|
style: { flexDirection: "column", marginBottom: 1 },
|
|
1278
1278
|
children: [
|
|
1279
|
-
/* @__PURE__ */
|
|
1279
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1280
1280
|
fg: theme.muted,
|
|
1281
|
-
children: /* @__PURE__ */
|
|
1281
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1282
1282
|
children: "AGENT \xB7 STREAMING"
|
|
1283
|
-
})
|
|
1284
|
-
}),
|
|
1285
|
-
/* @__PURE__ */
|
|
1283
|
+
}, undefined, false, undefined, this)
|
|
1284
|
+
}, undefined, false, undefined, this),
|
|
1285
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1286
1286
|
fg: theme.primary,
|
|
1287
1287
|
children: text
|
|
1288
|
-
})
|
|
1288
|
+
}, undefined, false, undefined, this)
|
|
1289
1289
|
]
|
|
1290
|
-
}, streamRunId))
|
|
1290
|
+
}, streamRunId, true, undefined, this))
|
|
1291
1291
|
]
|
|
1292
|
-
}),
|
|
1293
|
-
state.pendingApproval ? /* @__PURE__ */
|
|
1292
|
+
}, undefined, true, undefined, this),
|
|
1293
|
+
state.pendingApproval ? /* @__PURE__ */ jsxDEV("box", {
|
|
1294
1294
|
title: " APPROVAL ",
|
|
1295
1295
|
titleColor: theme.warning,
|
|
1296
1296
|
style: {
|
|
@@ -1304,25 +1304,25 @@ function AgentTuiApp({
|
|
|
1304
1304
|
flexDirection: "column"
|
|
1305
1305
|
},
|
|
1306
1306
|
children: [
|
|
1307
|
-
/* @__PURE__ */
|
|
1307
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1308
1308
|
fg: theme.primary,
|
|
1309
|
-
children: /* @__PURE__ */
|
|
1309
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1310
1310
|
children: state.pendingApproval.toolName
|
|
1311
|
-
})
|
|
1312
|
-
}),
|
|
1313
|
-
/* @__PURE__ */
|
|
1311
|
+
}, undefined, false, undefined, this)
|
|
1312
|
+
}, undefined, false, undefined, this),
|
|
1313
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1314
1314
|
fg: theme.muted,
|
|
1315
1315
|
children: JSON.stringify(state.pendingApproval.input).slice(0, 240)
|
|
1316
|
-
}),
|
|
1317
|
-
/* @__PURE__ */
|
|
1316
|
+
}, undefined, false, undefined, this),
|
|
1317
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1318
1318
|
fg: theme.warning,
|
|
1319
1319
|
children: "Y approve once \xB7 N / Esc deny"
|
|
1320
|
-
})
|
|
1320
|
+
}, undefined, false, undefined, this)
|
|
1321
1321
|
]
|
|
1322
|
-
}) : /* @__PURE__ */
|
|
1322
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsxDEV("box", {
|
|
1323
1323
|
style: { flexDirection: "column" },
|
|
1324
1324
|
children: [
|
|
1325
|
-
completions.length > 0 ? /* @__PURE__ */
|
|
1325
|
+
completions.length > 0 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1326
1326
|
style: {
|
|
1327
1327
|
maxHeight: 7,
|
|
1328
1328
|
marginLeft: compact ? 1 : 2,
|
|
@@ -1331,31 +1331,31 @@ function AgentTuiApp({
|
|
|
1331
1331
|
borderColor: theme.border,
|
|
1332
1332
|
flexDirection: "column"
|
|
1333
1333
|
},
|
|
1334
|
-
children: completions.map((command, index) => /* @__PURE__ */
|
|
1334
|
+
children: completions.map((command, index) => /* @__PURE__ */ jsxDEV("box", {
|
|
1335
1335
|
style: {
|
|
1336
1336
|
paddingLeft: 1,
|
|
1337
1337
|
...index === completionIndex && {
|
|
1338
1338
|
backgroundColor: theme.panelRaised
|
|
1339
1339
|
}
|
|
1340
1340
|
},
|
|
1341
|
-
children: /* @__PURE__ */
|
|
1341
|
+
children: /* @__PURE__ */ jsxDEV("text", {
|
|
1342
1342
|
fg: index === completionIndex ? theme.primary : theme.muted,
|
|
1343
1343
|
children: [
|
|
1344
|
-
/* @__PURE__ */
|
|
1344
|
+
/* @__PURE__ */ jsxDEV("span", {
|
|
1345
1345
|
fg: theme.accent,
|
|
1346
1346
|
children: [
|
|
1347
1347
|
index === completionIndex ? "\u203A" : " ",
|
|
1348
1348
|
" /",
|
|
1349
1349
|
command.name
|
|
1350
1350
|
]
|
|
1351
|
-
}),
|
|
1351
|
+
}, undefined, true, undefined, this),
|
|
1352
1352
|
" ",
|
|
1353
1353
|
command.description
|
|
1354
1354
|
]
|
|
1355
|
-
})
|
|
1356
|
-
}, command.name))
|
|
1357
|
-
}) : null,
|
|
1358
|
-
/* @__PURE__ */
|
|
1355
|
+
}, undefined, true, undefined, this)
|
|
1356
|
+
}, command.name, false, undefined, this))
|
|
1357
|
+
}, undefined, false, undefined, this) : null,
|
|
1358
|
+
/* @__PURE__ */ jsxDEV("box", {
|
|
1359
1359
|
style: {
|
|
1360
1360
|
height: 3,
|
|
1361
1361
|
marginLeft: compact ? 1 : 2,
|
|
@@ -1367,11 +1367,11 @@ function AgentTuiApp({
|
|
|
1367
1367
|
flexDirection: "row"
|
|
1368
1368
|
},
|
|
1369
1369
|
children: [
|
|
1370
|
-
/* @__PURE__ */
|
|
1370
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1371
1371
|
fg: dialog2 ? theme.muted : theme.accent,
|
|
1372
1372
|
children: "\u203A "
|
|
1373
|
-
}),
|
|
1374
|
-
/* @__PURE__ */
|
|
1373
|
+
}, undefined, false, undefined, this),
|
|
1374
|
+
/* @__PURE__ */ jsxDEV("textarea", {
|
|
1375
1375
|
ref: composerRef,
|
|
1376
1376
|
focused: !dialog2,
|
|
1377
1377
|
placeholder: "Message the agent or type / for commands\u2026",
|
|
@@ -1389,27 +1389,27 @@ function AgentTuiApp({
|
|
|
1389
1389
|
},
|
|
1390
1390
|
onSubmit: () => void submit(),
|
|
1391
1391
|
style: { width: "100%", height: "100%" }
|
|
1392
|
-
})
|
|
1392
|
+
}, undefined, false, undefined, this)
|
|
1393
1393
|
]
|
|
1394
|
-
})
|
|
1394
|
+
}, undefined, true, undefined, this)
|
|
1395
1395
|
]
|
|
1396
|
-
}),
|
|
1397
|
-
localNotice || state.notice || viewport2.unseen > 0 ? /* @__PURE__ */
|
|
1396
|
+
}, undefined, true, undefined, this),
|
|
1397
|
+
localNotice || state.notice || viewport2.unseen > 0 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1398
1398
|
style: { height: 1, paddingLeft: compact ? 1 : 2, paddingRight: 1 },
|
|
1399
|
-
children: /* @__PURE__ */
|
|
1399
|
+
children: /* @__PURE__ */ jsxDEV("text", {
|
|
1400
1400
|
fg: localNotice || state.notice ? theme.danger : theme.accent,
|
|
1401
1401
|
children: localNotice ?? state.notice?.message ?? `${viewport2.unseen} new messages`
|
|
1402
|
-
})
|
|
1403
|
-
}) : null,
|
|
1404
|
-
statusRows.length > 0 ? /* @__PURE__ */
|
|
1402
|
+
}, undefined, false, undefined, this)
|
|
1403
|
+
}, undefined, false, undefined, this) : null,
|
|
1404
|
+
statusRows.length > 0 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1405
1405
|
style: {
|
|
1406
1406
|
height: statusRows.length,
|
|
1407
1407
|
paddingLeft: compact ? 1 : 2,
|
|
1408
1408
|
paddingRight: 1,
|
|
1409
1409
|
flexDirection: "column"
|
|
1410
1410
|
},
|
|
1411
|
-
children: statusRows.map((row, rowIndex) => /* @__PURE__ */
|
|
1412
|
-
children: row.map((segment, segmentIndex) => /* @__PURE__ */
|
|
1411
|
+
children: statusRows.map((row, rowIndex) => /* @__PURE__ */ jsxDEV("text", {
|
|
1412
|
+
children: row.map((segment, segmentIndex) => /* @__PURE__ */ jsxDEV("span", {
|
|
1413
1413
|
fg: statusToneColor(segment.tone, theme),
|
|
1414
1414
|
bg: segmentIndex % 2 === 0 ? theme.panel : theme.panelRaised,
|
|
1415
1415
|
children: [
|
|
@@ -1417,10 +1417,10 @@ function AgentTuiApp({
|
|
|
1417
1417
|
segment.text,
|
|
1418
1418
|
" "
|
|
1419
1419
|
]
|
|
1420
|
-
}, `${segment.text}-${segmentIndex}
|
|
1421
|
-
}, `status-${rowIndex}
|
|
1422
|
-
}) : null,
|
|
1423
|
-
dialog2 ? /* @__PURE__ */
|
|
1420
|
+
}, `${segment.text}-${segmentIndex}`, true, undefined, this))
|
|
1421
|
+
}, `status-${rowIndex}`, false, undefined, this))
|
|
1422
|
+
}, undefined, false, undefined, this) : null,
|
|
1423
|
+
dialog2 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1424
1424
|
title: ` ${dialog2.toUpperCase()} `,
|
|
1425
1425
|
titleColor: theme.accent,
|
|
1426
1426
|
style: {
|
|
@@ -1436,10 +1436,10 @@ function AgentTuiApp({
|
|
|
1436
1436
|
flexDirection: "column"
|
|
1437
1437
|
},
|
|
1438
1438
|
children: [
|
|
1439
|
-
dialog2 === "model" ? /* @__PURE__ */
|
|
1439
|
+
dialog2 === "model" ? /* @__PURE__ */ jsxDEV("box", {
|
|
1440
1440
|
style: { flexDirection: "column", width: "100%", height: "100%" },
|
|
1441
1441
|
children: [
|
|
1442
|
-
/* @__PURE__ */
|
|
1442
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1443
1443
|
fg: theme.muted,
|
|
1444
1444
|
children: [
|
|
1445
1445
|
"Search the full catalog \xB7 showing ",
|
|
@@ -1449,8 +1449,8 @@ function AgentTuiApp({
|
|
|
1449
1449
|
visibleModels.total,
|
|
1450
1450
|
" matches \xB7 Tab switches search/list"
|
|
1451
1451
|
]
|
|
1452
|
-
}),
|
|
1453
|
-
/* @__PURE__ */
|
|
1452
|
+
}, undefined, true, undefined, this),
|
|
1453
|
+
/* @__PURE__ */ jsxDEV("box", {
|
|
1454
1454
|
style: {
|
|
1455
1455
|
height: 3,
|
|
1456
1456
|
border: true,
|
|
@@ -1458,16 +1458,16 @@ function AgentTuiApp({
|
|
|
1458
1458
|
paddingLeft: 1,
|
|
1459
1459
|
paddingRight: 1
|
|
1460
1460
|
},
|
|
1461
|
-
children: /* @__PURE__ */
|
|
1461
|
+
children: /* @__PURE__ */ jsxDEV("input", {
|
|
1462
1462
|
focused: modelSearchFocused,
|
|
1463
1463
|
value: modelQuery,
|
|
1464
1464
|
placeholder: "Filter by model, provider or capability\u2026",
|
|
1465
1465
|
onInput: setModelQuery,
|
|
1466
1466
|
onSubmit: () => setModelSearchFocused(false),
|
|
1467
1467
|
style: { width: "100%" }
|
|
1468
|
-
})
|
|
1469
|
-
}),
|
|
1470
|
-
/* @__PURE__ */
|
|
1468
|
+
}, undefined, false, undefined, this)
|
|
1469
|
+
}, undefined, false, undefined, this),
|
|
1470
|
+
/* @__PURE__ */ jsxDEV("select", {
|
|
1471
1471
|
focused: !modelSearchFocused,
|
|
1472
1472
|
options: modelOptions,
|
|
1473
1473
|
selectedIndex: selectedModelIndex,
|
|
@@ -1487,9 +1487,9 @@ function AgentTuiApp({
|
|
|
1487
1487
|
return;
|
|
1488
1488
|
controller.selectModel(model.id).then(() => setDialog(undefined)).catch((error) => setLocalNotice(errorMessage(error)));
|
|
1489
1489
|
}
|
|
1490
|
-
})
|
|
1490
|
+
}, undefined, false, undefined, this)
|
|
1491
1491
|
]
|
|
1492
|
-
}) : dialog2 === "sessions" ? conversations ? /* @__PURE__ */
|
|
1492
|
+
}, undefined, true, undefined, this) : dialog2 === "sessions" ? conversations ? /* @__PURE__ */ jsxDEV("select", {
|
|
1493
1493
|
focused: true,
|
|
1494
1494
|
options: sessions.map((session) => ({
|
|
1495
1495
|
name: session.conversationId,
|
|
@@ -1514,113 +1514,113 @@ function AgentTuiApp({
|
|
|
1514
1514
|
setHiddenBefore(0);
|
|
1515
1515
|
}).catch((error) => setLocalNotice(errorMessage(error)));
|
|
1516
1516
|
}
|
|
1517
|
-
}) : /* @__PURE__ */
|
|
1517
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV("text", {
|
|
1518
1518
|
fg: theme.muted,
|
|
1519
1519
|
children: "This host does not provide a conversation catalog."
|
|
1520
|
-
}) : dialog2 === "help" ? /* @__PURE__ */
|
|
1520
|
+
}, undefined, false, undefined, this) : dialog2 === "help" ? /* @__PURE__ */ jsxDEV("scrollbox", {
|
|
1521
1521
|
focused: true,
|
|
1522
1522
|
style: { flexGrow: 1, contentOptions: { flexDirection: "column" } },
|
|
1523
|
-
children: commands.map((command) => /* @__PURE__ */
|
|
1523
|
+
children: commands.map((command) => /* @__PURE__ */ jsxDEV("text", {
|
|
1524
1524
|
fg: theme.primary,
|
|
1525
1525
|
children: [
|
|
1526
|
-
/* @__PURE__ */
|
|
1526
|
+
/* @__PURE__ */ jsxDEV("span", {
|
|
1527
1527
|
fg: theme.accent,
|
|
1528
1528
|
children: [
|
|
1529
1529
|
"/",
|
|
1530
1530
|
command.name
|
|
1531
1531
|
]
|
|
1532
|
-
}),
|
|
1532
|
+
}, undefined, true, undefined, this),
|
|
1533
1533
|
" ",
|
|
1534
1534
|
command.description
|
|
1535
1535
|
]
|
|
1536
|
-
}, command.name))
|
|
1537
|
-
}) : dialog2 === "status" ? /* @__PURE__ */
|
|
1536
|
+
}, command.name, true, undefined, this))
|
|
1537
|
+
}, undefined, false, undefined, this) : dialog2 === "status" ? /* @__PURE__ */ jsxDEV("box", {
|
|
1538
1538
|
style: { flexDirection: "column" },
|
|
1539
1539
|
children: [
|
|
1540
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1541
1541
|
fg: theme.primary,
|
|
1542
1542
|
children: [
|
|
1543
1543
|
"Session ",
|
|
1544
1544
|
sessionId
|
|
1545
1545
|
]
|
|
1546
|
-
}),
|
|
1547
|
-
/* @__PURE__ */
|
|
1546
|
+
}, undefined, true, undefined, this),
|
|
1547
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1548
1548
|
fg: theme.primary,
|
|
1549
1549
|
children: [
|
|
1550
1550
|
"Conversation ",
|
|
1551
1551
|
state.conversationId
|
|
1552
1552
|
]
|
|
1553
|
-
}),
|
|
1554
|
-
/* @__PURE__ */
|
|
1553
|
+
}, undefined, true, undefined, this),
|
|
1554
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1555
1555
|
fg: theme.primary,
|
|
1556
1556
|
children: [
|
|
1557
1557
|
"Model ",
|
|
1558
1558
|
state.selectedModelId
|
|
1559
1559
|
]
|
|
1560
|
-
}),
|
|
1561
|
-
/* @__PURE__ */
|
|
1560
|
+
}, undefined, true, undefined, this),
|
|
1561
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1562
1562
|
fg: theme.primary,
|
|
1563
1563
|
children: [
|
|
1564
1564
|
"Run ",
|
|
1565
1565
|
runId ?? "idle"
|
|
1566
1566
|
]
|
|
1567
|
-
}),
|
|
1568
|
-
/* @__PURE__ */
|
|
1567
|
+
}, undefined, true, undefined, this),
|
|
1568
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1569
1569
|
fg: theme.muted,
|
|
1570
1570
|
children: "External clients submit through this host's controller."
|
|
1571
|
-
})
|
|
1571
|
+
}, undefined, false, undefined, this)
|
|
1572
1572
|
]
|
|
1573
|
-
}) : dialog2 === "tools" ? /* @__PURE__ */
|
|
1573
|
+
}, undefined, true, undefined, this) : dialog2 === "tools" ? /* @__PURE__ */ jsxDEV("box", {
|
|
1574
1574
|
style: { flexDirection: "column" },
|
|
1575
1575
|
children: [
|
|
1576
1576
|
[
|
|
1577
1577
|
...new Set(entries.filter(({ role: role2 }) => role2 === "tool").map(({ text }) => text.split(" ")[1]).filter(isString))
|
|
1578
|
-
].map((name) => /* @__PURE__ */
|
|
1578
|
+
].map((name) => /* @__PURE__ */ jsxDEV("text", {
|
|
1579
1579
|
fg: theme.primary,
|
|
1580
1580
|
children: name
|
|
1581
|
-
}, name)),
|
|
1582
|
-
/* @__PURE__ */
|
|
1581
|
+
}, name, false, undefined, this)),
|
|
1582
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1583
1583
|
fg: theme.muted,
|
|
1584
1584
|
children: "Direct tools retain their own durable identity."
|
|
1585
|
-
})
|
|
1585
|
+
}, undefined, false, undefined, this)
|
|
1586
1586
|
]
|
|
1587
|
-
}) : dialog2 === "permissions" ? /* @__PURE__ */
|
|
1587
|
+
}, undefined, true, undefined, this) : dialog2 === "permissions" ? /* @__PURE__ */ jsxDEV("box", {
|
|
1588
1588
|
style: { flexDirection: "column" },
|
|
1589
1589
|
children: [
|
|
1590
|
-
/* @__PURE__ */
|
|
1590
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1591
1591
|
fg: theme.primary,
|
|
1592
1592
|
children: "Approval decisions are per exact tool call."
|
|
1593
|
-
}),
|
|
1594
|
-
/* @__PURE__ */
|
|
1593
|
+
}, undefined, false, undefined, this),
|
|
1594
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1595
1595
|
fg: theme.muted,
|
|
1596
1596
|
children: "Sandbox enforcement is supplied and reported by the embedding host."
|
|
1597
|
-
})
|
|
1597
|
+
}, undefined, false, undefined, this)
|
|
1598
1598
|
]
|
|
1599
|
-
}) : /* @__PURE__ */
|
|
1599
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsxDEV("box", {
|
|
1600
1600
|
style: { flexDirection: "column" },
|
|
1601
1601
|
children: [
|
|
1602
|
-
/* @__PURE__ */
|
|
1602
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1603
1603
|
fg: theme.primary,
|
|
1604
1604
|
children: "Skills and resources are discovered lazily by the harness."
|
|
1605
|
-
}),
|
|
1606
|
-
/* @__PURE__ */
|
|
1605
|
+
}, undefined, false, undefined, this),
|
|
1606
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1607
1607
|
fg: theme.muted,
|
|
1608
1608
|
children: "The model reads exact content through the direct read_resource tool."
|
|
1609
|
-
})
|
|
1609
|
+
}, undefined, false, undefined, this)
|
|
1610
1610
|
]
|
|
1611
|
-
}),
|
|
1612
|
-
dialog2 === "sessions" && sessionCursor ? /* @__PURE__ */
|
|
1611
|
+
}, undefined, true, undefined, this),
|
|
1612
|
+
dialog2 === "sessions" && sessionCursor ? /* @__PURE__ */ jsxDEV("text", {
|
|
1613
1613
|
fg: theme.muted,
|
|
1614
1614
|
children: "More conversations are available."
|
|
1615
|
-
}) : null,
|
|
1616
|
-
/* @__PURE__ */
|
|
1615
|
+
}, undefined, false, undefined, this) : null,
|
|
1616
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1617
1617
|
fg: theme.muted,
|
|
1618
1618
|
children: "Esc close"
|
|
1619
|
-
})
|
|
1619
|
+
}, undefined, false, undefined, this)
|
|
1620
1620
|
]
|
|
1621
|
-
}) : null
|
|
1621
|
+
}, undefined, true, undefined, this) : null
|
|
1622
1622
|
]
|
|
1623
|
-
});
|
|
1623
|
+
}, undefined, true, undefined, this);
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
1626
1626
|
// src/config.ts
|
|
@@ -1894,7 +1894,7 @@ async function createAgentTuiController(input) {
|
|
|
1894
1894
|
// src/diagnostics.ts
|
|
1895
1895
|
import { lstat, mkdir as mkdir3, readdir as readdir2, rm } from "fs/promises";
|
|
1896
1896
|
import path4 from "path";
|
|
1897
|
-
import { createDiagnosticJournal } from "stitchkit/application";
|
|
1897
|
+
import { createDiagnosticJournal } from "stitchkit/application/diagnostic-journal";
|
|
1898
1898
|
import { z as z10 } from "zod";
|
|
1899
1899
|
var RUNTIME_EVENT_TYPES = new Set([
|
|
1900
1900
|
"admission",
|
|
@@ -2034,7 +2034,7 @@ async function createAgentTuiDiagnosticRecorder(input) {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
|
|
2036
2036
|
// src/run.tsx
|
|
2037
|
-
import {
|
|
2037
|
+
import { jsxDEV as jsxDEV2 } from "@opentui/react/jsx-dev-runtime";
|
|
2038
2038
|
function runtimeContext(config) {
|
|
2039
2039
|
return Promise.resolve(config.context());
|
|
2040
2040
|
}
|
|
@@ -2159,7 +2159,7 @@ async function runAgentTui(config) {
|
|
|
2159
2159
|
})();
|
|
2160
2160
|
return closing;
|
|
2161
2161
|
};
|
|
2162
|
-
root.render(/* @__PURE__ */
|
|
2162
|
+
root.render(/* @__PURE__ */ jsxDEV2(AgentTuiApp, {
|
|
2163
2163
|
controller,
|
|
2164
2164
|
catalog,
|
|
2165
2165
|
...bundle.conversations && { conversations: bundle.conversations },
|
|
@@ -2184,7 +2184,7 @@ async function runAgentTui(config) {
|
|
|
2184
2184
|
});
|
|
2185
2185
|
},
|
|
2186
2186
|
onExit: close
|
|
2187
|
-
}));
|
|
2187
|
+
}, undefined, false, undefined, this));
|
|
2188
2188
|
process.once("SIGINT", onSignal);
|
|
2189
2189
|
process.once("SIGTERM", onSignal);
|
|
2190
2190
|
return { sessionId: host.sessionId, close };
|
package/dist/core/index.js
CHANGED
|
@@ -331,31 +331,31 @@ function visibleTerminalFeedRange(state) {
|
|
|
331
331
|
return { start: parsed.start, end: Math.min(parsed.total, parsed.start + parsed.capacity) };
|
|
332
332
|
}
|
|
333
333
|
export {
|
|
334
|
-
|
|
335
|
-
TerminalCommandDescriptorSchema,
|
|
336
|
-
TerminalCommandPaletteStateSchema,
|
|
337
|
-
TerminalFeedViewportSchema,
|
|
338
|
-
TerminalOperationStateSchema,
|
|
339
|
-
TerminalPaneIdSchema,
|
|
340
|
-
TerminalPaneModeSchema,
|
|
341
|
-
TerminalPaneStateSchema,
|
|
342
|
-
createTerminalCollection,
|
|
343
|
-
createTerminalCommandPalette,
|
|
344
|
-
createTerminalFeedViewport,
|
|
345
|
-
createTerminalOperationState,
|
|
346
|
-
createTerminalPaneState,
|
|
347
|
-
dismissTerminalCommandPalette,
|
|
348
|
-
moveTerminalCommandSelection,
|
|
349
|
-
reduceTerminalCollection,
|
|
350
|
-
reduceTerminalFeedViewport,
|
|
351
|
-
reduceTerminalOperationState,
|
|
352
|
-
reduceTerminalPaneState,
|
|
353
|
-
resolveExactTerminalCommand,
|
|
354
|
-
selectedTerminalCommand,
|
|
355
|
-
setTerminalCommandQuery,
|
|
356
|
-
terminalCommandMatches,
|
|
357
|
-
validateTerminalCommands,
|
|
358
|
-
visibleTerminalCollectionRange,
|
|
334
|
+
visibleTerminalPanes,
|
|
359
335
|
visibleTerminalFeedRange,
|
|
360
|
-
|
|
336
|
+
visibleTerminalCollectionRange,
|
|
337
|
+
validateTerminalCommands,
|
|
338
|
+
terminalCommandMatches,
|
|
339
|
+
setTerminalCommandQuery,
|
|
340
|
+
selectedTerminalCommand,
|
|
341
|
+
resolveExactTerminalCommand,
|
|
342
|
+
reduceTerminalPaneState,
|
|
343
|
+
reduceTerminalOperationState,
|
|
344
|
+
reduceTerminalFeedViewport,
|
|
345
|
+
reduceTerminalCollection,
|
|
346
|
+
moveTerminalCommandSelection,
|
|
347
|
+
dismissTerminalCommandPalette,
|
|
348
|
+
createTerminalPaneState,
|
|
349
|
+
createTerminalOperationState,
|
|
350
|
+
createTerminalFeedViewport,
|
|
351
|
+
createTerminalCommandPalette,
|
|
352
|
+
createTerminalCollection,
|
|
353
|
+
TerminalPaneStateSchema,
|
|
354
|
+
TerminalPaneModeSchema,
|
|
355
|
+
TerminalPaneIdSchema,
|
|
356
|
+
TerminalOperationStateSchema,
|
|
357
|
+
TerminalFeedViewportSchema,
|
|
358
|
+
TerminalCommandPaletteStateSchema,
|
|
359
|
+
TerminalCommandDescriptorSchema,
|
|
360
|
+
TerminalCollectionStateSchema
|
|
361
361
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../src/diagnostics.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../src/diagnostics.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAmBpD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAsCxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,MAAM,WAAW,0BAA2B,SAAQ,mBAAmB;IACrE,MAAM,CAAC,KAAK,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC7C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAOD,8FAA8F;AAC9F,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,OAAO,EACd,UAAU,SAA2B,GACpC,uBAAuB,GAAG,SAAS,CAmBrC;AAgCD,wBAAsB,gCAAgC,CAAC,KAAK,EAAE;IAC5D,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAgCtC"}
|
package/dist/index.js
CHANGED
|
@@ -705,7 +705,7 @@ async function createAgentTuiController(input) {
|
|
|
705
705
|
// src/diagnostics.ts
|
|
706
706
|
import { lstat, mkdir as mkdir3, readdir as readdir2, rm } from "fs/promises";
|
|
707
707
|
import path3 from "path";
|
|
708
|
-
import { createDiagnosticJournal } from "stitchkit/application";
|
|
708
|
+
import { createDiagnosticJournal } from "stitchkit/application/diagnostic-journal";
|
|
709
709
|
import { z as z10 } from "zod";
|
|
710
710
|
|
|
711
711
|
// src/session.ts
|
|
@@ -1313,7 +1313,7 @@ function projectAgentTuiTranscript(snapshot) {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
1315
|
// src/App.tsx
|
|
1316
|
-
import {
|
|
1316
|
+
import { jsxDEV } from "@opentui/react/jsx-dev-runtime";
|
|
1317
1317
|
function isDialog(value) {
|
|
1318
1318
|
return ["help", "model", "sessions", "status", "tools", "skills", "permissions"].includes(value);
|
|
1319
1319
|
}
|
|
@@ -1595,14 +1595,14 @@ function AgentTuiApp({
|
|
|
1595
1595
|
};
|
|
1596
1596
|
});
|
|
1597
1597
|
const selectedModelIndex = Math.max(0, visibleModels.models.findIndex(({ id }) => id === state.selectedModelId));
|
|
1598
|
-
return /* @__PURE__ */
|
|
1598
|
+
return /* @__PURE__ */ jsxDEV("box", {
|
|
1599
1599
|
style: {
|
|
1600
1600
|
width: "100%",
|
|
1601
1601
|
height: "100%",
|
|
1602
1602
|
flexDirection: "column"
|
|
1603
1603
|
},
|
|
1604
1604
|
children: [
|
|
1605
|
-
/* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ jsxDEV("box", {
|
|
1606
1606
|
style: {
|
|
1607
1607
|
height: 1,
|
|
1608
1608
|
paddingLeft: compact ? 1 : 2,
|
|
@@ -1611,25 +1611,25 @@ function AgentTuiApp({
|
|
|
1611
1611
|
flexDirection: "row"
|
|
1612
1612
|
},
|
|
1613
1613
|
children: [
|
|
1614
|
-
/* @__PURE__ */
|
|
1614
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1615
1615
|
fg: theme.accent,
|
|
1616
|
-
children: /* @__PURE__ */
|
|
1616
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1617
1617
|
children: [
|
|
1618
1618
|
"\u25C6 ",
|
|
1619
1619
|
title
|
|
1620
1620
|
]
|
|
1621
|
-
})
|
|
1622
|
-
}),
|
|
1623
|
-
!compact ? /* @__PURE__ */
|
|
1621
|
+
}, undefined, true, undefined, this)
|
|
1622
|
+
}, undefined, false, undefined, this),
|
|
1623
|
+
!compact ? /* @__PURE__ */ jsxDEV("text", {
|
|
1624
1624
|
fg: theme.muted,
|
|
1625
1625
|
children: [
|
|
1626
1626
|
" \xB7 ",
|
|
1627
1627
|
selectedModel?.name ?? state.selectedModelId
|
|
1628
1628
|
]
|
|
1629
|
-
}) : null
|
|
1629
|
+
}, undefined, true, undefined, this) : null
|
|
1630
1630
|
]
|
|
1631
|
-
}),
|
|
1632
|
-
/* @__PURE__ */
|
|
1631
|
+
}, undefined, true, undefined, this),
|
|
1632
|
+
/* @__PURE__ */ jsxDEV("scrollbox", {
|
|
1633
1633
|
ref: transcriptRef,
|
|
1634
1634
|
focused: !dialog2 && !state.pendingApproval,
|
|
1635
1635
|
stickyScroll: viewport2.followTail,
|
|
@@ -1643,53 +1643,53 @@ function AgentTuiApp({
|
|
|
1643
1643
|
scrollbarOptions: { visible: !compact }
|
|
1644
1644
|
},
|
|
1645
1645
|
children: [
|
|
1646
|
-
entries.length === 0 ? /* @__PURE__ */
|
|
1646
|
+
entries.length === 0 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1647
1647
|
style: { flexDirection: "column", paddingTop: 1 },
|
|
1648
1648
|
children: [
|
|
1649
|
-
/* @__PURE__ */
|
|
1649
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1650
1650
|
fg: theme.primary,
|
|
1651
|
-
children: /* @__PURE__ */
|
|
1651
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1652
1652
|
children: "What do you want to build?"
|
|
1653
|
-
})
|
|
1654
|
-
}),
|
|
1655
|
-
/* @__PURE__ */
|
|
1653
|
+
}, undefined, false, undefined, this)
|
|
1654
|
+
}, undefined, false, undefined, this),
|
|
1655
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1656
1656
|
fg: theme.muted,
|
|
1657
1657
|
children: "Type / for commands"
|
|
1658
|
-
})
|
|
1658
|
+
}, undefined, false, undefined, this)
|
|
1659
1659
|
]
|
|
1660
|
-
}) : entries.map((entry) => /* @__PURE__ */
|
|
1660
|
+
}, undefined, true, undefined, this) : entries.map((entry) => /* @__PURE__ */ jsxDEV("box", {
|
|
1661
1661
|
style: { flexDirection: "column", marginBottom: 1 },
|
|
1662
1662
|
children: [
|
|
1663
|
-
/* @__PURE__ */
|
|
1663
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1664
1664
|
fg: entry.role === "you" ? theme.accent : theme.muted,
|
|
1665
|
-
children: /* @__PURE__ */
|
|
1665
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1666
1666
|
children: roleLabel(entry.role)
|
|
1667
|
-
})
|
|
1668
|
-
}),
|
|
1669
|
-
/* @__PURE__ */
|
|
1667
|
+
}, undefined, false, undefined, this)
|
|
1668
|
+
}, undefined, false, undefined, this),
|
|
1669
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1670
1670
|
fg: toneColor(entry.tone, theme),
|
|
1671
1671
|
children: entry.text
|
|
1672
|
-
})
|
|
1672
|
+
}, undefined, false, undefined, this)
|
|
1673
1673
|
]
|
|
1674
|
-
}, entry.id)),
|
|
1675
|
-
Object.entries(state.streaming).map(([streamRunId, text]) => /* @__PURE__ */
|
|
1674
|
+
}, entry.id, true, undefined, this)),
|
|
1675
|
+
Object.entries(state.streaming).map(([streamRunId, text]) => /* @__PURE__ */ jsxDEV("box", {
|
|
1676
1676
|
style: { flexDirection: "column", marginBottom: 1 },
|
|
1677
1677
|
children: [
|
|
1678
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1679
1679
|
fg: theme.muted,
|
|
1680
|
-
children: /* @__PURE__ */
|
|
1680
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1681
1681
|
children: "AGENT \xB7 STREAMING"
|
|
1682
|
-
})
|
|
1683
|
-
}),
|
|
1684
|
-
/* @__PURE__ */
|
|
1682
|
+
}, undefined, false, undefined, this)
|
|
1683
|
+
}, undefined, false, undefined, this),
|
|
1684
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1685
1685
|
fg: theme.primary,
|
|
1686
1686
|
children: text
|
|
1687
|
-
})
|
|
1687
|
+
}, undefined, false, undefined, this)
|
|
1688
1688
|
]
|
|
1689
|
-
}, streamRunId))
|
|
1689
|
+
}, streamRunId, true, undefined, this))
|
|
1690
1690
|
]
|
|
1691
|
-
}),
|
|
1692
|
-
state.pendingApproval ? /* @__PURE__ */
|
|
1691
|
+
}, undefined, true, undefined, this),
|
|
1692
|
+
state.pendingApproval ? /* @__PURE__ */ jsxDEV("box", {
|
|
1693
1693
|
title: " APPROVAL ",
|
|
1694
1694
|
titleColor: theme.warning,
|
|
1695
1695
|
style: {
|
|
@@ -1703,25 +1703,25 @@ function AgentTuiApp({
|
|
|
1703
1703
|
flexDirection: "column"
|
|
1704
1704
|
},
|
|
1705
1705
|
children: [
|
|
1706
|
-
/* @__PURE__ */
|
|
1706
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1707
1707
|
fg: theme.primary,
|
|
1708
|
-
children: /* @__PURE__ */
|
|
1708
|
+
children: /* @__PURE__ */ jsxDEV("strong", {
|
|
1709
1709
|
children: state.pendingApproval.toolName
|
|
1710
|
-
})
|
|
1711
|
-
}),
|
|
1712
|
-
/* @__PURE__ */
|
|
1710
|
+
}, undefined, false, undefined, this)
|
|
1711
|
+
}, undefined, false, undefined, this),
|
|
1712
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1713
1713
|
fg: theme.muted,
|
|
1714
1714
|
children: JSON.stringify(state.pendingApproval.input).slice(0, 240)
|
|
1715
|
-
}),
|
|
1716
|
-
/* @__PURE__ */
|
|
1715
|
+
}, undefined, false, undefined, this),
|
|
1716
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1717
1717
|
fg: theme.warning,
|
|
1718
1718
|
children: "Y approve once \xB7 N / Esc deny"
|
|
1719
|
-
})
|
|
1719
|
+
}, undefined, false, undefined, this)
|
|
1720
1720
|
]
|
|
1721
|
-
}) : /* @__PURE__ */
|
|
1721
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsxDEV("box", {
|
|
1722
1722
|
style: { flexDirection: "column" },
|
|
1723
1723
|
children: [
|
|
1724
|
-
completions.length > 0 ? /* @__PURE__ */
|
|
1724
|
+
completions.length > 0 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1725
1725
|
style: {
|
|
1726
1726
|
maxHeight: 7,
|
|
1727
1727
|
marginLeft: compact ? 1 : 2,
|
|
@@ -1730,31 +1730,31 @@ function AgentTuiApp({
|
|
|
1730
1730
|
borderColor: theme.border,
|
|
1731
1731
|
flexDirection: "column"
|
|
1732
1732
|
},
|
|
1733
|
-
children: completions.map((command, index) => /* @__PURE__ */
|
|
1733
|
+
children: completions.map((command, index) => /* @__PURE__ */ jsxDEV("box", {
|
|
1734
1734
|
style: {
|
|
1735
1735
|
paddingLeft: 1,
|
|
1736
1736
|
...index === completionIndex && {
|
|
1737
1737
|
backgroundColor: theme.panelRaised
|
|
1738
1738
|
}
|
|
1739
1739
|
},
|
|
1740
|
-
children: /* @__PURE__ */
|
|
1740
|
+
children: /* @__PURE__ */ jsxDEV("text", {
|
|
1741
1741
|
fg: index === completionIndex ? theme.primary : theme.muted,
|
|
1742
1742
|
children: [
|
|
1743
|
-
/* @__PURE__ */
|
|
1743
|
+
/* @__PURE__ */ jsxDEV("span", {
|
|
1744
1744
|
fg: theme.accent,
|
|
1745
1745
|
children: [
|
|
1746
1746
|
index === completionIndex ? "\u203A" : " ",
|
|
1747
1747
|
" /",
|
|
1748
1748
|
command.name
|
|
1749
1749
|
]
|
|
1750
|
-
}),
|
|
1750
|
+
}, undefined, true, undefined, this),
|
|
1751
1751
|
" ",
|
|
1752
1752
|
command.description
|
|
1753
1753
|
]
|
|
1754
|
-
})
|
|
1755
|
-
}, command.name))
|
|
1756
|
-
}) : null,
|
|
1757
|
-
/* @__PURE__ */
|
|
1754
|
+
}, undefined, true, undefined, this)
|
|
1755
|
+
}, command.name, false, undefined, this))
|
|
1756
|
+
}, undefined, false, undefined, this) : null,
|
|
1757
|
+
/* @__PURE__ */ jsxDEV("box", {
|
|
1758
1758
|
style: {
|
|
1759
1759
|
height: 3,
|
|
1760
1760
|
marginLeft: compact ? 1 : 2,
|
|
@@ -1766,11 +1766,11 @@ function AgentTuiApp({
|
|
|
1766
1766
|
flexDirection: "row"
|
|
1767
1767
|
},
|
|
1768
1768
|
children: [
|
|
1769
|
-
/* @__PURE__ */
|
|
1769
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1770
1770
|
fg: dialog2 ? theme.muted : theme.accent,
|
|
1771
1771
|
children: "\u203A "
|
|
1772
|
-
}),
|
|
1773
|
-
/* @__PURE__ */
|
|
1772
|
+
}, undefined, false, undefined, this),
|
|
1773
|
+
/* @__PURE__ */ jsxDEV("textarea", {
|
|
1774
1774
|
ref: composerRef,
|
|
1775
1775
|
focused: !dialog2,
|
|
1776
1776
|
placeholder: "Message the agent or type / for commands\u2026",
|
|
@@ -1788,27 +1788,27 @@ function AgentTuiApp({
|
|
|
1788
1788
|
},
|
|
1789
1789
|
onSubmit: () => void submit(),
|
|
1790
1790
|
style: { width: "100%", height: "100%" }
|
|
1791
|
-
})
|
|
1791
|
+
}, undefined, false, undefined, this)
|
|
1792
1792
|
]
|
|
1793
|
-
})
|
|
1793
|
+
}, undefined, true, undefined, this)
|
|
1794
1794
|
]
|
|
1795
|
-
}),
|
|
1796
|
-
localNotice || state.notice || viewport2.unseen > 0 ? /* @__PURE__ */
|
|
1795
|
+
}, undefined, true, undefined, this),
|
|
1796
|
+
localNotice || state.notice || viewport2.unseen > 0 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1797
1797
|
style: { height: 1, paddingLeft: compact ? 1 : 2, paddingRight: 1 },
|
|
1798
|
-
children: /* @__PURE__ */
|
|
1798
|
+
children: /* @__PURE__ */ jsxDEV("text", {
|
|
1799
1799
|
fg: localNotice || state.notice ? theme.danger : theme.accent,
|
|
1800
1800
|
children: localNotice ?? state.notice?.message ?? `${viewport2.unseen} new messages`
|
|
1801
|
-
})
|
|
1802
|
-
}) : null,
|
|
1803
|
-
statusRows.length > 0 ? /* @__PURE__ */
|
|
1801
|
+
}, undefined, false, undefined, this)
|
|
1802
|
+
}, undefined, false, undefined, this) : null,
|
|
1803
|
+
statusRows.length > 0 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1804
1804
|
style: {
|
|
1805
1805
|
height: statusRows.length,
|
|
1806
1806
|
paddingLeft: compact ? 1 : 2,
|
|
1807
1807
|
paddingRight: 1,
|
|
1808
1808
|
flexDirection: "column"
|
|
1809
1809
|
},
|
|
1810
|
-
children: statusRows.map((row, rowIndex) => /* @__PURE__ */
|
|
1811
|
-
children: row.map((segment, segmentIndex) => /* @__PURE__ */
|
|
1810
|
+
children: statusRows.map((row, rowIndex) => /* @__PURE__ */ jsxDEV("text", {
|
|
1811
|
+
children: row.map((segment, segmentIndex) => /* @__PURE__ */ jsxDEV("span", {
|
|
1812
1812
|
fg: statusToneColor(segment.tone, theme),
|
|
1813
1813
|
bg: segmentIndex % 2 === 0 ? theme.panel : theme.panelRaised,
|
|
1814
1814
|
children: [
|
|
@@ -1816,10 +1816,10 @@ function AgentTuiApp({
|
|
|
1816
1816
|
segment.text,
|
|
1817
1817
|
" "
|
|
1818
1818
|
]
|
|
1819
|
-
}, `${segment.text}-${segmentIndex}
|
|
1820
|
-
}, `status-${rowIndex}
|
|
1821
|
-
}) : null,
|
|
1822
|
-
dialog2 ? /* @__PURE__ */
|
|
1819
|
+
}, `${segment.text}-${segmentIndex}`, true, undefined, this))
|
|
1820
|
+
}, `status-${rowIndex}`, false, undefined, this))
|
|
1821
|
+
}, undefined, false, undefined, this) : null,
|
|
1822
|
+
dialog2 ? /* @__PURE__ */ jsxDEV("box", {
|
|
1823
1823
|
title: ` ${dialog2.toUpperCase()} `,
|
|
1824
1824
|
titleColor: theme.accent,
|
|
1825
1825
|
style: {
|
|
@@ -1835,10 +1835,10 @@ function AgentTuiApp({
|
|
|
1835
1835
|
flexDirection: "column"
|
|
1836
1836
|
},
|
|
1837
1837
|
children: [
|
|
1838
|
-
dialog2 === "model" ? /* @__PURE__ */
|
|
1838
|
+
dialog2 === "model" ? /* @__PURE__ */ jsxDEV("box", {
|
|
1839
1839
|
style: { flexDirection: "column", width: "100%", height: "100%" },
|
|
1840
1840
|
children: [
|
|
1841
|
-
/* @__PURE__ */
|
|
1841
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1842
1842
|
fg: theme.muted,
|
|
1843
1843
|
children: [
|
|
1844
1844
|
"Search the full catalog \xB7 showing ",
|
|
@@ -1848,8 +1848,8 @@ function AgentTuiApp({
|
|
|
1848
1848
|
visibleModels.total,
|
|
1849
1849
|
" matches \xB7 Tab switches search/list"
|
|
1850
1850
|
]
|
|
1851
|
-
}),
|
|
1852
|
-
/* @__PURE__ */
|
|
1851
|
+
}, undefined, true, undefined, this),
|
|
1852
|
+
/* @__PURE__ */ jsxDEV("box", {
|
|
1853
1853
|
style: {
|
|
1854
1854
|
height: 3,
|
|
1855
1855
|
border: true,
|
|
@@ -1857,16 +1857,16 @@ function AgentTuiApp({
|
|
|
1857
1857
|
paddingLeft: 1,
|
|
1858
1858
|
paddingRight: 1
|
|
1859
1859
|
},
|
|
1860
|
-
children: /* @__PURE__ */
|
|
1860
|
+
children: /* @__PURE__ */ jsxDEV("input", {
|
|
1861
1861
|
focused: modelSearchFocused,
|
|
1862
1862
|
value: modelQuery,
|
|
1863
1863
|
placeholder: "Filter by model, provider or capability\u2026",
|
|
1864
1864
|
onInput: setModelQuery,
|
|
1865
1865
|
onSubmit: () => setModelSearchFocused(false),
|
|
1866
1866
|
style: { width: "100%" }
|
|
1867
|
-
})
|
|
1868
|
-
}),
|
|
1869
|
-
/* @__PURE__ */
|
|
1867
|
+
}, undefined, false, undefined, this)
|
|
1868
|
+
}, undefined, false, undefined, this),
|
|
1869
|
+
/* @__PURE__ */ jsxDEV("select", {
|
|
1870
1870
|
focused: !modelSearchFocused,
|
|
1871
1871
|
options: modelOptions,
|
|
1872
1872
|
selectedIndex: selectedModelIndex,
|
|
@@ -1886,9 +1886,9 @@ function AgentTuiApp({
|
|
|
1886
1886
|
return;
|
|
1887
1887
|
controller.selectModel(model.id).then(() => setDialog(undefined)).catch((error) => setLocalNotice(errorMessage(error)));
|
|
1888
1888
|
}
|
|
1889
|
-
})
|
|
1889
|
+
}, undefined, false, undefined, this)
|
|
1890
1890
|
]
|
|
1891
|
-
}) : dialog2 === "sessions" ? conversations ? /* @__PURE__ */
|
|
1891
|
+
}, undefined, true, undefined, this) : dialog2 === "sessions" ? conversations ? /* @__PURE__ */ jsxDEV("select", {
|
|
1892
1892
|
focused: true,
|
|
1893
1893
|
options: sessions.map((session) => ({
|
|
1894
1894
|
name: session.conversationId,
|
|
@@ -1913,117 +1913,117 @@ function AgentTuiApp({
|
|
|
1913
1913
|
setHiddenBefore(0);
|
|
1914
1914
|
}).catch((error) => setLocalNotice(errorMessage(error)));
|
|
1915
1915
|
}
|
|
1916
|
-
}) : /* @__PURE__ */
|
|
1916
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV("text", {
|
|
1917
1917
|
fg: theme.muted,
|
|
1918
1918
|
children: "This host does not provide a conversation catalog."
|
|
1919
|
-
}) : dialog2 === "help" ? /* @__PURE__ */
|
|
1919
|
+
}, undefined, false, undefined, this) : dialog2 === "help" ? /* @__PURE__ */ jsxDEV("scrollbox", {
|
|
1920
1920
|
focused: true,
|
|
1921
1921
|
style: { flexGrow: 1, contentOptions: { flexDirection: "column" } },
|
|
1922
|
-
children: commands.map((command) => /* @__PURE__ */
|
|
1922
|
+
children: commands.map((command) => /* @__PURE__ */ jsxDEV("text", {
|
|
1923
1923
|
fg: theme.primary,
|
|
1924
1924
|
children: [
|
|
1925
|
-
/* @__PURE__ */
|
|
1925
|
+
/* @__PURE__ */ jsxDEV("span", {
|
|
1926
1926
|
fg: theme.accent,
|
|
1927
1927
|
children: [
|
|
1928
1928
|
"/",
|
|
1929
1929
|
command.name
|
|
1930
1930
|
]
|
|
1931
|
-
}),
|
|
1931
|
+
}, undefined, true, undefined, this),
|
|
1932
1932
|
" ",
|
|
1933
1933
|
command.description
|
|
1934
1934
|
]
|
|
1935
|
-
}, command.name))
|
|
1936
|
-
}) : dialog2 === "status" ? /* @__PURE__ */
|
|
1935
|
+
}, command.name, true, undefined, this))
|
|
1936
|
+
}, undefined, false, undefined, this) : dialog2 === "status" ? /* @__PURE__ */ jsxDEV("box", {
|
|
1937
1937
|
style: { flexDirection: "column" },
|
|
1938
1938
|
children: [
|
|
1939
|
-
/* @__PURE__ */
|
|
1939
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1940
1940
|
fg: theme.primary,
|
|
1941
1941
|
children: [
|
|
1942
1942
|
"Session ",
|
|
1943
1943
|
sessionId
|
|
1944
1944
|
]
|
|
1945
|
-
}),
|
|
1946
|
-
/* @__PURE__ */
|
|
1945
|
+
}, undefined, true, undefined, this),
|
|
1946
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1947
1947
|
fg: theme.primary,
|
|
1948
1948
|
children: [
|
|
1949
1949
|
"Conversation ",
|
|
1950
1950
|
state.conversationId
|
|
1951
1951
|
]
|
|
1952
|
-
}),
|
|
1953
|
-
/* @__PURE__ */
|
|
1952
|
+
}, undefined, true, undefined, this),
|
|
1953
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1954
1954
|
fg: theme.primary,
|
|
1955
1955
|
children: [
|
|
1956
1956
|
"Model ",
|
|
1957
1957
|
state.selectedModelId
|
|
1958
1958
|
]
|
|
1959
|
-
}),
|
|
1960
|
-
/* @__PURE__ */
|
|
1959
|
+
}, undefined, true, undefined, this),
|
|
1960
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1961
1961
|
fg: theme.primary,
|
|
1962
1962
|
children: [
|
|
1963
1963
|
"Run ",
|
|
1964
1964
|
runId ?? "idle"
|
|
1965
1965
|
]
|
|
1966
|
-
}),
|
|
1967
|
-
/* @__PURE__ */
|
|
1966
|
+
}, undefined, true, undefined, this),
|
|
1967
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1968
1968
|
fg: theme.muted,
|
|
1969
1969
|
children: "External clients submit through this host's controller."
|
|
1970
|
-
})
|
|
1970
|
+
}, undefined, false, undefined, this)
|
|
1971
1971
|
]
|
|
1972
|
-
}) : dialog2 === "tools" ? /* @__PURE__ */
|
|
1972
|
+
}, undefined, true, undefined, this) : dialog2 === "tools" ? /* @__PURE__ */ jsxDEV("box", {
|
|
1973
1973
|
style: { flexDirection: "column" },
|
|
1974
1974
|
children: [
|
|
1975
1975
|
[
|
|
1976
1976
|
...new Set(entries.filter(({ role: role2 }) => role2 === "tool").map(({ text }) => text.split(" ")[1]).filter(isString))
|
|
1977
|
-
].map((name) => /* @__PURE__ */
|
|
1977
|
+
].map((name) => /* @__PURE__ */ jsxDEV("text", {
|
|
1978
1978
|
fg: theme.primary,
|
|
1979
1979
|
children: name
|
|
1980
|
-
}, name)),
|
|
1981
|
-
/* @__PURE__ */
|
|
1980
|
+
}, name, false, undefined, this)),
|
|
1981
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1982
1982
|
fg: theme.muted,
|
|
1983
1983
|
children: "Direct tools retain their own durable identity."
|
|
1984
|
-
})
|
|
1984
|
+
}, undefined, false, undefined, this)
|
|
1985
1985
|
]
|
|
1986
|
-
}) : dialog2 === "permissions" ? /* @__PURE__ */
|
|
1986
|
+
}, undefined, true, undefined, this) : dialog2 === "permissions" ? /* @__PURE__ */ jsxDEV("box", {
|
|
1987
1987
|
style: { flexDirection: "column" },
|
|
1988
1988
|
children: [
|
|
1989
|
-
/* @__PURE__ */
|
|
1989
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1990
1990
|
fg: theme.primary,
|
|
1991
1991
|
children: "Approval decisions are per exact tool call."
|
|
1992
|
-
}),
|
|
1993
|
-
/* @__PURE__ */
|
|
1992
|
+
}, undefined, false, undefined, this),
|
|
1993
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
1994
1994
|
fg: theme.muted,
|
|
1995
1995
|
children: "Sandbox enforcement is supplied and reported by the embedding host."
|
|
1996
|
-
})
|
|
1996
|
+
}, undefined, false, undefined, this)
|
|
1997
1997
|
]
|
|
1998
|
-
}) : /* @__PURE__ */
|
|
1998
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsxDEV("box", {
|
|
1999
1999
|
style: { flexDirection: "column" },
|
|
2000
2000
|
children: [
|
|
2001
|
-
/* @__PURE__ */
|
|
2001
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
2002
2002
|
fg: theme.primary,
|
|
2003
2003
|
children: "Skills and resources are discovered lazily by the harness."
|
|
2004
|
-
}),
|
|
2005
|
-
/* @__PURE__ */
|
|
2004
|
+
}, undefined, false, undefined, this),
|
|
2005
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
2006
2006
|
fg: theme.muted,
|
|
2007
2007
|
children: "The model reads exact content through the direct read_resource tool."
|
|
2008
|
-
})
|
|
2008
|
+
}, undefined, false, undefined, this)
|
|
2009
2009
|
]
|
|
2010
|
-
}),
|
|
2011
|
-
dialog2 === "sessions" && sessionCursor ? /* @__PURE__ */
|
|
2010
|
+
}, undefined, true, undefined, this),
|
|
2011
|
+
dialog2 === "sessions" && sessionCursor ? /* @__PURE__ */ jsxDEV("text", {
|
|
2012
2012
|
fg: theme.muted,
|
|
2013
2013
|
children: "More conversations are available."
|
|
2014
|
-
}) : null,
|
|
2015
|
-
/* @__PURE__ */
|
|
2014
|
+
}, undefined, false, undefined, this) : null,
|
|
2015
|
+
/* @__PURE__ */ jsxDEV("text", {
|
|
2016
2016
|
fg: theme.muted,
|
|
2017
2017
|
children: "Esc close"
|
|
2018
|
-
})
|
|
2018
|
+
}, undefined, false, undefined, this)
|
|
2019
2019
|
]
|
|
2020
|
-
}) : null
|
|
2020
|
+
}, undefined, true, undefined, this) : null
|
|
2021
2021
|
]
|
|
2022
|
-
});
|
|
2022
|
+
}, undefined, true, undefined, this);
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
2025
|
// src/run.tsx
|
|
2026
|
-
import {
|
|
2026
|
+
import { jsxDEV as jsxDEV2 } from "@opentui/react/jsx-dev-runtime";
|
|
2027
2027
|
function runtimeContext(config) {
|
|
2028
2028
|
return Promise.resolve(config.context());
|
|
2029
2029
|
}
|
|
@@ -2148,7 +2148,7 @@ async function runAgentTui(config) {
|
|
|
2148
2148
|
})();
|
|
2149
2149
|
return closing;
|
|
2150
2150
|
};
|
|
2151
|
-
root.render(/* @__PURE__ */
|
|
2151
|
+
root.render(/* @__PURE__ */ jsxDEV2(AgentTuiApp, {
|
|
2152
2152
|
controller,
|
|
2153
2153
|
catalog,
|
|
2154
2154
|
...bundle.conversations && { conversations: bundle.conversations },
|
|
@@ -2173,47 +2173,47 @@ async function runAgentTui(config) {
|
|
|
2173
2173
|
});
|
|
2174
2174
|
},
|
|
2175
2175
|
onExit: close
|
|
2176
|
-
}));
|
|
2176
|
+
}, undefined, false, undefined, this));
|
|
2177
2177
|
process.once("SIGINT", onSignal);
|
|
2178
2178
|
process.once("SIGTERM", onSignal);
|
|
2179
2179
|
return { sessionId: host.sessionId, close };
|
|
2180
2180
|
}
|
|
2181
2181
|
export {
|
|
2182
|
-
|
|
2183
|
-
AgentTuiCommandOutcomeSchema,
|
|
2184
|
-
AgentTuiComposerSchema,
|
|
2185
|
-
AgentTuiDiagnosticEventSchema,
|
|
2186
|
-
AgentTuiSessionDescriptorSchema,
|
|
2187
|
-
AgentTuiSessionRequestSchema,
|
|
2188
|
-
AgentTuiSessionResponseSchema,
|
|
2189
|
-
commandCompletions,
|
|
2190
|
-
composeTuiCommands,
|
|
2191
|
-
createAgentTuiClient,
|
|
2192
|
-
createAgentTuiComposer,
|
|
2193
|
-
createAgentTuiController,
|
|
2194
|
-
createAgentTuiConversationId,
|
|
2195
|
-
createAgentTuiDiagnosticRecorder,
|
|
2196
|
-
createAgentTuiSessionId,
|
|
2197
|
-
createFileAgentModelSelectionStore,
|
|
2198
|
-
defaultAgentTuiRecoveryDecision,
|
|
2199
|
-
defaultAgentTuiStatusLine,
|
|
2200
|
-
defaultAgentTuiTheme,
|
|
2201
|
-
defineAgentTui,
|
|
2202
|
-
defineTuiCommand,
|
|
2203
|
-
isAgentTuiExitKey,
|
|
2204
|
-
listAgentTuiSessions,
|
|
2205
|
-
moveCommandCompletionSelection,
|
|
2206
|
-
navigateAgentTuiHistory,
|
|
2207
|
-
projectAgentTuiRuntimeDiagnostic,
|
|
2208
|
-
projectAgentTuiTranscript,
|
|
2209
|
-
resolveAgentTuiInitialConversationId,
|
|
2210
|
-
resolveAgentTuiTheme,
|
|
2211
|
-
resolveTuiCommand,
|
|
2212
|
-
resolveTuiCommandSubmission,
|
|
2213
|
-
runAgentTui,
|
|
2214
|
-
searchAgentTuiModels,
|
|
2215
|
-
selectedCommandCompletion,
|
|
2216
|
-
setAgentTuiDraft,
|
|
2182
|
+
submitAgentTuiComposer,
|
|
2217
2183
|
startAgentTuiSessionHost,
|
|
2218
|
-
|
|
2184
|
+
setAgentTuiDraft,
|
|
2185
|
+
selectedCommandCompletion,
|
|
2186
|
+
searchAgentTuiModels,
|
|
2187
|
+
runAgentTui,
|
|
2188
|
+
resolveTuiCommandSubmission,
|
|
2189
|
+
resolveTuiCommand,
|
|
2190
|
+
resolveAgentTuiTheme,
|
|
2191
|
+
resolveAgentTuiInitialConversationId,
|
|
2192
|
+
projectAgentTuiTranscript,
|
|
2193
|
+
projectAgentTuiRuntimeDiagnostic,
|
|
2194
|
+
navigateAgentTuiHistory,
|
|
2195
|
+
moveCommandCompletionSelection,
|
|
2196
|
+
listAgentTuiSessions,
|
|
2197
|
+
isAgentTuiExitKey,
|
|
2198
|
+
defineTuiCommand,
|
|
2199
|
+
defineAgentTui,
|
|
2200
|
+
defaultAgentTuiTheme,
|
|
2201
|
+
defaultAgentTuiStatusLine,
|
|
2202
|
+
defaultAgentTuiRecoveryDecision,
|
|
2203
|
+
createFileAgentModelSelectionStore,
|
|
2204
|
+
createAgentTuiSessionId,
|
|
2205
|
+
createAgentTuiDiagnosticRecorder,
|
|
2206
|
+
createAgentTuiConversationId,
|
|
2207
|
+
createAgentTuiController,
|
|
2208
|
+
createAgentTuiComposer,
|
|
2209
|
+
createAgentTuiClient,
|
|
2210
|
+
composeTuiCommands,
|
|
2211
|
+
commandCompletions,
|
|
2212
|
+
AgentTuiSessionResponseSchema,
|
|
2213
|
+
AgentTuiSessionRequestSchema,
|
|
2214
|
+
AgentTuiSessionDescriptorSchema,
|
|
2215
|
+
AgentTuiDiagnosticEventSchema,
|
|
2216
|
+
AgentTuiComposerSchema,
|
|
2217
|
+
AgentTuiCommandOutcomeSchema,
|
|
2218
|
+
AGENT_TUI_MODEL_RESULT_LIMIT
|
|
2219
2219
|
};
|
package/dist/session.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;kBAUjC,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iCAiBvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;+BAiBxC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;kBAUjC,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iCAiBvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;+BAiBxC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AA2GD,wBAAsB,oBAAoB,CACxC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,SAAS,yBAAyB,EAAE,CAAC,CAuB/C;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,wBAAsB,wBAAwB,CAAC,KAAK,EAAE;IACpD,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC3E,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAmE/B;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC5E;AAED,wBAAsB,oBAAoB,CAAC,KAAK,EAAE;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,cAAc,CAAC,CAoB1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stitchkit-tui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Composable terminal UI for the Stitchkit headless agent runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Max Listov <maxlistov@gmail.com>",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"prepublishOnly": "bun run check && bun run test && bun run build"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@opentui/core": "^0.5.
|
|
44
|
-
"@opentui/react": "^0.5.
|
|
45
|
-
"ai": "^7.0.
|
|
46
|
-
"react": "^19.
|
|
47
|
-
"stitchkit": "^0.
|
|
48
|
-
"zod": "^4.
|
|
43
|
+
"@opentui/core": "^0.5.11",
|
|
44
|
+
"@opentui/react": "^0.5.11",
|
|
45
|
+
"ai": "^7.0.107",
|
|
46
|
+
"react": "^19.3.0",
|
|
47
|
+
"stitchkit": "^0.90.5",
|
|
48
|
+
"zod": "^4.6.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/bun": "^1.4.
|
|
52
|
-
"@types/react": "^19.
|
|
51
|
+
"@types/bun": "^1.4.2",
|
|
52
|
+
"@types/react": "^19.3.0",
|
|
53
53
|
"typescript": "^7.0.2"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|