typeclaw 0.37.7 → 0.38.1

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.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/auth.schema.json +109 -0
  3. package/package.json +2 -2
  4. package/secrets.schema.json +109 -0
  5. package/src/agent/session-origin.ts +16 -2
  6. package/src/bundled-plugins/memory/README.md +12 -1
  7. package/src/bundled-plugins/memory/index.ts +39 -2
  8. package/src/channels/adapters/kakaotalk.ts +1 -1
  9. package/src/channels/adapters/webex-bot-channel-resolver.ts +29 -0
  10. package/src/channels/adapters/webex-bot-classify.ts +98 -0
  11. package/src/channels/adapters/webex-bot-reference.ts +49 -0
  12. package/src/channels/adapters/webex-bot.ts +462 -0
  13. package/src/channels/adapters/webex-channel-resolver.ts +29 -0
  14. package/src/channels/adapters/webex-classify.ts +104 -0
  15. package/src/channels/adapters/webex-format.ts +53 -0
  16. package/src/channels/adapters/webex-id-ref.ts +32 -0
  17. package/src/channels/adapters/webex-reference.ts +49 -0
  18. package/src/channels/adapters/webex.ts +493 -0
  19. package/src/channels/manager.ts +75 -4
  20. package/src/channels/persistence.ts +67 -5
  21. package/src/channels/router.ts +9 -0
  22. package/src/channels/schema.ts +17 -1
  23. package/src/cli/channel.ts +155 -8
  24. package/src/cli/init.ts +129 -6
  25. package/src/config/channels-mutation.ts +11 -2
  26. package/src/doctor/channel-checks.ts +56 -1
  27. package/src/hostd/daemon.ts +7 -5
  28. package/src/hostd/protocol.ts +2 -2
  29. package/src/init/checkpoint.ts +1 -1
  30. package/src/init/index.ts +97 -17
  31. package/src/init/run-owner-claim.ts +2 -0
  32. package/src/init/webex-auth.ts +68 -0
  33. package/src/inspect/label.ts +13 -2
  34. package/src/inspect/render.ts +5 -3
  35. package/src/permissions/match-rule.ts +7 -3
  36. package/src/permissions/resolve.ts +44 -5
  37. package/src/role-claim/match-rule.ts +7 -2
  38. package/src/secrets/codex-auth-json.ts +52 -17
  39. package/src/secrets/defaults.ts +1 -0
  40. package/src/secrets/encryption.ts +5 -1
  41. package/src/secrets/export-codex-auth-file.ts +26 -3
  42. package/src/secrets/schema.ts +35 -0
  43. package/src/secrets/webex-store.ts +113 -0
  44. package/typeclaw.schema.json +321 -1
@@ -1319,6 +1319,326 @@
1319
1319
  }
1320
1320
  }
1321
1321
  }
1322
+ },
1323
+ "webex": {
1324
+ "type": "object",
1325
+ "properties": {
1326
+ "engagement": {
1327
+ "default": {
1328
+ "trigger": [
1329
+ "mention",
1330
+ "reply",
1331
+ "dm"
1332
+ ],
1333
+ "stickiness": {
1334
+ "perReply": {
1335
+ "window": 900000
1336
+ }
1337
+ }
1338
+ },
1339
+ "type": "object",
1340
+ "properties": {
1341
+ "trigger": {
1342
+ "default": [
1343
+ "mention",
1344
+ "reply",
1345
+ "dm"
1346
+ ],
1347
+ "type": "array",
1348
+ "items": {
1349
+ "type": "string",
1350
+ "enum": [
1351
+ "mention",
1352
+ "reply",
1353
+ "dm"
1354
+ ]
1355
+ }
1356
+ },
1357
+ "stickiness": {
1358
+ "default": {
1359
+ "perReply": {
1360
+ "window": 900000
1361
+ }
1362
+ },
1363
+ "anyOf": [
1364
+ {
1365
+ "type": "string",
1366
+ "const": "off"
1367
+ },
1368
+ {
1369
+ "type": "object",
1370
+ "properties": {
1371
+ "perReply": {
1372
+ "type": "object",
1373
+ "properties": {
1374
+ "window": {
1375
+ "type": "integer",
1376
+ "minimum": 1,
1377
+ "maximum": 86400000
1378
+ }
1379
+ },
1380
+ "required": [
1381
+ "window"
1382
+ ]
1383
+ }
1384
+ },
1385
+ "required": [
1386
+ "perReply"
1387
+ ]
1388
+ }
1389
+ ]
1390
+ }
1391
+ }
1392
+ },
1393
+ "history": {
1394
+ "default": {
1395
+ "prefetch": {
1396
+ "thread": {
1397
+ "head": 3,
1398
+ "tail": 10
1399
+ },
1400
+ "channel": {
1401
+ "tail": 10
1402
+ }
1403
+ }
1404
+ },
1405
+ "type": "object",
1406
+ "properties": {
1407
+ "prefetch": {
1408
+ "default": {
1409
+ "thread": {
1410
+ "head": 3,
1411
+ "tail": 10
1412
+ },
1413
+ "channel": {
1414
+ "tail": 10
1415
+ }
1416
+ },
1417
+ "type": "object",
1418
+ "properties": {
1419
+ "thread": {
1420
+ "default": {
1421
+ "head": 3,
1422
+ "tail": 10
1423
+ },
1424
+ "type": "object",
1425
+ "properties": {
1426
+ "head": {
1427
+ "default": 3,
1428
+ "type": "integer",
1429
+ "minimum": 0,
1430
+ "maximum": 200
1431
+ },
1432
+ "tail": {
1433
+ "default": 10,
1434
+ "type": "integer",
1435
+ "minimum": 0,
1436
+ "maximum": 200
1437
+ }
1438
+ }
1439
+ },
1440
+ "channel": {
1441
+ "default": {
1442
+ "tail": 10
1443
+ },
1444
+ "type": "object",
1445
+ "properties": {
1446
+ "tail": {
1447
+ "default": 10,
1448
+ "type": "integer",
1449
+ "minimum": 0,
1450
+ "maximum": 200
1451
+ }
1452
+ }
1453
+ }
1454
+ }
1455
+ }
1456
+ }
1457
+ },
1458
+ "enabled": {
1459
+ "default": true,
1460
+ "type": "boolean"
1461
+ },
1462
+ "quotedReply": {
1463
+ "default": {
1464
+ "enabled": true,
1465
+ "queueDelayMs": 10000
1466
+ },
1467
+ "type": "object",
1468
+ "properties": {
1469
+ "enabled": {
1470
+ "default": true,
1471
+ "type": "boolean"
1472
+ },
1473
+ "queueDelayMs": {
1474
+ "default": 10000,
1475
+ "type": "integer",
1476
+ "minimum": 0,
1477
+ "maximum": 9007199254740991
1478
+ }
1479
+ }
1480
+ }
1481
+ }
1482
+ },
1483
+ "webex-bot": {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "engagement": {
1487
+ "default": {
1488
+ "trigger": [
1489
+ "mention",
1490
+ "reply",
1491
+ "dm"
1492
+ ],
1493
+ "stickiness": {
1494
+ "perReply": {
1495
+ "window": 900000
1496
+ }
1497
+ }
1498
+ },
1499
+ "type": "object",
1500
+ "properties": {
1501
+ "trigger": {
1502
+ "default": [
1503
+ "mention",
1504
+ "reply",
1505
+ "dm"
1506
+ ],
1507
+ "type": "array",
1508
+ "items": {
1509
+ "type": "string",
1510
+ "enum": [
1511
+ "mention",
1512
+ "reply",
1513
+ "dm"
1514
+ ]
1515
+ }
1516
+ },
1517
+ "stickiness": {
1518
+ "default": {
1519
+ "perReply": {
1520
+ "window": 900000
1521
+ }
1522
+ },
1523
+ "anyOf": [
1524
+ {
1525
+ "type": "string",
1526
+ "const": "off"
1527
+ },
1528
+ {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "perReply": {
1532
+ "type": "object",
1533
+ "properties": {
1534
+ "window": {
1535
+ "type": "integer",
1536
+ "minimum": 1,
1537
+ "maximum": 86400000
1538
+ }
1539
+ },
1540
+ "required": [
1541
+ "window"
1542
+ ]
1543
+ }
1544
+ },
1545
+ "required": [
1546
+ "perReply"
1547
+ ]
1548
+ }
1549
+ ]
1550
+ }
1551
+ }
1552
+ },
1553
+ "history": {
1554
+ "default": {
1555
+ "prefetch": {
1556
+ "thread": {
1557
+ "head": 3,
1558
+ "tail": 10
1559
+ },
1560
+ "channel": {
1561
+ "tail": 10
1562
+ }
1563
+ }
1564
+ },
1565
+ "type": "object",
1566
+ "properties": {
1567
+ "prefetch": {
1568
+ "default": {
1569
+ "thread": {
1570
+ "head": 3,
1571
+ "tail": 10
1572
+ },
1573
+ "channel": {
1574
+ "tail": 10
1575
+ }
1576
+ },
1577
+ "type": "object",
1578
+ "properties": {
1579
+ "thread": {
1580
+ "default": {
1581
+ "head": 3,
1582
+ "tail": 10
1583
+ },
1584
+ "type": "object",
1585
+ "properties": {
1586
+ "head": {
1587
+ "default": 3,
1588
+ "type": "integer",
1589
+ "minimum": 0,
1590
+ "maximum": 200
1591
+ },
1592
+ "tail": {
1593
+ "default": 10,
1594
+ "type": "integer",
1595
+ "minimum": 0,
1596
+ "maximum": 200
1597
+ }
1598
+ }
1599
+ },
1600
+ "channel": {
1601
+ "default": {
1602
+ "tail": 10
1603
+ },
1604
+ "type": "object",
1605
+ "properties": {
1606
+ "tail": {
1607
+ "default": 10,
1608
+ "type": "integer",
1609
+ "minimum": 0,
1610
+ "maximum": 200
1611
+ }
1612
+ }
1613
+ }
1614
+ }
1615
+ }
1616
+ }
1617
+ },
1618
+ "enabled": {
1619
+ "default": true,
1620
+ "type": "boolean"
1621
+ },
1622
+ "quotedReply": {
1623
+ "default": {
1624
+ "enabled": true,
1625
+ "queueDelayMs": 10000
1626
+ },
1627
+ "type": "object",
1628
+ "properties": {
1629
+ "enabled": {
1630
+ "default": true,
1631
+ "type": "boolean"
1632
+ },
1633
+ "queueDelayMs": {
1634
+ "default": 10000,
1635
+ "type": "integer",
1636
+ "minimum": 0,
1637
+ "maximum": 9007199254740991
1638
+ }
1639
+ }
1640
+ }
1641
+ }
1322
1642
  }
1323
1643
  }
1324
1644
  },
@@ -1573,7 +1893,7 @@
1573
1893
  "type": "array",
1574
1894
  "items": {
1575
1895
  "type": "string",
1576
- "pattern": "^(tui|cron|subagent(:[a-z][a-z0-9-]*)?|\\*|(slack|discord|telegram|line|kakao|github):[^\\s]+)(\\s+[a-zA-Z][a-zA-Z0-9_]*:[^\\s]+)*$"
1896
+ "pattern": "^(tui|cron|subagent(:[a-z][a-z0-9-]*)?|\\*|(slack|discord|telegram|webex|line|kakao|github):[^\\s]+)(\\s+[a-zA-Z][a-zA-Z0-9_]*:[^\\s]+)*$"
1577
1897
  }
1578
1898
  },
1579
1899
  "permissions": {