@cmdless/ui-sdk 0.0.0 → 0.0.4

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 (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +27 -43
  3. package/dist/app.d.ts +30 -0
  4. package/dist/app.d.ts.map +1 -0
  5. package/dist/app.js +8 -0
  6. package/dist/app.js.map +1 -0
  7. package/dist/browser/index.d.ts +80 -0
  8. package/dist/browser/index.d.ts.map +1 -0
  9. package/dist/browser/index.js +83 -0
  10. package/dist/browser/index.js.map +1 -0
  11. package/dist/emitter.d.ts +11 -0
  12. package/dist/emitter.d.ts.map +1 -0
  13. package/dist/emitter.js +37 -0
  14. package/dist/emitter.js.map +1 -0
  15. package/dist/index.d.ts +53 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +29 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/node/app.d.ts +25 -0
  20. package/dist/node/app.d.ts.map +1 -0
  21. package/dist/node/app.fixture.d.ts +9 -0
  22. package/dist/node/app.fixture.d.ts.map +1 -0
  23. package/dist/node/app.fixture.js +21 -0
  24. package/dist/node/app.fixture.js.map +1 -0
  25. package/dist/node/app.js +192 -0
  26. package/dist/node/app.js.map +1 -0
  27. package/dist/node/app.test.d.ts +2 -0
  28. package/dist/node/app.test.d.ts.map +1 -0
  29. package/dist/node/app.test.js +185 -0
  30. package/dist/node/app.test.js.map +1 -0
  31. package/dist/node/bin.d.ts +3 -0
  32. package/dist/node/bin.d.ts.map +1 -0
  33. package/dist/node/bin.js +4 -0
  34. package/dist/node/bin.js.map +1 -0
  35. package/dist/node/index.d.ts +4 -0
  36. package/dist/node/index.d.ts.map +1 -0
  37. package/dist/node/index.js +4 -0
  38. package/dist/node/index.js.map +1 -0
  39. package/dist/node/mcp.test.d.ts +2 -0
  40. package/dist/node/mcp.test.d.ts.map +1 -0
  41. package/dist/node/mcp.test.js +92 -0
  42. package/dist/node/mcp.test.js.map +1 -0
  43. package/dist/node/runtime.d.ts +32 -0
  44. package/dist/node/runtime.d.ts.map +1 -0
  45. package/dist/node/runtime.js +20 -0
  46. package/dist/node/runtime.js.map +1 -0
  47. package/dist/node/streams.d.ts +24 -0
  48. package/dist/node/streams.d.ts.map +1 -0
  49. package/dist/node/streams.js +54 -0
  50. package/dist/node/streams.js.map +1 -0
  51. package/dist/node/utils.d.ts +95 -0
  52. package/dist/node/utils.d.ts.map +1 -0
  53. package/dist/node/utils.js +337 -0
  54. package/dist/node/utils.js.map +1 -0
  55. package/dist/node/utils.test.d.ts +2 -0
  56. package/dist/node/utils.test.d.ts.map +1 -0
  57. package/dist/node/utils.test.js +91 -0
  58. package/dist/node/utils.test.js.map +1 -0
  59. package/dist/runtime.d.ts +31 -0
  60. package/dist/runtime.d.ts.map +1 -0
  61. package/dist/runtime.js +22 -0
  62. package/dist/runtime.js.map +1 -0
  63. package/dist/types.d.ts +83 -0
  64. package/dist/types.d.ts.map +1 -0
  65. package/dist/types.js +30 -0
  66. package/dist/types.js.map +1 -0
  67. package/package.json +50 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../src/node/utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGtF,IAAI,CAAC,yDAAyD,EAAE,GAAG,EAAE;IACnE,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,2BAA2B,CAAC,EAAE;QAC5D,WAAW,EAAE,qBAAqB;QAClC,cAAc,EAAE,OAAO;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,sDAAsD,EAAE,GAAG,EAAE;IAChE,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE;QACtD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AE,MAAM,EAAE,kBAAkB,EAAE,CAAC;QAC5D,UAAU;KACX,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC;IACnC,UAAU,CAAC,GAAG,GAAG,wBAAwB,CAAC;IAC1C,IAAI,CAAC;QACH,MAAM,IAAI,EAAE,CAAC;IACf,CAAC;YAAS,CAAC;QACT,UAAU,CAAC,GAAG,GAAG,WAAW,CAAC;IAC/B,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,wBAAwB,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ export declare const runtimeSpec: import("./app.js").AppSpec<{
2
+ readonly show: import("./app.js").AppTool<import("zod").ZodObject<{
3
+ app: import("zod").ZodOptional<import("zod").ZodString>;
4
+ parent: import("zod").ZodOptional<import("zod").ZodNumber>;
5
+ width: import("zod").ZodOptional<import("zod").ZodNumber>;
6
+ height: import("zod").ZodOptional<import("zod").ZodNumber>;
7
+ address: import("zod").ZodOptional<import("zod").ZodString>;
8
+ type: import("zod").ZodEnum<{
9
+ file: "file";
10
+ url: "url";
11
+ }>;
12
+ source: import("zod").ZodString;
13
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
14
+ output: import("zod").ZodString;
15
+ }, import("zod/v4/core").$strip>, import("@cmdless/rpc-sdk").RpcProtocol>;
16
+ readonly messageBox: import("./app.js").AppTool<import("zod").ZodObject<{
17
+ app: import("zod").ZodOptional<import("zod").ZodString>;
18
+ parent: import("zod").ZodOptional<import("zod").ZodNumber>;
19
+ type: import("zod").ZodEnum<{
20
+ error: "error";
21
+ info: "info";
22
+ none: "none";
23
+ question: "question";
24
+ warning: "warning";
25
+ }>;
26
+ message: import("zod").ZodString;
27
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
28
+ output: import("zod").ZodString;
29
+ }, import("zod/v4/core").$strip>, import("@cmdless/rpc-sdk").RpcProtocol>;
30
+ }>;
31
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { defineApp } from './app.js';
2
+ import { ShowParamsSchema, MessageBoxParamsSchema } from './types.js';
3
+ // reuses the exact schemas ui-runtime's own dispatcher already accepts
4
+ // (ShowParams/MessageBoxParams) - just `kind` omitted, since the tool name
5
+ // already says which one this is. Schema only, same as every other
6
+ // defineApp - the node-side wiring (node/runtime.js) forwards straight
7
+ // through to the existing CmdlessUI + dispatcher, unchanged.
8
+ export const runtimeSpec = defineApp(({ tool, z }) => ({
9
+ name: 'ui-sdk',
10
+ description: 'Basic UI primitives (show a window, show a message box) for showing something to the user',
11
+ tools: {
12
+ show: tool('show', 'Show a window loading a URL or a local file', {
13
+ input: ShowParamsSchema.omit({ kind: true }),
14
+ output: z.object({ output: z.string() }),
15
+ }),
16
+ messageBox: tool('messageBox', 'Show a native message box', {
17
+ input: MessageBoxParamsSchema.omit({ kind: true }),
18
+ output: z.object({ output: z.string() }),
19
+ }),
20
+ },
21
+ }));
22
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEtE,uEAAuE;AACvE,2EAA2E;AAC3E,mEAAmE;AACnE,uEAAuE;AACvE,6DAA6D;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACrD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2FAA2F;IACxG,KAAK,EAAE;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,6CAA6C,EAAE;YAChE,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAC5C,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;SACzC,CAAC;QACF,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,2BAA2B,EAAE;YAC1D,KAAK,EAAE,sBAAsB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAClD,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;SACzC,CAAC;KACH;CACF,CAAC,CAAC,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { z } from 'zod';
2
+ export declare const SetupOptionsSchema: z.ZodObject<{
3
+ app: z.ZodOptional<z.ZodString>;
4
+ parent: z.ZodOptional<z.ZodNumber>;
5
+ }, z.core.$strip>;
6
+ export type SetupOptions = z.infer<typeof SetupOptionsSchema>;
7
+ export declare const SetupParamsSchema: z.ZodObject<{
8
+ app: z.ZodOptional<z.ZodString>;
9
+ parent: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ export type SetupParams = z.infer<typeof SetupParamsSchema>;
12
+ export declare const ShowOptionsSchema: z.ZodObject<{
13
+ app: z.ZodOptional<z.ZodString>;
14
+ parent: z.ZodOptional<z.ZodNumber>;
15
+ width: z.ZodOptional<z.ZodNumber>;
16
+ height: z.ZodOptional<z.ZodNumber>;
17
+ address: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strip>;
19
+ export type ShowOptions = z.infer<typeof ShowOptionsSchema>;
20
+ export declare const ShowTypes: readonly ['url', 'file'];
21
+ export type ShowType = typeof ShowTypes[number];
22
+ export declare const ShowParamsSchema: z.ZodObject<{
23
+ app: z.ZodOptional<z.ZodString>;
24
+ parent: z.ZodOptional<z.ZodNumber>;
25
+ width: z.ZodOptional<z.ZodNumber>;
26
+ height: z.ZodOptional<z.ZodNumber>;
27
+ address: z.ZodOptional<z.ZodString>;
28
+ kind: z.ZodLiteral<"show">;
29
+ type: z.ZodEnum<{
30
+ file: "file";
31
+ url: "url";
32
+ }>;
33
+ source: z.ZodString;
34
+ }, z.core.$strip>;
35
+ export type ShowParams = z.infer<typeof ShowParamsSchema>;
36
+ export declare const MessageBoxTypes: readonly ['none', 'info', 'error', 'question', 'warning'];
37
+ export type MessageBoxType = typeof MessageBoxTypes[number];
38
+ export declare const MessageBoxOptionsSchema: z.ZodObject<{
39
+ app: z.ZodOptional<z.ZodString>;
40
+ parent: z.ZodOptional<z.ZodNumber>;
41
+ }, z.core.$strip>;
42
+ export type MessageBoxOptions = z.infer<typeof MessageBoxOptionsSchema>;
43
+ export declare const MessageBoxParamsSchema: z.ZodObject<{
44
+ app: z.ZodOptional<z.ZodString>;
45
+ parent: z.ZodOptional<z.ZodNumber>;
46
+ kind: z.ZodLiteral<"message-box">;
47
+ type: z.ZodEnum<{
48
+ error: "error";
49
+ info: "info";
50
+ none: "none";
51
+ question: "question";
52
+ warning: "warning";
53
+ }>;
54
+ message: z.ZodString;
55
+ }, z.core.$strip>;
56
+ export type MessageBoxParams = z.infer<typeof MessageBoxParamsSchema>;
57
+ export declare const ParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ app: z.ZodOptional<z.ZodString>;
59
+ parent: z.ZodOptional<z.ZodNumber>;
60
+ width: z.ZodOptional<z.ZodNumber>;
61
+ height: z.ZodOptional<z.ZodNumber>;
62
+ address: z.ZodOptional<z.ZodString>;
63
+ kind: z.ZodLiteral<"show">;
64
+ type: z.ZodEnum<{
65
+ file: "file";
66
+ url: "url";
67
+ }>;
68
+ source: z.ZodString;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ app: z.ZodOptional<z.ZodString>;
71
+ parent: z.ZodOptional<z.ZodNumber>;
72
+ kind: z.ZodLiteral<"message-box">;
73
+ type: z.ZodEnum<{
74
+ error: "error";
75
+ info: "info";
76
+ none: "none";
77
+ question: "question";
78
+ warning: "warning";
79
+ }>;
80
+ message: z.ZodString;
81
+ }, z.core.$strip>], "kind">;
82
+ export type Params = z.infer<typeof ParamsSchema>;
83
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,iBAAiB;;;iBAAqB,CAAC;AACpD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;iBAI5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,SAAS,YAAI,KAAK,EAAE,MAAM,CAAU,CAAC;AAClD,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAEhD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,eAAe,YAAI,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAU,CAAC;AACzF,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AAE5D,eAAO,MAAM,uBAAuB;;;iBAAoB,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;2BAA2E,CAAC;AACrG,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ // zod schemas are the source of truth here - types are inferred from them
3
+ // (not hand-duplicated) so the same schemas can be reused directly in an
4
+ // app schema (see runtime.ts) without drifting from what this module's own
5
+ // plain-TS consumers (e.g. ui-runtime's main/index.ts) already expect.
6
+ export const SetupOptionsSchema = z.object({
7
+ app: z.string().optional(),
8
+ parent: z.number().optional(),
9
+ });
10
+ export const SetupParamsSchema = SetupOptionsSchema;
11
+ export const ShowOptionsSchema = SetupParamsSchema.extend({
12
+ width: z.number().optional(),
13
+ height: z.number().optional(),
14
+ address: z.string().optional(),
15
+ });
16
+ export const ShowTypes = ['url', 'file'];
17
+ export const ShowParamsSchema = ShowOptionsSchema.extend({
18
+ kind: z.literal('show'),
19
+ type: z.enum(ShowTypes),
20
+ source: z.string(),
21
+ });
22
+ export const MessageBoxTypes = ['none', 'info', 'error', 'question', 'warning'];
23
+ export const MessageBoxOptionsSchema = SetupParamsSchema;
24
+ export const MessageBoxParamsSchema = MessageBoxOptionsSchema.extend({
25
+ kind: z.literal('message-box'),
26
+ type: z.enum(MessageBoxTypes),
27
+ message: z.string(),
28
+ });
29
+ export const ParamsSchema = z.discriminatedUnion('kind', [ShowParamsSchema, MessageBoxParamsSchema]);
30
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","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,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IAC9B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,53 @@
1
1
  {
2
2
  "name": "@cmdless/ui-sdk",
3
- "version": "0.0.0",
4
- "description": "OIDC trusted publishing setup package for @cmdless/ui-sdk",
5
- "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
3
+ "description": "Build cross platform desktop apps built on Electron.",
4
+ "version": "0.0.4",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "author": {
8
+ "name": "Fluttershy",
9
+ "url": "https://github.com/Fluttershy"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/cmdless/electron.git"
14
+ },
15
+ "bin": {
16
+ "ui-sdk": "./dist/node/bin.js"
17
+ },
18
+ "exports": {
19
+ "./node": {
20
+ "types": "./dist/node/index.d.ts",
21
+ "import": "./dist/node/index.js"
22
+ },
23
+ "./browser": {
24
+ "types": "./dist/browser/index.d.ts",
25
+ "import": "./dist/browser/index.js"
26
+ },
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.js"
30
+ }
31
+ },
32
+ "files": [
33
+ "dist/",
34
+ "LICENSE",
35
+ "README.md"
36
+ ],
37
+ "scripts": {
38
+ "prebuild": "rimraf dist node_modules/.tmp",
39
+ "build": "tsc -b",
40
+ "test": "node ../../scripts/run-tests.mjs"
41
+ },
42
+ "dependencies": {
43
+ "@cmdless/rpc-sdk": "^0.0.3",
44
+ "@modelcontextprotocol/sdk": "1.30.0",
45
+ "commander": "15.0.0",
46
+ "vscode-jsonrpc": "9.0.2",
47
+ "ws": "8.21.3",
48
+ "zod": "4.6.5"
49
+ },
50
+ "devDependencies": {
51
+ "@types/ws": "8.5.13"
52
+ }
10
53
  }