@solidactions/cli 3.3.0 → 3.4.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/README.md +30 -6
- package/dist/command-manifest.json +446 -1
- package/dist/commands/deploy.js +13 -0
- package/dist/commands/login.js +4 -57
- package/dist/commands/project-list.js +27 -6
- package/dist/commands/project-view.js +3 -0
- package/dist/commands/schedule-delete.js +12 -2
- package/dist/commands/schedule-list.js +29 -5
- package/dist/commands/schedule-set.js +18 -2
- package/dist/commands/schedule-state.js +71 -0
- package/dist/commands/state.js +139 -0
- package/dist/index.js +74 -2
- package/dist/utils/api.js +6 -15
- package/dist/utils/source-provenance.js +3 -0
- package/dist/utils/webhook-formatters.js +36 -4
- package/dist/utils/workspace-lookup.js +56 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -169,11 +169,15 @@ Use `solidactions <command> --help` for full flag details on any command.
|
|
|
169
169
|
| Command | Key Flags | Description |
|
|
170
170
|
|---------|-----------|-------------|
|
|
171
171
|
| `project create <name>` | `-e` | Create an empty project (no source/build); `-e` defaults to `production` |
|
|
172
|
-
| `project deploy <name> [path]` | `-e`, `--create`, `--config-only`, `--no-git-metadata` | Deploy or sync config only |
|
|
172
|
+
| `project deploy <name> [path]` | `-e`, `--create`, `--config-only`, `--paused`, `--no-git-metadata` | Deploy or sync config only; optionally land YAML schedules paused |
|
|
173
173
|
| `project view <project>` | `-e` | View status and client-reported deployed revision |
|
|
174
|
+
| `project deploy <name> [path]` | `-e`, `--create`, `--config-only`, `--no-git-metadata` | Deploy or sync config only |
|
|
175
|
+
| `project enable <project>` | `-e` (default `dev`) | Allow new starts through this project gate |
|
|
176
|
+
| `project disable <project>` | `-e` (default `dev`) | Block new root starts without cancelling existing roots |
|
|
177
|
+
| `project view <project>` | `-e` | View status, `Enabled: on|off`, and client-reported deployed revision |
|
|
174
178
|
| `project pull <name> [path]` | `-y` | Pull source (warns before overwriting) |
|
|
175
179
|
| `project logs <name>` | | View build logs |
|
|
176
|
-
| `project list` | | List
|
|
180
|
+
| `project list` | `--json` | List project families; environments render as `environment:on/off` |
|
|
177
181
|
|
|
178
182
|
For `project view`, omitting `--env` treats `<project>` as an exact slug.
|
|
179
183
|
Passing `--env production` uses the supplied production name/slug unchanged;
|
|
@@ -181,6 +185,21 @@ Passing `--env production` uses the supplied production name/slug unchanged;
|
|
|
181
185
|
is deliberately different from historical commands such as `run start`,
|
|
182
186
|
which default to dev.
|
|
183
187
|
|
|
188
|
+
Project enable/disable is an explicit, non-interactive operator action. It does
|
|
189
|
+
not cascade to workflows or schedules, and deploy does not undo the manual
|
|
190
|
+
state.
|
|
191
|
+
|
|
192
|
+
### workflow
|
|
193
|
+
|
|
194
|
+
| Command | Key Flags | Description |
|
|
195
|
+
|---------|-----------|-------------|
|
|
196
|
+
| `workflow enable <project> <workflow>` | `-e` (default `dev`) | Enable the workflow gate; direct starts still require the project, and scheduled starts also require the schedule |
|
|
197
|
+
| `workflow disable <project> <workflow>` | `-e` (default `dev`) | Block new root starts without cancelling existing roots |
|
|
198
|
+
|
|
199
|
+
Workflow enable/disable accepts a workflow name or slug and does not prompt.
|
|
200
|
+
The manual state is sticky across deploys; enabling a workflow does not enable
|
|
201
|
+
its project or schedule.
|
|
202
|
+
|
|
184
203
|
### run
|
|
185
204
|
|
|
186
205
|
| Command | Key Flags | Description |
|
|
@@ -205,19 +224,24 @@ which default to dev.
|
|
|
205
224
|
|
|
206
225
|
| Command | Key Flags | Description |
|
|
207
226
|
|---------|-----------|-------------|
|
|
208
|
-
| `schedule set <project> <cron>` | `--workflow`, `-i`, `-z`, `-y` | Set cron schedule and optional IANA timezone (warns if exists) |
|
|
209
|
-
| `schedule list <project>` | | List
|
|
210
|
-
| `schedule
|
|
227
|
+
| `schedule set <project> <cron>` | `--workflow`, `-i`, `-z`, `-e`, `--paused`, `-y` | Set cron schedule and optional IANA timezone (warns if exists) |
|
|
228
|
+
| `schedule list <project>` | `-e` | List effective state and operator/YAML disagreement |
|
|
229
|
+
| `schedule enable <project> <id>` | `-e` | Enable a schedule with a sticky override |
|
|
230
|
+
| `schedule disable <project> <id>` | `-e` | Disable a schedule with a sticky override |
|
|
231
|
+
| `schedule reset <project> <id>` | `-e` | Return a schedule to its last declared YAML state |
|
|
232
|
+
| `schedule delete <project> <id>` | `-e`, `-y` | Delete a schedule |
|
|
211
233
|
|
|
212
234
|
```bash
|
|
213
235
|
solidactions schedule set my-project '0 9 * * 1-5' --workflow daily-summary --timezone America/Chicago
|
|
236
|
+
solidactions project deploy my-project -e production --paused
|
|
237
|
+
solidactions schedule enable my-project 42 -e production
|
|
214
238
|
```
|
|
215
239
|
|
|
216
240
|
### webhook
|
|
217
241
|
|
|
218
242
|
| Command | Key Flags | Description |
|
|
219
243
|
|---------|-----------|-------------|
|
|
220
|
-
| `webhook list <project>` | `-e`, `--show-secrets` | List webhook URLs |
|
|
244
|
+
| `webhook list <project>` | `-e`, `--format table|json`, `--show-secrets` | List webhook URLs and state: `retired`, `off`, `blocked (project off)`, or `on` |
|
|
221
245
|
|
|
222
246
|
### skill
|
|
223
247
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"cli_name": "solidactions",
|
|
4
|
-
"cli_version": "3.
|
|
4
|
+
"cli_version": "3.4.0",
|
|
5
5
|
"global_options": [
|
|
6
6
|
{
|
|
7
7
|
"flags": "-V, --version",
|
|
@@ -536,6 +536,18 @@
|
|
|
536
536
|
"negated": false,
|
|
537
537
|
"hidden": false
|
|
538
538
|
},
|
|
539
|
+
{
|
|
540
|
+
"flags": "--paused",
|
|
541
|
+
"long": "--paused",
|
|
542
|
+
"short": null,
|
|
543
|
+
"description": "Deploy with all YAML-declared schedules initially paused",
|
|
544
|
+
"required": false,
|
|
545
|
+
"value_required": false,
|
|
546
|
+
"value_optional": false,
|
|
547
|
+
"variadic": false,
|
|
548
|
+
"negated": false,
|
|
549
|
+
"hidden": false
|
|
550
|
+
},
|
|
539
551
|
{
|
|
540
552
|
"flags": "--no-cache",
|
|
541
553
|
"long": "--no-cache",
|
|
@@ -734,6 +746,241 @@
|
|
|
734
746
|
{
|
|
735
747
|
"path": [
|
|
736
748
|
"project",
|
|
749
|
+
"enable"
|
|
750
|
+
],
|
|
751
|
+
"name": "enable",
|
|
752
|
+
"aliases": [],
|
|
753
|
+
"description": "Allow new workflow starts for a project environment",
|
|
754
|
+
"hidden": false,
|
|
755
|
+
"arguments": [
|
|
756
|
+
{
|
|
757
|
+
"name": "project",
|
|
758
|
+
"required": true,
|
|
759
|
+
"variadic": false,
|
|
760
|
+
"description": "Project name"
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"options": [
|
|
764
|
+
{
|
|
765
|
+
"flags": "-e, --env <environment>",
|
|
766
|
+
"long": "--env",
|
|
767
|
+
"short": "-e",
|
|
768
|
+
"description": "Environment (production/staging/dev). Defaults to dev.",
|
|
769
|
+
"required": false,
|
|
770
|
+
"value_required": true,
|
|
771
|
+
"value_optional": false,
|
|
772
|
+
"variadic": false,
|
|
773
|
+
"negated": false,
|
|
774
|
+
"hidden": false,
|
|
775
|
+
"default": "dev"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"flags": "-h, --help",
|
|
779
|
+
"long": "--help",
|
|
780
|
+
"short": "-h",
|
|
781
|
+
"description": "display help for command",
|
|
782
|
+
"required": false,
|
|
783
|
+
"value_required": false,
|
|
784
|
+
"value_optional": false,
|
|
785
|
+
"variadic": false,
|
|
786
|
+
"negated": false,
|
|
787
|
+
"hidden": false
|
|
788
|
+
}
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"path": [
|
|
793
|
+
"project",
|
|
794
|
+
"disable"
|
|
795
|
+
],
|
|
796
|
+
"name": "disable",
|
|
797
|
+
"aliases": [],
|
|
798
|
+
"description": "Block new workflow starts for a project environment",
|
|
799
|
+
"hidden": false,
|
|
800
|
+
"arguments": [
|
|
801
|
+
{
|
|
802
|
+
"name": "project",
|
|
803
|
+
"required": true,
|
|
804
|
+
"variadic": false,
|
|
805
|
+
"description": "Project name"
|
|
806
|
+
}
|
|
807
|
+
],
|
|
808
|
+
"options": [
|
|
809
|
+
{
|
|
810
|
+
"flags": "-e, --env <environment>",
|
|
811
|
+
"long": "--env",
|
|
812
|
+
"short": "-e",
|
|
813
|
+
"description": "Environment (production/staging/dev). Defaults to dev.",
|
|
814
|
+
"required": false,
|
|
815
|
+
"value_required": true,
|
|
816
|
+
"value_optional": false,
|
|
817
|
+
"variadic": false,
|
|
818
|
+
"negated": false,
|
|
819
|
+
"hidden": false,
|
|
820
|
+
"default": "dev"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"flags": "-h, --help",
|
|
824
|
+
"long": "--help",
|
|
825
|
+
"short": "-h",
|
|
826
|
+
"description": "display help for command",
|
|
827
|
+
"required": false,
|
|
828
|
+
"value_required": false,
|
|
829
|
+
"value_optional": false,
|
|
830
|
+
"variadic": false,
|
|
831
|
+
"negated": false,
|
|
832
|
+
"hidden": false
|
|
833
|
+
}
|
|
834
|
+
]
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"path": [
|
|
838
|
+
"project",
|
|
839
|
+
"help"
|
|
840
|
+
],
|
|
841
|
+
"name": "help",
|
|
842
|
+
"aliases": [],
|
|
843
|
+
"description": "display help for command",
|
|
844
|
+
"hidden": false,
|
|
845
|
+
"arguments": [
|
|
846
|
+
{
|
|
847
|
+
"name": "command",
|
|
848
|
+
"required": false,
|
|
849
|
+
"variadic": false,
|
|
850
|
+
"description": ""
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"options": []
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"path": [
|
|
857
|
+
"workflow"
|
|
858
|
+
],
|
|
859
|
+
"name": "workflow",
|
|
860
|
+
"aliases": [],
|
|
861
|
+
"description": "Manage deployed workflows",
|
|
862
|
+
"hidden": false,
|
|
863
|
+
"arguments": [],
|
|
864
|
+
"options": [
|
|
865
|
+
{
|
|
866
|
+
"flags": "-h, --help",
|
|
867
|
+
"long": "--help",
|
|
868
|
+
"short": "-h",
|
|
869
|
+
"description": "display help for command",
|
|
870
|
+
"required": false,
|
|
871
|
+
"value_required": false,
|
|
872
|
+
"value_optional": false,
|
|
873
|
+
"variadic": false,
|
|
874
|
+
"negated": false,
|
|
875
|
+
"hidden": false
|
|
876
|
+
}
|
|
877
|
+
]
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"path": [
|
|
881
|
+
"workflow",
|
|
882
|
+
"enable"
|
|
883
|
+
],
|
|
884
|
+
"name": "enable",
|
|
885
|
+
"aliases": [],
|
|
886
|
+
"description": "Allow new starts for a deployed workflow",
|
|
887
|
+
"hidden": false,
|
|
888
|
+
"arguments": [
|
|
889
|
+
{
|
|
890
|
+
"name": "project",
|
|
891
|
+
"required": true,
|
|
892
|
+
"variadic": false,
|
|
893
|
+
"description": "Project name"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"name": "workflow",
|
|
897
|
+
"required": true,
|
|
898
|
+
"variadic": false,
|
|
899
|
+
"description": "Workflow name or slug"
|
|
900
|
+
}
|
|
901
|
+
],
|
|
902
|
+
"options": [
|
|
903
|
+
{
|
|
904
|
+
"flags": "-e, --env <environment>",
|
|
905
|
+
"long": "--env",
|
|
906
|
+
"short": "-e",
|
|
907
|
+
"description": "Environment (production/staging/dev). Defaults to dev.",
|
|
908
|
+
"required": false,
|
|
909
|
+
"value_required": true,
|
|
910
|
+
"value_optional": false,
|
|
911
|
+
"variadic": false,
|
|
912
|
+
"negated": false,
|
|
913
|
+
"hidden": false,
|
|
914
|
+
"default": "dev"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"flags": "-h, --help",
|
|
918
|
+
"long": "--help",
|
|
919
|
+
"short": "-h",
|
|
920
|
+
"description": "display help for command",
|
|
921
|
+
"required": false,
|
|
922
|
+
"value_required": false,
|
|
923
|
+
"value_optional": false,
|
|
924
|
+
"variadic": false,
|
|
925
|
+
"negated": false,
|
|
926
|
+
"hidden": false
|
|
927
|
+
}
|
|
928
|
+
]
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"path": [
|
|
932
|
+
"workflow",
|
|
933
|
+
"disable"
|
|
934
|
+
],
|
|
935
|
+
"name": "disable",
|
|
936
|
+
"aliases": [],
|
|
937
|
+
"description": "Block new starts for a deployed workflow",
|
|
938
|
+
"hidden": false,
|
|
939
|
+
"arguments": [
|
|
940
|
+
{
|
|
941
|
+
"name": "project",
|
|
942
|
+
"required": true,
|
|
943
|
+
"variadic": false,
|
|
944
|
+
"description": "Project name"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "workflow",
|
|
948
|
+
"required": true,
|
|
949
|
+
"variadic": false,
|
|
950
|
+
"description": "Workflow name or slug"
|
|
951
|
+
}
|
|
952
|
+
],
|
|
953
|
+
"options": [
|
|
954
|
+
{
|
|
955
|
+
"flags": "-e, --env <environment>",
|
|
956
|
+
"long": "--env",
|
|
957
|
+
"short": "-e",
|
|
958
|
+
"description": "Environment (production/staging/dev). Defaults to dev.",
|
|
959
|
+
"required": false,
|
|
960
|
+
"value_required": true,
|
|
961
|
+
"value_optional": false,
|
|
962
|
+
"variadic": false,
|
|
963
|
+
"negated": false,
|
|
964
|
+
"hidden": false,
|
|
965
|
+
"default": "dev"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"flags": "-h, --help",
|
|
969
|
+
"long": "--help",
|
|
970
|
+
"short": "-h",
|
|
971
|
+
"description": "display help for command",
|
|
972
|
+
"required": false,
|
|
973
|
+
"value_required": false,
|
|
974
|
+
"value_optional": false,
|
|
975
|
+
"variadic": false,
|
|
976
|
+
"negated": false,
|
|
977
|
+
"hidden": false
|
|
978
|
+
}
|
|
979
|
+
]
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"path": [
|
|
983
|
+
"workflow",
|
|
737
984
|
"help"
|
|
738
985
|
],
|
|
739
986
|
"name": "help",
|
|
@@ -2120,6 +2367,30 @@
|
|
|
2120
2367
|
"negated": false,
|
|
2121
2368
|
"hidden": false
|
|
2122
2369
|
},
|
|
2370
|
+
{
|
|
2371
|
+
"flags": "-e, --env <environment>",
|
|
2372
|
+
"long": "--env",
|
|
2373
|
+
"short": "-e",
|
|
2374
|
+
"description": "Resolve an explicit environment (production/staging/dev)",
|
|
2375
|
+
"required": false,
|
|
2376
|
+
"value_required": true,
|
|
2377
|
+
"value_optional": false,
|
|
2378
|
+
"variadic": false,
|
|
2379
|
+
"negated": false,
|
|
2380
|
+
"hidden": false
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
"flags": "--paused",
|
|
2384
|
+
"long": "--paused",
|
|
2385
|
+
"short": null,
|
|
2386
|
+
"description": "Create or replace the schedule disabled",
|
|
2387
|
+
"required": false,
|
|
2388
|
+
"value_required": false,
|
|
2389
|
+
"value_optional": false,
|
|
2390
|
+
"variadic": false,
|
|
2391
|
+
"negated": false,
|
|
2392
|
+
"hidden": false
|
|
2393
|
+
},
|
|
2123
2394
|
{
|
|
2124
2395
|
"flags": "-y, --yes",
|
|
2125
2396
|
"long": "--yes",
|
|
@@ -2164,6 +2435,168 @@
|
|
|
2164
2435
|
}
|
|
2165
2436
|
],
|
|
2166
2437
|
"options": [
|
|
2438
|
+
{
|
|
2439
|
+
"flags": "-e, --env <environment>",
|
|
2440
|
+
"long": "--env",
|
|
2441
|
+
"short": "-e",
|
|
2442
|
+
"description": "Resolve an explicit environment (production/staging/dev)",
|
|
2443
|
+
"required": false,
|
|
2444
|
+
"value_required": true,
|
|
2445
|
+
"value_optional": false,
|
|
2446
|
+
"variadic": false,
|
|
2447
|
+
"negated": false,
|
|
2448
|
+
"hidden": false
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"flags": "-h, --help",
|
|
2452
|
+
"long": "--help",
|
|
2453
|
+
"short": "-h",
|
|
2454
|
+
"description": "display help for command",
|
|
2455
|
+
"required": false,
|
|
2456
|
+
"value_required": false,
|
|
2457
|
+
"value_optional": false,
|
|
2458
|
+
"variadic": false,
|
|
2459
|
+
"negated": false,
|
|
2460
|
+
"hidden": false
|
|
2461
|
+
}
|
|
2462
|
+
]
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
"path": [
|
|
2466
|
+
"schedule",
|
|
2467
|
+
"enable"
|
|
2468
|
+
],
|
|
2469
|
+
"name": "enable",
|
|
2470
|
+
"aliases": [],
|
|
2471
|
+
"description": "Enable a schedule with a sticky operator override",
|
|
2472
|
+
"hidden": false,
|
|
2473
|
+
"arguments": [
|
|
2474
|
+
{
|
|
2475
|
+
"name": "project",
|
|
2476
|
+
"required": true,
|
|
2477
|
+
"variadic": false,
|
|
2478
|
+
"description": "Project name"
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
"name": "schedule-id",
|
|
2482
|
+
"required": true,
|
|
2483
|
+
"variadic": false,
|
|
2484
|
+
"description": "Schedule ID"
|
|
2485
|
+
}
|
|
2486
|
+
],
|
|
2487
|
+
"options": [
|
|
2488
|
+
{
|
|
2489
|
+
"flags": "-e, --env <environment>",
|
|
2490
|
+
"long": "--env",
|
|
2491
|
+
"short": "-e",
|
|
2492
|
+
"description": "Resolve an explicit environment (production/staging/dev)",
|
|
2493
|
+
"required": false,
|
|
2494
|
+
"value_required": true,
|
|
2495
|
+
"value_optional": false,
|
|
2496
|
+
"variadic": false,
|
|
2497
|
+
"negated": false,
|
|
2498
|
+
"hidden": false
|
|
2499
|
+
},
|
|
2500
|
+
{
|
|
2501
|
+
"flags": "-h, --help",
|
|
2502
|
+
"long": "--help",
|
|
2503
|
+
"short": "-h",
|
|
2504
|
+
"description": "display help for command",
|
|
2505
|
+
"required": false,
|
|
2506
|
+
"value_required": false,
|
|
2507
|
+
"value_optional": false,
|
|
2508
|
+
"variadic": false,
|
|
2509
|
+
"negated": false,
|
|
2510
|
+
"hidden": false
|
|
2511
|
+
}
|
|
2512
|
+
]
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
"path": [
|
|
2516
|
+
"schedule",
|
|
2517
|
+
"disable"
|
|
2518
|
+
],
|
|
2519
|
+
"name": "disable",
|
|
2520
|
+
"aliases": [],
|
|
2521
|
+
"description": "Disable a schedule with a sticky operator override",
|
|
2522
|
+
"hidden": false,
|
|
2523
|
+
"arguments": [
|
|
2524
|
+
{
|
|
2525
|
+
"name": "project",
|
|
2526
|
+
"required": true,
|
|
2527
|
+
"variadic": false,
|
|
2528
|
+
"description": "Project name"
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
"name": "schedule-id",
|
|
2532
|
+
"required": true,
|
|
2533
|
+
"variadic": false,
|
|
2534
|
+
"description": "Schedule ID"
|
|
2535
|
+
}
|
|
2536
|
+
],
|
|
2537
|
+
"options": [
|
|
2538
|
+
{
|
|
2539
|
+
"flags": "-e, --env <environment>",
|
|
2540
|
+
"long": "--env",
|
|
2541
|
+
"short": "-e",
|
|
2542
|
+
"description": "Resolve an explicit environment (production/staging/dev)",
|
|
2543
|
+
"required": false,
|
|
2544
|
+
"value_required": true,
|
|
2545
|
+
"value_optional": false,
|
|
2546
|
+
"variadic": false,
|
|
2547
|
+
"negated": false,
|
|
2548
|
+
"hidden": false
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
"flags": "-h, --help",
|
|
2552
|
+
"long": "--help",
|
|
2553
|
+
"short": "-h",
|
|
2554
|
+
"description": "display help for command",
|
|
2555
|
+
"required": false,
|
|
2556
|
+
"value_required": false,
|
|
2557
|
+
"value_optional": false,
|
|
2558
|
+
"variadic": false,
|
|
2559
|
+
"negated": false,
|
|
2560
|
+
"hidden": false
|
|
2561
|
+
}
|
|
2562
|
+
]
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
"path": [
|
|
2566
|
+
"schedule",
|
|
2567
|
+
"reset"
|
|
2568
|
+
],
|
|
2569
|
+
"name": "reset",
|
|
2570
|
+
"aliases": [],
|
|
2571
|
+
"description": "Return a schedule to its last declared YAML configuration",
|
|
2572
|
+
"hidden": false,
|
|
2573
|
+
"arguments": [
|
|
2574
|
+
{
|
|
2575
|
+
"name": "project",
|
|
2576
|
+
"required": true,
|
|
2577
|
+
"variadic": false,
|
|
2578
|
+
"description": "Project name"
|
|
2579
|
+
},
|
|
2580
|
+
{
|
|
2581
|
+
"name": "schedule-id",
|
|
2582
|
+
"required": true,
|
|
2583
|
+
"variadic": false,
|
|
2584
|
+
"description": "Schedule ID"
|
|
2585
|
+
}
|
|
2586
|
+
],
|
|
2587
|
+
"options": [
|
|
2588
|
+
{
|
|
2589
|
+
"flags": "-e, --env <environment>",
|
|
2590
|
+
"long": "--env",
|
|
2591
|
+
"short": "-e",
|
|
2592
|
+
"description": "Resolve an explicit environment (production/staging/dev)",
|
|
2593
|
+
"required": false,
|
|
2594
|
+
"value_required": true,
|
|
2595
|
+
"value_optional": false,
|
|
2596
|
+
"variadic": false,
|
|
2597
|
+
"negated": false,
|
|
2598
|
+
"hidden": false
|
|
2599
|
+
},
|
|
2167
2600
|
{
|
|
2168
2601
|
"flags": "-h, --help",
|
|
2169
2602
|
"long": "--help",
|
|
@@ -2202,6 +2635,18 @@
|
|
|
2202
2635
|
}
|
|
2203
2636
|
],
|
|
2204
2637
|
"options": [
|
|
2638
|
+
{
|
|
2639
|
+
"flags": "-e, --env <environment>",
|
|
2640
|
+
"long": "--env",
|
|
2641
|
+
"short": "-e",
|
|
2642
|
+
"description": "Resolve an explicit environment (production/staging/dev)",
|
|
2643
|
+
"required": false,
|
|
2644
|
+
"value_required": true,
|
|
2645
|
+
"value_optional": false,
|
|
2646
|
+
"variadic": false,
|
|
2647
|
+
"negated": false,
|
|
2648
|
+
"hidden": false
|
|
2649
|
+
},
|
|
2205
2650
|
{
|
|
2206
2651
|
"flags": "-y, --yes",
|
|
2207
2652
|
"long": "--yes",
|
package/dist/commands/deploy.js
CHANGED
|
@@ -540,6 +540,9 @@ async function deploy(projectName, sourcePath, options = {}) {
|
|
|
540
540
|
console.log(chalk_1.default.gray(`Archived ${archive.pointer()} total bytes`));
|
|
541
541
|
try {
|
|
542
542
|
const form = (0, source_provenance_1.buildDeployForm)(archivePath, sourceMetadata);
|
|
543
|
+
if (options.paused) {
|
|
544
|
+
form.append('paused', '1');
|
|
545
|
+
}
|
|
543
546
|
console.log(chalk_1.default.yellow('Uploading...'));
|
|
544
547
|
if (process.env.SOLIDACTIONS_DEPLOY_DEBUG === '1') {
|
|
545
548
|
process.stderr.write(`[deploy-debug] POST ${config.host}/api/v1/projects/${projectSlug}/deploy (workspace=${config.workspaceId ?? '(none)'})\n`);
|
|
@@ -611,6 +614,16 @@ async function deploy(projectName, sourcePath, options = {}) {
|
|
|
611
614
|
console.log(chalk_1.default.blue(`ℹ Webhook secret: run \`solidactions webhook secret ${projectName}${envFlag}\` to retrieve the generated secret.`));
|
|
612
615
|
console.log(chalk_1.default.gray(` Set the same value in your sender (e.g. Telegram setWebhook secret_token).`));
|
|
613
616
|
}
|
|
617
|
+
if (options.paused) {
|
|
618
|
+
console.log('');
|
|
619
|
+
if (acceptedDeployment.schedulesPaused === true) {
|
|
620
|
+
console.log(chalk_1.default.green('Schedules deployed paused.'));
|
|
621
|
+
console.log(chalk_1.default.gray(`Enable one when ready with: solidactions schedule enable ${projectSlug} <schedule-id>`));
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
624
|
+
console.log(chalk_1.default.yellow('Warning: server did not acknowledge paused schedules; verify schedules before relying on them being paused.'));
|
|
625
|
+
}
|
|
626
|
+
}
|
|
614
627
|
cleanupArchive();
|
|
615
628
|
process.exit(0);
|
|
616
629
|
}
|
package/dist/commands/login.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DEVICE_LOGIN_REFUSAL_MESSAGE = exports.API_KEY_PROMPT = void 0;
|
|
6
|
+
exports.DEVICE_LOGIN_REFUSAL_MESSAGE = exports.API_KEY_PROMPT = exports.selectWorkspaceInteractively = void 0;
|
|
7
7
|
exports.resolveLoginApiKey = resolveLoginApiKey;
|
|
8
8
|
exports.getConfig = getConfig;
|
|
9
9
|
exports.saveConfig = saveConfig;
|
|
@@ -13,19 +13,19 @@ exports.backupPathFor = backupPathFor;
|
|
|
13
13
|
exports.preflightDeviceLoginWrite = preflightDeviceLoginWrite;
|
|
14
14
|
exports.persistPreflightedLoginCredential = persistPreflightedLoginCredential;
|
|
15
15
|
exports.loginHostLines = loginHostLines;
|
|
16
|
-
exports.selectWorkspaceInteractively = selectWorkspaceInteractively;
|
|
17
16
|
exports.completeLogin = completeLogin;
|
|
18
17
|
exports.login = login;
|
|
19
18
|
exports.logout = logout;
|
|
20
19
|
exports.whoami = whoami;
|
|
21
20
|
const fs_1 = __importDefault(require("fs"));
|
|
22
21
|
const path_1 = __importDefault(require("path"));
|
|
23
|
-
const readline_1 = __importDefault(require("readline"));
|
|
24
22
|
const chalk_1 = __importDefault(require("chalk"));
|
|
25
23
|
const prompts_1 = __importDefault(require("prompts"));
|
|
26
24
|
const config_1 = require("../utils/config");
|
|
27
25
|
const config_write_target_1 = require("../utils/config-write-target");
|
|
28
26
|
const workspace_lookup_1 = require("../utils/workspace-lookup");
|
|
27
|
+
var workspace_lookup_2 = require("../utils/workspace-lookup");
|
|
28
|
+
Object.defineProperty(exports, "selectWorkspaceInteractively", { enumerable: true, get: function () { return workspace_lookup_2.selectWorkspaceInteractively; } });
|
|
29
29
|
exports.API_KEY_PROMPT = {
|
|
30
30
|
type: 'password',
|
|
31
31
|
name: 'apiKey',
|
|
@@ -218,59 +218,6 @@ function loginHostLines(resolved) {
|
|
|
218
218
|
}
|
|
219
219
|
return [`Host: ${resolved.host}`];
|
|
220
220
|
}
|
|
221
|
-
async function selectWorkspaceInteractively(workspaces, dependencies = {}) {
|
|
222
|
-
if (workspaces.length === 0) {
|
|
223
|
-
console.log(chalk_1.default.yellow('No workspaces found. Create one at your SolidActions dashboard, then run `solidactions workspace set <name>`.'));
|
|
224
|
-
return undefined;
|
|
225
|
-
}
|
|
226
|
-
if (workspaces.length === 1) {
|
|
227
|
-
console.log(chalk_1.default.gray(`Auto-selected workspace: ${workspaces[0].name}`));
|
|
228
|
-
return workspaces[0];
|
|
229
|
-
}
|
|
230
|
-
console.log(chalk_1.default.blue('\nSelect your default workspace (change anytime with `solidactions workspace set`):\n'));
|
|
231
|
-
workspaces.forEach((ws, i) => {
|
|
232
|
-
console.log(` ${chalk_1.default.white(`${i + 1}.`)} ${ws.name}`);
|
|
233
|
-
});
|
|
234
|
-
console.log('');
|
|
235
|
-
const rl = dependencies.question
|
|
236
|
-
? null
|
|
237
|
-
: readline_1.default.createInterface({ input: process.stdin, output: process.stdout });
|
|
238
|
-
const question = dependencies.question ?? (async () => {
|
|
239
|
-
if (!rl || rl.closed)
|
|
240
|
-
return undefined;
|
|
241
|
-
return new Promise((resolve) => {
|
|
242
|
-
let answered = false;
|
|
243
|
-
const onClose = () => {
|
|
244
|
-
if (!answered)
|
|
245
|
-
resolve(undefined);
|
|
246
|
-
};
|
|
247
|
-
rl.once('close', onClose);
|
|
248
|
-
rl.question(chalk_1.default.blue('Enter number: '), (answer) => {
|
|
249
|
-
answered = true;
|
|
250
|
-
rl.removeListener('close', onClose);
|
|
251
|
-
resolve(answer);
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
try {
|
|
256
|
-
while (true) {
|
|
257
|
-
const answer = await question();
|
|
258
|
-
if (answer === undefined) {
|
|
259
|
-
console.log(chalk_1.default.yellow('Workspace selection cancelled. Run `solidactions workspace list`, then '
|
|
260
|
-
+ '`solidactions workspace set <name>` when ready.'));
|
|
261
|
-
return undefined;
|
|
262
|
-
}
|
|
263
|
-
const index = parseInt(answer, 10) - 1;
|
|
264
|
-
if (!isNaN(index) && index >= 0 && index < workspaces.length) {
|
|
265
|
-
return workspaces[index];
|
|
266
|
-
}
|
|
267
|
-
console.error(chalk_1.default.red('Invalid selection. Enter one of the numbers shown.'));
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
finally {
|
|
271
|
-
rl?.close();
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
221
|
/**
|
|
275
222
|
* Shared tail of API-key and device login: resolve the workspace against an
|
|
276
223
|
* already-fetched list, persist the final config, and print success output.
|
|
@@ -313,7 +260,7 @@ async function completeLogin(config, workspaces, options, scope = null, prefligh
|
|
|
313
260
|
+ 'run `solidactions workspace set <name>`.'));
|
|
314
261
|
}
|
|
315
262
|
else if (process.stdin.isTTY) {
|
|
316
|
-
const selected = await selectWorkspaceInteractively(workspaces);
|
|
263
|
+
const selected = await (0, workspace_lookup_1.selectWorkspaceInteractively)(workspaces);
|
|
317
264
|
if (selected) {
|
|
318
265
|
config.workspace = selected.slug ?? selected.name;
|
|
319
266
|
config.workspaceId = selected.id;
|