@atolis-hq/wake 0.4.9 → 0.4.10

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.
@@ -19,7 +19,7 @@ import { createSelfUpdateApplication, } from './self-update-application.js';
19
19
  import { createSelfUpdateFailureLog } from './self-update-failure-log.js';
20
20
  import { createSourceUpdatePort } from './source-update-port.js';
21
21
  import { createUpdateLedger } from './update-ledger.js';
22
- import { resolveWakeVersion, wakeVersion } from './version.js';
22
+ import { resolveWakeVersion, wakePackageVersion } from './version.js';
23
23
  const execFile = promisify(nodeExecFile);
24
24
  export function createSurfaceCliApplications(root, api, now) {
25
25
  const runnerTick = new TickHost(createOneShotRunnerAdvance(root));
@@ -334,7 +334,7 @@ async function resolveSandboxBuildVersion(root) {
334
334
  const development = root.config.host.development;
335
335
  return development.mode === 'source' && development.repoRoot !== undefined
336
336
  ? resolveWakeVersion({ repoRoot: development.repoRoot })
337
- : wakeVersion;
337
+ : wakePackageVersion;
338
338
  }
339
339
  function sandboxWakeInvocation(root) {
340
340
  return root.config.host.development.mode === 'source'
@@ -11,3 +11,5 @@ export interface ResolveWakeVersionOptions {
11
11
  }
12
12
  export declare function resolveWakeVersion(options?: ResolveWakeVersionOptions): string;
13
13
  export declare const wakeVersion: string;
14
+ /** The registry-installable version used by packaged sandbox images. */
15
+ export declare const wakePackageVersion: string;
@@ -3,6 +3,17 @@ import { existsSync, readdirSync, readFileSync } from 'node:fs';
3
3
  import { dirname, resolve } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
  const defaultRepoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..', '..');
6
+ function packageVersion(repoRoot) {
7
+ try {
8
+ const manifest = JSON.parse(readFileSync(resolve(repoRoot, 'package.json'), 'utf8'));
9
+ return typeof manifest.version === 'string' && manifest.version.length > 0
10
+ ? manifest.version
11
+ : undefined;
12
+ }
13
+ catch {
14
+ return undefined;
15
+ }
16
+ }
6
17
  function gitOutputFromRoot(repoRoot, args) {
7
18
  try {
8
19
  return execFileSync('git', args, {
@@ -108,4 +119,6 @@ export function resolveWakeVersion(options = {}) {
108
119
  return `g${headHash.slice(0, 7)}`;
109
120
  return '0.1.0-dev';
110
121
  }
111
- export const wakeVersion = "g38b7d62";
122
+ export const wakeVersion = "g5c5c0fd";
123
+ /** The registry-installable version used by packaged sandbox images. */
124
+ export const wakePackageVersion = packageVersion(defaultRepoRoot) ?? wakeVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {