@kritchoff/agent-browser 1.0.4 → 1.0.6

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.
Files changed (80) hide show
  1. package/README.md +8 -1
  2. package/dist/cli.cjs +654 -0
  3. package/dist/cli.cjs.map +1 -0
  4. package/dist/cli.d.cts +1 -0
  5. package/dist/cli.d.ts +1 -0
  6. package/dist/cli.js +627 -0
  7. package/dist/cli.js.map +1 -0
  8. package/dist/daemon.cjs +5738 -0
  9. package/dist/daemon.cjs.map +1 -0
  10. package/dist/daemon.d.cts +60 -0
  11. package/dist/daemon.d.ts +14 -13
  12. package/dist/daemon.js +5675 -387
  13. package/dist/daemon.js.map +1 -1
  14. package/dist/index.cjs +630 -0
  15. package/dist/index.cjs.map +1 -0
  16. package/dist/index.d.cts +128 -0
  17. package/dist/index.d.ts +82 -10
  18. package/dist/index.js +577 -234
  19. package/dist/index.js.map +1 -1
  20. package/docker-compose.sdk.yml +2 -1
  21. package/package.json +28 -6
  22. package/bin/agent-browser.js +0 -70
  23. package/dist/actions.d.ts +0 -17
  24. package/dist/actions.d.ts.map +0 -1
  25. package/dist/actions.js +0 -1452
  26. package/dist/actions.js.map +0 -1
  27. package/dist/browser.d.ts +0 -478
  28. package/dist/browser.d.ts.map +0 -1
  29. package/dist/browser.js +0 -1577
  30. package/dist/browser.js.map +0 -1
  31. package/dist/cdp-client.d.ts +0 -103
  32. package/dist/cdp-client.d.ts.map +0 -1
  33. package/dist/cdp-client.js +0 -223
  34. package/dist/cdp-client.js.map +0 -1
  35. package/dist/daemon.d.ts.map +0 -1
  36. package/dist/dualmode-config.d.ts +0 -37
  37. package/dist/dualmode-config.d.ts.map +0 -1
  38. package/dist/dualmode-config.js +0 -44
  39. package/dist/dualmode-config.js.map +0 -1
  40. package/dist/dualmode-fetcher.d.ts +0 -60
  41. package/dist/dualmode-fetcher.d.ts.map +0 -1
  42. package/dist/dualmode-fetcher.js +0 -449
  43. package/dist/dualmode-fetcher.js.map +0 -1
  44. package/dist/dualmode-types.d.ts +0 -183
  45. package/dist/dualmode-types.d.ts.map +0 -1
  46. package/dist/dualmode-types.js +0 -8
  47. package/dist/dualmode-types.js.map +0 -1
  48. package/dist/index.d.ts.map +0 -1
  49. package/dist/ios-actions.d.ts +0 -11
  50. package/dist/ios-actions.d.ts.map +0 -1
  51. package/dist/ios-actions.js +0 -228
  52. package/dist/ios-actions.js.map +0 -1
  53. package/dist/ios-manager.d.ts +0 -266
  54. package/dist/ios-manager.d.ts.map +0 -1
  55. package/dist/ios-manager.js +0 -1073
  56. package/dist/ios-manager.js.map +0 -1
  57. package/dist/orchestrator.d.ts +0 -15
  58. package/dist/orchestrator.d.ts.map +0 -1
  59. package/dist/orchestrator.js +0 -265
  60. package/dist/orchestrator.js.map +0 -1
  61. package/dist/protocol.d.ts +0 -26
  62. package/dist/protocol.d.ts.map +0 -1
  63. package/dist/protocol.js +0 -832
  64. package/dist/protocol.js.map +0 -1
  65. package/dist/snapshot.d.ts +0 -76
  66. package/dist/snapshot.d.ts.map +0 -1
  67. package/dist/snapshot.js +0 -492
  68. package/dist/snapshot.js.map +0 -1
  69. package/dist/stream-server.d.ts +0 -117
  70. package/dist/stream-server.d.ts.map +0 -1
  71. package/dist/stream-server.js +0 -305
  72. package/dist/stream-server.js.map +0 -1
  73. package/dist/taxtree.d.ts +0 -6
  74. package/dist/taxtree.d.ts.map +0 -1
  75. package/dist/taxtree.js +0 -287
  76. package/dist/taxtree.js.map +0 -1
  77. package/dist/types.d.ts +0 -742
  78. package/dist/types.d.ts.map +0 -1
  79. package/dist/types.js +0 -2
  80. package/dist/types.js.map +0 -1
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Set the current session
3
+ */
4
+ declare function setSession(session: string): void;
5
+ /**
6
+ * Get the current session
7
+ */
8
+ declare function getSession(): string;
9
+ /**
10
+ * Get the base directory for socket/pid files.
11
+ * Priority: AGENT_BROWSER_SOCKET_DIR > XDG_RUNTIME_DIR > ~/.agent-browser > tmpdir
12
+ */
13
+ declare function getAppDir(): string;
14
+ declare function getSocketDir(): string;
15
+ /**
16
+ * Get the socket path for the current session (Unix) or port (Windows)
17
+ */
18
+ declare function getSocketPath(session?: string): string;
19
+ /**
20
+ * Get the port file path for Windows (stores the port number)
21
+ */
22
+ declare function getPortFile(session?: string): string;
23
+ /**
24
+ * Get the PID file path for the current session
25
+ */
26
+ declare function getPidFile(session?: string): string;
27
+ /**
28
+ * Check if daemon is running for the current session
29
+ */
30
+ declare function isDaemonRunning(session?: string): boolean;
31
+ /**
32
+ * Get connection info for the current session
33
+ * Returns { type: 'unix', path: string } or { type: 'tcp', port: number }
34
+ */
35
+ declare function getConnectionInfo(session?: string): {
36
+ type: 'unix';
37
+ path: string;
38
+ } | {
39
+ type: 'tcp';
40
+ port: number;
41
+ };
42
+ /**
43
+ * Clean up socket and PID file for the current session
44
+ */
45
+ declare function cleanupSocket(session?: string): void;
46
+ /**
47
+ * Get the stream port file path
48
+ */
49
+ declare function getStreamPortFile(session?: string): string;
50
+ /**
51
+ * Start the daemon server
52
+ * @param options.streamPort Port for WebSocket stream server (0 to disable)
53
+ * @param options.provider Provider type ('ios' for iOS Simulator, undefined for desktop)
54
+ */
55
+ declare function startDaemon(options?: {
56
+ streamPort?: number;
57
+ provider?: string;
58
+ }): Promise<void>;
59
+
60
+ export { cleanupSocket, getAppDir, getConnectionInfo, getPidFile, getPortFile, getSession, getSocketDir, getSocketPath, getStreamPortFile, isDaemonRunning, setSession, startDaemon };
package/dist/daemon.d.ts CHANGED
@@ -1,38 +1,38 @@
1
1
  /**
2
2
  * Set the current session
3
3
  */
4
- export declare function setSession(session: string): void;
4
+ declare function setSession(session: string): void;
5
5
  /**
6
6
  * Get the current session
7
7
  */
8
- export declare function getSession(): string;
8
+ declare function getSession(): string;
9
9
  /**
10
10
  * Get the base directory for socket/pid files.
11
11
  * Priority: AGENT_BROWSER_SOCKET_DIR > XDG_RUNTIME_DIR > ~/.agent-browser > tmpdir
12
12
  */
13
- export declare function getAppDir(): string;
14
- export declare function getSocketDir(): string;
13
+ declare function getAppDir(): string;
14
+ declare function getSocketDir(): string;
15
15
  /**
16
16
  * Get the socket path for the current session (Unix) or port (Windows)
17
17
  */
18
- export declare function getSocketPath(session?: string): string;
18
+ declare function getSocketPath(session?: string): string;
19
19
  /**
20
20
  * Get the port file path for Windows (stores the port number)
21
21
  */
22
- export declare function getPortFile(session?: string): string;
22
+ declare function getPortFile(session?: string): string;
23
23
  /**
24
24
  * Get the PID file path for the current session
25
25
  */
26
- export declare function getPidFile(session?: string): string;
26
+ declare function getPidFile(session?: string): string;
27
27
  /**
28
28
  * Check if daemon is running for the current session
29
29
  */
30
- export declare function isDaemonRunning(session?: string): boolean;
30
+ declare function isDaemonRunning(session?: string): boolean;
31
31
  /**
32
32
  * Get connection info for the current session
33
33
  * Returns { type: 'unix', path: string } or { type: 'tcp', port: number }
34
34
  */
35
- export declare function getConnectionInfo(session?: string): {
35
+ declare function getConnectionInfo(session?: string): {
36
36
  type: 'unix';
37
37
  path: string;
38
38
  } | {
@@ -42,18 +42,19 @@ export declare function getConnectionInfo(session?: string): {
42
42
  /**
43
43
  * Clean up socket and PID file for the current session
44
44
  */
45
- export declare function cleanupSocket(session?: string): void;
45
+ declare function cleanupSocket(session?: string): void;
46
46
  /**
47
47
  * Get the stream port file path
48
48
  */
49
- export declare function getStreamPortFile(session?: string): string;
49
+ declare function getStreamPortFile(session?: string): string;
50
50
  /**
51
51
  * Start the daemon server
52
52
  * @param options.streamPort Port for WebSocket stream server (0 to disable)
53
53
  * @param options.provider Provider type ('ios' for iOS Simulator, undefined for desktop)
54
54
  */
55
- export declare function startDaemon(options?: {
55
+ declare function startDaemon(options?: {
56
56
  streamPort?: number;
57
57
  provider?: string;
58
58
  }): Promise<void>;
59
- //# sourceMappingURL=daemon.d.ts.map
59
+
60
+ export { cleanupSocket, getAppDir, getConnectionInfo, getPidFile, getPortFile, getSession, getSocketDir, getSocketPath, getStreamPortFile, isDaemonRunning, setSession, startDaemon };