@tailor-platform/sdk 2.21.0 → 2.22.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 +34 -0
- package/agent-skills/tailor/SKILL.md +3 -1
- package/dist/application-BE4vehXW.mjs +1 -0
- package/dist/{application-D4913edS.mjs → application-BzO9ywXQ.mjs} +29 -29
- package/dist/application-BzO9ywXQ.mjs.map +1 -0
- package/dist/cli/commands/deploy/app-id-lock.d.mts +31 -0
- package/dist/cli/lib.d.mts +2 -2
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.mjs +39 -39
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/shared/logger.d.mts +9 -0
- package/dist/cli/shared/tailordb-namespaces.d.mts +1 -1
- package/dist/completion/zsh-worker.zsh +1 -1
- package/dist/configure/config/index.d.mts +2 -0
- package/dist/configure/index.mjs.map +1 -1
- package/dist/crashreport-CBaRJl5h.mjs +1 -0
- package/dist/{crashreport-BAz-ph5O.mjs → crashreport-DFpRn-LS.mjs} +4 -4
- package/dist/{crashreport-BAz-ph5O.mjs.map → crashreport-DFpRn-LS.mjs.map} +1 -1
- package/dist/{errors-sNtg2Mv3.mjs → errors-C9zGf4nz.mjs} +2 -2
- package/dist/{errors-sNtg2Mv3.mjs.map → errors-C9zGf4nz.mjs.map} +1 -1
- package/dist/guards-yDXyKC9F.mjs +2 -0
- package/dist/{guards-DsX7dJCP.mjs.map → guards-yDXyKC9F.mjs.map} +1 -1
- package/dist/logger-Db-YRTwK.mjs +9 -0
- package/dist/logger-Db-YRTwK.mjs.map +1 -0
- package/dist/{manager-C0dE7pd0.mjs → manager-8-JOvuLl.mjs} +2 -2
- package/dist/{manager-C0dE7pd0.mjs.map → manager-8-JOvuLl.mjs.map} +1 -1
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{register-ts-hook-YtsAGTMD.mjs → register-ts-hook-z7ggXQy4.mjs} +71 -70
- package/dist/register-ts-hook-z7ggXQy4.mjs.map +1 -0
- package/dist/seed/index.mjs +7 -6
- package/dist/seed/index.mjs.map +1 -1
- package/dist/service-Bx-7Lz06.mjs +1 -0
- package/dist/{service-BrGSi2IQ.mjs → service-CL1Bp4It.mjs} +3 -3
- package/dist/{service-BrGSi2IQ.mjs.map → service-CL1Bp4It.mjs.map} +1 -1
- package/dist/{service-8xznUrPU.mjs → service-DHVuH7-X.mjs} +2 -2
- package/dist/{service-8xznUrPU.mjs.map → service-DHVuH7-X.mjs.map} +1 -1
- package/dist/vitest/mocks/file.d.mts +1 -1
- package/docs/cli-reference.md +22 -12
- package/docs/configuration.md +1 -1
- package/docs/github-actions.md +90 -24
- package/docs/migration/v2.md +70 -5
- package/docs/plugin/index.md +1 -1
- package/package.json +8 -8
- package/dist/application-D4913edS.mjs.map +0 -1
- package/dist/application-DBHaxmJE.mjs +0 -1
- package/dist/crashreport-BfOkOFgc.mjs +0 -1
- package/dist/guards-DsX7dJCP.mjs +0 -2
- package/dist/logger-Cp5U2IDI.mjs +0 -9
- package/dist/logger-Cp5U2IDI.mjs.map +0 -1
- package/dist/register-ts-hook-YtsAGTMD.mjs.map +0 -1
- package/dist/service-DWMm-4Vm.mjs +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { StyleFn } from "../../shared/src/color.mjs";
|
|
2
2
|
//#region src/cli/shared/logger.d.ts
|
|
3
|
+
/** What selected JSON output: an explicit `--json`, the environment, or both. */
|
|
4
|
+
export type JsonModeSource = "flag" | "env" | "both";
|
|
3
5
|
/**
|
|
4
6
|
* Semantic style functions for inline text styling
|
|
5
7
|
*/
|
|
@@ -50,6 +52,13 @@ export interface OutOptions {
|
|
|
50
52
|
*/
|
|
51
53
|
export declare const logger: {
|
|
52
54
|
jsonMode: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Enable or disable JSON mode, recording what selected it so a suppressed
|
|
57
|
+
* prompt can name the right remedy.
|
|
58
|
+
* @param value - Whether JSON output is on
|
|
59
|
+
* @param source - What turned it on; omit when turning it off
|
|
60
|
+
*/
|
|
61
|
+
setJsonMode(value: boolean, source?: JsonModeSource): void;
|
|
53
62
|
verbose: boolean;
|
|
54
63
|
info(message: string, opts?: LogOptions): void;
|
|
55
64
|
success(message: string, opts?: LogOptions): void;
|
|
@@ -23,7 +23,7 @@ export interface LoadTailorDBNamespacesOptions {
|
|
|
23
23
|
export interface LoadedTailorDBNamespaces {
|
|
24
24
|
/** The loaded Tailor config. */
|
|
25
25
|
config: LoadedConfig;
|
|
26
|
-
/** Plugins
|
|
26
|
+
/** Plugins from the config module's named `plugins` export (typically `definePlugins()`). */
|
|
27
27
|
plugins: Plugin[];
|
|
28
28
|
/** Loaded TailorDB namespace data, in config order. */
|
|
29
29
|
namespaces: TailorDBNamespaceData[];
|
|
@@ -13,6 +13,8 @@ export declare function defineConfig<const Config extends AppConfig & Record<Exc
|
|
|
13
13
|
* Define plugins to be used with the Tailor SDK.
|
|
14
14
|
* Plugins can generate additional tables, resolvers, and executors
|
|
15
15
|
* based on existing TailorDB tables.
|
|
16
|
+
* The result must be assigned to a named export called `plugins` in `tailor.config.ts`;
|
|
17
|
+
* any other export name is not read.
|
|
16
18
|
* @param configs - Plugin configurations
|
|
17
19
|
* @returns Plugin configurations as given
|
|
18
20
|
*/
|