@mu-agent/mu 0.2.1 → 0.2.3

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.
@@ -16,6 +16,7 @@ interface Signals {
16
16
  export declare function endpointAlive(wsUrl: string, options?: Signals): Promise<boolean>;
17
17
  export declare function resolveCdpUrl(endpoint: string, options?: Signals): Promise<string>;
18
18
  export declare function profileLocked(userDataDir: string): boolean;
19
+ export declare function waitForUnlock(userDataDir: string, signal?: AbortSignal, timeoutMs?: number): Promise<void>;
19
20
  export interface ManagedConnectOptions {
20
21
  userDataDir: string;
21
22
  headless: boolean;
@@ -21,7 +21,6 @@ export interface ObserveOptions {
21
21
  export declare function estimateTokens(text: string): number;
22
22
  export declare function fingerprintOf(url: string, body: string): string;
23
23
  interface HeaderFacts {
24
- title: string;
25
24
  url: string;
26
25
  scrollY?: number;
27
26
  pageHeight?: number;
@@ -35,5 +34,6 @@ export declare function renderHeader(facts: HeaderFacts, tabs: {
35
34
  count: number;
36
35
  active: string;
37
36
  }, dialog: JsDialog | undefined): string;
37
+ export declare function pageFacts(title: string, dialog?: JsDialog): string[];
38
38
  export declare function observe(manager: BrowserManager, tab: Tab, stopwatch: Stopwatch, signal?: AbortSignal, options?: ObserveOptions): Promise<Observation>;
39
39
  export {};
@@ -11,9 +11,11 @@ export interface RenderOptions {
11
11
  budgetTokens?: number | undefined;
12
12
  previous?: Seen | undefined;
13
13
  expandLandmarks?: boolean | undefined;
14
+ preamble?: string[] | undefined;
14
15
  }
15
16
  export interface RenderedSnapshot {
16
17
  text: string;
18
+ canonical: string;
17
19
  refs: Set<string>;
18
20
  texts: Set<string>;
19
21
  landmarks: Map<string, string>;
@@ -24,4 +26,5 @@ export declare function displayUrl(url: string, pageUrl: string): string;
24
26
  export declare function mergeSeen(previous: Seen | undefined, rendered: Seen): Seen;
25
27
  export declare function textKey(node: PageNode): string;
26
28
  export declare function describeNode(node: PageNode, pageUrl: string): string;
29
+ export declare function fencePageContent(lines: string[]): string;
27
30
  export declare function renderSnapshot(model: PageModel, options?: RenderOptions): RenderedSnapshot;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mu-agent/mu",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Mu, a general-purpose extensible AI agent platform for the terminal and TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,6 +21,7 @@
21
21
  "dist/types",
22
22
  "README.md",
23
23
  "LICENSE",
24
+ "NOTICE",
24
25
  "THIRD_PARTY_LICENSES.txt"
25
26
  ],
26
27
  "scripts": {
@@ -38,7 +39,7 @@
38
39
  "typescript"
39
40
  ],
40
41
  "author": "Spandan Chavan",
41
- "license": "MIT",
42
+ "license": "Apache-2.0",
42
43
  "repository": {
43
44
  "type": "git",
44
45
  "url": "git+https://github.com/Spandan7724/mu.git",