typeclaw 0.1.0 → 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.
Files changed (57) hide show
  1. package/README.md +12 -12
  2. package/package.json +3 -2
  3. package/src/agent/auth.ts +10 -4
  4. package/src/agent/doctor.ts +173 -0
  5. package/src/agent/subagents.ts +24 -2
  6. package/src/bundled-plugins/backup/README.md +81 -0
  7. package/src/bundled-plugins/backup/index.ts +209 -0
  8. package/src/bundled-plugins/backup/runner.ts +231 -0
  9. package/src/bundled-plugins/backup/subagents.ts +200 -0
  10. package/src/bundled-plugins/memory/index.ts +42 -1
  11. package/src/bundled-plugins/security/index.ts +5 -1
  12. package/src/bundled-plugins/security/policies/git-exfil.ts +184 -4
  13. package/src/bundled-plugins/security/policies/remote-taint-state.ts +59 -0
  14. package/src/channels/adapters/kakaotalk-attachment.ts +224 -0
  15. package/src/channels/adapters/kakaotalk-channel-resolver.ts +20 -1
  16. package/src/channels/adapters/kakaotalk-fetch-attachment.ts +91 -0
  17. package/src/channels/adapters/kakaotalk.ts +58 -3
  18. package/src/channels/router.ts +40 -2
  19. package/src/cli/compose.ts +92 -1
  20. package/src/cli/doctor.ts +100 -0
  21. package/src/cli/index.ts +1 -0
  22. package/src/compose/doctor.ts +141 -0
  23. package/src/compose/index.ts +8 -0
  24. package/src/compose/logs.ts +32 -19
  25. package/src/config/config.ts +20 -0
  26. package/src/container/log-colors.ts +75 -0
  27. package/src/container/log-timestamps.ts +84 -0
  28. package/src/container/logs.ts +71 -5
  29. package/src/container/start.ts +23 -8
  30. package/src/cron/consumer.ts +29 -7
  31. package/src/doctor/checks.ts +426 -0
  32. package/src/doctor/commit.ts +71 -0
  33. package/src/doctor/index.ts +287 -0
  34. package/src/doctor/plugin-bridge.ts +147 -0
  35. package/src/doctor/report.ts +142 -0
  36. package/src/doctor/types.ts +87 -0
  37. package/src/init/cli-version.ts +81 -0
  38. package/src/init/dockerfile.ts +223 -25
  39. package/src/init/ensure-deps.ts +2 -2
  40. package/src/init/index.ts +23 -13
  41. package/src/init/run-bun-install.ts +17 -1
  42. package/src/plugin/hooks.ts +32 -0
  43. package/src/plugin/index.ts +7 -0
  44. package/src/plugin/manager.ts +2 -0
  45. package/src/plugin/registry.ts +32 -3
  46. package/src/plugin/types.ts +65 -0
  47. package/src/run/bundled-plugins.ts +8 -0
  48. package/src/run/index.ts +10 -5
  49. package/src/secrets/env.ts +43 -0
  50. package/src/secrets/index.ts +2 -0
  51. package/src/server/index.ts +103 -5
  52. package/src/shared/index.ts +3 -0
  53. package/src/shared/protocol.ts +22 -0
  54. package/src/skills/typeclaw-channel-kakaotalk/SKILL.md +26 -3
  55. package/src/skills/typeclaw-config/SKILL.md +1 -1
  56. package/tsconfig.json +30 -0
  57. package/typeclaw.schema.json +50 -4
@@ -368,10 +368,6 @@
368
368
  "enabled": {
369
369
  "default": true,
370
370
  "type": "boolean"
371
- },
372
- "autoMarkRead": {
373
- "default": false,
374
- "type": "boolean"
375
371
  }
376
372
  }
377
373
  },
@@ -710,6 +706,18 @@
710
706
  "allow"
711
707
  ]
712
708
  },
709
+ "network": {
710
+ "default": {
711
+ "blockInternal": false
712
+ },
713
+ "type": "object",
714
+ "properties": {
715
+ "blockInternal": {
716
+ "default": false,
717
+ "type": "boolean"
718
+ }
719
+ }
720
+ },
713
721
  "dockerfile": {
714
722
  "default": {
715
723
  "ffmpeg": false,
@@ -820,6 +828,44 @@
820
828
  }
821
829
  }
822
830
  }
831
+ },
832
+ "backup": {
833
+ "default": {
834
+ "enabled": true,
835
+ "idleMs": 30000,
836
+ "pushToOrigin": true,
837
+ "commitTimeoutMs": 30000,
838
+ "networkTimeoutMs": 60000
839
+ },
840
+ "type": "object",
841
+ "properties": {
842
+ "enabled": {
843
+ "default": true,
844
+ "type": "boolean"
845
+ },
846
+ "idleMs": {
847
+ "default": 30000,
848
+ "type": "integer",
849
+ "minimum": 1000,
850
+ "maximum": 9007199254740991
851
+ },
852
+ "pushToOrigin": {
853
+ "default": true,
854
+ "type": "boolean"
855
+ },
856
+ "commitTimeoutMs": {
857
+ "default": 30000,
858
+ "type": "integer",
859
+ "minimum": 1,
860
+ "maximum": 9007199254740991
861
+ },
862
+ "networkTimeoutMs": {
863
+ "default": 60000,
864
+ "type": "integer",
865
+ "minimum": 1,
866
+ "maximum": 9007199254740991
867
+ }
868
+ }
823
869
  }
824
870
  },
825
871
  "additionalProperties": {}