@atolis-hq/wake 0.3.96 → 0.3.97

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.
@@ -31,7 +31,10 @@ export function composeControlPlaneHosts(advanceOnce, sleep) {
31
31
  const tick = new TickHost(advanceOnce);
32
32
  return { tick, resident: new ResidentHost(tick, sleep) };
33
33
  }
34
- export * from './composition-root.js';
34
+ export async function createCompositionRoot(wakeRoot, options = {}) {
35
+ const { createCompositionRoot: create } = await import('./composition-root.js');
36
+ return create(wakeRoot, options);
37
+ }
35
38
  export * from './resource-transition-evidence.js';
36
39
  export * from './analytics-projection.js';
37
40
  export * from './board-projection.js';
@@ -41,7 +44,10 @@ export * from './config/root-schema.js';
41
44
  export * from './fake-scenarios.js';
42
45
  export * from './paths.js';
43
46
  export * from './projection-runtime.js';
44
- export * from './surface-applications.js';
47
+ export async function createSurfaceApplications(root, options = {}) {
48
+ const { createSurfaceApplications: create } = await import('./surface-applications.js');
49
+ return create(root, options);
50
+ }
45
51
  export * from './update-ledger.js';
46
52
  export * from './update-maintenance-lease.js';
47
53
  export * from './self-update-application.js';
@@ -108,4 +108,4 @@ export function resolveWakeVersion(options = {}) {
108
108
  return `g${headHash.slice(0, 7)}`;
109
109
  return '0.1.0-dev';
110
110
  }
111
- export const wakeVersion = "g68e9c85";
111
+ export const wakeVersion = "ga522ca7";
package/dist/src/main.js CHANGED
@@ -3,7 +3,8 @@ import { spawn } from 'node:child_process';
3
3
  import { access } from 'node:fs/promises';
4
4
  import { join } from 'node:path';
5
5
  import { pathToFileURL } from 'node:url';
6
- import { createCompositionRoot, createSurfaceApplications, initialiseWakeRoot, loadConfig, wakeVersion, } from './bootstrap/index.js';
6
+ import { initialiseWakeRoot } from './bootstrap/initialise.js';
7
+ import { wakeVersion } from './bootstrap/version.js';
7
8
  import { parseWakeCommand, runWakeCommand, sandboxUsage, usage, } from './surfaces/index.js';
8
9
  export async function main(argv = process.argv.slice(2), dependencies) {
9
10
  const suppliedArguments = normalizeDeveloperAlias(argv);
@@ -124,8 +125,12 @@ function productionDependencies() {
124
125
  initialise: initialiseWakeRoot,
125
126
  sandboxRuntime: productionSandboxRuntime(),
126
127
  async compose(wakeRoot) {
128
+ const [{ createCompositionRoot }, { createSurfaceApplications }] = await Promise.all([
129
+ import('./bootstrap/composition-root.js'),
130
+ import('./bootstrap/surface-applications.js'),
131
+ ]);
127
132
  const root = await createCompositionRoot(wakeRoot);
128
- return createSurfaceApplications(root).cli;
133
+ return (await createSurfaceApplications(root)).cli;
129
134
  },
130
135
  output: productionOutput(),
131
136
  signal: controller.signal,
@@ -146,6 +151,7 @@ function productionSandboxRuntime() {
146
151
  }
147
152
  },
148
153
  async exec(wakeRoot, arguments_) {
154
+ const { loadConfig } = await import('./bootstrap/config/load-config.js');
149
155
  const config = await loadConfig(wakeRoot);
150
156
  const invocation = config.host.development.mode === 'source' ? ['node', '/app/dist/src/main.js'] : ['wake'];
151
157
  await runDocker([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.3.96",
3
+ "version": "0.3.97",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {