@wrongstack/cli 0.289.0 → 0.291.1
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/dist/arg-parser.d.ts.map +1 -1
- package/dist/auth-menu/helpers.d.ts +0 -2
- package/dist/auth-menu/helpers.d.ts.map +1 -1
- package/dist/auth-menu/shared.d.ts +1 -5
- package/dist/auth-menu/shared.d.ts.map +1 -1
- package/dist/auth-menu/types.d.ts +3 -2
- package/dist/auth-menu/types.d.ts.map +1 -1
- package/dist/boot/container-wiring.d.ts +2 -1
- package/dist/boot/container-wiring.d.ts.map +1 -1
- package/dist/boot/dispatch-webui.d.ts +3 -0
- package/dist/boot/dispatch-webui.d.ts.map +1 -1
- package/dist/boot/event-wiring.d.ts +2 -1
- package/dist/boot/event-wiring.d.ts.map +1 -1
- package/dist/boot/launch-menu.d.ts +1 -1
- package/dist/boot/launch-menu.d.ts.map +1 -1
- package/dist/boot/short-circuit-hq.d.ts.map +1 -1
- package/dist/boot/system-prompt-builder.d.ts +3 -2
- package/dist/boot/system-prompt-builder.d.ts.map +1 -1
- package/dist/boot/system-prompt.d.ts +2 -1
- package/dist/boot/system-prompt.d.ts.map +1 -1
- package/dist/boot/tool-registry.d.ts +2 -1
- package/dist/boot/tool-registry.d.ts.map +1 -1
- package/dist/boot/tui-project-spawn.d.ts +2 -1
- package/dist/boot/tui-project-spawn.d.ts.map +1 -1
- package/dist/boot.d.ts +9 -0
- package/dist/boot.d.ts.map +1 -1
- package/dist/cli-context.d.ts.map +1 -1
- package/dist/cli-main.d.ts.map +1 -1
- package/dist/config-doctor.d.ts.map +1 -1
- package/dist/execute-deps.d.ts +8 -4
- package/dist/execute-deps.d.ts.map +1 -1
- package/dist/execution.d.ts +21 -2
- package/dist/execution.d.ts.map +1 -1
- package/dist/fleet/host.d.ts +28 -0
- package/dist/fleet/host.d.ts.map +1 -1
- package/dist/hq-server/auth.d.ts +1 -3
- package/dist/hq-server/auth.d.ts.map +1 -1
- package/dist/hq-server.d.ts +11 -1
- package/dist/hq-server.d.ts.map +1 -1
- package/dist/hq-tunnel.d.ts +16 -0
- package/dist/hq-tunnel.d.ts.map +1 -0
- package/dist/index.js +23087 -21699
- package/dist/index.js.map +4 -4
- package/dist/input-reader.d.ts.map +1 -1
- package/dist/plugin-management.d.ts.map +1 -1
- package/dist/repl.d.ts.map +1 -1
- package/dist/settings-menu.d.ts +6 -0
- package/dist/settings-menu.d.ts.map +1 -1
- package/dist/slash-commands/agents.d.ts +2 -2
- package/dist/slash-commands/agents.d.ts.map +1 -1
- package/dist/slash-commands/clear.d.ts.map +1 -1
- package/dist/slash-commands/enhance.d.ts.map +1 -1
- package/dist/slash-commands/goal-refiner.d.ts +4 -3
- package/dist/slash-commands/goal-refiner.d.ts.map +1 -1
- package/dist/slash-commands/index.d.ts +40 -1
- package/dist/slash-commands/index.d.ts.map +1 -1
- package/dist/slash-commands/interrupt.d.ts +2 -1
- package/dist/slash-commands/interrupt.d.ts.map +1 -1
- package/dist/slash-commands/kanban.d.ts.map +1 -1
- package/dist/slash-commands/memory.d.ts.map +1 -1
- package/dist/slash-commands/profile.d.ts +15 -0
- package/dist/slash-commands/profile.d.ts.map +1 -0
- package/dist/slash-commands/provider-status.d.ts +2 -0
- package/dist/slash-commands/provider-status.d.ts.map +1 -1
- package/dist/slash-commands/settings.d.ts.map +1 -1
- package/dist/slash-commands/suggestion-store.d.ts +7 -0
- package/dist/slash-commands/suggestion-store.d.ts.map +1 -1
- package/dist/slash-commands/telegram-setup.d.ts.map +1 -1
- package/dist/subcommands/handlers/chronicle.d.ts.map +1 -1
- package/dist/subcommands/handlers/permissions.d.ts +10 -0
- package/dist/subcommands/handlers/permissions.d.ts.map +1 -0
- package/dist/webui-server/kanban-supervisor.d.ts +12 -0
- package/dist/webui-server/kanban-supervisor.d.ts.map +1 -1
- package/dist/webui-server/message-router.d.ts.map +1 -1
- package/dist/webui-server/prefs-seeding.d.ts +15 -5
- package/dist/webui-server/prefs-seeding.d.ts.map +1 -1
- package/dist/webui-server/session-start-payload.d.ts +1 -0
- package/dist/webui-server/session-start-payload.d.ts.map +1 -1
- package/dist/webui-server/setup-events.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/agent-config.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/connection.d.ts +1 -0
- package/dist/webui-server/ws-handlers/connection.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/kanban.d.ts +13 -0
- package/dist/webui-server/ws-handlers/kanban.d.ts.map +1 -1
- package/dist/webui-server/ws-handlers/prefs.d.ts +1 -1
- package/dist/webui-server/ws-handlers/prefs.d.ts.map +1 -1
- package/dist/webui-server.d.ts +3 -0
- package/dist/webui-server.d.ts.map +1 -1
- package/dist/wiring/controllers.d.ts +8 -1
- package/dist/wiring/controllers.d.ts.map +1 -1
- package/dist/wiring/plugins.d.ts.map +1 -1
- package/dist/wiring/provider-runtime-setup.d.ts.map +1 -1
- package/package.json +23 -23
package/dist/hq-server.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface HqServerOptions {
|
|
|
25
25
|
clientCleanupIntervalMs?: number;
|
|
26
26
|
/** Session-snapshot freshness timeout. Primarily exposed for deterministic integration tests. */
|
|
27
27
|
sessionSnapshotTtlMs?: number;
|
|
28
|
-
/** Optional browser password login.
|
|
28
|
+
/** Optional browser password login. Sets or rotates the scrypt hash in auth.json. */
|
|
29
29
|
password?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Allow a non-loopback bind while HQ is in open mode (no tokens, no
|
|
@@ -40,6 +40,12 @@ export interface HqServerOptions {
|
|
|
40
40
|
* the browser.
|
|
41
41
|
*/
|
|
42
42
|
secureCookies?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Keep browser authentication enabled for the full server lifetime. Used
|
|
45
|
+
* by public relays such as --tunnel so an auth.json reload cannot silently
|
|
46
|
+
* turn an authenticated public endpoint into open mode.
|
|
47
|
+
*/
|
|
48
|
+
requireBrowserAuth?: boolean;
|
|
43
49
|
}
|
|
44
50
|
export { HqInsecureExposureError } from '@wrongstack/core';
|
|
45
51
|
export interface HqStartupConnectionInfo {
|
|
@@ -51,12 +57,16 @@ export interface HqStartupConnectionInfo {
|
|
|
51
57
|
WRONGSTACK_HQ_TOKEN?: string;
|
|
52
58
|
};
|
|
53
59
|
createdAuth: boolean;
|
|
60
|
+
browserTokenMode: boolean;
|
|
61
|
+
passwordMode: boolean;
|
|
54
62
|
}
|
|
55
63
|
export type HqFirstRunSetup = HqStartupConnectionInfo;
|
|
56
64
|
export interface HqServerHandle {
|
|
57
65
|
host: string;
|
|
58
66
|
port: number;
|
|
59
67
|
firstRunSetup?: HqFirstRunSetup;
|
|
68
|
+
/** Authorize an exact browser-facing HTTPS origin established by trusted server code. */
|
|
69
|
+
trustPublicOrigin(origin: string): void;
|
|
60
70
|
close(): Promise<void>;
|
|
61
71
|
}
|
|
62
72
|
/**
|
package/dist/hq-server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hq-server.d.ts","sourceRoot":"","sources":["../src/hq-server.ts"],"names":[],"mappings":"AAsBA,OAAO,
|
|
1
|
+
{"version":3,"file":"hq-server.d.ts","sourceRoot":"","sources":["../src/hq-server.ts"],"names":[],"mappings":"AAsBA,OAAO,EA0BL,KAAK,iBAAiB,EAevB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAUjD,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8FAA8F;IAC9F,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kGAAkG;IAClG,WAAW,CAAC,EAAE,MAAM,CAAC;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jC,OAAO,EAAE,OAAO,EAAE,CAAC;AAgLnB,wBAAsB,aAAa,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,cAAc,CAAC,CAwD1F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface HqQuickTunnelHandle {
|
|
2
|
+
url: string;
|
|
3
|
+
close(): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export interface HqQuickTunnelOptions {
|
|
6
|
+
executable?: string | undefined;
|
|
7
|
+
timeoutMs?: number | undefined;
|
|
8
|
+
onUnexpectedExit?: ((message: string) => void) | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare function extractQuickTunnelUrl(output: string): string | undefined;
|
|
11
|
+
/** cloudflared prints the public URL before its edge connection is usable. */
|
|
12
|
+
export declare function hasRegisteredQuickTunnelConnection(output: string): boolean;
|
|
13
|
+
/** Start an anonymous TryCloudflare tunnel and tie it to the HQ process lifecycle. */
|
|
14
|
+
export declare function startHqQuickTunnel(originUrl: string, options?: HqQuickTunnelOptions): Promise<HqQuickTunnelHandle>;
|
|
15
|
+
export declare function buildPublicHqUrl(tunnelUrl: string, localBrowserUrl: string | undefined, includeToken: boolean): string;
|
|
16
|
+
//# sourceMappingURL=hq-tunnel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hq-tunnel.d.ts","sourceRoot":"","sources":["../src/hq-tunnel.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,gBAAgB,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAC5D;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExE;AAED,8EAA8E;AAC9E,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1E;AAMD,sFAAsF;AACtF,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,mBAAmB,CAAC,CAyF9B;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,YAAY,EAAE,OAAO,GACpB,MAAM,CAOR"}
|