@swell/cli 2.9.32 → 2.9.34
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/dist/commands/app/dev.js +2 -1
- package/dist/commands/app/frontend/dev.js +4 -2
- package/dist/commands/app/push.d.ts +1 -0
- package/dist/commands/app/push.js +38 -3
- package/dist/commands/app/version.js +3 -0
- package/dist/commands/create/function.js +14 -4
- package/dist/commands/create/model.js +9 -24
- package/dist/commands/inspect/components.d.ts +31 -0
- package/dist/commands/inspect/components.js +110 -0
- package/dist/commands/inspect/extensions.js +18 -9
- package/dist/commands/inspect/frontend.d.ts +37 -0
- package/dist/commands/inspect/frontend.js +75 -0
- package/dist/commands/inspect/functions.d.ts +11 -1
- package/dist/commands/inspect/functions.js +89 -6
- package/dist/commands/inspect/index.js +2 -0
- package/dist/inspect-resource-command.d.ts +1 -1
- package/dist/inspect-resource-command.js +8 -2
- package/dist/lib/api-errors.d.ts +1 -0
- package/dist/lib/api-errors.js +28 -0
- package/dist/lib/app-config.js +1 -0
- package/dist/lib/apps/components.d.ts +7 -0
- package/dist/lib/apps/components.js +10 -0
- package/dist/lib/apps/extension-manifest.d.ts +1 -0
- package/dist/lib/apps/extension-manifest.js +43 -0
- package/dist/lib/apps/index.d.ts +5 -0
- package/dist/lib/apps/index.js +31 -0
- package/dist/lib/apps/paths.d.ts +8 -0
- package/dist/lib/apps/paths.js +34 -4
- package/dist/lib/bundle.js +15 -2
- package/dist/lib/create/function.d.ts +1 -1
- package/dist/lib/create/function.js +9 -5
- package/dist/lib/create/index.js +2 -1
- package/dist/lib/create/model.d.ts +7 -3
- package/dist/lib/create/model.js +67 -9
- package/dist/lib/create/tests.js +4 -2
- package/dist/lib/inspect/extensions.d.ts +4 -3
- package/dist/lib/inspect/extensions.js +36 -5
- package/dist/lib/swell-function-wrapper.js +5 -4
- package/dist/push-app-command.js +32 -19
- package/dist/remote-app-command.d.ts +1 -1
- package/dist/remote-app-command.js +78 -47
- package/oclif.manifest.json +139 -6
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -2088,12 +2088,13 @@
|
|
|
2088
2088
|
},
|
|
2089
2089
|
"trigger": {
|
|
2090
2090
|
"default": "",
|
|
2091
|
-
"description": "cron | model | route | workflow",
|
|
2091
|
+
"description": "cron | model | route | action | workflow",
|
|
2092
2092
|
"name": "trigger",
|
|
2093
2093
|
"options": [
|
|
2094
2094
|
"cron",
|
|
2095
2095
|
"model",
|
|
2096
2096
|
"route",
|
|
2097
|
+
"action",
|
|
2097
2098
|
"workflow"
|
|
2098
2099
|
]
|
|
2099
2100
|
}
|
|
@@ -2103,6 +2104,7 @@
|
|
|
2103
2104
|
"$ swell create function order-handler.ts model -e order.created,order.updated -y",
|
|
2104
2105
|
"$ swell create function cleanup.ts cron -s \"0 0 * * *\" -y",
|
|
2105
2106
|
"$ swell create function api-endpoint.ts route -r public -y",
|
|
2107
|
+
"$ swell create function mark-shipped.ts action -y",
|
|
2106
2108
|
"$ swell create function run-import.ts --type workflow -y",
|
|
2107
2109
|
"$ swell create function run-import.ts workflow -y"
|
|
2108
2110
|
],
|
|
@@ -2206,6 +2208,11 @@
|
|
|
2206
2208
|
"flag": "-r, --route=<option>",
|
|
2207
2209
|
"description": "Access: public (default) | private"
|
|
2208
2210
|
},
|
|
2211
|
+
{
|
|
2212
|
+
"name": "action",
|
|
2213
|
+
"flag": "",
|
|
2214
|
+
"description": "Runs from a dashboard action"
|
|
2215
|
+
},
|
|
2209
2216
|
{
|
|
2210
2217
|
"name": "workflow",
|
|
2211
2218
|
"flag": "--type=workflow",
|
|
@@ -2264,7 +2271,8 @@
|
|
|
2264
2271
|
"examples": [
|
|
2265
2272
|
"$ swell create model",
|
|
2266
2273
|
"$ swell create model products -y",
|
|
2267
|
-
"$ swell create model visitors -f title:string,photo:
|
|
2274
|
+
"$ swell create model visitors -f title:string,photo:file -l \"Visitors\" -y",
|
|
2275
|
+
"$ swell create model reviews -f owner:link:accounts,tags:array:string -y"
|
|
2268
2276
|
],
|
|
2269
2277
|
"flags": {
|
|
2270
2278
|
"app-path": {
|
|
@@ -2294,7 +2302,7 @@
|
|
|
2294
2302
|
},
|
|
2295
2303
|
"fields": {
|
|
2296
2304
|
"char": "f",
|
|
2297
|
-
"description": "Fields as id:type pairs (e.g., title:string,
|
|
2305
|
+
"description": "Fields as id:type pairs, id:link:<model> or id:array:<type> (e.g., title:string,owner:link:accounts)",
|
|
2298
2306
|
"name": "fields",
|
|
2299
2307
|
"default": "",
|
|
2300
2308
|
"hasDynamicHelp": false,
|
|
@@ -2671,6 +2679,68 @@
|
|
|
2671
2679
|
"webhook.js"
|
|
2672
2680
|
]
|
|
2673
2681
|
},
|
|
2682
|
+
"inspect:components": {
|
|
2683
|
+
"aliases": [],
|
|
2684
|
+
"args": {
|
|
2685
|
+
"identifier": {
|
|
2686
|
+
"description": "Resource identifier — see \"Identifier forms\" below.",
|
|
2687
|
+
"name": "identifier",
|
|
2688
|
+
"required": false
|
|
2689
|
+
}
|
|
2690
|
+
},
|
|
2691
|
+
"description": "Lists the components of installed apps, grouped by app. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nList output: paste-back key + the targets the component renders in and the extension it belongs to.\n\nPass an identifier to view a single component config as JSON.\n\nIdentifier forms:\n app.<app>.<name> — full paste-back key (list column 1)\n <name> — requires --app= scope\n <24-char id> — any scope\n",
|
|
2692
|
+
"examples": [
|
|
2693
|
+
"swell inspect components",
|
|
2694
|
+
"swell inspect components --app=my-app",
|
|
2695
|
+
"swell inspect components app.my-app.card",
|
|
2696
|
+
"swell inspect components card --app=my-app",
|
|
2697
|
+
"swell inspect components --live"
|
|
2698
|
+
],
|
|
2699
|
+
"flags": {
|
|
2700
|
+
"app": {
|
|
2701
|
+
"description": "Filter by app slug, or \".\" for current swell.json.",
|
|
2702
|
+
"name": "app",
|
|
2703
|
+
"hasDynamicHelp": false,
|
|
2704
|
+
"multiple": false,
|
|
2705
|
+
"type": "option"
|
|
2706
|
+
},
|
|
2707
|
+
"live": {
|
|
2708
|
+
"description": "Use live environment (default: test).",
|
|
2709
|
+
"name": "live",
|
|
2710
|
+
"allowNo": false,
|
|
2711
|
+
"type": "boolean"
|
|
2712
|
+
},
|
|
2713
|
+
"json": {
|
|
2714
|
+
"description": "Emit pure JSON without the \"Next steps\" footer. Detail mode only.",
|
|
2715
|
+
"name": "json",
|
|
2716
|
+
"allowNo": false,
|
|
2717
|
+
"type": "boolean"
|
|
2718
|
+
},
|
|
2719
|
+
"yes": {
|
|
2720
|
+
"char": "y",
|
|
2721
|
+
"description": "No-op; accepted for agent compatibility.",
|
|
2722
|
+
"hidden": true,
|
|
2723
|
+
"name": "yes",
|
|
2724
|
+
"allowNo": false,
|
|
2725
|
+
"type": "boolean"
|
|
2726
|
+
}
|
|
2727
|
+
},
|
|
2728
|
+
"hasDynamicHelp": false,
|
|
2729
|
+
"hiddenAliases": [],
|
|
2730
|
+
"id": "inspect:components",
|
|
2731
|
+
"pluginAlias": "@swell/cli",
|
|
2732
|
+
"pluginName": "@swell/cli",
|
|
2733
|
+
"pluginType": "core",
|
|
2734
|
+
"strict": true,
|
|
2735
|
+
"summary": "Components with their targets.",
|
|
2736
|
+
"isESM": true,
|
|
2737
|
+
"relativePath": [
|
|
2738
|
+
"dist",
|
|
2739
|
+
"commands",
|
|
2740
|
+
"inspect",
|
|
2741
|
+
"components.js"
|
|
2742
|
+
]
|
|
2743
|
+
},
|
|
2674
2744
|
"inspect:content": {
|
|
2675
2745
|
"aliases": [],
|
|
2676
2746
|
"args": {
|
|
@@ -2798,6 +2868,67 @@
|
|
|
2798
2868
|
"extensions.js"
|
|
2799
2869
|
]
|
|
2800
2870
|
},
|
|
2871
|
+
"inspect:frontend": {
|
|
2872
|
+
"aliases": [],
|
|
2873
|
+
"args": {
|
|
2874
|
+
"identifier": {
|
|
2875
|
+
"description": "Resource identifier — see \"Identifier forms\" below.",
|
|
2876
|
+
"name": "identifier",
|
|
2877
|
+
"required": false
|
|
2878
|
+
}
|
|
2879
|
+
},
|
|
2880
|
+
"description": "Lists the frontends of installed apps. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nList output: paste-back key + hosting (managed or self-hosted), framework, and the address the store serves the frontend at.\n\nPass an identifier to view an app's frontend as JSON: the app's frontend selection (package or self-hosted URL) with its installation and address.\n\nIdentifier forms:\n app.<app> — full paste-back key (list column 1)\n <app> — the app's slug\n <24-char id> — the app's id\n",
|
|
2881
|
+
"examples": [
|
|
2882
|
+
"swell inspect frontend",
|
|
2883
|
+
"swell inspect frontend --app=.",
|
|
2884
|
+
"swell inspect frontend app.my-app",
|
|
2885
|
+
"swell inspect frontend --live"
|
|
2886
|
+
],
|
|
2887
|
+
"flags": {
|
|
2888
|
+
"app": {
|
|
2889
|
+
"description": "Filter by app slug, or \".\" for current swell.json.",
|
|
2890
|
+
"name": "app",
|
|
2891
|
+
"hasDynamicHelp": false,
|
|
2892
|
+
"multiple": false,
|
|
2893
|
+
"type": "option"
|
|
2894
|
+
},
|
|
2895
|
+
"live": {
|
|
2896
|
+
"description": "Use live environment (default: test).",
|
|
2897
|
+
"name": "live",
|
|
2898
|
+
"allowNo": false,
|
|
2899
|
+
"type": "boolean"
|
|
2900
|
+
},
|
|
2901
|
+
"json": {
|
|
2902
|
+
"description": "Emit pure JSON without the \"Next steps\" footer. Detail mode only.",
|
|
2903
|
+
"name": "json",
|
|
2904
|
+
"allowNo": false,
|
|
2905
|
+
"type": "boolean"
|
|
2906
|
+
},
|
|
2907
|
+
"yes": {
|
|
2908
|
+
"char": "y",
|
|
2909
|
+
"description": "No-op; accepted for agent compatibility.",
|
|
2910
|
+
"hidden": true,
|
|
2911
|
+
"name": "yes",
|
|
2912
|
+
"allowNo": false,
|
|
2913
|
+
"type": "boolean"
|
|
2914
|
+
}
|
|
2915
|
+
},
|
|
2916
|
+
"hasDynamicHelp": false,
|
|
2917
|
+
"hiddenAliases": [],
|
|
2918
|
+
"id": "inspect:frontend",
|
|
2919
|
+
"pluginAlias": "@swell/cli",
|
|
2920
|
+
"pluginName": "@swell/cli",
|
|
2921
|
+
"pluginType": "core",
|
|
2922
|
+
"strict": true,
|
|
2923
|
+
"summary": "App frontends with hosting and address.",
|
|
2924
|
+
"isESM": true,
|
|
2925
|
+
"relativePath": [
|
|
2926
|
+
"dist",
|
|
2927
|
+
"commands",
|
|
2928
|
+
"inspect",
|
|
2929
|
+
"frontend.js"
|
|
2930
|
+
]
|
|
2931
|
+
},
|
|
2801
2932
|
"inspect:functions": {
|
|
2802
2933
|
"aliases": [],
|
|
2803
2934
|
"args": {
|
|
@@ -2807,7 +2938,7 @@
|
|
|
2807
2938
|
"required": false
|
|
2808
2939
|
}
|
|
2809
2940
|
},
|
|
2810
|
-
"description": "Lists functions across all apps, grouped by app. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nList output: paste-back key + status (disabled, trigger, next cron run, last
|
|
2941
|
+
"description": "Lists functions across all apps, grouped by app. Pass --app=<slug> or --app=. (current swell.json) to scope.\n\nList output: paste-back key + status (disabled or auto-disabled, failing since and failure count, the date it gets disabled, trigger, next cron run) and whether its app is inactive, which stops all of its functions. The detail view also shows the last failed delivery.\n\nPass an identifier to view a single record as JSON.\n\nIdentifier forms:\n app.<app>.<name> — full paste-back key (list column 1)\n <name> — requires --app= scope\n <24-char id> — any scope\n",
|
|
2811
2942
|
"examples": [
|
|
2812
2943
|
"swell inspect functions",
|
|
2813
2944
|
"swell inspect functions --app=my-app",
|
|
@@ -2871,7 +3002,9 @@
|
|
|
2871
3002
|
"swell inspect functions app.my-app.payment-sync",
|
|
2872
3003
|
"swell inspect workflow-runs --workflow app.my-app.run-import --status active",
|
|
2873
3004
|
"swell inspect notifications com.orders.receipt.v2",
|
|
2874
|
-
"swell inspect settings app.my-app"
|
|
3005
|
+
"swell inspect settings app.my-app",
|
|
3006
|
+
"swell inspect components --app=.",
|
|
3007
|
+
"swell inspect frontend app.my-app"
|
|
2875
3008
|
],
|
|
2876
3009
|
"flags": {},
|
|
2877
3010
|
"hasDynamicHelp": false,
|
|
@@ -3858,5 +3991,5 @@
|
|
|
3858
3991
|
]
|
|
3859
3992
|
}
|
|
3860
3993
|
},
|
|
3861
|
-
"version": "2.9.
|
|
3994
|
+
"version": "2.9.34"
|
|
3862
3995
|
}
|