@project-ajax/sdk 0.0.28

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 (145) hide show
  1. package/README.md +22 -0
  2. package/dist/block.d.ts +321 -0
  3. package/dist/block.d.ts.map +1 -0
  4. package/dist/block.js +0 -0
  5. package/dist/builder.d.ts +12 -0
  6. package/dist/builder.d.ts.map +1 -0
  7. package/dist/builder.js +22 -0
  8. package/dist/capabilities/slashCommand.d.ts +56 -0
  9. package/dist/capabilities/slashCommand.d.ts.map +1 -0
  10. package/dist/capabilities/slashCommand.js +32 -0
  11. package/dist/capabilities/sync.d.ts +58 -0
  12. package/dist/capabilities/sync.d.ts.map +1 -0
  13. package/dist/capabilities/sync.js +26 -0
  14. package/dist/capabilities/tool.d.ts +69 -0
  15. package/dist/capabilities/tool.d.ts.map +1 -0
  16. package/dist/capabilities/tool.js +75 -0
  17. package/dist/capabilities/tool.test.d.ts +2 -0
  18. package/dist/capabilities/tool.test.d.ts.map +1 -0
  19. package/dist/cli/api/client.d.ts +185 -0
  20. package/dist/cli/api/client.d.ts.map +1 -0
  21. package/dist/cli/api/client.js +315 -0
  22. package/dist/cli/api/result.d.ts +43 -0
  23. package/dist/cli/api/result.d.ts.map +1 -0
  24. package/dist/cli/api/result.js +43 -0
  25. package/dist/cli/bin/cli.d.ts +3 -0
  26. package/dist/cli/bin/cli.d.ts.map +1 -0
  27. package/dist/cli/bin/cli.js +5 -0
  28. package/dist/cli/commands/auth.d.ts +2 -0
  29. package/dist/cli/commands/auth.d.ts.map +1 -0
  30. package/dist/cli/commands/auth.impl.d.ts +10 -0
  31. package/dist/cli/commands/auth.impl.d.ts.map +1 -0
  32. package/dist/cli/commands/auth.impl.js +68 -0
  33. package/dist/cli/commands/auth.js +71 -0
  34. package/dist/cli/commands/bundle.d.ts +2 -0
  35. package/dist/cli/commands/bundle.d.ts.map +1 -0
  36. package/dist/cli/commands/bundle.impl.d.ts +2 -0
  37. package/dist/cli/commands/bundle.impl.d.ts.map +1 -0
  38. package/dist/cli/commands/bundle.impl.js +21 -0
  39. package/dist/cli/commands/bundle.js +23 -0
  40. package/dist/cli/commands/capabilities.d.ts +2 -0
  41. package/dist/cli/commands/capabilities.d.ts.map +1 -0
  42. package/dist/cli/commands/capabilities.impl.d.ts +3 -0
  43. package/dist/cli/commands/capabilities.impl.d.ts.map +1 -0
  44. package/dist/cli/commands/capabilities.impl.js +40 -0
  45. package/dist/cli/commands/capabilities.js +24 -0
  46. package/dist/cli/commands/deploy.d.ts +3 -0
  47. package/dist/cli/commands/deploy.d.ts.map +1 -0
  48. package/dist/cli/commands/deploy.impl.d.ts +2 -0
  49. package/dist/cli/commands/deploy.impl.d.ts.map +1 -0
  50. package/dist/cli/commands/deploy.impl.js +31 -0
  51. package/dist/cli/commands/deploy.js +16 -0
  52. package/dist/cli/commands/exec.d.ts +3 -0
  53. package/dist/cli/commands/exec.d.ts.map +1 -0
  54. package/dist/cli/commands/exec.impl.d.ts +7 -0
  55. package/dist/cli/commands/exec.impl.d.ts.map +1 -0
  56. package/dist/cli/commands/exec.impl.js +122 -0
  57. package/dist/cli/commands/exec.js +30 -0
  58. package/dist/cli/commands/runs.d.ts +2 -0
  59. package/dist/cli/commands/runs.d.ts.map +1 -0
  60. package/dist/cli/commands/runs.impl.d.ts +4 -0
  61. package/dist/cli/commands/runs.impl.d.ts.map +1 -0
  62. package/dist/cli/commands/runs.impl.js +71 -0
  63. package/dist/cli/commands/runs.js +45 -0
  64. package/dist/cli/commands/secrets.d.ts +2 -0
  65. package/dist/cli/commands/secrets.d.ts.map +1 -0
  66. package/dist/cli/commands/secrets.impl.d.ts +5 -0
  67. package/dist/cli/commands/secrets.impl.d.ts.map +1 -0
  68. package/dist/cli/commands/secrets.impl.js +93 -0
  69. package/dist/cli/commands/secrets.js +64 -0
  70. package/dist/cli/config.d.ts +38 -0
  71. package/dist/cli/config.d.ts.map +1 -0
  72. package/dist/cli/config.js +133 -0
  73. package/dist/cli/context.d.ts +15 -0
  74. package/dist/cli/context.d.ts.map +1 -0
  75. package/dist/cli/context.js +16 -0
  76. package/dist/cli/deploy.d.ts +25 -0
  77. package/dist/cli/deploy.d.ts.map +1 -0
  78. package/dist/cli/deploy.js +101 -0
  79. package/dist/cli/flags.d.ts +16 -0
  80. package/dist/cli/flags.d.ts.map +1 -0
  81. package/dist/cli/flags.js +24 -0
  82. package/dist/cli/handler.d.ts +14 -0
  83. package/dist/cli/handler.d.ts.map +1 -0
  84. package/dist/cli/handler.js +30 -0
  85. package/dist/cli/routes.d.ts +2 -0
  86. package/dist/cli/routes.d.ts.map +1 -0
  87. package/dist/cli/routes.js +44 -0
  88. package/dist/cli/utils/array.d.ts +2 -0
  89. package/dist/cli/utils/array.d.ts.map +1 -0
  90. package/dist/cli/utils/array.js +10 -0
  91. package/dist/cli/utils/string.d.ts +2 -0
  92. package/dist/cli/utils/string.d.ts.map +1 -0
  93. package/dist/cli/utils/string.js +12 -0
  94. package/dist/cli/writer.d.ts +48 -0
  95. package/dist/cli/writer.d.ts.map +1 -0
  96. package/dist/cli/writer.js +73 -0
  97. package/dist/error.d.ts +8 -0
  98. package/dist/error.d.ts.map +1 -0
  99. package/dist/error.js +11 -0
  100. package/dist/index.d.ts +4 -0
  101. package/dist/index.d.ts.map +1 -0
  102. package/dist/index.js +8 -0
  103. package/dist/schema.d.ts +45 -0
  104. package/dist/schema.d.ts.map +1 -0
  105. package/dist/schema.js +14 -0
  106. package/dist/types.d.ts +11 -0
  107. package/dist/types.d.ts.map +1 -0
  108. package/dist/types.js +0 -0
  109. package/package.json +79 -0
  110. package/src/block.ts +529 -0
  111. package/src/builder.ts +26 -0
  112. package/src/capabilities/slashCommand.ts +71 -0
  113. package/src/capabilities/sync.ts +76 -0
  114. package/src/capabilities/tool.test.ts +181 -0
  115. package/src/capabilities/tool.ts +145 -0
  116. package/src/cli/api/client.ts +588 -0
  117. package/src/cli/api/result.ts +71 -0
  118. package/src/cli/bin/cli.ts +7 -0
  119. package/src/cli/commands/auth.impl.ts +92 -0
  120. package/src/cli/commands/auth.ts +77 -0
  121. package/src/cli/commands/bundle.impl.ts +21 -0
  122. package/src/cli/commands/bundle.ts +23 -0
  123. package/src/cli/commands/capabilities.impl.ts +47 -0
  124. package/src/cli/commands/capabilities.ts +25 -0
  125. package/src/cli/commands/deploy.impl.ts +34 -0
  126. package/src/cli/commands/deploy.ts +16 -0
  127. package/src/cli/commands/exec.impl.ts +169 -0
  128. package/src/cli/commands/exec.ts +32 -0
  129. package/src/cli/commands/runs.impl.ts +87 -0
  130. package/src/cli/commands/runs.ts +49 -0
  131. package/src/cli/commands/secrets.impl.ts +124 -0
  132. package/src/cli/commands/secrets.ts +73 -0
  133. package/src/cli/config.ts +175 -0
  134. package/src/cli/context.ts +26 -0
  135. package/src/cli/deploy.ts +175 -0
  136. package/src/cli/flags.ts +43 -0
  137. package/src/cli/handler.ts +62 -0
  138. package/src/cli/routes.ts +43 -0
  139. package/src/cli/utils/array.ts +7 -0
  140. package/src/cli/utils/string.ts +9 -0
  141. package/src/cli/writer.ts +97 -0
  142. package/src/error.ts +12 -0
  143. package/src/index.ts +3 -0
  144. package/src/schema.ts +54 -0
  145. package/src/types.ts +10 -0
@@ -0,0 +1,44 @@
1
+ import { buildApplication, buildRouteMap, text_en } from "@stricli/core";
2
+ import packageJson from "../../package.json" with { type: "json" };
3
+ import { authCommands } from "./commands/auth.js";
4
+ import { bundleCommands } from "./commands/bundle.js";
5
+ import { capabilitiesCommands } from "./commands/capabilities.js";
6
+ import deploy from "./commands/deploy.js";
7
+ import exec from "./commands/exec.js";
8
+ import { runsCommands } from "./commands/runs.js";
9
+ import { secretsCommands } from "./commands/secrets.js";
10
+ import { TokenNotSetError } from "./config.js";
11
+ const routes = buildRouteMap({
12
+ docs: {
13
+ brief: "A CLI for the Project Ajax platform"
14
+ },
15
+ routes: {
16
+ auth: authCommands,
17
+ capabilities: capabilitiesCommands,
18
+ deploy,
19
+ exec,
20
+ runs: runsCommands,
21
+ secrets: secretsCommands,
22
+ bundle: bundleCommands
23
+ }
24
+ });
25
+ const app = buildApplication(routes, {
26
+ name: "workers",
27
+ versionInfo: {
28
+ currentVersion: packageJson.version
29
+ },
30
+ localization: {
31
+ loadText: () => ({
32
+ ...text_en,
33
+ exceptionWhileRunningCommand(exc, ansiColor) {
34
+ if (exc instanceof TokenNotSetError) {
35
+ return exc.message;
36
+ }
37
+ return text_en.exceptionWhileRunningCommand(exc, ansiColor);
38
+ }
39
+ })
40
+ }
41
+ });
42
+ export {
43
+ app
44
+ };
@@ -0,0 +1,2 @@
1
+ export declare function chunkEvery<T>(array: readonly T[], size: number): T[][];
2
+ //# sourceMappingURL=array.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/array.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAMtE"}
@@ -0,0 +1,10 @@
1
+ function chunkEvery(array, size) {
2
+ const result = [];
3
+ for (let i = 0; i < array.length; i += size) {
4
+ result.push(array.slice(i, i + size));
5
+ }
6
+ return result;
7
+ }
8
+ export {
9
+ chunkEvery
10
+ };
@@ -0,0 +1,2 @@
1
+ export declare function pluralize(count: number, word: string, pluralWord?: string): string;
2
+ //# sourceMappingURL=string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/string.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,UAQzE"}
@@ -0,0 +1,12 @@
1
+ function pluralize(count, word, pluralWord) {
2
+ if (count === 1) {
3
+ return `${count} ${word}`;
4
+ }
5
+ if (!pluralWord) {
6
+ return `${count} ${word}s`;
7
+ }
8
+ return `${count} ${pluralWord}`;
9
+ }
10
+ export {
11
+ pluralize
12
+ };
@@ -0,0 +1,48 @@
1
+ import { type TableCell } from "@visulima/tabular";
2
+ export interface WriterOptions {
3
+ debugEnabled: boolean;
4
+ }
5
+ export interface TableOptions {
6
+ headers: TableCell[] | TableCell[][];
7
+ rows: TableCell[][];
8
+ plain: boolean;
9
+ }
10
+ /**
11
+ * A writer writes messages to standard out and standard error.
12
+ */
13
+ export declare class Writer {
14
+ #private;
15
+ debugEnabled: boolean;
16
+ constructor(options: WriterOptions);
17
+ /**
18
+ * Writes a debug message to standard error.
19
+ *
20
+ * @param args The arguments to write.
21
+ */
22
+ debug(...args: Parameters<typeof console.log>): void;
23
+ /**
24
+ * Writes a message to standard out.
25
+ *
26
+ * @param args The arguments to write.
27
+ */
28
+ writeOut(...args: Parameters<typeof process.stdout.write>): void;
29
+ /**
30
+ * Writes a message to standard error.
31
+ *
32
+ * @param args The arguments to write.
33
+ */
34
+ writeErr(...args: Parameters<typeof process.stderr.write>): void;
35
+ /**
36
+ * Writes a table to standard out.
37
+ *
38
+ * @param tableConfig The table configuration.
39
+ */
40
+ writeTableOut(tableConfig: TableOptions): void;
41
+ /**
42
+ * Writes a table to standard error.
43
+ *
44
+ * @param tableConfig The table configuration.
45
+ */
46
+ writeTableErr(tableConfig: TableOptions): void;
47
+ }
48
+ //# sourceMappingURL=writer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/cli/writer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,SAAS,EAAkB,MAAM,mBAAmB,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC7B,YAAY,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC5B,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,CAAC;IACrC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;CACf;AAED;;GAEG;AACH,qBAAa,MAAM;;IAClB,YAAY,EAAE,OAAO,CAAC;gBAEV,OAAO,EAAE,aAAa;IAIlC;;;;OAIG;IACH,KAAK,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,GAAG,CAAC;IAW7C;;;;OAIG;IACH,QAAQ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;IAIzD;;;;OAIG;IACH,QAAQ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;IAIzD;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,YAAY;IAKvC;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,YAAY;CAqBvC"}
@@ -0,0 +1,73 @@
1
+ import { createTable } from "@visulima/tabular";
2
+ class Writer {
3
+ debugEnabled;
4
+ constructor(options) {
5
+ this.debugEnabled = options.debugEnabled;
6
+ }
7
+ /**
8
+ * Writes a debug message to standard error.
9
+ *
10
+ * @param args The arguments to write.
11
+ */
12
+ debug(...args) {
13
+ if (this.debugEnabled) {
14
+ args.join(" ").split("\n").forEach((line) => {
15
+ this.writeErr(`[debug] ${line}`);
16
+ });
17
+ }
18
+ }
19
+ /**
20
+ * Writes a message to standard out.
21
+ *
22
+ * @param args The arguments to write.
23
+ */
24
+ writeOut(...args) {
25
+ process.stdout.write(`${args.join(" ")}
26
+ `);
27
+ }
28
+ /**
29
+ * Writes a message to standard error.
30
+ *
31
+ * @param args The arguments to write.
32
+ */
33
+ writeErr(...args) {
34
+ process.stderr.write(`${args.join(" ")}
35
+ `);
36
+ }
37
+ /**
38
+ * Writes a table to standard out.
39
+ *
40
+ * @param tableConfig The table configuration.
41
+ */
42
+ writeTableOut(tableConfig) {
43
+ const content = this.#buildTable(tableConfig);
44
+ this.writeOut(content);
45
+ }
46
+ /**
47
+ * Writes a table to standard error.
48
+ *
49
+ * @param tableConfig The table configuration.
50
+ */
51
+ writeTableErr(tableConfig) {
52
+ const content = this.#buildTable(tableConfig);
53
+ this.writeErr(content);
54
+ }
55
+ #buildTable(tableConfig) {
56
+ if (tableConfig.plain) {
57
+ return tableConfig.rows.map((row) => {
58
+ return row.map((cell) => isTableItem(cell) ? cell.content : cell).join(" ");
59
+ }).join("\n");
60
+ } else {
61
+ const table = createTable();
62
+ table.setHeaders(tableConfig.headers);
63
+ table.addRows(...tableConfig.rows);
64
+ return table.toString();
65
+ }
66
+ }
67
+ }
68
+ function isTableItem(cell) {
69
+ return typeof cell === "object";
70
+ }
71
+ export {
72
+ Writer
73
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * An error that occurred during the execution of a sync.
3
+ */
4
+ export declare class ExecutionError extends Error {
5
+ readonly cause: unknown;
6
+ constructor(cause: unknown);
7
+ }
8
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACxC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;gBAEZ,KAAK,EAAE,OAAO;CAK1B"}
package/dist/error.js ADDED
@@ -0,0 +1,11 @@
1
+ class ExecutionError extends Error {
2
+ cause;
3
+ constructor(cause) {
4
+ super(`Error during sync execution: ${cause}`);
5
+ this.name = "ExecutionError";
6
+ this.cause = cause;
7
+ }
8
+ }
9
+ export {
10
+ ExecutionError
11
+ };
@@ -0,0 +1,4 @@
1
+ export { slashCommand } from "./capabilities/slashCommand.js";
2
+ export { sync } from "./capabilities/sync.js";
3
+ export { tool } from "./capabilities/tool.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { slashCommand } from "./capabilities/slashCommand.js";
2
+ import { sync } from "./capabilities/sync.js";
3
+ import { tool } from "./capabilities/tool.js";
4
+ export {
5
+ slashCommand,
6
+ sync,
7
+ tool
8
+ };
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Supported property types for sync schemas.
3
+ */
4
+ export type PropertyType = "title" | "rich_text" | "url";
5
+ /**
6
+ * Definition of a single property in a sync schema.
7
+ */
8
+ export type PropertyDefinition = {
9
+ type: PropertyType;
10
+ };
11
+ /**
12
+ * A schema defining the structure a single property in a data source.
13
+ */
14
+ export type PropertyConfiguration = {
15
+ type: "title";
16
+ } | {
17
+ type: "text";
18
+ } | {
19
+ type: "url";
20
+ };
21
+ export type Schema<PK extends string> = {
22
+ dataSourceTitle: string;
23
+ properties: PropertySchema<PK>;
24
+ };
25
+ /**
26
+ * A schema defining the structure of properties in a data source.
27
+ */
28
+ export type PropertySchema<PK extends string> = {
29
+ [PrimaryKey in PK]: PropertyConfiguration;
30
+ } & {
31
+ [propertyName: string]: PropertyConfiguration;
32
+ };
33
+ /**
34
+ * Creates a title property definition.
35
+ */
36
+ export declare function title(): PropertyConfiguration;
37
+ /**
38
+ * Creates a rich text property definition.
39
+ */
40
+ export declare function richText(): PropertyConfiguration;
41
+ /**
42
+ * Creates a URL property definition.
43
+ */
44
+ export declare function url(): PropertyConfiguration;
45
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,YAAY,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAEnB,MAAM,MAAM,MAAM,CAAC,EAAE,SAAS,MAAM,IAAI;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,EAAE,SAAS,MAAM,IAAI;KAC9C,UAAU,IAAI,EAAE,GAAG,qBAAqB;CACzC,GAAG;IACH,CAAC,YAAY,EAAE,MAAM,GAAG,qBAAqB,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,wBAAgB,KAAK,IAAI,qBAAqB,CAE7C;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,qBAAqB,CAEhD;AAED;;GAEG;AACH,wBAAgB,GAAG,IAAI,qBAAqB,CAE3C"}
package/dist/schema.js ADDED
@@ -0,0 +1,14 @@
1
+ function title() {
2
+ return { type: "title" };
3
+ }
4
+ function richText() {
5
+ return { type: "text" };
6
+ }
7
+ function url() {
8
+ return { type: "url" };
9
+ }
10
+ export {
11
+ richText,
12
+ title,
13
+ url
14
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A text token is a tuple where the first element is the text content
3
+ * and optional subsequent elements are formatting annotations.
4
+ */
5
+ type TextToken = [string, ...unknown[]];
6
+ /**
7
+ * A TextValue is an array of text tokens, representing rich text content.
8
+ */
9
+ export type TextValue = Array<TextToken>;
10
+ export {};
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,KAAK,SAAS,GAAG,CAAC,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC"}
package/dist/types.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@project-ajax/sdk",
3
+ "version": "0.0.28",
4
+ "description": "An SDK for building workers for the Project Ajax platform",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "bin": {
8
+ "workers": "./dist/cli/bin/cli.js"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./block": {
16
+ "types": "./dist/block.d.ts",
17
+ "default": "./dist/block.js"
18
+ },
19
+ "./builder": {
20
+ "types": "./dist/builder.d.ts",
21
+ "default": "./dist/builder.js"
22
+ },
23
+ "./schema": {
24
+ "types": "./dist/schema.d.ts",
25
+ "default": "./dist/schema.js"
26
+ },
27
+ "./error": {
28
+ "types": "./dist/error.d.ts",
29
+ "default": "./dist/error.js"
30
+ },
31
+ "./types": {
32
+ "types": "./dist/types.d.ts",
33
+ "default": "./dist/types.js"
34
+ },
35
+ "./sync": {
36
+ "types": "./dist/capabilities/sync.d.ts",
37
+ "default": "./dist/capabilities/sync.js"
38
+ },
39
+ "./slashCommand": {
40
+ "types": "./dist/capabilities/slashCommand.d.ts",
41
+ "default": "./dist/capabilities/slashCommand.js"
42
+ }
43
+ },
44
+ "engines": {
45
+ "node": ">=22.0.0",
46
+ "npm": ">=10.9.4"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
51
+ "files": [
52
+ "dist/",
53
+ "src/"
54
+ ],
55
+ "scripts": {
56
+ "bootstrap": "mise install && mise exec -- lefthook install",
57
+ "build": "rm -rf dist && npm run build:types && npm run build:js",
58
+ "build:types": "tsc",
59
+ "build:js": "tsx scripts/build.ts",
60
+ "build:watch": "concurrently --group \"npm run build:watch:types\" \"npm run build:watch:js\"",
61
+ "build:watch:types": "tsc --watch",
62
+ "build:watch:js": "esbuild --watch --format=esm --outdir=dist --target=esnext --packages=external ./src/cli/bin/cli.ts ./src/**.ts ./src/**/*.ts ./src/cli/**/*.ts",
63
+ "test": "vitest"
64
+ },
65
+ "devDependencies": {
66
+ "@types/node": "^24.10.0",
67
+ "concurrently": "^9.2.1",
68
+ "tsx": "^4.20.6",
69
+ "typescript": "^5.9.3",
70
+ "vitest": "^4.0.8"
71
+ },
72
+ "dependencies": {
73
+ "@stricli/auto-complete": "^1.2.4",
74
+ "@stricli/core": "^1.2.4",
75
+ "@visulima/tabular": "^3.1.1",
76
+ "ajv": "^8.17.1",
77
+ "esbuild": "^0.25.12"
78
+ }
79
+ }