@dikshanty94/webnav 0.2.0

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 (145) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +283 -0
  3. package/bin/webnav +18 -0
  4. package/dist/agent/loop.d.ts +59 -0
  5. package/dist/agent/loop.js +267 -0
  6. package/dist/agent/server.d.ts +60 -0
  7. package/dist/agent/server.js +254 -0
  8. package/dist/cli-help.d.ts +3 -0
  9. package/dist/cli-help.js +111 -0
  10. package/dist/cli-spec.d.ts +24 -0
  11. package/dist/cli-spec.js +460 -0
  12. package/dist/cli.d.ts +208 -0
  13. package/dist/cli.js +2558 -0
  14. package/dist/contract.d.ts +20 -0
  15. package/dist/contract.js +15 -0
  16. package/dist/creds.d.ts +46 -0
  17. package/dist/creds.js +126 -0
  18. package/dist/dashboard/server.d.ts +137 -0
  19. package/dist/dashboard/server.js +395 -0
  20. package/dist/dashboard/shell.d.ts +1 -0
  21. package/dist/dashboard/shell.js +1343 -0
  22. package/dist/explorer/analyse.d.ts +25 -0
  23. package/dist/explorer/analyse.js +39 -0
  24. package/dist/explorer/diff.d.ts +11 -0
  25. package/dist/explorer/diff.js +22 -0
  26. package/dist/explorer/draft.d.ts +81 -0
  27. package/dist/explorer/draft.js +1658 -0
  28. package/dist/explorer/fingerprint-page.d.ts +11 -0
  29. package/dist/explorer/fingerprint-page.js +19 -0
  30. package/dist/explorer/fingerprint.d.ts +14 -0
  31. package/dist/explorer/fingerprint.js +18 -0
  32. package/dist/explorer/infer.d.ts +85 -0
  33. package/dist/explorer/infer.js +370 -0
  34. package/dist/explorer/pattern-propose.d.ts +27 -0
  35. package/dist/explorer/pattern-propose.js +81 -0
  36. package/dist/explorer/patterns.d.ts +49 -0
  37. package/dist/explorer/patterns.js +290 -0
  38. package/dist/explorer/shadow.d.ts +3 -0
  39. package/dist/explorer/shadow.js +95 -0
  40. package/dist/graph/coverage.d.ts +33 -0
  41. package/dist/graph/coverage.js +155 -0
  42. package/dist/graph/edit.d.ts +47 -0
  43. package/dist/graph/edit.js +211 -0
  44. package/dist/graph/frontier.d.ts +24 -0
  45. package/dist/graph/frontier.js +95 -0
  46. package/dist/graph/seed.d.ts +23 -0
  47. package/dist/graph/seed.js +29 -0
  48. package/dist/graph/show.d.ts +8 -0
  49. package/dist/graph/show.js +6 -0
  50. package/dist/graph/teach.d.ts +8 -0
  51. package/dist/graph/teach.js +10 -0
  52. package/dist/hosted.d.ts +36 -0
  53. package/dist/hosted.js +69 -0
  54. package/dist/index.d.ts +2 -0
  55. package/dist/index.js +4 -0
  56. package/dist/mapstore/record.d.ts +128 -0
  57. package/dist/mapstore/record.js +224 -0
  58. package/dist/mapstore/schema.sql +47 -0
  59. package/dist/mapstore/store.d.ts +108 -0
  60. package/dist/mapstore/store.js +399 -0
  61. package/dist/mapstore/types.d.ts +87 -0
  62. package/dist/mapstore/types.js +29 -0
  63. package/dist/mcp/server.d.ts +46 -0
  64. package/dist/mcp/server.js +163 -0
  65. package/dist/paths.d.ts +10 -0
  66. package/dist/paths.js +33 -0
  67. package/dist/playwright/adapter.d.ts +62 -0
  68. package/dist/playwright/adapter.js +145 -0
  69. package/dist/playwright/ax-adapter.d.ts +33 -0
  70. package/dist/playwright/ax-adapter.js +76 -0
  71. package/dist/playwright/capture.d.ts +2 -0
  72. package/dist/playwright/capture.js +10 -0
  73. package/dist/playwright/fingerprint.d.ts +40 -0
  74. package/dist/playwright/fingerprint.js +139 -0
  75. package/dist/playwright/profile-lock.d.ts +15 -0
  76. package/dist/playwright/profile-lock.js +51 -0
  77. package/dist/playwright/sessions.d.ts +72 -0
  78. package/dist/playwright/sessions.js +229 -0
  79. package/dist/playwright/snapshot.d.ts +10 -0
  80. package/dist/playwright/snapshot.js +52 -0
  81. package/dist/playwright/throttle.d.ts +14 -0
  82. package/dist/playwright/throttle.js +76 -0
  83. package/dist/playwright/video.d.ts +13 -0
  84. package/dist/playwright/video.js +32 -0
  85. package/dist/protocol.d.ts +49 -0
  86. package/dist/protocol.js +3 -0
  87. package/dist/recorder/agent-session.d.ts +59 -0
  88. package/dist/recorder/agent-session.js +230 -0
  89. package/dist/recorder/capture-loop.d.ts +19 -0
  90. package/dist/recorder/capture-loop.js +40 -0
  91. package/dist/recorder/coverage.d.ts +22 -0
  92. package/dist/recorder/coverage.js +49 -0
  93. package/dist/recorder/hover-probe.d.ts +35 -0
  94. package/dist/recorder/hover-probe.js +100 -0
  95. package/dist/recorder/ingest.d.ts +39 -0
  96. package/dist/recorder/ingest.js +138 -0
  97. package/dist/recorder/live-record.d.ts +41 -0
  98. package/dist/recorder/live-record.js +255 -0
  99. package/dist/recorder/live.d.ts +53 -0
  100. package/dist/recorder/live.js +400 -0
  101. package/dist/recorder/probe.d.ts +14 -0
  102. package/dist/recorder/probe.js +33 -0
  103. package/dist/recorder/replay.d.ts +60 -0
  104. package/dist/recorder/replay.js +401 -0
  105. package/dist/recorder/review.d.ts +73 -0
  106. package/dist/recorder/review.js +171 -0
  107. package/dist/recorder/snapshot-dom.d.ts +7 -0
  108. package/dist/recorder/snapshot-dom.js +25 -0
  109. package/dist/router/auth-status.d.ts +20 -0
  110. package/dist/router/auth-status.js +55 -0
  111. package/dist/router/browse.d.ts +108 -0
  112. package/dist/router/browse.js +214 -0
  113. package/dist/router/catalog.d.ts +18 -0
  114. package/dist/router/catalog.js +6 -0
  115. package/dist/router/extract-content.d.ts +13 -0
  116. package/dist/router/extract-content.js +87 -0
  117. package/dist/router/live-extension-browser.d.ts +35 -0
  118. package/dist/router/live-extension-browser.js +175 -0
  119. package/dist/router/path.d.ts +7 -0
  120. package/dist/router/path.js +55 -0
  121. package/dist/router/read.d.ts +26 -0
  122. package/dist/router/read.js +30 -0
  123. package/dist/router/readiness.d.ts +9 -0
  124. package/dist/router/readiness.js +55 -0
  125. package/dist/router/replay.d.ts +14 -0
  126. package/dist/router/replay.js +23 -0
  127. package/dist/router/resolve.d.ts +21 -0
  128. package/dist/router/resolve.js +33 -0
  129. package/dist/router/search-live.d.ts +21 -0
  130. package/dist/router/search-live.js +98 -0
  131. package/dist/router/search-providers.d.ts +5 -0
  132. package/dist/router/search-providers.js +12 -0
  133. package/dist/router/search.d.ts +6 -0
  134. package/dist/router/search.js +62 -0
  135. package/dist/router/suite.d.ts +69 -0
  136. package/dist/router/suite.js +226 -0
  137. package/dist/router/tokens.d.ts +13 -0
  138. package/dist/router/tokens.js +26 -0
  139. package/dist/router/walk-live.d.ts +57 -0
  140. package/dist/router/walk-live.js +308 -0
  141. package/dist/router/walk-session.d.ts +49 -0
  142. package/dist/router/walk-session.js +90 -0
  143. package/dist/router/walk.d.ts +48 -0
  144. package/dist/router/walk.js +384 -0
  145. package/package.json +59 -0
package/dist/cli.d.ts ADDED
@@ -0,0 +1,208 @@
1
+ import type { BrowserOpts } from './playwright/adapter.js';
2
+ import type { State } from './mapstore/types.js';
3
+ export type ParsedArgs = {
4
+ cmd: 'help';
5
+ command?: string;
6
+ } | {
7
+ cmd: 'version';
8
+ } | {
9
+ cmd: 'list';
10
+ } | {
11
+ cmd: 'read';
12
+ url: string;
13
+ raw: boolean;
14
+ browser: BrowserOpts;
15
+ } | {
16
+ cmd: 'search';
17
+ query: string;
18
+ top: number;
19
+ } | {
20
+ cmd: 'node-add';
21
+ id: string;
22
+ url: string;
23
+ } | {
24
+ cmd: 'capture';
25
+ url: string;
26
+ out: string;
27
+ } | {
28
+ cmd: 'eval';
29
+ url: string;
30
+ js: string;
31
+ } | {
32
+ cmd: 'network';
33
+ url: string;
34
+ } | {
35
+ cmd: 'go-back';
36
+ session: string | undefined;
37
+ } | {
38
+ cmd: 'reload';
39
+ session: string | undefined;
40
+ } | {
41
+ cmd: 'close';
42
+ session: string;
43
+ } | {
44
+ cmd: 'session';
45
+ session: string;
46
+ url: string;
47
+ browser: BrowserOpts;
48
+ profile?: string;
49
+ } | {
50
+ cmd: 'record-start';
51
+ session: string;
52
+ } | {
53
+ cmd: 'record-stop';
54
+ session: string;
55
+ } | {
56
+ cmd: 'record-live';
57
+ session: string;
58
+ url: string;
59
+ interval: number;
60
+ browser: BrowserOpts;
61
+ } | {
62
+ cmd: 'graph-analyse';
63
+ sessions: string[];
64
+ host?: string;
65
+ draft: boolean;
66
+ skipReviewGate: boolean;
67
+ } | {
68
+ cmd: 'graph-edit';
69
+ node: string;
70
+ graph: string;
71
+ } | {
72
+ cmd: 'graph-show';
73
+ node: string;
74
+ } | {
75
+ cmd: 'node-clear';
76
+ node: string;
77
+ } | {
78
+ cmd: 'node-rm';
79
+ node: string;
80
+ } | {
81
+ cmd: 'import-map';
82
+ file: string;
83
+ } | {
84
+ cmd: 'pattern-propose';
85
+ fromUnknown: string;
86
+ name: string;
87
+ lint?: string;
88
+ } | {
89
+ cmd: 'export-map';
90
+ node: string;
91
+ } | {
92
+ cmd: 'outline';
93
+ node: string;
94
+ } | {
95
+ cmd: 'mermaid';
96
+ node: string;
97
+ } | {
98
+ cmd: 'frontier';
99
+ node: string;
100
+ exclude: string[];
101
+ } | {
102
+ cmd: 'navigate';
103
+ url: string;
104
+ session: string;
105
+ browser: BrowserOpts;
106
+ } | {
107
+ cmd: 'snapshot';
108
+ session: string;
109
+ } | {
110
+ cmd: 'click';
111
+ ref: string;
112
+ session: string;
113
+ } | {
114
+ cmd: 'type';
115
+ ref: string;
116
+ text: string;
117
+ session: string;
118
+ } | {
119
+ cmd: 'walk';
120
+ start: string;
121
+ goal: string;
122
+ inputs: Record<string, string>;
123
+ browser: BrowserOpts;
124
+ hosted: boolean;
125
+ observe: string[];
126
+ observeDynamic: boolean;
127
+ } | {
128
+ cmd: 'test';
129
+ suite: string;
130
+ browser: BrowserOpts;
131
+ } | {
132
+ cmd: 'walk-resume';
133
+ session: string;
134
+ ref?: string;
135
+ classify?: string;
136
+ continue: boolean;
137
+ inputs: Record<string, string>;
138
+ } | {
139
+ cmd: 'login';
140
+ key: string;
141
+ } | {
142
+ cmd: 'creds';
143
+ sub: string;
144
+ site?: string;
145
+ key?: string;
146
+ values: Record<string, string>;
147
+ } | {
148
+ cmd: 'effects';
149
+ session: string;
150
+ } | {
151
+ cmd: 'record-rename';
152
+ from: string;
153
+ to: string;
154
+ } | {
155
+ cmd: 'review';
156
+ session: string;
157
+ model: string;
158
+ instructions?: string;
159
+ } | {
160
+ cmd: 'capture-loop';
161
+ objective: string;
162
+ exploreCmd: string;
163
+ sessionPrefix: string;
164
+ maxRounds: number;
165
+ model: string;
166
+ } | {
167
+ cmd: 'verify';
168
+ node: string;
169
+ session: string;
170
+ } | {
171
+ cmd: 'hover-probe';
172
+ session: string;
173
+ limit: number;
174
+ rightClick: boolean;
175
+ } | {
176
+ cmd: 'profile-status';
177
+ profile: string;
178
+ site: string;
179
+ url?: string;
180
+ } | {
181
+ cmd: 'sessions';
182
+ sub: string;
183
+ all: boolean;
184
+ maxAgeHours?: number;
185
+ } | {
186
+ cmd: 'mcp';
187
+ } | {
188
+ cmd: 'dashboard';
189
+ port: number;
190
+ open: boolean;
191
+ } | {
192
+ cmd: 'ingest';
193
+ port: number;
194
+ } | {
195
+ cmd: 'agent-serve';
196
+ port: number;
197
+ token?: string;
198
+ } | {
199
+ cmd: 'dev-help';
200
+ } | {
201
+ cmd: 'use-help';
202
+ } | {
203
+ cmd: 'dev';
204
+ devCmd: string | undefined;
205
+ devRest: string[];
206
+ };
207
+ export declare function parseArgs(argv: string[]): ParsedArgs;
208
+ export declare function resolveObserveLabel(states: State[], label: string): string | null;