@veil-runtime/core 0.1.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.
Files changed (95) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +480 -0
  3. package/dist/index.d.ts +13 -0
  4. package/dist/index.js +21 -0
  5. package/dist/providers/storage/sqlite-job-store.d.ts +10 -0
  6. package/dist/providers/storage/sqlite-job-store.js +89 -0
  7. package/dist/runtime/events/event-bus.d.ts +6 -0
  8. package/dist/runtime/events/event-bus.js +2 -0
  9. package/dist/runtime/events/event-subscriber.d.ts +6 -0
  10. package/dist/runtime/events/event-subscriber.js +2 -0
  11. package/dist/runtime/events/memory-event-bus.d.ts +9 -0
  12. package/dist/runtime/events/memory-event-bus.js +31 -0
  13. package/dist/runtime/events/runtime-event.d.ts +10 -0
  14. package/dist/runtime/events/runtime-event.js +2 -0
  15. package/dist/runtime/execution/console-execution-logger.d.ts +13 -0
  16. package/dist/runtime/execution/console-execution-logger.js +37 -0
  17. package/dist/runtime/execution/execution-context.d.ts +13 -0
  18. package/dist/runtime/execution/execution-context.js +2 -0
  19. package/dist/runtime/execution/execution-logger.d.ts +15 -0
  20. package/dist/runtime/execution/execution-logger.js +2 -0
  21. package/dist/runtime/execution/plan-validator.d.ts +13 -0
  22. package/dist/runtime/execution/plan-validator.js +122 -0
  23. package/dist/runtime/execution/result-reference.d.ts +9 -0
  24. package/dist/runtime/execution/result-reference.js +59 -0
  25. package/dist/runtime/jobs/job-event.d.ts +8 -0
  26. package/dist/runtime/jobs/job-event.js +2 -0
  27. package/dist/runtime/jobs/job-manager.d.ts +17 -0
  28. package/dist/runtime/jobs/job-manager.js +214 -0
  29. package/dist/runtime/jobs/job-memory.d.ts +6 -0
  30. package/dist/runtime/jobs/job-memory.js +70 -0
  31. package/dist/runtime/jobs/job-status.d.ts +1 -0
  32. package/dist/runtime/jobs/job-status.js +2 -0
  33. package/dist/runtime/jobs/job-step.d.ts +10 -0
  34. package/dist/runtime/jobs/job-step.js +2 -0
  35. package/dist/runtime/jobs/job-store.d.ts +15 -0
  36. package/dist/runtime/jobs/job-store.js +52 -0
  37. package/dist/runtime/jobs/job.d.ts +20 -0
  38. package/dist/runtime/jobs/job.js +2 -0
  39. package/dist/runtime/logging/composite-log-sink.d.ts +7 -0
  40. package/dist/runtime/logging/composite-log-sink.js +13 -0
  41. package/dist/runtime/logging/console-log-sink.d.ts +6 -0
  42. package/dist/runtime/logging/console-log-sink.js +28 -0
  43. package/dist/runtime/logging/execution-log-sink.d.ts +4 -0
  44. package/dist/runtime/logging/execution-log-sink.js +2 -0
  45. package/dist/runtime/logging/sqlite-log-sink.d.ts +7 -0
  46. package/dist/runtime/logging/sqlite-log-sink.js +52 -0
  47. package/dist/runtime/modules/capability-module-manifest.d.ts +11 -0
  48. package/dist/runtime/modules/capability-module-manifest.js +2 -0
  49. package/dist/runtime/modules/capability-module.d.ts +6 -0
  50. package/dist/runtime/modules/capability-module.js +2 -0
  51. package/dist/runtime/operator-runtime.d.ts +31 -0
  52. package/dist/runtime/operator-runtime.js +71 -0
  53. package/dist/runtime/permissions/permissions.d.ts +7 -0
  54. package/dist/runtime/permissions/permissions.js +42 -0
  55. package/dist/runtime/planner/planner-definition.d.ts +9 -0
  56. package/dist/runtime/planner/planner-definition.js +2 -0
  57. package/dist/runtime/planner/planner-eligibility.d.ts +7 -0
  58. package/dist/runtime/planner/planner-eligibility.js +20 -0
  59. package/dist/runtime/planner/planner-provider.d.ts +11 -0
  60. package/dist/runtime/planner/planner-provider.js +2 -0
  61. package/dist/runtime/planner/planner-registry.d.ts +40 -0
  62. package/dist/runtime/planner/planner-registry.js +103 -0
  63. package/dist/runtime/planner/planner-router-registry.d.ts +17 -0
  64. package/dist/runtime/planner/planner-router-registry.js +37 -0
  65. package/dist/runtime/planner/planner-router.d.ts +14 -0
  66. package/dist/runtime/planner/planner-router.js +2 -0
  67. package/dist/runtime/planner/planner-runtime-state.d.ts +6 -0
  68. package/dist/runtime/planner/planner-runtime-state.js +2 -0
  69. package/dist/runtime/planner/planner-traits.d.ts +10 -0
  70. package/dist/runtime/planner/planner-traits.js +2 -0
  71. package/dist/runtime/planner/planner.d.ts +29 -0
  72. package/dist/runtime/planner/planner.js +2 -0
  73. package/dist/runtime/planner/strategies/planner-strategy-registry.d.ts +12 -0
  74. package/dist/runtime/planner/strategies/planner-strategy-registry.js +22 -0
  75. package/dist/runtime/planner/strategies/planner-strategy.d.ts +11 -0
  76. package/dist/runtime/planner/strategies/planner-strategy.js +2 -0
  77. package/dist/runtime/registry/capability.d.ts +15 -0
  78. package/dist/runtime/registry/capability.js +2 -0
  79. package/dist/runtime/registry/registry.d.ts +15 -0
  80. package/dist/runtime/registry/registry.js +25 -0
  81. package/dist/sdk/capability/capability-definition.d.ts +19 -0
  82. package/dist/sdk/capability/capability-definition.js +2 -0
  83. package/dist/sdk/capability/capability-middleware.d.ts +5 -0
  84. package/dist/sdk/capability/capability-middleware.js +2 -0
  85. package/dist/sdk/capability/create-capability.d.ts +3 -0
  86. package/dist/sdk/capability/create-capability.js +37 -0
  87. package/dist/sdk/capability/index.d.ts +5 -0
  88. package/dist/sdk/capability/index.js +9 -0
  89. package/dist/sdk/capability/lifecycle-logging-middleware.d.ts +7 -0
  90. package/dist/sdk/capability/lifecycle-logging-middleware.js +35 -0
  91. package/dist/sdk/capability/timeout-middleware.d.ts +7 -0
  92. package/dist/sdk/capability/timeout-middleware.js +43 -0
  93. package/dist/sdk/index.d.ts +1 -0
  94. package/dist/sdk/index.js +17 -0
  95. package/package.json +70 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,480 @@
1
+ # Veil
2
+
3
+ Veil is a capability-driven execution platform for AI and software systems.
4
+
5
+ It separates **reasoning** from **execution**, allowing planners, language models, agents, humans and applications to safely interact with external systems through reusable capabilities while keeping execution governed, observable, auditable and independent of any specific AI provider.
6
+
7
+ The goal is simple:
8
+
9
+ > **Allow any planner to decide _what_ should happen, while Veil reliably decides _how_ it happens.**
10
+
11
+ Or, more simply:
12
+
13
+ > **Veil treats AI as a planning problem and execution as an engineering problem.**
14
+
15
+ ---
16
+
17
+ # Vision
18
+
19
+ Modern language models are exceptional at reasoning.
20
+
21
+ They should not be responsible for safely interacting with production systems.
22
+
23
+ Veil provides the governed execution layer between reasoning and the outside world.
24
+
25
+ Instead of allowing planners to directly manipulate browsers, files, databases, infrastructure or external services, Veil executes structured plans through governed capabilities, applying validation, permissions, policies, memory, logging and runtime services before any action is performed.
26
+
27
+ The result is a reusable execution platform capable of powering automation, operational intelligence, developer tooling and enterprise integrations without coupling execution to any specific reasoning system or AI provider.
28
+
29
+ ---
30
+
31
+ # Architectural Principles
32
+
33
+ Veil owns **the contract between reasoning and execution**.
34
+
35
+ It does not prescribe how reasoning is performed or how capabilities are implemented.
36
+
37
+ Instead, it defines stable interfaces that allow both sides to evolve independently.
38
+
39
+ ```text
40
+ Reasoning
41
+
42
+ Planner Providers
43
+ Planner Strategies
44
+ Planner Routing
45
+
46
+ ExecutionPlan
47
+ ══════════════════════
48
+ OperatorRuntime
49
+ ══════════════════════
50
+ Capability Registry
51
+ Capability Modules
52
+ Providers
53
+
54
+ Execution
55
+ ```
56
+
57
+ This separation allows new planners, routing strategies, capability modules and providers to be introduced without changing Veil Core.
58
+
59
+ ---
60
+
61
+ # Architecture
62
+
63
+ ```text
64
+ Goal
65
+
66
+
67
+ Planner Router
68
+
69
+ selects strategy
70
+
71
+
72
+ Planner Strategy
73
+
74
+ ┌────────────┼────────────┐
75
+ │ │ │
76
+ ▼ ▼ ▼
77
+ Planner Registry Runtime State Eligibility
78
+
79
+ └────────────┬────────────┘
80
+
81
+
82
+ Planner Provider(s)
83
+
84
+
85
+ ExecutionPlan
86
+
87
+ ══════════════════════════════════════════════
88
+ VEIL
89
+ ══════════════════════════════════════════════
90
+
91
+
92
+
93
+ OperatorRuntime
94
+
95
+ ┌───────────────┼───────────────┐
96
+ ▼ ▼ ▼
97
+ Policy Job Manager Event Bus
98
+
99
+
100
+ Execution Engine
101
+
102
+
103
+ Capability Registry
104
+
105
+
106
+ Capability Modules
107
+
108
+
109
+ Providers
110
+
111
+ ┌──────────────┬──────────────┬──────────────┬──────────────┐
112
+ ▼ ▼ ▼ ▼
113
+ Browser Filesystem Shell HTTP
114
+ ```
115
+
116
+ ---
117
+
118
+ # Current Features
119
+
120
+ ## Runtime
121
+
122
+ - Generic execution engine
123
+ - OperatorRuntime façade
124
+ - Planner router registry
125
+ - Planner registry
126
+ - Strategy registry
127
+ - Capability registry
128
+ - ExecutionPlan contract
129
+ - Execution context
130
+ - Event bus
131
+ - Runtime events
132
+ - Structured execution logging
133
+ - Job lifecycle management
134
+ - Persistent SQLite job store
135
+ - Human-reviewed outcomes
136
+
137
+ ---
138
+
139
+ ## Planning
140
+
141
+ - Planner router
142
+ - Planner registry
143
+ - Planner strategies
144
+ - Deterministic planner
145
+ - OpenAI-compatible planner support
146
+ - Example local and distributed planner configurations
147
+ - Planner health monitoring
148
+ - Planner runtime state
149
+ - Planner eligibility
150
+ - Historical context retrieval
151
+ - ExecutionPlan v1
152
+
153
+ ---
154
+
155
+ ## SDK
156
+
157
+ - Capability SDK
158
+ - Declarative capability authoring
159
+ - Middleware pipeline
160
+ - Lifecycle middleware
161
+ - Timeout middleware
162
+ - Runtime execution options
163
+ - Capability module support
164
+
165
+ ---
166
+
167
+ ## Memory
168
+
169
+ - Persistent job history
170
+ - Planner context retrieval
171
+ - Historical capability recall
172
+ - Outcome recording
173
+ - Human review workflow
174
+
175
+ ---
176
+
177
+ ## Capabilities
178
+
179
+ - LinkedIn authentication
180
+ - LinkedIn profile reader
181
+ - Generic web page reader
182
+ - HTTP request execution
183
+ - Filesystem reader
184
+ - Shell command execution
185
+
186
+ ---
187
+
188
+ ## Providers
189
+
190
+ - Browser provider
191
+ - Browser session manager
192
+ - HTTP provider
193
+ - Filesystem provider
194
+ - Shell provider
195
+ - SQLite provider
196
+ - OpenAI-compatible AI providers
197
+
198
+ ---
199
+
200
+ # Design Principles
201
+
202
+ - Planner agnostic
203
+ - Strategy agnostic
204
+ - Provider agnostic
205
+ - Capability driven
206
+ - Runtime governed
207
+ - Explicit permissions
208
+ - Structured observability
209
+ - Human review before learning
210
+ - Small composable services
211
+ - Extension through composition
212
+ - Reusable by design
213
+
214
+ ---
215
+
216
+ # What Makes Veil Different
217
+
218
+ Veil does not attempt to replace language models.
219
+
220
+ Instead, it provides the governed execution environment around them.
221
+
222
+ Reasoning remains completely replaceable.
223
+
224
+ Execution remains governed and deterministic at the capability boundary.
225
+
226
+ Applications can embed Veil without coupling themselves to specific planners, capability implementations or infrastructure providers.
227
+
228
+ Because these responsibilities remain independent:
229
+
230
+ - Routers choose strategies.
231
+ - Strategies orchestrate planners.
232
+ - Planners produce execution plans.
233
+ - OperatorRuntime governs execution.
234
+ - Capabilities perform the work.
235
+ - Providers interact with external systems.
236
+ - Runtime services remain independent of planners and capabilities.
237
+
238
+ This separation allows Veil to remain reusable across domains while ensuring execution remains governed, observable and consistent.
239
+
240
+ ---
241
+
242
+ # Roadmap
243
+
244
+ ## Runtime
245
+
246
+ - Dependency graph execution
247
+ - Parallel capability execution
248
+ - Live progress reporting
249
+ - Cancellation
250
+ - Retry policies
251
+ - Secrets service
252
+ - Metrics
253
+ - Audit services
254
+ - Resource management
255
+
256
+ ---
257
+
258
+ ## SDK
259
+
260
+ - Provider SDK
261
+ - Capability testing framework
262
+ - Middleware library
263
+ - Validation helpers
264
+ - Retry middleware
265
+ - Metrics middleware
266
+ - Audit middleware
267
+ - Execution decorators
268
+
269
+ ---
270
+
271
+ ## Intelligence
272
+
273
+ - Planner routing policies
274
+ - Planner evaluation
275
+ - Cost-aware routing
276
+ - Latency-aware routing
277
+ - Capability recommendations
278
+ - Historical plan optimisation
279
+ - Outcome-aware learning
280
+ - Runtime analytics
281
+ - Multi-agent planning pipelines
282
+
283
+ ---
284
+
285
+ ## Capabilities
286
+
287
+ - LinkedIn posting
288
+ - GitHub
289
+ - Docker
290
+ - SSH
291
+ - SQL
292
+ - Jira
293
+ - Confluence
294
+ - Kubernetes
295
+ - Cloud providers
296
+ - Generic REST integrations
297
+
298
+ ---
299
+
300
+ # Long-Term Direction
301
+
302
+ Veil is evolving into a reusable execution platform capable of powering:
303
+
304
+ - AI assistants
305
+ - Operational intelligence platforms
306
+ - Enterprise automation
307
+ - Developer tooling
308
+ - Agentic systems
309
+ - Workflow orchestration
310
+ - Multi-agent collaboration
311
+
312
+ Reasoning remains modular through planners, strategies and routing.
313
+
314
+ Execution remains governed and deterministic at the capability boundary.
315
+
316
+ Veil defines the contract between them.
317
+
318
+ ---
319
+
320
+ # Status
321
+
322
+ Veil has evolved beyond a proof of concept into a reusable execution platform.
323
+
324
+ The execution runtime, capability system, reasoning architecture, planner routing, planner strategies, provider model, event bus, persistent memory, module architecture and SDK foundation are now in place.
325
+
326
+ The current focus is strengthening the platform itself—its SDKs, runtime services, provider ecosystem, reasoning architecture and execution model—so that new planners, strategies, capabilities and integrations become progressively simpler to build while preserving governed, observable and reliable execution.
327
+
328
+ Every architectural improvement compounds across the platform, allowing Veil to grow in capability while keeping complexity contained behind stable contracts.
329
+
330
+ The guiding principles remain simple:
331
+
332
+ > **Veil owns the contract between reasoning and execution.**
333
+
334
+ > **Planners reason. Strategies orchestrate. OperatorRuntime governs execution. Veil owns the contract between them.**
335
+
336
+ > **Architecture evolves only when existing contracts can no longer express a real-world use case. Otherwise, Veil grows through extensions rather than changes to its core.**
337
+
338
+ ---
339
+ ---
340
+
341
+ # Getting Started
342
+
343
+ ## Requirements
344
+
345
+ - Node.js 24+
346
+ - npm
347
+ - Git
348
+
349
+ Optional:
350
+
351
+ - Docker Model Runner or another OpenAI-compatible endpoint
352
+ - Playwright (for browser capabilities)
353
+
354
+ ---
355
+
356
+ ## Installation
357
+
358
+ Install the public runtime package in an application:
359
+
360
+ ```bash
361
+ npm install @veil-runtime/core
362
+ ```
363
+
364
+ Create and execute a capability through the public API:
365
+
366
+ ```ts
367
+ import {
368
+ createCapability,
369
+ OperatorRuntime,
370
+ type CapabilityModule,
371
+ type ExecutionPlan,
372
+ } from '@veil-runtime/core';
373
+
374
+ const echo = createCapability<{ value: string }, string>({
375
+ name: 'example.echo',
376
+ version: '1.0.0',
377
+ description: 'Return the provided value',
378
+ risk: 'read',
379
+ async execute({ input }) {
380
+ return input.value;
381
+ },
382
+ });
383
+
384
+ const module: CapabilityModule = {
385
+ manifest: {
386
+ name: 'example',
387
+ version: '1.0.0',
388
+ capabilities: [echo.name],
389
+ },
390
+ capabilities: [echo],
391
+ };
392
+
393
+ const plan: ExecutionPlan = {
394
+ version: '1.0',
395
+ steps: [{
396
+ id: 'echo',
397
+ capability: echo.name,
398
+ capabilityVersion: echo.version,
399
+ input: { value: 'Hello from Veil' },
400
+ }],
401
+ };
402
+
403
+ const runtime = new OperatorRuntime();
404
+ runtime.use(module);
405
+
406
+ const job = await runtime.executePlan(plan);
407
+ console.log(job.status, job.result);
408
+ ```
409
+
410
+ This public-package usage is compile- and execution-verified by the release
411
+ consumer fixture. Internal `src`, `dist`, registry, provider, and storage
412
+ subpaths are intentionally unavailable.
413
+
414
+ ## Repository development
415
+
416
+ Clone the repository:
417
+
418
+ ```bash
419
+ git clone git@github.com:veil-runtime/veil.git
420
+ cd veil
421
+ ```
422
+
423
+ Install dependencies:
424
+
425
+ ```bash
426
+ npm install
427
+ ```
428
+
429
+ ---
430
+
431
+ ## Running Veil
432
+
433
+ Start the runtime:
434
+
435
+ ```bash
436
+ JOB_STORE=sqlite npm run dev
437
+ ```
438
+
439
+ The runtime will start on:
440
+
441
+ ```
442
+ http://127.0.0.1:3333
443
+ ```
444
+
445
+ Verify it's running:
446
+
447
+ ```bash
448
+ curl http://127.0.0.1:3333/health
449
+ ```
450
+
451
+ Expected response:
452
+
453
+ ```json
454
+ {
455
+ "status": "ok",
456
+ "service": "operator-runtime"
457
+ }
458
+ ```
459
+
460
+ ---
461
+
462
+ ## Running Your First Job
463
+
464
+ Submit a goal:
465
+
466
+ ```bash
467
+ curl -X POST http://127.0.0.1:3333/api/jobs/run \
468
+ -H "Content-Type: application/json" \
469
+ -d '{
470
+ "goal": "Read README.md"
471
+ }'
472
+ ```
473
+
474
+ Veil will:
475
+
476
+ 1. Route the request through a `PlannerRouter`.
477
+ 2. Select a `PlannerStrategy`.
478
+ 3. Generate an `ExecutionPlan`.
479
+ 4. Execute the plan through `OperatorRuntime`.
480
+ 5. Return the completed job.
@@ -0,0 +1,13 @@
1
+ export { OperatorRuntime, operatorRuntime } from './runtime/operator-runtime.js';
2
+ export type { ExecutePlanOptions, RunJobOptions } from './runtime/operator-runtime.js';
3
+ export type { ExecutionPlan, ExecutionStep, Planner, PlannerContext, ResultReference, } from './runtime/planner/planner.js';
4
+ export type { ExecutionCaller, ExecutionContext } from './runtime/execution/execution-context.js';
5
+ export type { Capability, CapabilityInputField, CapabilityRisk, } from './runtime/registry/capability.js';
6
+ export type { CapabilityModule } from './runtime/modules/capability-module.js';
7
+ export type { CapabilityModuleManifest } from './runtime/modules/capability-module-manifest.js';
8
+ export type { Job, JobOutcome } from './runtime/jobs/job.js';
9
+ export type { JobStep, JobStepStatus } from './runtime/jobs/job-step.js';
10
+ export type { JobStatus } from './runtime/jobs/job-status.js';
11
+ export type { JobEvent } from './runtime/jobs/job-event.js';
12
+ export type { RuntimeEvent } from './runtime/events/runtime-event.js';
13
+ export * from './sdk/index.js';