@tailor-platform/sdk 2.22.0 → 2.23.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 +18 -0
- package/dist/aigateway-DsWDjzk4.mjs.map +1 -1
- package/dist/application-BtZ8hmx9.mjs +1 -0
- package/dist/{application-BzO9ywXQ.mjs → application-m2G91kKI.mjs} +2 -2
- package/dist/application-m2G91kKI.mjs.map +1 -0
- package/dist/assert-WeXvmG4j.mjs.map +1 -1
- package/dist/authconnection-CynFBIv8.mjs.map +1 -1
- package/dist/brand-C8nMKhJC.mjs.map +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.mjs +33 -33
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/shared/client.d.mts +17 -2
- package/dist/completion/zsh-worker.zsh +13 -7
- package/dist/configure/index.mjs.map +1 -1
- package/dist/context-D0QjfxzD.mjs.map +1 -1
- package/dist/crashreport-DFpRn-LS.mjs.map +1 -1
- package/dist/date-Dri6Yas-.mjs.map +1 -1
- package/dist/errors-CpvSChyL.mjs +7 -0
- package/dist/errors-CpvSChyL.mjs.map +1 -0
- package/dist/es-builtins-SfvXRVoG.mjs.map +1 -1
- package/dist/field-parse-DhnFs9WG.mjs.map +1 -1
- package/dist/file-DKBOj5q4.mjs.map +1 -1
- package/dist/globals-BCmGX05J.mjs.map +1 -1
- package/dist/guards-yDXyKC9F.mjs.map +1 -1
- package/dist/iconv-DlFMt2gW.mjs.map +1 -1
- package/dist/idp-G_ojPBB5.mjs.map +1 -1
- package/dist/interceptor-DQg3cR_9.mjs.map +1 -1
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/kysely-type-C-iyFFH7.mjs.map +1 -1
- package/dist/logger-DP2BjQ93.mjs.map +1 -1
- package/dist/logger-Db-YRTwK.mjs.map +1 -1
- package/dist/manager-8-JOvuLl.mjs.map +1 -1
- package/dist/multiline-EyzjEwn9.mjs.map +1 -1
- package/dist/node-builtins-DYfhPBnz.mjs.map +1 -1
- package/dist/package-json-C690ceex.mjs.map +1 -1
- package/dist/platform-serialize-DkiTdHOt.mjs.map +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs.map +1 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{register-ts-hook-z7ggXQy4.mjs → register-ts-hook-ztnEFW6n.mjs} +49 -49
- package/dist/register-ts-hook-ztnEFW6n.mjs.map +1 -0
- package/dist/registry-BijIDRVA.mjs.map +1 -1
- package/dist/repl-editor-DGJBfIt1.mjs.map +1 -1
- package/dist/schema-CRtAmDcl.mjs.map +1 -1
- package/dist/secret-file-C9wp_FCX.mjs.map +1 -1
- package/dist/secretmanager-5olfnI1b.mjs.map +1 -1
- package/dist/secretmanager-vHQoXdQz.mjs.map +1 -1
- package/dist/seed/index.mjs.map +1 -1
- package/dist/seed-C3P_T_Eh.mjs.map +1 -1
- package/dist/service-CL1Bp4It.mjs.map +1 -1
- package/dist/{service-DHVuH7-X.mjs → service-DFmt9UJP.mjs} +2 -2
- package/dist/service-DFmt9UJP.mjs.map +1 -0
- package/dist/service_pb-ZClWtj1X.mjs +2 -0
- package/dist/service_pb-ZClWtj1X.mjs.map +1 -0
- package/dist/service_pb-dB3RrGeh.mjs +1 -0
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +83 -1
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +7 -1
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +79 -7
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +40 -1
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +119 -2
- package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +7 -0
- package/dist/tailordb-ddl-DqInYupv.mjs.map +1 -1
- package/dist/telemetry-Bklv9kQY.mjs.map +1 -1
- package/dist/type-source--ZNcV8RJ.mjs.map +1 -1
- package/dist/user-agent-vdHYF3QL.mjs.map +1 -1
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/vitest/environment.mjs.map +1 -1
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/setup.mjs.map +1 -1
- package/dist/wait-point-invoker-eiP-IIux.mjs.map +1 -1
- package/dist/wait-point-registry-B-ESkTZX.mjs.map +1 -1
- package/dist/workflow-Cs9ISw6j.mjs.map +1 -1
- package/dist/{workspace_resource_pb-D2njwgsE.mjs → workspace_resource_pb-CxR_6fyN.mjs} +2 -2
- package/dist/workspace_resource_pb-CxR_6fyN.mjs.map +1 -0
- package/docs/cli/application.md +23 -5
- package/docs/cli/function.md +2 -2
- package/package.json +3 -3
- package/dist/application-BE4vehXW.mjs +0 -1
- package/dist/application-BzO9ywXQ.mjs.map +0 -1
- package/dist/errors-C9zGf4nz.mjs +0 -7
- package/dist/errors-C9zGf4nz.mjs.map +0 -1
- package/dist/register-ts-hook-z7ggXQy4.mjs.map +0 -1
- package/dist/service-DHVuH7-X.mjs.map +0 -1
- package/dist/service_pb-DNskuJQC.mjs +0 -1
- package/dist/service_pb-y2GYIgfs.mjs +0 -2
- package/dist/service_pb-y2GYIgfs.mjs.map +0 -1
- package/dist/workspace_resource_pb-D2njwgsE.mjs.map +0 -1
package/docs/cli/application.md
CHANGED
|
@@ -167,12 +167,20 @@ Before applying changes, `deploy` shows a preview of the planned resource change
|
|
|
167
167
|
- `-` means the resource will be deleted
|
|
168
168
|
- `±` means the resource will be replaced
|
|
169
169
|
|
|
170
|
+
An update marked `[forced by SDK version]` shows no configuration difference from what is deployed. It is applied again only because resources of this application were last deployed with a different SDK version.
|
|
171
|
+
|
|
170
172
|
After the detailed list, a summary line is printed:
|
|
171
173
|
|
|
172
174
|
```text
|
|
173
175
|
Plan: 5 to create, 3 to update, 1 to delete
|
|
174
176
|
```
|
|
175
177
|
|
|
178
|
+
When some updates are forced by the SDK version, the summary line also shows how many:
|
|
179
|
+
|
|
180
|
+
```text
|
|
181
|
+
Plan: 0 to create, 12 to update (11 forced by SDK version), 0 to delete
|
|
182
|
+
```
|
|
183
|
+
|
|
176
184
|
Use `--dry-run` to preview the plan without applying anything. In dry-run mode the plan is written to **stdout**, so it can be captured in CI without `2>&1`:
|
|
177
185
|
|
|
178
186
|
```bash
|
|
@@ -189,9 +197,16 @@ Pass the global `--json` / `-j` flag to get machine-readable output.
|
|
|
189
197
|
|
|
190
198
|
```json
|
|
191
199
|
{
|
|
192
|
-
"summary": { "create": 2, "update":
|
|
200
|
+
"summary": { "create": 2, "update": 2, "delete": 0, "replace": 0, "forcedBySdkVersion": 1 },
|
|
193
201
|
"changes": [
|
|
194
|
-
{ "action": "create", "name": "Order", "labels": ["table"], "namespace": "tailordb" }
|
|
202
|
+
{ "action": "create", "name": "Order", "labels": ["table"], "namespace": "tailordb" },
|
|
203
|
+
{
|
|
204
|
+
"action": "update",
|
|
205
|
+
"name": "Customer",
|
|
206
|
+
"labels": ["table"],
|
|
207
|
+
"namespace": "tailordb",
|
|
208
|
+
"forcedBySdkVersion": true
|
|
209
|
+
}
|
|
195
210
|
],
|
|
196
211
|
"warnings": [
|
|
197
212
|
{ "type": "unmanaged", "resourceType": "tailorDB", "name": "LegacyType" },
|
|
@@ -201,15 +216,18 @@ Pass the global `--json` / `-j` flag to get machine-readable output.
|
|
|
201
216
|
}
|
|
202
217
|
```
|
|
203
218
|
|
|
204
|
-
- `summary` — counts of each change type.
|
|
205
|
-
- `changes` — planned resource changes, each with `action`, `name`, and optional `labels` / `namespace`.
|
|
219
|
+
- `summary` — counts of each change type. `forcedBySdkVersion` counts the updates forced by the SDK version, which are also included in `update`.
|
|
220
|
+
- `changes` — planned resource changes, each with `action`, `name`, and optional `labels` / `namespace`. An update forced by the SDK version also has `forcedBySdkVersion: true`.
|
|
206
221
|
- `warnings` — resources not in config (`type: "unmanaged"`) or secrets with missing values (`type: "skippedSecret"`). Unmanaged resources require confirmation in apply mode (apply is cancelled if declined); skipped secrets are non-blocking.
|
|
207
222
|
- `conflicts` — resources owned by another application that conflict with the current config. Require confirmation in apply mode; apply is cancelled if declined.
|
|
208
223
|
|
|
209
224
|
**Apply** (`--json`): writes a JSON object to stdout:
|
|
210
225
|
|
|
211
226
|
```json
|
|
212
|
-
{
|
|
227
|
+
{
|
|
228
|
+
"summary": { "create": 1, "update": 2, "delete": 0, "replace": 0, "forcedBySdkVersion": 0 },
|
|
229
|
+
"status": "applied"
|
|
230
|
+
}
|
|
213
231
|
```
|
|
214
232
|
|
|
215
233
|
## remove
|
package/docs/cli/function.md
CHANGED
|
@@ -129,9 +129,9 @@ $ tailor function logs <execution-id> --follow
|
|
|
129
129
|
|
|
130
130
|
**Notes**
|
|
131
131
|
|
|
132
|
-
Execution details include `logEntries`, the structured log lines (message, severity, timestamp) recorded while the function ran. They are available while the execution is still running
|
|
132
|
+
Execution details include `logEntries`, the structured log lines (message, severity, timestamp) recorded while the function ran. They are available while the execution is still running. The `logs` string joins their messages with newlines.
|
|
133
133
|
|
|
134
|
-
Use `--follow` to keep polling a running execution and print new log entries as they arrive until it completes. Polling continues while the execution is suspended at a wait point, and indefinitely unless `--timeout` is set.
|
|
134
|
+
Use `--follow` to keep polling a running execution and print new log entries as they arrive until it completes. Polling continues while the execution is suspended at a wait point, and indefinitely unless `--timeout` is set. With `--json`, `--follow` waits for completion and then emits the final execution details once.
|
|
135
135
|
|
|
136
136
|
When viewing a specific execution that failed, the command displays error details with the stack trace mapped back to your original source files (clickable file links and code snippets, matching `function run` output).
|
|
137
137
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"pathe": "2.0.3",
|
|
192
192
|
"pgsql-ast-parser": "12.0.2",
|
|
193
193
|
"pkg-types": "2.3.3",
|
|
194
|
-
"rolldown": "1.2.
|
|
194
|
+
"rolldown": "1.2.11",
|
|
195
195
|
"semver": "7.8.5",
|
|
196
196
|
"sql-highlight": "6.1.0",
|
|
197
197
|
"std-env": "4.2.0",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"eslint-plugin-zod": "4.14.2",
|
|
216
216
|
"oxfmt": "0.70.0",
|
|
217
217
|
"oxlint": "1.85.0",
|
|
218
|
-
"oxlint-tsgolint": "7.0.
|
|
218
|
+
"oxlint-tsgolint": "7.0.2003",
|
|
219
219
|
"sonda": "0.14.0",
|
|
220
220
|
"tsdown": "0.23.0",
|
|
221
221
|
"typescript": "6.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./application-BzO9ywXQ.mjs";export{t as defineApplication,e as generatePluginFilesIfNeeded};
|