@vitest-agent/engine 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.
- package/LICENSE +21 -0
- package/README.md +32 -0
- package/index.d.ts +2679 -0
- package/index.js +63 -0
- package/layers/ConfigLive.js +46 -0
- package/layers/DataReaderLive.js +1923 -0
- package/layers/DataStoreLive.js +1283 -0
- package/layers/DetailResolverLive.js +9 -0
- package/layers/DiscoveryRegistryLive.js +70 -0
- package/layers/EnvironmentDetectorLive.js +36 -0
- package/layers/EnvironmentDetectorTest.js +13 -0
- package/layers/ExecutorResolverLive.js +9 -0
- package/layers/FormatSelectorLive.js +20 -0
- package/layers/HistoryTrackerLive.js +49 -0
- package/layers/HistoryTrackerTest.js +25 -0
- package/layers/LoggerLive.js +70 -0
- package/layers/OutputPipelineLive.js +20 -0
- package/layers/OutputRendererLive.js +23 -0
- package/layers/PathResolutionLive.js +46 -0
- package/layers/PerClientSessionMapLive.js +145 -0
- package/layers/ProjectDiscoveryLive.js +67 -0
- package/layers/ProjectDiscoveryTest.js +12 -0
- package/layers/ProjectIdentityLive.js +95 -0
- package/layers/RunContextLive.js +82 -0
- package/lib/format-triage.js +103 -0
- package/lib/format-wrapup.js +67 -0
- package/migrations/0001_initial.js +824 -0
- package/migrations/0002_test_artifacts.js +30 -0
- package/migrations/index.js +27 -0
- package/migrations/registry_0001_initial.js +39 -0
- package/migrations/session_map_0001_initial.js +38 -0
- package/package.json +59 -0
- package/platform.js +58 -0
- package/programs/end-agent.js +19 -0
- package/programs/hook-paths.js +115 -0
- package/programs/platform-sidecar.js +37 -0
- package/programs/record-session.js +49 -0
- package/programs/record-tdd-artifact.js +119 -0
- package/programs/record-turn.js +61 -0
- package/programs/record-workspace-changes.js +57 -0
- package/programs/register-agent.js +85 -0
- package/programs/resolve-session-for-recording.js +44 -0
- package/programs/session-env.js +85 -0
- package/project-dir.js +32 -0
- package/services/Config.js +15 -0
- package/services/DataReader.js +8 -0
- package/services/DataStore.js +15 -0
- package/services/DetailResolver.js +8 -0
- package/services/DiscoveryRegistry.js +8 -0
- package/services/EnvironmentDetector.js +8 -0
- package/services/ExecutorResolver.js +8 -0
- package/services/FormatSelector.js +8 -0
- package/services/HistoryTracker.js +20 -0
- package/services/OutputRenderer.js +8 -0
- package/services/PerClientSessionMap.js +22 -0
- package/services/ProjectDiscovery.js +8 -0
- package/services/ProjectIdentity.js +62 -0
- package/services/RunContext.js +53 -0
- package/services/idempotency.js +58 -0
- package/sql/assemblers.js +69 -0
- package/testing/layers.js +16 -0
- package/testing.d.ts +1101 -0
- package/testing.js +243 -0
- package/tsdoc-metadata.json +11 -0
- package/utils/ensure-migrated.js +47 -0
- package/utils/failure-signature.js +34 -0
- package/utils/resolve-data-path.js +64 -0
- package/utils/resolve-project-key-from-cwd.js +52 -0
- package/utils/resolve-workspace-key.js +41 -0
- package/version.js +6 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 C. Spencer Beggs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @vitest-agent/engine
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@vitest-agent/engine)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://www.typescriptlang.org/)
|
|
6
|
+
|
|
7
|
+
> **Part of the [vitest-agent](https://vitest-agent.dev) ecosystem.** Most users want **[@vitest-agent/plugin](https://www.npmjs.com/package/@vitest-agent/plugin)**, which pulls this package in automatically. Install `@vitest-agent/engine` directly only if you build tooling on the shared services or data layer.
|
|
8
|
+
|
|
9
|
+
The platform-dependent half of the vitest-agent ecosystem's former `@vitest-agent/sdk`. Carries the Effect services, live layers, the SQLite data layer, migrations, and platform resolution consumed by the CLI and MCP server.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- **Effect services and layers** — Context.Service definitions with live implementations for the data layer, path resolution, and platform detection
|
|
14
|
+
- **SQLite data layer** — `DataStore` and `DataReader` Effect services, migrations, and the process-level migration coordinator
|
|
15
|
+
- **Platform resolution** — XDG path resolution and workspace identity for the CLI and MCP server
|
|
16
|
+
- **Test utilities** — helpers on the `@vitest-agent/engine/testing` sub-path
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @vitest-agent/engine
|
|
22
|
+
# or
|
|
23
|
+
pnpm add @vitest-agent/engine
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Documentation
|
|
27
|
+
|
|
28
|
+
Package reference at [vitest-agent.dev/engine](https://vitest-agent.dev/engine).
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
[MIT](LICENSE)
|