@atolis-hq/wake 0.4.10 → 0.4.11

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.
@@ -4,15 +4,20 @@ import { dirname, resolve } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
  const defaultRepoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..', '..');
6
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;
7
+ for (const candidate of [
8
+ resolve(repoRoot, 'package.json'),
9
+ resolve(repoRoot, '..', 'package.json'),
10
+ ]) {
11
+ try {
12
+ const manifest = JSON.parse(readFileSync(candidate, 'utf8'));
13
+ if (typeof manifest.version === 'string' && manifest.version.length > 0)
14
+ return manifest.version;
15
+ }
16
+ catch {
17
+ // Source and compiled layouts place the package manifest at different depths.
18
+ }
15
19
  }
20
+ return undefined;
16
21
  }
17
22
  function gitOutputFromRoot(repoRoot, args) {
18
23
  try {
@@ -119,6 +124,6 @@ export function resolveWakeVersion(options = {}) {
119
124
  return `g${headHash.slice(0, 7)}`;
120
125
  return '0.1.0-dev';
121
126
  }
122
- export const wakeVersion = "g5c5c0fd";
127
+ export const wakeVersion = "g712edc9";
123
128
  /** The registry-installable version used by packaged sandbox images. */
124
129
  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.10",
3
+ "version": "0.4.11",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {