@atolis-hq/wake 0.3.117 → 0.3.118

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/README.md CHANGED
@@ -128,9 +128,10 @@ nothing new to learn, no separate dashboard to babysit.
128
128
  A local control-plane UI exists for operators who want to watch runs, inspect
129
129
  events, or resume a session directly, but it's a window into the same state -
130
130
  not a required part of the workflow. The API and UI require an operator login:
131
- run `wake ui token` to print the access key, then enter it in the UI. Use
132
- `wake ui token set <key>` to replace it; replacement signs out existing
133
- sessions.
131
+ run `wake ui token` to print a single-use pairing link or temporary code, then
132
+ enter it in the UI. Successful logins persist for two years across browser and
133
+ Wake-container restarts. Use `wake ui token set <key>` to replace the durable
134
+ access key; replacement signs out existing sessions.
134
135
 
135
136
  ## Supported Agent CLIs
136
137
 
@@ -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 = "g9d6e621";
111
+ export const wakeVersion = "g4d812e5";
@@ -5,6 +5,7 @@ import { verifyAccessKey } from '../auth/credentials.js';
5
5
  import { SurfaceCookieSecurity, SurfaceSessionAttribute } from '../auth/vocabulary.js';
6
6
  import { problemDetails } from './problem-details.js';
7
7
  import { BrowserRouteOutcome, routeBrowserRequest } from './router.js';
8
+ const operatorSessionLifetimeSeconds = 2 * 365 * 24 * 60 * 60;
8
9
  /**
9
10
  * The production HTTP surface. Public login routes are declared separately;
10
11
  * every operational API route is protected in its own Fastify scope before
@@ -17,8 +18,14 @@ export function createSurfaceHttpServer(options) {
17
18
  app.register(secureSession, {
18
19
  key: Buffer.from(options.credentials.sessionPassword, 'base64url'),
19
20
  cookieName: 'wake_session',
20
- expiry: 24 * 60 * 60,
21
- cookie: { httpOnly: true, sameSite: 'lax', secure: SurfaceCookieSecurity.Auto, path: '/' },
21
+ expiry: operatorSessionLifetimeSeconds,
22
+ cookie: {
23
+ httpOnly: true,
24
+ maxAge: operatorSessionLifetimeSeconds,
25
+ sameSite: 'lax',
26
+ secure: SurfaceCookieSecurity.Auto,
27
+ path: '/',
28
+ },
22
29
  });
23
30
  app.setErrorHandler((error, request, reply) => {
24
31
  request.log.error({ err: error }, 'Wake HTTP request failed');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.3.117",
3
+ "version": "0.3.118",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {