@tailor-platform/sdk 1.67.1 → 1.68.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 +23 -1
- package/dist/application-WpWwTyk9.mjs.map +1 -1
- package/dist/cli/index.mjs +135 -23
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +63 -4
- package/dist/cli/lib.mjs +2 -2
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/completion/zsh-worker.zsh +105 -26
- package/dist/{runtime-BU6KtCvk.mjs → runtime-DxaBq6U8.mjs} +720 -193
- package/dist/runtime-DxaBq6U8.mjs.map +1 -0
- package/docs/cli/executor.md +53 -0
- package/docs/cli/setup.md +35 -33
- package/docs/cli/workflow.md +157 -20
- package/docs/cli-reference.md +4 -3
- package/docs/github-actions.md +27 -14
- package/package.json +1 -1
- package/dist/runtime-BU6KtCvk.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# politty-completion-version: 1
|
|
2
|
-
# politty-bin-sig:
|
|
2
|
+
# politty-bin-sig: 1782178216
|
|
3
3
|
# politty-bin-path: /home/runner/work/sdk/sdk/node_modules/.bin/tailor-sdk
|
|
4
4
|
# program: tailor-sdk
|
|
5
5
|
# shell: zsh
|
|
@@ -550,10 +550,12 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
550
550
|
executor:trigger:--data|executor:trigger:-d|executor:trigger:--d) return 0 ;;
|
|
551
551
|
executor:trigger:--header|executor:trigger:-H|executor:trigger:--H) return 0 ;;
|
|
552
552
|
executor:trigger:--interval|executor:trigger:-i|executor:trigger:--i) return 0 ;;
|
|
553
|
+
executor:trigger:--timeout|executor:trigger:-t|executor:trigger:--t) return 0 ;;
|
|
553
554
|
executor:jobs:--workspace-id|executor:jobs:--workspaceId|executor:jobs:-w|executor:jobs:--w) return 0 ;;
|
|
554
555
|
executor:jobs:--profile|executor:jobs:-p|executor:jobs:--p) return 0 ;;
|
|
555
556
|
executor:jobs:--status|executor:jobs:-s|executor:jobs:--s) return 0 ;;
|
|
556
557
|
executor:jobs:--interval|executor:jobs:-i|executor:jobs:--i) return 0 ;;
|
|
558
|
+
executor:jobs:--timeout|executor:jobs:-t|executor:jobs:--t) return 0 ;;
|
|
557
559
|
executor:jobs:--order) return 0 ;;
|
|
558
560
|
executor:jobs:--limit) return 0 ;;
|
|
559
561
|
executor:list:--workspace-id|executor:list:--workspaceId|executor:list:-w|executor:list:--w) return 0 ;;
|
|
@@ -674,11 +676,12 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
674
676
|
secret:delete:--profile|secret:delete:-p|secret:delete:--p) return 0 ;;
|
|
675
677
|
secret:delete:--vault-name|secret:delete:--vaultName|secret:delete:-V|secret:delete:--V) return 0 ;;
|
|
676
678
|
secret:delete:--name|secret:delete:-n|secret:delete:--n) return 0 ;;
|
|
677
|
-
setup
|
|
678
|
-
setup
|
|
679
|
-
setup
|
|
680
|
-
setup
|
|
681
|
-
setup
|
|
679
|
+
setup:--provider|setup:-p|setup:--p) return 0 ;;
|
|
680
|
+
setup:--workspace-name|setup:--workspaceName|setup:-n|setup:--n) return 0 ;;
|
|
681
|
+
setup:--branch) return 0 ;;
|
|
682
|
+
setup:--tag-pattern|setup:--tagPattern) return 0 ;;
|
|
683
|
+
setup:--environment) return 0 ;;
|
|
684
|
+
setup:--dir|setup:-d|setup:--d) return 0 ;;
|
|
682
685
|
show:--workspace-id|show:--workspaceId|show:-w|show:--w) return 0 ;;
|
|
683
686
|
show:--profile|show:-p|show:--p) return 0 ;;
|
|
684
687
|
show:--config|show:-c|show:--c) return 0 ;;
|
|
@@ -743,6 +746,13 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
743
746
|
workflow:start:--machine-user|workflow:start:--machineUser|workflow:start:-m|workflow:start:--m) return 0 ;;
|
|
744
747
|
workflow:start:--arg|workflow:start:-a|workflow:start:--a) return 0 ;;
|
|
745
748
|
workflow:start:--interval|workflow:start:-i|workflow:start:--i) return 0 ;;
|
|
749
|
+
workflow:start:--timeout|workflow:start:-t|workflow:start:--t) return 0 ;;
|
|
750
|
+
workflow:start:--until|workflow:start:-u|workflow:start:--u) return 0 ;;
|
|
751
|
+
workflow:wait:--workspace-id|workflow:wait:--workspaceId|workflow:wait:-w|workflow:wait:--w) return 0 ;;
|
|
752
|
+
workflow:wait:--profile|workflow:wait:-p|workflow:wait:--p) return 0 ;;
|
|
753
|
+
workflow:wait:--interval|workflow:wait:-i|workflow:wait:--i) return 0 ;;
|
|
754
|
+
workflow:wait:--timeout|workflow:wait:-t|workflow:wait:--t) return 0 ;;
|
|
755
|
+
workflow:wait:--until|workflow:wait:-u|workflow:wait:--u) return 0 ;;
|
|
746
756
|
workflow:executions:--workspace-id|workflow:executions:--workspaceId|workflow:executions:-w|workflow:executions:--w) return 0 ;;
|
|
747
757
|
workflow:executions:--profile|workflow:executions:-p|workflow:executions:--p) return 0 ;;
|
|
748
758
|
workflow:executions:--order) return 0 ;;
|
|
@@ -750,9 +760,13 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
750
760
|
workflow:executions:--workflow-name|workflow:executions:--workflowName|workflow:executions:-n|workflow:executions:--n) return 0 ;;
|
|
751
761
|
workflow:executions:--status|workflow:executions:-s|workflow:executions:--s) return 0 ;;
|
|
752
762
|
workflow:executions:--interval|workflow:executions:-i|workflow:executions:--i) return 0 ;;
|
|
763
|
+
workflow:executions:--timeout|workflow:executions:-t|workflow:executions:--t) return 0 ;;
|
|
764
|
+
workflow:executions:--until|workflow:executions:-u|workflow:executions:--u) return 0 ;;
|
|
753
765
|
workflow:resume:--workspace-id|workflow:resume:--workspaceId|workflow:resume:-w|workflow:resume:--w) return 0 ;;
|
|
754
766
|
workflow:resume:--profile|workflow:resume:-p|workflow:resume:--p) return 0 ;;
|
|
755
767
|
workflow:resume:--interval|workflow:resume:-i|workflow:resume:--i) return 0 ;;
|
|
768
|
+
workflow:resume:--timeout|workflow:resume:-t|workflow:resume:--t) return 0 ;;
|
|
769
|
+
workflow:resume:--until|workflow:resume:-u|workflow:resume:--u) return 0 ;;
|
|
756
770
|
workspace:app:health:--workspace-id|workspace:app:health:--workspaceId|workspace:app:health:-w|workspace:app:health:--w) return 0 ;;
|
|
757
771
|
workspace:app:health:--profile|workspace:app:health:-p|workspace:app:health:--p) return 0 ;;
|
|
758
772
|
workspace:app:health:--name|workspace:app:health:-n|workspace:app:health:--n) return 0 ;;
|
|
@@ -883,7 +897,7 @@ __tailor_sdk_worker_is_subcmd() {
|
|
|
883
897
|
secret:list) return 0 ;;
|
|
884
898
|
secret:delete) return 0 ;;
|
|
885
899
|
:secret) return 0 ;;
|
|
886
|
-
setup:
|
|
900
|
+
setup:check) return 0 ;;
|
|
887
901
|
:setup) return 0 ;;
|
|
888
902
|
:show) return 0 ;;
|
|
889
903
|
skills:install) return 0 ;;
|
|
@@ -920,6 +934,7 @@ __tailor_sdk_worker_is_subcmd() {
|
|
|
920
934
|
workflow:list) return 0 ;;
|
|
921
935
|
workflow:get) return 0 ;;
|
|
922
936
|
workflow:start) return 0 ;;
|
|
937
|
+
workflow:wait) return 0 ;;
|
|
923
938
|
workflow:executions) return 0 ;;
|
|
924
939
|
workflow:resume) return 0 ;;
|
|
925
940
|
:workflow) return 0 ;;
|
|
@@ -1328,6 +1343,7 @@ __tailor_sdk_worker_complete_executor_trigger() {
|
|
|
1328
1343
|
_opts+=("--header:Request header (format\: 'Key\: Value', can be specified multiple times)")
|
|
1329
1344
|
__tailor_sdk_worker_not_used "--wait" "-W" "--W" && _opts+=("--wait:Wait for job completion and downstream execution (workflow/function) if applicable")
|
|
1330
1345
|
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when using --wait (e.g., '3s', '500ms', '1m')")
|
|
1346
|
+
__tailor_sdk_worker_not_used "--timeout" "-t" "--t" && _opts+=("--timeout:Maximum time to wait when using --wait (e.g., '30s', '5m')")
|
|
1331
1347
|
__tailor_sdk_worker_not_used "--logs" "-l" "--l" && _opts+=("--logs:Display function execution logs after completion (requires --wait)")
|
|
1332
1348
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
1333
1349
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
@@ -1365,6 +1381,7 @@ __tailor_sdk_worker_complete_executor_jobs() {
|
|
|
1365
1381
|
__tailor_sdk_worker_not_used "--attempts" && _opts+=("--attempts:Show job attempts (only with job ID) (detail mode only)")
|
|
1366
1382
|
__tailor_sdk_worker_not_used "--wait" "-W" "--W" && _opts+=("--wait:Wait for job completion and downstream execution (workflow/function) if applicable (detail mode only)")
|
|
1367
1383
|
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when using --wait (e.g., '3s', '500ms', '1m')")
|
|
1384
|
+
__tailor_sdk_worker_not_used "--timeout" "-t" "--t" && _opts+=("--timeout:Maximum time to wait when using --wait (e.g., '30s', '5m')")
|
|
1368
1385
|
__tailor_sdk_worker_not_used "--order" && _opts+=("--order:Sort order (asc or desc)")
|
|
1369
1386
|
__tailor_sdk_worker_not_used "--limit" && _opts+=("--limit:Maximum number of jobs to list (0\: unlimited, default\: 50) (list mode only)")
|
|
1370
1387
|
__tailor_sdk_worker_not_used "--logs" "-l" "--l" && _opts+=("--logs:Display function execution logs after completion (requires --wait)")
|
|
@@ -2483,20 +2500,12 @@ __tailor_sdk_worker_complete_secret() {
|
|
|
2483
2500
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
2484
2501
|
}
|
|
2485
2502
|
|
|
2486
|
-
|
|
2503
|
+
__tailor_sdk_worker_complete_setup_check() {
|
|
2487
2504
|
local -a _vals=()
|
|
2488
|
-
if __tailor_sdk_worker_opt_takes_value "setup:
|
|
2505
|
+
if __tailor_sdk_worker_opt_takes_value "setup:check" "${words[CURRENT-1]}"; then return 0; fi
|
|
2489
2506
|
if (( _after_dd )); then return 0; fi
|
|
2490
2507
|
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2491
2508
|
local -a _opts=()
|
|
2492
|
-
__tailor_sdk_worker_not_used "--workspace-name" "--workspaceName" "-n" "--n" && _opts+=("--workspace-name:Workspace name (defaults to the config 'name')")
|
|
2493
|
-
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Branch target\: deploy trigger branch (defaults to the detected default branch). Tag target\: tag-reachability guard branch (no guard when omitted)")
|
|
2494
|
-
__tailor_sdk_worker_not_used "--tag" && _opts+=("--tag:Generate a tag target (deploy on tag push)")
|
|
2495
|
-
__tailor_sdk_worker_not_used "--tag-pattern" "--tagPattern" && _opts+=("--tag-pattern:Tag glob to match (requires --tag; defaults to v*)")
|
|
2496
|
-
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2497
|
-
__tailor_sdk_worker_not_used "--no-plan" "--noPlan" && _opts+=("--no-plan:Disable the plan job for a branch target (cannot be combined with --tag)")
|
|
2498
|
-
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2499
|
-
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2500
2509
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2501
2510
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2502
2511
|
return 0
|
|
@@ -2505,15 +2514,30 @@ __tailor_sdk_worker_complete_setup_github() {
|
|
|
2505
2514
|
|
|
2506
2515
|
__tailor_sdk_worker_complete_setup() {
|
|
2507
2516
|
local -a _vals=()
|
|
2517
|
+
case "${words[CURRENT-1]}" in
|
|
2518
|
+
--provider|-p|--p)
|
|
2519
|
+
_vals=("github")
|
|
2520
|
+
__tailor_sdk_worker_cdescribe 'completions' _vals
|
|
2521
|
+
return 0 ;;
|
|
2522
|
+
esac
|
|
2508
2523
|
if __tailor_sdk_worker_opt_takes_value "setup" "${words[CURRENT-1]}"; then return 0; fi
|
|
2509
2524
|
if (( _after_dd )); then return 0; fi
|
|
2510
2525
|
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2511
2526
|
local -a _opts=()
|
|
2527
|
+
__tailor_sdk_worker_not_used "--provider" "-p" "--p" && _opts+=("--provider:CI provider to generate for (only 'github' is supported)")
|
|
2528
|
+
__tailor_sdk_worker_not_used "--workspace-name" "--workspaceName" "-n" "--n" && _opts+=("--workspace-name:Workspace name (defaults to the config 'name')")
|
|
2529
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Branch target\: deploy trigger branch (defaults to the detected default branch). Tag target\: tag-reachability guard branch (no guard when omitted)")
|
|
2530
|
+
__tailor_sdk_worker_not_used "--tag" && _opts+=("--tag:Generate a tag target (deploy on tag push)")
|
|
2531
|
+
__tailor_sdk_worker_not_used "--tag-pattern" "--tagPattern" && _opts+=("--tag-pattern:Tag glob to match (requires --tag; defaults to v*)")
|
|
2532
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2533
|
+
__tailor_sdk_worker_not_used "--no-plan" "--noPlan" && _opts+=("--no-plan:Disable the plan job for a branch target (cannot be combined with --tag)")
|
|
2534
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2535
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2512
2536
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2513
2537
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2514
2538
|
return 0
|
|
2515
2539
|
fi
|
|
2516
|
-
local -a _subs=("
|
|
2540
|
+
local -a _subs=("check:Audit generated workflows for drift against the current config/repo (read-only).")
|
|
2517
2541
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
2518
2542
|
}
|
|
2519
2543
|
|
|
@@ -3470,6 +3494,10 @@ __tailor_sdk_worker_complete_workflow_start() {
|
|
|
3470
3494
|
done
|
|
3471
3495
|
done
|
|
3472
3496
|
return 0 ;;
|
|
3497
|
+
--until|-u|--u)
|
|
3498
|
+
_vals=("success" "suspended" "terminal")
|
|
3499
|
+
__tailor_sdk_worker_cdescribe 'completions' _vals
|
|
3500
|
+
return 0 ;;
|
|
3473
3501
|
esac
|
|
3474
3502
|
if __tailor_sdk_worker_opt_takes_value "workflow:start" "${words[CURRENT-1]}"; then return 0; fi
|
|
3475
3503
|
if (( _after_dd )); then
|
|
@@ -3487,8 +3515,44 @@ __tailor_sdk_worker_complete_workflow_start() {
|
|
|
3487
3515
|
__tailor_sdk_worker_not_used "--machine-user" "--machineUser" "-m" "--m" && _opts+=("--machine-user:Machine user name. Falls back to the active profile's default machine user.")
|
|
3488
3516
|
__tailor_sdk_worker_not_used "--arg" "-a" "--a" && _opts+=("--arg:Workflow argument (JSON string)")
|
|
3489
3517
|
__tailor_sdk_worker_not_used "--wait" "-W" "--W" && _opts+=("--wait:Wait for execution to complete")
|
|
3490
|
-
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when
|
|
3491
|
-
__tailor_sdk_worker_not_used "--
|
|
3518
|
+
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when waiting (e.g., '3s', '500ms', '1m')")
|
|
3519
|
+
__tailor_sdk_worker_not_used "--timeout" "-t" "--t" && _opts+=("--timeout:Maximum time to wait (e.g., '30s', '10m')")
|
|
3520
|
+
__tailor_sdk_worker_not_used "--until" "-u" "--u" && _opts+=("--until:Wait target (success, suspended, terminal)")
|
|
3521
|
+
__tailor_sdk_worker_not_used "--logs" "-l" "--l" && _opts+=("--logs:Display job execution logs after completion")
|
|
3522
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
3523
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
3524
|
+
return 0
|
|
3525
|
+
fi
|
|
3526
|
+
case "$_pos_count" in
|
|
3527
|
+
0)
|
|
3528
|
+
;;
|
|
3529
|
+
esac
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
__tailor_sdk_worker_complete_workflow_wait() {
|
|
3533
|
+
local -a _vals=()
|
|
3534
|
+
case "${words[CURRENT-1]}" in
|
|
3535
|
+
--until|-u|--u)
|
|
3536
|
+
_vals=("success" "suspended" "terminal")
|
|
3537
|
+
__tailor_sdk_worker_cdescribe 'completions' _vals
|
|
3538
|
+
return 0 ;;
|
|
3539
|
+
esac
|
|
3540
|
+
if __tailor_sdk_worker_opt_takes_value "workflow:wait" "${words[CURRENT-1]}"; then return 0; fi
|
|
3541
|
+
if (( _after_dd )); then
|
|
3542
|
+
case "$_pos_count" in
|
|
3543
|
+
0)
|
|
3544
|
+
;;
|
|
3545
|
+
esac
|
|
3546
|
+
return 0
|
|
3547
|
+
fi
|
|
3548
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
3549
|
+
local -a _opts=()
|
|
3550
|
+
__tailor_sdk_worker_not_used "--workspace-id" "--workspaceId" "-w" "--w" && _opts+=("--workspace-id:Workspace ID")
|
|
3551
|
+
__tailor_sdk_worker_not_used "--profile" "-p" "--p" && _opts+=("--profile:Workspace profile")
|
|
3552
|
+
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when waiting (e.g., '3s', '500ms', '1m')")
|
|
3553
|
+
__tailor_sdk_worker_not_used "--timeout" "-t" "--t" && _opts+=("--timeout:Maximum time to wait (e.g., '30s', '10m')")
|
|
3554
|
+
__tailor_sdk_worker_not_used "--until" "-u" "--u" && _opts+=("--until:Wait target (success, suspended, terminal)")
|
|
3555
|
+
__tailor_sdk_worker_not_used "--logs" "-l" "--l" && _opts+=("--logs:Display job execution logs after completion")
|
|
3492
3556
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
3493
3557
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
3494
3558
|
return 0
|
|
@@ -3506,6 +3570,10 @@ __tailor_sdk_worker_complete_workflow_executions() {
|
|
|
3506
3570
|
_vals=("asc" "desc")
|
|
3507
3571
|
__tailor_sdk_worker_cdescribe 'completions' _vals
|
|
3508
3572
|
return 0 ;;
|
|
3573
|
+
--until|-u|--u)
|
|
3574
|
+
_vals=("success" "suspended" "terminal")
|
|
3575
|
+
__tailor_sdk_worker_cdescribe 'completions' _vals
|
|
3576
|
+
return 0 ;;
|
|
3509
3577
|
esac
|
|
3510
3578
|
if __tailor_sdk_worker_opt_takes_value "workflow:executions" "${words[CURRENT-1]}"; then return 0; fi
|
|
3511
3579
|
if (( _after_dd )); then
|
|
@@ -3524,7 +3592,9 @@ __tailor_sdk_worker_complete_workflow_executions() {
|
|
|
3524
3592
|
__tailor_sdk_worker_not_used "--workflow-name" "--workflowName" "-n" "--n" && _opts+=("--workflow-name:Filter by workflow name (list mode only)")
|
|
3525
3593
|
__tailor_sdk_worker_not_used "--status" "-s" "--s" && _opts+=("--status:Filter by status (list mode only)")
|
|
3526
3594
|
__tailor_sdk_worker_not_used "--wait" "-W" "--W" && _opts+=("--wait:Wait for execution to complete")
|
|
3527
|
-
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when
|
|
3595
|
+
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when waiting (e.g., '3s', '500ms', '1m')")
|
|
3596
|
+
__tailor_sdk_worker_not_used "--timeout" "-t" "--t" && _opts+=("--timeout:Maximum time to wait (e.g., '30s', '10m')")
|
|
3597
|
+
__tailor_sdk_worker_not_used "--until" "-u" "--u" && _opts+=("--until:Wait target (success, suspended, terminal)")
|
|
3528
3598
|
__tailor_sdk_worker_not_used "--logs" && _opts+=("--logs:Display job execution logs (detail mode only)")
|
|
3529
3599
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
3530
3600
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
@@ -3538,6 +3608,12 @@ __tailor_sdk_worker_complete_workflow_executions() {
|
|
|
3538
3608
|
|
|
3539
3609
|
__tailor_sdk_worker_complete_workflow_resume() {
|
|
3540
3610
|
local -a _vals=()
|
|
3611
|
+
case "${words[CURRENT-1]}" in
|
|
3612
|
+
--until|-u|--u)
|
|
3613
|
+
_vals=("success" "suspended" "terminal")
|
|
3614
|
+
__tailor_sdk_worker_cdescribe 'completions' _vals
|
|
3615
|
+
return 0 ;;
|
|
3616
|
+
esac
|
|
3541
3617
|
if __tailor_sdk_worker_opt_takes_value "workflow:resume" "${words[CURRENT-1]}"; then return 0; fi
|
|
3542
3618
|
if (( _after_dd )); then
|
|
3543
3619
|
case "$_pos_count" in
|
|
@@ -3551,8 +3627,10 @@ __tailor_sdk_worker_complete_workflow_resume() {
|
|
|
3551
3627
|
__tailor_sdk_worker_not_used "--workspace-id" "--workspaceId" "-w" "--w" && _opts+=("--workspace-id:Workspace ID")
|
|
3552
3628
|
__tailor_sdk_worker_not_used "--profile" "-p" "--p" && _opts+=("--profile:Workspace profile")
|
|
3553
3629
|
__tailor_sdk_worker_not_used "--wait" "-W" "--W" && _opts+=("--wait:Wait for execution to complete")
|
|
3554
|
-
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when
|
|
3555
|
-
__tailor_sdk_worker_not_used "--
|
|
3630
|
+
__tailor_sdk_worker_not_used "--interval" "-i" "--i" && _opts+=("--interval:Polling interval when waiting (e.g., '3s', '500ms', '1m')")
|
|
3631
|
+
__tailor_sdk_worker_not_used "--timeout" "-t" "--t" && _opts+=("--timeout:Maximum time to wait (e.g., '30s', '10m')")
|
|
3632
|
+
__tailor_sdk_worker_not_used "--until" "-u" "--u" && _opts+=("--until:Wait target (success, suspended, terminal)")
|
|
3633
|
+
__tailor_sdk_worker_not_used "--logs" "-l" "--l" && _opts+=("--logs:Display job execution logs after completion")
|
|
3556
3634
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
3557
3635
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
3558
3636
|
return 0
|
|
@@ -3573,7 +3651,7 @@ __tailor_sdk_worker_complete_workflow() {
|
|
|
3573
3651
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
3574
3652
|
return 0
|
|
3575
3653
|
fi
|
|
3576
|
-
local -a _subs=("list:List all workflows in the workspace." "get:Get workflow details." "start:Start a workflow execution." "executions:List or get workflow executions." "resume:Resume a failed or pending workflow execution.")
|
|
3654
|
+
local -a _subs=("list:List all workflows in the workspace." "get:Get workflow details." "start:Start a workflow execution." "wait:Wait for a workflow execution." "executions:List or get workflow executions." "resume:Resume a failed or pending workflow execution.")
|
|
3577
3655
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
3578
3656
|
}
|
|
3579
3657
|
|
|
@@ -3867,7 +3945,7 @@ __tailor_sdk_worker_complete_root() {
|
|
|
3867
3945
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
3868
3946
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
3869
3947
|
else
|
|
3870
|
-
local -a _subs=("api:Call Tailor Platform API endpoints directly." "authconnection:Manage auth connections." "crashreport:Manage crash reports." "crash-report:Manage crash reports." "deploy:Deploy your application by applying the Tailor configuration." "apply:Deploy your application by applying the Tailor configuration." "executor:Manage executors" "function:Manage functions" "generate:Generate files using Tailor configuration." "init:Initialize a new project using create-sdk." "login:Login to Tailor Platform." "logout:Logout from Tailor Platform." "machineuser:Manage machine users in your Tailor Platform application." "oauth2client:Manage OAuth2 clients in your Tailor Platform application." "open:Open Tailor Platform Console." "organization:Manage Tailor Platform organizations." "profile:Manage workspace profiles (user + workspace combinations)." "query:Run SQL/GraphQL query." "remove:Remove all resources managed by the application from the workspace." "secret:Manage Secret Manager vaults and secrets." "setup:
|
|
3948
|
+
local -a _subs=("api:Call Tailor Platform API endpoints directly." "authconnection:Manage auth connections." "crashreport:Manage crash reports." "crash-report:Manage crash reports." "deploy:Deploy your application by applying the Tailor configuration." "apply:Deploy your application by applying the Tailor configuration." "executor:Manage executors" "function:Manage functions" "generate:Generate files using Tailor configuration." "init:Initialize a new project using create-sdk." "login:Login to Tailor Platform." "logout:Logout from Tailor Platform." "machineuser:Manage machine users in your Tailor Platform application." "oauth2client:Manage OAuth2 clients in your Tailor Platform application." "open:Open Tailor Platform Console." "organization:Manage Tailor Platform organizations." "profile:Manage workspace profiles (user + workspace combinations)." "query:Run SQL/GraphQL query." "remove:Remove all resources managed by the application from the workspace." "secret:Manage Secret Manager vaults and secrets." "setup:Generate a CI deploy workflow for your project. (beta)" "show:Show information about the deployed application." "skills:Manage Tailor SDK agent skills." "staticwebsite:Manage static websites in your workspace." "tailordb:Manage TailorDB tables and data." "upgrade:Run codemods to upgrade your project to a newer SDK version." "user:Manage Tailor Platform users." "workflow:Manage workflows and workflow executions." "workspace:Manage Tailor Platform workspaces." "completion:Generate shell completion script")
|
|
3871
3949
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
3872
3950
|
fi
|
|
3873
3951
|
}
|
|
@@ -3981,7 +4059,7 @@ _tailor_sdk_worker_completions() {
|
|
|
3981
4059
|
secret:list) __tailor_sdk_worker_complete_secret_list ;;
|
|
3982
4060
|
secret:delete) __tailor_sdk_worker_complete_secret_delete ;;
|
|
3983
4061
|
secret) __tailor_sdk_worker_complete_secret ;;
|
|
3984
|
-
setup:
|
|
4062
|
+
setup:check) __tailor_sdk_worker_complete_setup_check ;;
|
|
3985
4063
|
setup) __tailor_sdk_worker_complete_setup ;;
|
|
3986
4064
|
show) __tailor_sdk_worker_complete_show ;;
|
|
3987
4065
|
skills:install) __tailor_sdk_worker_complete_skills_install ;;
|
|
@@ -4018,6 +4096,7 @@ _tailor_sdk_worker_completions() {
|
|
|
4018
4096
|
workflow:list) __tailor_sdk_worker_complete_workflow_list ;;
|
|
4019
4097
|
workflow:get) __tailor_sdk_worker_complete_workflow_get ;;
|
|
4020
4098
|
workflow:start) __tailor_sdk_worker_complete_workflow_start ;;
|
|
4099
|
+
workflow:wait) __tailor_sdk_worker_complete_workflow_wait ;;
|
|
4021
4100
|
workflow:executions) __tailor_sdk_worker_complete_workflow_executions ;;
|
|
4022
4101
|
workflow:resume) __tailor_sdk_worker_complete_workflow_resume ;;
|
|
4023
4102
|
workflow) __tailor_sdk_worker_complete_workflow ;;
|