typeclaw 0.37.7 → 0.38.0
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/README.md +2 -2
- package/package.json +2 -2
- package/src/agent/session-origin.ts +1 -0
- package/src/channels/adapters/webex-bot-channel-resolver.ts +29 -0
- package/src/channels/adapters/webex-bot-classify.ts +92 -0
- package/src/channels/adapters/webex-bot-reference.ts +47 -0
- package/src/channels/adapters/webex-bot.ts +395 -0
- package/src/channels/manager.ts +15 -0
- package/src/channels/router.ts +1 -0
- package/src/channels/schema.ts +15 -1
- package/src/cli/channel.ts +37 -1
- package/src/cli/init.ts +59 -5
- package/src/config/channels-mutation.ts +9 -1
- package/src/doctor/channel-checks.ts +13 -1
- package/src/init/index.ts +39 -16
- package/src/init/run-owner-claim.ts +1 -0
- package/src/permissions/match-rule.ts +7 -3
- package/src/permissions/resolve.ts +6 -4
- package/src/role-claim/match-rule.ts +2 -1
- package/src/secrets/defaults.ts +1 -0
- package/typeclaw.schema.json +161 -1
package/typeclaw.schema.json
CHANGED
|
@@ -1319,6 +1319,166 @@
|
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
|
+
},
|
|
1323
|
+
"webex-bot": {
|
|
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
|
+
}
|
|
1322
1482
|
}
|
|
1323
1483
|
}
|
|
1324
1484
|
},
|
|
@@ -1573,7 +1733,7 @@
|
|
|
1573
1733
|
"type": "array",
|
|
1574
1734
|
"items": {
|
|
1575
1735
|
"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]+)*$"
|
|
1736
|
+
"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
1737
|
}
|
|
1578
1738
|
},
|
|
1579
1739
|
"permissions": {
|