@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.
- package/README.md +22 -0
- package/dist/block.d.ts +321 -0
- package/dist/block.d.ts.map +1 -0
- package/dist/block.js +0 -0
- package/dist/builder.d.ts +12 -0
- package/dist/builder.d.ts.map +1 -0
- package/dist/builder.js +22 -0
- package/dist/capabilities/slashCommand.d.ts +56 -0
- package/dist/capabilities/slashCommand.d.ts.map +1 -0
- package/dist/capabilities/slashCommand.js +32 -0
- package/dist/capabilities/sync.d.ts +58 -0
- package/dist/capabilities/sync.d.ts.map +1 -0
- package/dist/capabilities/sync.js +26 -0
- package/dist/capabilities/tool.d.ts +69 -0
- package/dist/capabilities/tool.d.ts.map +1 -0
- package/dist/capabilities/tool.js +75 -0
- package/dist/capabilities/tool.test.d.ts +2 -0
- package/dist/capabilities/tool.test.d.ts.map +1 -0
- package/dist/cli/api/client.d.ts +185 -0
- package/dist/cli/api/client.d.ts.map +1 -0
- package/dist/cli/api/client.js +315 -0
- package/dist/cli/api/result.d.ts +43 -0
- package/dist/cli/api/result.d.ts.map +1 -0
- package/dist/cli/api/result.js +43 -0
- package/dist/cli/bin/cli.d.ts +3 -0
- package/dist/cli/bin/cli.d.ts.map +1 -0
- package/dist/cli/bin/cli.js +5 -0
- package/dist/cli/commands/auth.d.ts +2 -0
- package/dist/cli/commands/auth.d.ts.map +1 -0
- package/dist/cli/commands/auth.impl.d.ts +10 -0
- package/dist/cli/commands/auth.impl.d.ts.map +1 -0
- package/dist/cli/commands/auth.impl.js +68 -0
- package/dist/cli/commands/auth.js +71 -0
- package/dist/cli/commands/bundle.d.ts +2 -0
- package/dist/cli/commands/bundle.d.ts.map +1 -0
- package/dist/cli/commands/bundle.impl.d.ts +2 -0
- package/dist/cli/commands/bundle.impl.d.ts.map +1 -0
- package/dist/cli/commands/bundle.impl.js +21 -0
- package/dist/cli/commands/bundle.js +23 -0
- package/dist/cli/commands/capabilities.d.ts +2 -0
- package/dist/cli/commands/capabilities.d.ts.map +1 -0
- package/dist/cli/commands/capabilities.impl.d.ts +3 -0
- package/dist/cli/commands/capabilities.impl.d.ts.map +1 -0
- package/dist/cli/commands/capabilities.impl.js +40 -0
- package/dist/cli/commands/capabilities.js +24 -0
- package/dist/cli/commands/deploy.d.ts +3 -0
- package/dist/cli/commands/deploy.d.ts.map +1 -0
- package/dist/cli/commands/deploy.impl.d.ts +2 -0
- package/dist/cli/commands/deploy.impl.d.ts.map +1 -0
- package/dist/cli/commands/deploy.impl.js +31 -0
- package/dist/cli/commands/deploy.js +16 -0
- package/dist/cli/commands/exec.d.ts +3 -0
- package/dist/cli/commands/exec.d.ts.map +1 -0
- package/dist/cli/commands/exec.impl.d.ts +7 -0
- package/dist/cli/commands/exec.impl.d.ts.map +1 -0
- package/dist/cli/commands/exec.impl.js +122 -0
- package/dist/cli/commands/exec.js +30 -0
- package/dist/cli/commands/runs.d.ts +2 -0
- package/dist/cli/commands/runs.d.ts.map +1 -0
- package/dist/cli/commands/runs.impl.d.ts +4 -0
- package/dist/cli/commands/runs.impl.d.ts.map +1 -0
- package/dist/cli/commands/runs.impl.js +71 -0
- package/dist/cli/commands/runs.js +45 -0
- package/dist/cli/commands/secrets.d.ts +2 -0
- package/dist/cli/commands/secrets.d.ts.map +1 -0
- package/dist/cli/commands/secrets.impl.d.ts +5 -0
- package/dist/cli/commands/secrets.impl.d.ts.map +1 -0
- package/dist/cli/commands/secrets.impl.js +93 -0
- package/dist/cli/commands/secrets.js +64 -0
- package/dist/cli/config.d.ts +38 -0
- package/dist/cli/config.d.ts.map +1 -0
- package/dist/cli/config.js +133 -0
- package/dist/cli/context.d.ts +15 -0
- package/dist/cli/context.d.ts.map +1 -0
- package/dist/cli/context.js +16 -0
- package/dist/cli/deploy.d.ts +25 -0
- package/dist/cli/deploy.d.ts.map +1 -0
- package/dist/cli/deploy.js +101 -0
- package/dist/cli/flags.d.ts +16 -0
- package/dist/cli/flags.d.ts.map +1 -0
- package/dist/cli/flags.js +24 -0
- package/dist/cli/handler.d.ts +14 -0
- package/dist/cli/handler.d.ts.map +1 -0
- package/dist/cli/handler.js +30 -0
- package/dist/cli/routes.d.ts +2 -0
- package/dist/cli/routes.d.ts.map +1 -0
- package/dist/cli/routes.js +44 -0
- package/dist/cli/utils/array.d.ts +2 -0
- package/dist/cli/utils/array.d.ts.map +1 -0
- package/dist/cli/utils/array.js +10 -0
- package/dist/cli/utils/string.d.ts +2 -0
- package/dist/cli/utils/string.d.ts.map +1 -0
- package/dist/cli/utils/string.js +12 -0
- package/dist/cli/writer.d.ts +48 -0
- package/dist/cli/writer.d.ts.map +1 -0
- package/dist/cli/writer.js +73 -0
- package/dist/error.d.ts +8 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +11 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/schema.d.ts +45 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +14 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +0 -0
- package/package.json +79 -0
- package/src/block.ts +529 -0
- package/src/builder.ts +26 -0
- package/src/capabilities/slashCommand.ts +71 -0
- package/src/capabilities/sync.ts +76 -0
- package/src/capabilities/tool.test.ts +181 -0
- package/src/capabilities/tool.ts +145 -0
- package/src/cli/api/client.ts +588 -0
- package/src/cli/api/result.ts +71 -0
- package/src/cli/bin/cli.ts +7 -0
- package/src/cli/commands/auth.impl.ts +92 -0
- package/src/cli/commands/auth.ts +77 -0
- package/src/cli/commands/bundle.impl.ts +21 -0
- package/src/cli/commands/bundle.ts +23 -0
- package/src/cli/commands/capabilities.impl.ts +47 -0
- package/src/cli/commands/capabilities.ts +25 -0
- package/src/cli/commands/deploy.impl.ts +34 -0
- package/src/cli/commands/deploy.ts +16 -0
- package/src/cli/commands/exec.impl.ts +169 -0
- package/src/cli/commands/exec.ts +32 -0
- package/src/cli/commands/runs.impl.ts +87 -0
- package/src/cli/commands/runs.ts +49 -0
- package/src/cli/commands/secrets.impl.ts +124 -0
- package/src/cli/commands/secrets.ts +73 -0
- package/src/cli/config.ts +175 -0
- package/src/cli/context.ts +26 -0
- package/src/cli/deploy.ts +175 -0
- package/src/cli/flags.ts +43 -0
- package/src/cli/handler.ts +62 -0
- package/src/cli/routes.ts +43 -0
- package/src/cli/utils/array.ts +7 -0
- package/src/cli/utils/string.ts +9 -0
- package/src/cli/writer.ts +97 -0
- package/src/error.ts +12 -0
- package/src/index.ts +3 -0
- package/src/schema.ts +54 -0
- 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 @@
|
|
|
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 @@
|
|
|
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,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
|
+
};
|
package/dist/error.d.ts
ADDED
|
@@ -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
package/dist/index.d.ts
ADDED
|
@@ -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
package/dist/schema.d.ts
ADDED
|
@@ -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
package/dist/types.d.ts
ADDED
|
@@ -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
|
+
}
|