@bubblegum-ai/node 0.0.6-alpha.0 → 0.0.6-alpha.10
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 +92 -1
- package/dist/cjs/client.d.ts.map +1 -0
- package/dist/cjs/client.js +118 -0
- package/dist/cjs/client.js.map +1 -0
- package/dist/cjs/errors.d.ts.map +1 -0
- package/dist/cjs/errors.js +16 -0
- package/dist/cjs/errors.js.map +1 -0
- package/dist/{index.d.ts → cjs/index.d.ts} +1 -1
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +23 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/protocol.d.ts.map +1 -0
- package/dist/cjs/protocol.js +31 -0
- package/dist/cjs/protocol.js.map +1 -0
- package/dist/cjs/session.d.ts +191 -0
- package/dist/cjs/session.d.ts.map +1 -0
- package/dist/cjs/session.js +275 -0
- package/dist/cjs/session.js.map +1 -0
- package/dist/cjs/types.d.ts +76 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +10 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/esm/client.d.ts +56 -0
- package/dist/esm/client.d.ts.map +1 -0
- package/dist/esm/client.js.map +1 -0
- package/dist/esm/errors.d.ts +7 -0
- package/dist/esm/errors.d.ts.map +1 -0
- package/dist/esm/errors.js.map +1 -0
- package/dist/esm/index.d.ts +17 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/protocol.d.ts +53 -0
- package/dist/esm/protocol.d.ts.map +1 -0
- package/dist/esm/protocol.js.map +1 -0
- package/dist/esm/session.d.ts +191 -0
- package/dist/esm/session.d.ts.map +1 -0
- package/dist/esm/session.js +271 -0
- package/dist/esm/session.js.map +1 -0
- package/dist/esm/types.d.ts +76 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +16 -6
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js.map +0 -1
- package/dist/session.d.ts +0 -85
- package/dist/session.d.ts.map +0 -1
- package/dist/session.js +0 -141
- package/dist/session.js.map +0 -1
- package/dist/types.d.ts +0 -40
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- /package/dist/{client.d.ts → cjs/client.d.ts} +0 -0
- /package/dist/{errors.d.ts → cjs/errors.d.ts} +0 -0
- /package/dist/{protocol.d.ts → cjs/protocol.d.ts} +0 -0
- /package/dist/{client.js → esm/client.js} +0 -0
- /package/dist/{errors.js → esm/errors.js} +0 -0
- /package/dist/{index.js → esm/index.js} +0 -0
- /package/dist/{protocol.js → esm/protocol.js} +0 -0
- /package/dist/{types.js → esm/types.js} +0 -0
package/dist/session.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { BridgeClient, BridgeClientOptions } from "./client.js";
|
|
2
|
-
import { SessionSummary, StepOptions, StepResult } from "./types.js";
|
|
3
|
-
export type Channel = "web" | "mobile";
|
|
4
|
-
export interface LaunchOptions extends BridgeClientOptions {
|
|
5
|
-
/** "web" (default) or "mobile". */
|
|
6
|
-
channel?: Channel;
|
|
7
|
-
/** Web: start URL to open. */
|
|
8
|
-
url?: string;
|
|
9
|
-
/** Web: run headless (default true). */
|
|
10
|
-
headless?: boolean;
|
|
11
|
-
/** Resolve-only — never execute. */
|
|
12
|
-
dryRun?: boolean;
|
|
13
|
-
/** Mobile: Appium server URL (required for the mobile channel). */
|
|
14
|
-
appiumUrl?: string;
|
|
15
|
-
/** Mobile: Appium capabilities. */
|
|
16
|
-
capabilities?: Record<string, unknown>;
|
|
17
|
-
/**
|
|
18
|
-
* Web client-owned mode: attach the engine to an existing Chromium over CDP
|
|
19
|
-
* (e.g. `http://localhost:9222`) instead of launching one, so the engine
|
|
20
|
-
* drives the same browser your test already controls. Requires the engine to
|
|
21
|
-
* advertise the `channel.web.cdp` capability.
|
|
22
|
-
*/
|
|
23
|
-
cdpEndpoint?: string;
|
|
24
|
-
/** Which existing page to attach to when using `cdpEndpoint` (default 0). */
|
|
25
|
-
pageIndex?: number;
|
|
26
|
-
}
|
|
27
|
-
/** Options for {@link Bubblegum.attach} — `cdpEndpoint` is required. */
|
|
28
|
-
export interface AttachOptions extends Omit<LaunchOptions, "channel"> {
|
|
29
|
-
cdpEndpoint: string;
|
|
30
|
-
}
|
|
31
|
-
export interface RecoverArgs {
|
|
32
|
-
failedSelector: string;
|
|
33
|
-
intent: string;
|
|
34
|
-
options?: StepOptions;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* The ergonomic, engine-owned session. `launch()` spawns the bridge, negotiates
|
|
38
|
-
* the protocol, and opens a session whose Playwright/Appium handle lives inside
|
|
39
|
-
* the Python engine; every call here is a thin proxy to the same four primitives
|
|
40
|
-
* the Python SDK exposes, returning the identical `StepResult` shape.
|
|
41
|
-
*
|
|
42
|
-
* ```ts
|
|
43
|
-
* const bg = await Bubblegum.launch({ url: "https://example.com/login" });
|
|
44
|
-
* try {
|
|
45
|
-
* await bg.act('Enter "tom" into Username');
|
|
46
|
-
* await bg.act("Click Login");
|
|
47
|
-
* await bg.verify("Dashboard is visible");
|
|
48
|
-
* } finally {
|
|
49
|
-
* await bg.close();
|
|
50
|
-
* }
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
export declare class Bubblegum {
|
|
54
|
-
private readonly client;
|
|
55
|
-
private readonly sessionId;
|
|
56
|
-
private constructor();
|
|
57
|
-
/** Spawn the bridge, handshake, and open a session (engine-owned by default). */
|
|
58
|
-
static launch(opts?: LaunchOptions): Promise<Bubblegum>;
|
|
59
|
-
/**
|
|
60
|
-
* Attach the engine to a browser your test already controls, over CDP
|
|
61
|
-
* (client-owned mode). Launch your Chromium with a remote-debugging port and
|
|
62
|
-
* pass its endpoint:
|
|
63
|
-
*
|
|
64
|
-
* ```ts
|
|
65
|
-
* const browser = await chromium.launch({ args: ["--remote-debugging-port=9222"] });
|
|
66
|
-
* const bg = await Bubblegum.attach({ cdpEndpoint: "http://localhost:9222" });
|
|
67
|
-
* await bg.act("Click Login"); // drives the page your test opened
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
static attach(opts: AttachOptions): Promise<Bubblegum>;
|
|
71
|
-
/** The bridge client (for advanced use / capability checks). */
|
|
72
|
-
get bridge(): BridgeClient;
|
|
73
|
-
act(instruction: string, options?: StepOptions): Promise<StepResult>;
|
|
74
|
-
verify(instruction: string, options?: StepOptions): Promise<StepResult>;
|
|
75
|
-
extract(instruction: string, options?: StepOptions): Promise<StepResult>;
|
|
76
|
-
recover(args: RecoverArgs): Promise<StepResult>;
|
|
77
|
-
isVisible(target: string): Promise<boolean>;
|
|
78
|
-
isChecked(target: string): Promise<boolean>;
|
|
79
|
-
selectedValue(target: string): Promise<string>;
|
|
80
|
-
explain(instruction: string): Promise<string>;
|
|
81
|
-
summary(): Promise<SessionSummary>;
|
|
82
|
-
/** Close the engine session and tear down the bridge process. */
|
|
83
|
-
close(): Promise<void>;
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=session.d.ts.map
|
package/dist/session.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGhE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAErE,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEvC,MAAM,WAAW,aAAc,SAAQ,mBAAmB;IACxD,mCAAmC;I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C;IAQvE,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IAQxE,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IASzC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ3C,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ3C,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQ9C,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQnD,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC;IAIlC,iEAAiE;IAC3D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7B"}
|
package/dist/session.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { BridgeClient } from "./client.js";
|
|
2
|
-
import { BridgeError } from "./errors.js";
|
|
3
|
-
import { ErrorCodes } from "./protocol.js";
|
|
4
|
-
/**
|
|
5
|
-
* The ergonomic, engine-owned session. `launch()` spawns the bridge, negotiates
|
|
6
|
-
* the protocol, and opens a session whose Playwright/Appium handle lives inside
|
|
7
|
-
* the Python engine; every call here is a thin proxy to the same four primitives
|
|
8
|
-
* the Python SDK exposes, returning the identical `StepResult` shape.
|
|
9
|
-
*
|
|
10
|
-
* ```ts
|
|
11
|
-
* const bg = await Bubblegum.launch({ url: "https://example.com/login" });
|
|
12
|
-
* try {
|
|
13
|
-
* await bg.act('Enter "tom" into Username');
|
|
14
|
-
* await bg.act("Click Login");
|
|
15
|
-
* await bg.verify("Dashboard is visible");
|
|
16
|
-
* } finally {
|
|
17
|
-
* await bg.close();
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export class Bubblegum {
|
|
22
|
-
client;
|
|
23
|
-
sessionId;
|
|
24
|
-
constructor(client, sessionId) {
|
|
25
|
-
this.client = client;
|
|
26
|
-
this.sessionId = sessionId;
|
|
27
|
-
}
|
|
28
|
-
/** Spawn the bridge, handshake, and open a session (engine-owned by default). */
|
|
29
|
-
static async launch(opts = {}) {
|
|
30
|
-
const client = new BridgeClient(opts);
|
|
31
|
-
try {
|
|
32
|
-
await client.handshake();
|
|
33
|
-
if (opts.cdpEndpoint && !client.hasCapability("channel.web.cdp")) {
|
|
34
|
-
throw new BridgeError(ErrorCodes.Unsupported, "this engine does not support CDP attach (channel.web.cdp); upgrade bubblegum-ai");
|
|
35
|
-
}
|
|
36
|
-
const { session_id } = await client.request("session.open", {
|
|
37
|
-
channel: opts.channel ?? "web",
|
|
38
|
-
url: opts.url,
|
|
39
|
-
headless: opts.headless ?? true,
|
|
40
|
-
dry_run: opts.dryRun ?? false,
|
|
41
|
-
appium_url: opts.appiumUrl,
|
|
42
|
-
capabilities: opts.capabilities,
|
|
43
|
-
cdp_endpoint: opts.cdpEndpoint,
|
|
44
|
-
page_index: opts.pageIndex,
|
|
45
|
-
});
|
|
46
|
-
return new Bubblegum(client, session_id);
|
|
47
|
-
}
|
|
48
|
-
catch (err) {
|
|
49
|
-
await client.close();
|
|
50
|
-
throw err;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Attach the engine to a browser your test already controls, over CDP
|
|
55
|
-
* (client-owned mode). Launch your Chromium with a remote-debugging port and
|
|
56
|
-
* pass its endpoint:
|
|
57
|
-
*
|
|
58
|
-
* ```ts
|
|
59
|
-
* const browser = await chromium.launch({ args: ["--remote-debugging-port=9222"] });
|
|
60
|
-
* const bg = await Bubblegum.attach({ cdpEndpoint: "http://localhost:9222" });
|
|
61
|
-
* await bg.act("Click Login"); // drives the page your test opened
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
static attach(opts) {
|
|
65
|
-
return Bubblegum.launch({ ...opts, channel: "web" });
|
|
66
|
-
}
|
|
67
|
-
/** The bridge client (for advanced use / capability checks). */
|
|
68
|
-
get bridge() {
|
|
69
|
-
return this.client;
|
|
70
|
-
}
|
|
71
|
-
act(instruction, options) {
|
|
72
|
-
return this.client.request("act", {
|
|
73
|
-
session_id: this.sessionId,
|
|
74
|
-
instruction,
|
|
75
|
-
options,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
verify(instruction, options) {
|
|
79
|
-
return this.client.request("verify", {
|
|
80
|
-
session_id: this.sessionId,
|
|
81
|
-
instruction,
|
|
82
|
-
options,
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
extract(instruction, options) {
|
|
86
|
-
return this.client.request("extract", {
|
|
87
|
-
session_id: this.sessionId,
|
|
88
|
-
instruction,
|
|
89
|
-
options,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
recover(args) {
|
|
93
|
-
return this.client.request("recover", {
|
|
94
|
-
session_id: this.sessionId,
|
|
95
|
-
failed_selector: args.failedSelector,
|
|
96
|
-
intent: args.intent,
|
|
97
|
-
options: args.options,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
async isVisible(target) {
|
|
101
|
-
const r = await this.client.request("is_visible", {
|
|
102
|
-
session_id: this.sessionId,
|
|
103
|
-
target,
|
|
104
|
-
});
|
|
105
|
-
return r.value;
|
|
106
|
-
}
|
|
107
|
-
async isChecked(target) {
|
|
108
|
-
const r = await this.client.request("is_checked", {
|
|
109
|
-
session_id: this.sessionId,
|
|
110
|
-
target,
|
|
111
|
-
});
|
|
112
|
-
return r.value;
|
|
113
|
-
}
|
|
114
|
-
async selectedValue(target) {
|
|
115
|
-
const r = await this.client.request("selected_value", {
|
|
116
|
-
session_id: this.sessionId,
|
|
117
|
-
target,
|
|
118
|
-
});
|
|
119
|
-
return r.value;
|
|
120
|
-
}
|
|
121
|
-
async explain(instruction) {
|
|
122
|
-
const r = await this.client.request("explain", {
|
|
123
|
-
session_id: this.sessionId,
|
|
124
|
-
instruction,
|
|
125
|
-
});
|
|
126
|
-
return r.explanation;
|
|
127
|
-
}
|
|
128
|
-
summary() {
|
|
129
|
-
return this.client.request("summary", { session_id: this.sessionId });
|
|
130
|
-
}
|
|
131
|
-
/** Close the engine session and tear down the bridge process. */
|
|
132
|
-
async close() {
|
|
133
|
-
try {
|
|
134
|
-
await this.client.request("session.close", { session_id: this.sessionId });
|
|
135
|
-
}
|
|
136
|
-
finally {
|
|
137
|
-
await this.client.close();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=session.js.map
|
package/dist/session.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAwC3C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,SAAS;IAED;IACA;IAFnB,YACmB,MAAoB,EACpB,SAAiB;QADjB,WAAM,GAAN,MAAM,CAAc;QACpB,cAAS,GAAT,SAAS,CAAQ;IACjC,CAAC;IAEJ,iFAAiF;IACjF,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAsB,EAAE;QAC1C,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC;YACH,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;YACzB,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE,CAAC;gBACjE,MAAM,IAAI,WAAW,CACnB,UAAU,CAAC,WAAW,EACtB,iFAAiF,CAClF,CAAC;YACJ,CAAC;YACD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC,OAAO,CAAyB,cAAc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;YAC1B,WAAW;SACZ,CAAC,CAAC;QACH,OAAO,CAAC,CAAC,WAAW,CAAC;IACvB,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAiB,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,iEAAiE;IACjE,KAAK,CAAC,KAAK;QACT,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QAC7E,CAAC;gBAAS,CAAC;YACT,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;CACF"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TypeScript mirror of the engine's result schemas (`bubblegum/core/schemas.py`).
|
|
3
|
-
*
|
|
4
|
-
* Kept intentionally close to the Pydantic models. `[key: string]: unknown`
|
|
5
|
-
* index signatures let newer engine fields flow through without breaking the
|
|
6
|
-
* client (additive-first), while the named fields stay strongly typed.
|
|
7
|
-
*/
|
|
8
|
-
export type StepStatus = "passed" | "failed" | "recovered" | "dry_run" | "skipped";
|
|
9
|
-
export interface ResolvedTarget {
|
|
10
|
-
ref: string;
|
|
11
|
-
confidence: number;
|
|
12
|
-
resolver_name: string;
|
|
13
|
-
metadata?: Record<string, unknown>;
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
}
|
|
16
|
-
export interface ErrorInfo {
|
|
17
|
-
error_type: string;
|
|
18
|
-
message: string;
|
|
19
|
-
resolver_name?: string | null;
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
}
|
|
22
|
-
export interface StepResult {
|
|
23
|
-
status: StepStatus;
|
|
24
|
-
action: string;
|
|
25
|
-
target: ResolvedTarget | null;
|
|
26
|
-
confidence: number;
|
|
27
|
-
duration_ms: number;
|
|
28
|
-
error?: ErrorInfo | null;
|
|
29
|
-
traces?: unknown[];
|
|
30
|
-
[key: string]: unknown;
|
|
31
|
-
}
|
|
32
|
-
export interface SessionSummary {
|
|
33
|
-
total: number;
|
|
34
|
-
passed: number;
|
|
35
|
-
failed: number;
|
|
36
|
-
[key: string]: unknown;
|
|
37
|
-
}
|
|
38
|
-
/** Per-call options forwarded verbatim to the engine SDK (timeout_ms, selector, …). */
|
|
39
|
-
export type StepOptions = Record<string, unknown>;
|
|
40
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnF,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,uFAAuF;AACvF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|