@opentag/runner 0.2.0 → 0.3.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/README.md +27 -0
- package/dist/claude-code.d.ts.map +1 -1
- package/dist/codex.d.ts.map +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/echo.d.ts.map +1 -1
- package/dist/executor-report.d.ts +24 -0
- package/dist/executor-report.d.ts.map +1 -0
- package/dist/executor.d.ts +44 -0
- package/dist/executor.d.ts.map +1 -1
- package/dist/git.d.ts +1 -0
- package/dist/git.d.ts.map +1 -1
- package/dist/hermes.d.ts +10 -0
- package/dist/hermes.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +540 -10
- package/dist/index.js.map +1 -1
- package/dist/result.d.ts.map +1 -1
- package/dist/session-profile.d.ts +37 -0
- package/dist/session-profile.d.ts.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ pnpm add @opentag/runner
|
|
|
17
17
|
- `createCodexExecutor`: executor that runs `codex exec` in a mapped local checkout.
|
|
18
18
|
- Git helpers such as `createRunBranch`, `changedFiles`, and `branchNameForRun`.
|
|
19
19
|
- Command helpers such as `nodeCommandRunner` and `assertCommandSucceeded`.
|
|
20
|
+
- Built-in executors expose an optional `capability` contract so setup, doctor, status, and service surfaces can report profile, cancellation, hook-completion, progress-event, approval-boundary, prompt/context trust gates, workspace-isolation, secret, and completion-signal support honestly.
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -26,6 +27,32 @@ import type { ExecutorAdapter } from "@opentag/runner";
|
|
|
26
27
|
export const executor: ExecutorAdapter = {
|
|
27
28
|
id: "my-agent",
|
|
28
29
|
displayName: "My Agent",
|
|
30
|
+
capability: {
|
|
31
|
+
id: "my-agent",
|
|
32
|
+
invocation: "spawn",
|
|
33
|
+
supportsProfile: false,
|
|
34
|
+
supportsStreaming: false,
|
|
35
|
+
supportsCancel: false,
|
|
36
|
+
supportsHookCompletion: false,
|
|
37
|
+
progressEvents: "audit",
|
|
38
|
+
approvalMode: "opentag_policy",
|
|
39
|
+
contextAccess: ["context_packet", "context_pointers", "workspace"],
|
|
40
|
+
promptAssembly: "executor_adapter",
|
|
41
|
+
writeAccess: "workspace",
|
|
42
|
+
conversationAccess: "request",
|
|
43
|
+
promptMutation: "none",
|
|
44
|
+
rawContextAccess: false,
|
|
45
|
+
writeActionAccess: "none",
|
|
46
|
+
workspaceIsolation: "branch",
|
|
47
|
+
requiredSecrets: [],
|
|
48
|
+
completionSignals: [
|
|
49
|
+
{
|
|
50
|
+
type: "process_exit",
|
|
51
|
+
required: true,
|
|
52
|
+
description: "The process exits after producing the final result."
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
29
56
|
async canRun() {
|
|
30
57
|
return { ready: true };
|
|
31
58
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../src/claude-code.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../src/claude-code.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7F,OAAO,EAAgC,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAInF,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,aAAa,GAAG,MAAM,GAAG,mBAAmB,GAAG,SAAS,GAAG,MAAM,CAAC;IACnF,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AA6BF,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,yBAA8B,GAAG,eAAe,CAmIjG"}
|
package/dist/codex.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../src/codex.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../src/codex.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7F,OAAO,EAAgC,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAYnF,OAAO,EAAoE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE5H,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC,CAAC;AA6BF,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,oBAAyB,GAAG,eAAe,CAwMvF"}
|
package/dist/command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACpI,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACpI,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,aAoC/B,CAAC;AAEF,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIhG"}
|
package/dist/echo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"echo.d.ts","sourceRoot":"","sources":["../src/echo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAMrD,wBAAgB,kBAAkB,IAAI,eAAe,
|
|
1
|
+
{"version":3,"file":"echo.d.ts","sourceRoot":"","sources":["../src/echo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAMrD,wBAAgB,kBAAkB,IAAI,eAAe,CAgEpD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const EXECUTOR_REPORT_START = "OPENTAG_EXECUTOR_REPORT_START";
|
|
2
|
+
export declare const EXECUTOR_REPORT_END = "OPENTAG_EXECUTOR_REPORT_END";
|
|
3
|
+
export type ExecutorReport = {
|
|
4
|
+
changes: Array<{
|
|
5
|
+
file?: string;
|
|
6
|
+
summary: string;
|
|
7
|
+
}>;
|
|
8
|
+
verification?: Array<{
|
|
9
|
+
command?: string;
|
|
10
|
+
outcome: "passed" | "failed" | "not_run";
|
|
11
|
+
summary?: string;
|
|
12
|
+
}>;
|
|
13
|
+
risks?: string[];
|
|
14
|
+
notes?: string[];
|
|
15
|
+
};
|
|
16
|
+
export declare function executorReportPromptLines(): string[];
|
|
17
|
+
export declare function executorPolicyPromptLines(): string[];
|
|
18
|
+
export declare function parseExecutorReport(output: string): ExecutorReport | undefined;
|
|
19
|
+
export declare function renderExecutorReportSummary(input: {
|
|
20
|
+
executorName: string;
|
|
21
|
+
changedFiles: string[];
|
|
22
|
+
report: ExecutorReport;
|
|
23
|
+
}): string;
|
|
24
|
+
//# sourceMappingURL=executor-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor-report.d.ts","sourceRoot":"","sources":["../src/executor-report.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kCAAkC,CAAC;AACrE,eAAO,MAAM,mBAAmB,gCAAgC,CAAC;AAMjE,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,KAAK,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;QACzC,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,MAAM,EAAE,CAiBpD;AAED,wBAAgB,yBAAyB,IAAI,MAAM,EAAE,CASpD;AAqFD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAQ9E;AAUD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,MAAM,CA4BT"}
|
package/dist/executor.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ContextPacket, type ContextPointer, type OpenTagCommand, type OpenTagRunResult, type PermissionGrant } from "@opentag/core";
|
|
2
|
+
import type { AgentSessionProfile } from "./session-profile.js";
|
|
2
3
|
export type ExecutorEvent = {
|
|
3
4
|
type: "executor.started" | "executor.progress" | "executor.completed" | "executor.failed";
|
|
4
5
|
message: string;
|
|
@@ -17,15 +18,58 @@ export type ExecutorRunInput = {
|
|
|
17
18
|
baseBranch?: string;
|
|
18
19
|
worktreeRoot?: string;
|
|
19
20
|
keepWorktree?: "always" | "on_failure" | "never";
|
|
21
|
+
metadata?: Record<string, unknown>;
|
|
22
|
+
sessionProfile?: AgentSessionProfile;
|
|
20
23
|
};
|
|
21
24
|
export declare function renderContextPacketForPrompt(packet?: ContextPacket): string[];
|
|
22
25
|
export type ExecutorReadiness = {
|
|
23
26
|
ready: boolean;
|
|
24
27
|
reason?: string;
|
|
25
28
|
};
|
|
29
|
+
export type ExecutorSecretRequirement = {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
description?: string;
|
|
34
|
+
env?: string;
|
|
35
|
+
};
|
|
36
|
+
export type ExecutorCompletionSignal = {
|
|
37
|
+
type: "process_exit" | "hook_event" | "stream_event";
|
|
38
|
+
required: boolean;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
export type ExecutorProgressEventMode = "none" | "audit" | "human";
|
|
42
|
+
export type ExecutorApprovalMode = "none" | "opentag_policy" | "executor_managed";
|
|
43
|
+
export type ExecutorContextAccess = "context_packet" | "context_pointers" | "workspace";
|
|
44
|
+
export type ExecutorPromptAssembly = "opentag" | "executor_adapter" | "external_runtime";
|
|
45
|
+
export type ExecutorWriteAccess = "none" | "workspace" | "external";
|
|
46
|
+
export type ExecutorConversationAccess = "none" | "request" | "thread_transcript";
|
|
47
|
+
export type ExecutorPromptMutation = "none" | "append" | "replace";
|
|
48
|
+
export type ExecutorWriteActionAccess = "none" | "propose" | "execute";
|
|
49
|
+
export type ExecutorCapabilityContract = {
|
|
50
|
+
id: string;
|
|
51
|
+
invocation: "spawn" | "hook_ingest" | "hybrid";
|
|
52
|
+
supportsProfile: boolean;
|
|
53
|
+
supportsStreaming: boolean;
|
|
54
|
+
supportsCancel: boolean;
|
|
55
|
+
supportsHookCompletion: boolean;
|
|
56
|
+
progressEvents: ExecutorProgressEventMode;
|
|
57
|
+
approvalMode: ExecutorApprovalMode;
|
|
58
|
+
contextAccess: ExecutorContextAccess[];
|
|
59
|
+
promptAssembly: ExecutorPromptAssembly;
|
|
60
|
+
writeAccess: ExecutorWriteAccess;
|
|
61
|
+
conversationAccess: ExecutorConversationAccess;
|
|
62
|
+
promptMutation: ExecutorPromptMutation;
|
|
63
|
+
rawContextAccess: boolean;
|
|
64
|
+
writeActionAccess: ExecutorWriteActionAccess;
|
|
65
|
+
workspaceIsolation: "none" | "branch" | "worktree" | "external";
|
|
66
|
+
requiredSecrets: ExecutorSecretRequirement[];
|
|
67
|
+
completionSignals: ExecutorCompletionSignal[];
|
|
68
|
+
};
|
|
26
69
|
export type ExecutorAdapter = {
|
|
27
70
|
id: string;
|
|
28
71
|
displayName: string;
|
|
72
|
+
capability?: ExecutorCapabilityContract;
|
|
29
73
|
canRun(input: ExecutorRunInput): Promise<ExecutorReadiness>;
|
|
30
74
|
run(input: ExecutorRunInput, sink: ExecutorEventSink): Promise<OpenTagRunResult>;
|
|
31
75
|
cancel(runId: string): Promise<void>;
|
package/dist/executor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/J,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,kBAAkB,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,iBAAiB,CAAC;IAC1F,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CA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AAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC,CAAC"}
|
package/dist/git.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type GitStatusEntry = {
|
|
|
4
4
|
path: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function branchNameForRun(runId: string): string;
|
|
7
|
+
export declare const STATUS_PORCELAIN_Z_ARGS: string[];
|
|
7
8
|
export declare function parseStatusEntries(statusOutput: string): GitStatusEntry[];
|
|
8
9
|
export declare function isInternalArtifactPath(path: string): boolean;
|
|
9
10
|
export declare function parseChangedFiles(statusOutput: string): string[];
|
package/dist/git.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAIF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGtD;
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAIF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGtD;AAOD,eAAO,MAAM,uBAAuB,UAAgE,CAAC;AAUrG,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,cAAc,EAAE,CAwBzE;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MA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C,MAAM,EAAE,CAAC,CAiBzH;AAED,wBAAsB,gBAAgB,CAAC,KAAK,EAAE;IAC5C,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,OAAO,CAAC,CAcnB;AAED,wBAAsB,kBAAkB,CAAC,KAAK,EAAE;IAC9C,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;AAED,wBAAsB,UAAU,CAAC,KAAK,EAAE;IACtC,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGhB"}
|
package/dist/hermes.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CommandRunner } from "./command.js";
|
|
2
|
+
import { type ExecutorAdapter } from "./executor.js";
|
|
3
|
+
export type HermesExecutorOptions = {
|
|
4
|
+
runner?: CommandRunner;
|
|
5
|
+
hermesCommand?: string;
|
|
6
|
+
profile?: string;
|
|
7
|
+
profileTemplate?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function createHermesExecutor(options?: HermesExecutorOptions): ExecutorAdapter;
|
|
10
|
+
//# sourceMappingURL=hermes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hermes.d.ts","sourceRoot":"","sources":["../src/hermes.ts"],"names":[],"mappings":"AACA,OAAO,EAAiE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AACjH,OAAO,EAAgC,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAKnF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AA+BF,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,qBAA0B,GAAG,eAAe,CAwIzF"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|