@tui-sandbox/library 10.2.2 → 10.3.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.
- package/CHANGELOG.md +14 -0
- package/dist/browser/assets/{index-0VekcGVw.js → index-dlAbCuMv.js} +14 -14
- package/dist/browser/index.html +1 -1
- package/dist/src/client/color-utilities.d.ts +1 -2
- package/dist/src/client/color-utilities.test.js.map +1 -1
- package/dist/src/server/blockingCommandInputSchema.d.ts +2 -2
- package/dist/src/server/index.d.ts +1 -0
- package/dist/src/server/index.js +1 -0
- package/dist/src/server/index.js.map +1 -1
- package/dist/src/server/server.d.ts +22 -22
- package/dist/src/server/utilities/tabId.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -7
- package/src/client/color-utilities.test.ts +2 -1
- package/src/client/color-utilities.ts +1 -1
- package/src/server/index.ts +1 -0
package/dist/browser/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<title>tui-sandbox integration tests</title>
|
|
6
|
-
<script type="module" crossorigin src="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-dlAbCuMv.js"></script>
|
|
7
7
|
<link rel="stylesheet" crossorigin href="/assets/index-D6fBrqAi.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { flavors } from "@catppuccin/palette";
|
|
2
|
-
type RgbColor = (typeof flavors.macchiato.colors)["surface0"]["rgb"];
|
|
2
|
+
export type RgbColor = (typeof flavors.macchiato.colors)["surface0"]["rgb"];
|
|
3
3
|
/** Convert a catppuccin RGB color to a CSS color string. This way you can
|
|
4
4
|
* assert that text that's visible on the screen has a specific color. */
|
|
5
5
|
export declare function rgbify(color: RgbColor): string;
|
|
6
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-utilities.test.js","sourceRoot":"","sources":["../../../src/client/color-utilities.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"color-utilities.test.js","sourceRoot":"","sources":["../../../src/client/color-utilities.test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAE7C,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC/D,MAAM,KAAK,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAqB,CAAA;QACrD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAA;IAC/C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -6,13 +6,13 @@ export declare const blockingCommandInputSchema: z.ZodObject<{
|
|
|
6
6
|
shell: z.ZodOptional<z.ZodString>;
|
|
7
7
|
tabId: z.ZodObject<{
|
|
8
8
|
tabId: z.ZodString;
|
|
9
|
-
}, {}>;
|
|
9
|
+
}, {}, {}>;
|
|
10
10
|
allowFailure: z.ZodOptional<z.ZodBoolean>;
|
|
11
11
|
cwd: z.ZodOptional<z.ZodString>;
|
|
12
12
|
cwdRelative: z.ZodOptional<z.ZodString>;
|
|
13
13
|
envOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
14
|
uid: z.ZodOptional<z.ZodNumber>;
|
|
15
15
|
gid: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
}, {}>;
|
|
16
|
+
}, {}, {}>;
|
|
17
17
|
export type BlockingCommandClientInput = Except<BlockingCommandInput, "tabId">;
|
|
18
18
|
export type BlockingCommandInput = z.infer<typeof blockingCommandInputSchema>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { startTestServer } from "./server.js";
|
|
2
2
|
export { updateTestdirectorySchemaFile } from "./updateTestdirectorySchemaFile.js";
|
|
3
3
|
export type { TestServerConfig } from "./updateTestdirectorySchemaFile.js";
|
|
4
|
+
export { Lazy } from "./utilities/Lazy.js";
|
|
4
5
|
import "core-js/proposals/async-explicit-resource-management.js";
|
package/dist/src/server/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This is the public server api. Semantic versioning will be applied to this.
|
|
2
2
|
export { startTestServer } from "./server.js";
|
|
3
3
|
export { updateTestdirectorySchemaFile } from "./updateTestdirectorySchemaFile.js";
|
|
4
|
+
export { Lazy } from "./utilities/Lazy.js";
|
|
4
5
|
import "core-js/proposals/async-explicit-resource-management.js";
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAElF,OAAO,yDAAyD,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAElF,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,yDAAyD,CAAA"}
|
|
@@ -6,26 +6,26 @@ import type { DirectoriesConfig, TestServerConfig } from "./updateTestdirectoryS
|
|
|
6
6
|
declare const luaCodeInputSchema: z.ZodObject<{
|
|
7
7
|
tabId: z.ZodObject<{
|
|
8
8
|
tabId: z.ZodString;
|
|
9
|
-
}, {}>;
|
|
9
|
+
}, {}, {}>;
|
|
10
10
|
luaCode: z.ZodString;
|
|
11
|
-
}, {}>;
|
|
11
|
+
}, {}, {}>;
|
|
12
12
|
export type LuaCodeClientInput = Except<LuaCodeInput, "tabId">;
|
|
13
13
|
export type LuaCodeInput = z.infer<typeof luaCodeInputSchema>;
|
|
14
14
|
declare const pollLuaCodeInputSchema: z.ZodObject<{
|
|
15
15
|
tabId: z.ZodObject<{
|
|
16
16
|
tabId: z.ZodString;
|
|
17
|
-
}, {}>;
|
|
17
|
+
}, {}, {}>;
|
|
18
18
|
luaAssertion: z.ZodString;
|
|
19
19
|
timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
-
}, {}>;
|
|
20
|
+
}, {}, {}>;
|
|
21
21
|
export type PollLuaCodeClientInput = Except<z.input<typeof pollLuaCodeInputSchema>, "tabId">;
|
|
22
22
|
declare const exCommandInputSchema: z.ZodObject<{
|
|
23
23
|
tabId: z.ZodObject<{
|
|
24
24
|
tabId: z.ZodString;
|
|
25
|
-
}, {}>;
|
|
25
|
+
}, {}, {}>;
|
|
26
26
|
command: z.ZodString;
|
|
27
27
|
log: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
}, {}>;
|
|
28
|
+
}, {}, {}>;
|
|
29
29
|
export type ExCommandClientInput = Except<ExCommandInput, "tabId">;
|
|
30
30
|
export type ExCommandInput = z.infer<typeof exCommandInputSchema>;
|
|
31
31
|
/** @private */
|
|
@@ -55,12 +55,12 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
55
55
|
tabId: string;
|
|
56
56
|
};
|
|
57
57
|
startTerminalArguments: {
|
|
58
|
-
additionalEnvironmentVariables?: Record<string, string> | undefined;
|
|
59
58
|
commandToRun: string[];
|
|
60
59
|
terminalDimensions: {
|
|
61
60
|
cols: number;
|
|
62
61
|
rows: number;
|
|
63
62
|
};
|
|
63
|
+
additionalEnvironmentVariables?: Record<string, string> | undefined;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
output: void;
|
|
@@ -76,6 +76,10 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
76
76
|
}>;
|
|
77
77
|
runBlockingShellCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
78
78
|
input: {
|
|
79
|
+
command: string;
|
|
80
|
+
tabId: {
|
|
81
|
+
tabId: string;
|
|
82
|
+
};
|
|
79
83
|
shell?: string | undefined;
|
|
80
84
|
allowFailure?: boolean | undefined;
|
|
81
85
|
cwd?: string | undefined;
|
|
@@ -83,10 +87,6 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
83
87
|
envOverrides?: Record<string, string> | undefined;
|
|
84
88
|
uid?: number | undefined;
|
|
85
89
|
gid?: number | undefined;
|
|
86
|
-
tabId: {
|
|
87
|
-
tabId: string;
|
|
88
|
-
};
|
|
89
|
-
command: string;
|
|
90
90
|
};
|
|
91
91
|
output: import("./types.js").BlockingShellCommandOutput;
|
|
92
92
|
}>;
|
|
@@ -103,15 +103,15 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
103
103
|
tabId: string;
|
|
104
104
|
};
|
|
105
105
|
startNeovimArguments: {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
filename: string | {
|
|
107
|
+
openInVerticalSplits: string[];
|
|
108
|
+
};
|
|
108
109
|
terminalDimensions: {
|
|
109
110
|
cols: number;
|
|
110
111
|
rows: number;
|
|
111
112
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
113
|
+
startupScriptModifications?: string[] | undefined;
|
|
114
|
+
additionalEnvironmentVariables?: Record<string, string> | undefined;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
117
|
output: import("./types.js").TestDirectory;
|
|
@@ -143,6 +143,10 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
143
143
|
}>;
|
|
144
144
|
runBlockingShellCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
145
145
|
input: {
|
|
146
|
+
command: string;
|
|
147
|
+
tabId: {
|
|
148
|
+
tabId: string;
|
|
149
|
+
};
|
|
146
150
|
shell?: string | undefined;
|
|
147
151
|
allowFailure?: boolean | undefined;
|
|
148
152
|
cwd?: string | undefined;
|
|
@@ -150,10 +154,6 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
150
154
|
envOverrides?: Record<string, string> | undefined;
|
|
151
155
|
uid?: number | undefined;
|
|
152
156
|
gid?: number | undefined;
|
|
153
|
-
tabId: {
|
|
154
|
-
tabId: string;
|
|
155
|
-
};
|
|
156
|
-
command: string;
|
|
157
157
|
};
|
|
158
158
|
output: import("./types.js").BlockingShellCommandOutput;
|
|
159
159
|
}>;
|
|
@@ -168,21 +168,21 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
168
168
|
}>;
|
|
169
169
|
waitForLuaCode: import("@trpc/server").TRPCMutationProcedure<{
|
|
170
170
|
input: {
|
|
171
|
-
timeoutMs?: number | undefined;
|
|
172
171
|
tabId: {
|
|
173
172
|
tabId: string;
|
|
174
173
|
};
|
|
175
174
|
luaAssertion: string;
|
|
175
|
+
timeoutMs?: number | undefined;
|
|
176
176
|
};
|
|
177
177
|
output: import("./types.js").RunLuaCodeOutput;
|
|
178
178
|
}>;
|
|
179
179
|
runExCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
180
180
|
input: {
|
|
181
|
-
log?: boolean | undefined;
|
|
182
181
|
tabId: {
|
|
183
182
|
tabId: string;
|
|
184
183
|
};
|
|
185
184
|
command: string;
|
|
185
|
+
log?: boolean | undefined;
|
|
186
186
|
};
|
|
187
187
|
output: import("./types.js").RunExCommandOutput;
|
|
188
188
|
}>;
|