container-baseline-v1.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "version": "1.1.0",
  3. "runtime": {
  4. "image": "fmode/agent-node:0.21.3",
  5. "memoryLimit": "1536m",
  6. "nanoCpus": 1500000000,
  7. "pidsLimit": 512,
  8. "restartPolicy": "unless-stopped",
  9. "mount": {
  10. "hostPattern": "/opt/fmode-containers/<agentId>/data",
  11. "containerPath": "/opt/data"
  12. },
  13. "entrypoint": "/opt/data/.fmode-media-patch/entry.sh",
  14. "command": [
  15. "gateway",
  16. "run"
  17. ],
  18. "hermesHome": "/opt/data",
  19. "timezone": "Asia/Shanghai"
  20. },
  21. "matrix": {
  22. "homeserver": "https://matrix.fmode.cn",
  23. "reactions": true,
  24. "requireMention": false,
  25. "maxMediaBytes": 838860800,
  26. "e2eeMode": "off",
  27. "threadProgressEvents": true
  28. },
  29. "reporting": {
  30. "heartbeatSeconds": 3600,
  31. "jitterMaxSeconds": 900,
  32. "appOfflineSeconds": 4800,
  33. "sessionIdleTtlSeconds": 600,
  34. "sessionFields": [
  35. "sessionKey",
  36. "userId",
  37. "status",
  38. "task",
  39. "stage",
  40. "action",
  41. "progress",
  42. "turnStartAt",
  43. "updatedAt",
  44. "ttlMs"
  45. ]
  46. },
  47. "directories": {
  48. "writableRuntimeParents": [
  49. "/opt/data/cache",
  50. "/opt/data/sessions",
  51. "/opt/data/work"
  52. ],
  53. "taskWork": "/opt/data/work/tasks/<taskId>",
  54. "incomingFiles": "/opt/data/work/uploads",
  55. "deliverableStaging": "/opt/data/work/deliverables",
  56. "regenerableCache": "/opt/data/cache/regenerable",
  57. "platformSkills": "/opt/data/skills/platform",
  58. "customSkills": "/opt/data/skills/custom",
  59. "protectedState": [
  60. "/opt/data/cache/deliverable-hook",
  61. "/opt/data/sessions",
  62. "/opt/data/state.db",
  63. "/opt/data/.env",
  64. "/opt/data/plugins",
  65. "/opt/data/scripts"
  66. ]
  67. },
  68. "cleanup": {
  69. "intervalMinutes": 30,
  70. "inactiveSeconds": 3600,
  71. "uploadedFileGraceSeconds": 3600,
  72. "diskPressurePercent": 80,
  73. "diskPressureExpandsScope": false,
  74. "requiresCloudAck": true,
  75. "requiresAppRegistration": true,
  76. "contentDigest": "sha256",
  77. "requiresNoActiveSessionReference": true
  78. },
  79. "channels": {
  80. "envFile": "/opt/fmode-containers/<agentId>/container.env",
  81. "required": [
  82. "matrix"
  83. ],
  84. "optional": [
  85. "wecom"
  86. ],
  87. "wecomEnv": [
  88. "WECOM_ENABLED",
  89. "WECOM_BOT_ID",
  90. "WECOM_SECRET",
  91. "WECOM_WEBSOCKET_URL",
  92. "WECOM_ALLOW_ALL_USERS"
  93. ],
  94. "runtimeSource": "onboarding-bundle"
  95. }
  96. }