@agentage/extension 0.14.0 → 0.15.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 (105) hide show
  1. package/README.md +3 -1
  2. package/dist/contracts/index.d.ts +1 -1
  3. package/dist/contracts/index.js +1 -1
  4. package/dist/discovery/discovery.d.ts +10 -25
  5. package/dist/discovery/discovery.js +7 -1
  6. package/dist/discovery/discovery.schema.d.ts +45 -0
  7. package/dist/discovery/discovery.schema.js +33 -4
  8. package/dist/discovery/served-extras.d.ts +8 -0
  9. package/dist/discovery/served-extras.js +10 -0
  10. package/dist/health/health.d.ts +2 -0
  11. package/dist/health/health.js +4 -2
  12. package/dist/health/health.schema.d.ts +9 -0
  13. package/dist/health/health.schema.js +3 -0
  14. package/dist/host/clock-rate.d.ts +1 -0
  15. package/dist/host/clock-rate.js +12 -0
  16. package/dist/host/daemon/add.js +29 -4
  17. package/dist/host/daemon/child-files.d.ts +20 -0
  18. package/dist/host/daemon/child-files.js +45 -0
  19. package/dist/host/daemon/child.d.ts +10 -4
  20. package/dist/host/daemon/child.js +68 -43
  21. package/dist/host/daemon/daemon-files.d.ts +3 -0
  22. package/dist/host/daemon/daemon-files.js +5 -1
  23. package/dist/host/daemon/daemon.d.ts +1 -0
  24. package/dist/host/daemon/daemon.js +21 -6
  25. package/dist/host/daemon/gate.d.ts +3 -0
  26. package/dist/host/daemon/gate.js +19 -0
  27. package/dist/host/daemon/guard.d.ts +2 -1
  28. package/dist/host/daemon/guard.js +16 -4
  29. package/dist/host/daemon/health-routes.d.ts +17 -0
  30. package/dist/host/daemon/health-routes.js +61 -0
  31. package/dist/host/daemon/host-token.d.ts +6 -0
  32. package/dist/host/daemon/host-token.js +28 -0
  33. package/dist/host/daemon/last-words.d.ts +2 -0
  34. package/dist/host/daemon/last-words.js +28 -0
  35. package/dist/host/daemon/limits.d.ts +4 -0
  36. package/dist/host/daemon/limits.js +7 -0
  37. package/dist/host/daemon/ops.js +4 -1
  38. package/dist/host/daemon/pending.d.ts +1 -1
  39. package/dist/host/daemon/proxy.d.ts +1 -1
  40. package/dist/host/daemon/proxy.js +16 -8
  41. package/dist/host/daemon/redact-stream.d.ts +4 -0
  42. package/dist/host/daemon/redact-stream.js +24 -0
  43. package/dist/host/daemon/reload-marker.d.ts +8 -0
  44. package/dist/host/daemon/reload-marker.js +56 -0
  45. package/dist/host/daemon/reload-route.d.ts +4 -0
  46. package/dist/host/daemon/reload-route.js +21 -0
  47. package/dist/host/daemon/reload.d.ts +10 -0
  48. package/dist/host/daemon/reload.js +73 -0
  49. package/dist/host/daemon/restart.d.ts +14 -0
  50. package/dist/host/daemon/restart.js +59 -0
  51. package/dist/host/daemon/routes.d.ts +2 -10
  52. package/dist/host/daemon/routes.js +13 -31
  53. package/dist/host/daemon/run-lock.d.ts +1 -0
  54. package/dist/host/daemon/run-lock.js +15 -0
  55. package/dist/host/daemon/seal-reach.d.ts +2 -0
  56. package/dist/host/daemon/seal-reach.js +38 -0
  57. package/dist/host/daemon/seal.d.ts +16 -0
  58. package/dist/host/daemon/seal.js +71 -0
  59. package/dist/host/daemon/start-checks.d.ts +7 -0
  60. package/dist/host/daemon/start-checks.js +29 -0
  61. package/dist/host/daemon/supervisor.d.ts +9 -3
  62. package/dist/host/daemon/supervisor.js +33 -40
  63. package/dist/host/data-lock.d.ts +2 -1
  64. package/dist/host/data-lock.js +25 -6
  65. package/dist/host/host-env.d.ts +1 -0
  66. package/dist/host/host-env.js +2 -0
  67. package/dist/host/host-extension.d.ts +6 -0
  68. package/dist/host/host-extension.js +28 -44
  69. package/dist/host/host-parts.d.ts +25 -0
  70. package/dist/host/host-parts.js +82 -0
  71. package/dist/host/host-store.d.ts +3 -0
  72. package/dist/host/host-store.js +21 -2
  73. package/dist/host/main.js +2 -0
  74. package/dist/host/part-checks.d.ts +2 -0
  75. package/dist/host/part-checks.js +19 -0
  76. package/dist/host/serve-host.js +10 -6
  77. package/dist/manifest/parts.d.ts +3 -0
  78. package/dist/manifest/parts.js +3 -0
  79. package/dist/mcp/mcp-app.d.ts +4 -0
  80. package/dist/mcp/mcp-app.js +11 -11
  81. package/dist/runtime/part-mounts.d.ts +31 -0
  82. package/dist/runtime/part-mounts.js +57 -0
  83. package/dist/runtime/part-runners.d.ts +2 -15
  84. package/dist/runtime/part-runners.js +13 -58
  85. package/dist/server/app.d.ts +5 -3
  86. package/dist/server/app.js +16 -17
  87. package/dist/tool/build.d.ts +1 -0
  88. package/dist/tool/build.js +3 -2
  89. package/dist/tool/check.d.ts +3 -1
  90. package/dist/tool/check.js +25 -9
  91. package/dist/tool/container-parts.d.ts +1 -1
  92. package/dist/tool/container-parts.js +6 -6
  93. package/dist/tool/format.d.ts +1 -0
  94. package/dist/tool/format.js +17 -8
  95. package/dist/tool/kit-version.d.ts +2 -0
  96. package/dist/tool/kit-version.js +12 -0
  97. package/dist/tool/record-extras.js +5 -12
  98. package/dist/worker/clock.d.ts +6 -0
  99. package/dist/worker/clock.js +21 -0
  100. package/dist/worker/scheduler.d.ts +1 -0
  101. package/dist/worker/scheduler.js +6 -2
  102. package/package.json +1 -1
  103. package/schemas/extension-discovery.schema.json +61 -34
  104. package/schemas/extension-record.schema.json +1 -1
  105. package/schemas/health.schema.json +17 -0
@@ -54,46 +54,73 @@
54
54
  "additionalProperties": false
55
55
  },
56
56
  "api": {
57
- "type": "object",
58
- "properties": {
59
- "image": {
60
- "type": "string",
61
- "maxLength": 256,
62
- "pattern": "^[a-z0-9][a-z0-9.-]*(:[0-9]{1,5})?\\/[a-z0-9][a-z0-9-]*\\/[a-z][a-z0-9-]*-(pages|ui|api|mcp|worker)@sha256:[0-9a-f]{64}$"
57
+ "anyOf": [
58
+ {
59
+ "type": "object",
60
+ "properties": {
61
+ "image": {
62
+ "type": "string",
63
+ "maxLength": 256,
64
+ "pattern": "^[a-z0-9][a-z0-9.-]*(:[0-9]{1,5})?\\/[a-z0-9][a-z0-9-]*\\/[a-z][a-z0-9-]*-(pages|ui|api|mcp|worker)@sha256:[0-9a-f]{64}$"
65
+ }
66
+ },
67
+ "required": [
68
+ "image"
69
+ ],
70
+ "additionalProperties": false
71
+ },
72
+ {
73
+ "type": "object",
74
+ "properties": {},
75
+ "additionalProperties": false
63
76
  }
64
- },
65
- "required": [
66
- "image"
67
- ],
68
- "additionalProperties": false
77
+ ]
69
78
  },
70
79
  "mcp": {
71
- "type": "object",
72
- "properties": {
73
- "image": {
74
- "type": "string",
75
- "maxLength": 256,
76
- "pattern": "^[a-z0-9][a-z0-9.-]*(:[0-9]{1,5})?\\/[a-z0-9][a-z0-9-]*\\/[a-z][a-z0-9-]*-(pages|ui|api|mcp|worker)@sha256:[0-9a-f]{64}$"
80
+ "anyOf": [
81
+ {
82
+ "type": "object",
83
+ "properties": {
84
+ "image": {
85
+ "type": "string",
86
+ "maxLength": 256,
87
+ "pattern": "^[a-z0-9][a-z0-9.-]*(:[0-9]{1,5})?\\/[a-z0-9][a-z0-9-]*\\/[a-z][a-z0-9-]*-(pages|ui|api|mcp|worker)@sha256:[0-9a-f]{64}$"
88
+ }
89
+ },
90
+ "required": [
91
+ "image"
92
+ ],
93
+ "additionalProperties": false
94
+ },
95
+ {
96
+ "type": "object",
97
+ "properties": {},
98
+ "additionalProperties": false
77
99
  }
78
- },
79
- "required": [
80
- "image"
81
- ],
82
- "additionalProperties": false
100
+ ]
83
101
  },
84
102
  "worker": {
85
- "type": "object",
86
- "properties": {
87
- "image": {
88
- "type": "string",
89
- "maxLength": 256,
90
- "pattern": "^[a-z0-9][a-z0-9.-]*(:[0-9]{1,5})?\\/[a-z0-9][a-z0-9-]*\\/[a-z][a-z0-9-]*-(pages|ui|api|mcp|worker)@sha256:[0-9a-f]{64}$"
103
+ "anyOf": [
104
+ {
105
+ "type": "object",
106
+ "properties": {
107
+ "image": {
108
+ "type": "string",
109
+ "maxLength": 256,
110
+ "pattern": "^[a-z0-9][a-z0-9.-]*(:[0-9]{1,5})?\\/[a-z0-9][a-z0-9-]*\\/[a-z][a-z0-9-]*-(pages|ui|api|mcp|worker)@sha256:[0-9a-f]{64}$"
111
+ }
112
+ },
113
+ "required": [
114
+ "image"
115
+ ],
116
+ "additionalProperties": false
117
+ },
118
+ {
119
+ "type": "object",
120
+ "properties": {},
121
+ "additionalProperties": false
91
122
  }
92
- },
93
- "required": [
94
- "image"
95
- ],
96
- "additionalProperties": false
123
+ ]
97
124
  },
98
125
  "store": {
99
126
  "type": "object",
@@ -122,7 +149,7 @@
122
149
  "additionalProperties": false
123
150
  },
124
151
  "image": {
125
- "description": "The one image (build --container). A record has part images or this image: never both, never none.",
152
+ "description": "The one image (build --container). A build record has part images or this image: never both, never none.",
126
153
  "type": "string",
127
154
  "maxLength": 256,
128
155
  "pattern": "^[a-z0-9][a-z0-9.-]*(:[0-9]{1,5})?(\\/[a-z0-9][a-z0-9_.-]*)+\\/[a-z][a-z0-9-]*@sha256:[0-9a-f]{64}$"
@@ -122,7 +122,7 @@
122
122
  "additionalProperties": false
123
123
  },
124
124
  "image": {
125
- "description": "The one image (build --container). A record has part images or this image: never both, never none.",
125
+ "description": "The one image (build --container). A build record has part images or this image: never both, never none.",
126
126
  "type": "string",
127
127
  "maxLength": 256,
128
128
  "pattern": "^[a-z0-9][a-z0-9.-]*(:[0-9]{1,5})?(\\/[a-z0-9][a-z0-9_.-]*)+\\/[a-z][a-z0-9-]*@sha256:[0-9a-f]{64}$"
@@ -34,6 +34,20 @@
34
34
  "store"
35
35
  ]
36
36
  },
37
+ "parts": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "enum": [
42
+ "pages",
43
+ "ui",
44
+ "api",
45
+ "mcp",
46
+ "worker",
47
+ "store"
48
+ ]
49
+ }
50
+ },
37
51
  "version": {
38
52
  "type": "string",
39
53
  "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
@@ -47,6 +61,9 @@
47
61
  "format": "date-time",
48
62
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
49
63
  },
64
+ "clockRate": {
65
+ "type": "number"
66
+ },
50
67
  "instance": {
51
68
  "type": "string",
52
69
  "pattern": "^[0-9a-f]{8,32}$"