@deckco/cli 1.0.0 → 1.3.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.
Files changed (4) hide show
  1. package/README.md +34 -280
  2. package/dist/deck.js +1460 -881
  3. package/package.json +2 -2
  4. package/spec/table.json +20 -329
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deckco/cli",
3
- "version": "1.0.0",
3
+ "version": "1.3.0",
4
4
  "description": "Command-line interface for the Deck automation platform.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -15,7 +15,7 @@
15
15
  "url": "git+https://github.com/buildwithdeck/deck.git",
16
16
  "directory": "external-components/cli"
17
17
  },
18
- "homepage": "https://docs.deck.co/cli",
18
+ "homepage": "https://docs.deck.co",
19
19
  "bugs": "https://github.com/buildwithdeck/deck/issues",
20
20
  "keywords": [
21
21
  "deck",
package/spec/table.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec_version": "2.0.0.552",
2
+ "spec_version": "2.0.0.607",
3
3
  "rows": [
4
4
  {
5
5
  "command": "task-runs cancel",
@@ -102,10 +102,12 @@
102
102
  "type": "object",
103
103
  "properties": {
104
104
  "name": {
105
+ "maxLength": 255,
105
106
  "type": "string",
106
107
  "description": "Display name for the agent."
107
108
  },
108
109
  "description": {
110
+ "maxLength": 2048,
109
111
  "type": [
110
112
  "null",
111
113
  "string"
@@ -323,47 +325,6 @@
323
325
  "anonymous": false,
324
326
  "scope": "deck:write"
325
327
  },
326
- {
327
- "command": "routines create",
328
- "tool": "create_routine",
329
- "operationId": "createRoutine",
330
- "description": "Create a routine",
331
- "method": "POST",
332
- "path": "/v2/routines",
333
- "path_params": [],
334
- "query_params": [],
335
- "body_schema": {
336
- "required": [
337
- "task_id",
338
- "source_id",
339
- "name",
340
- "type"
341
- ],
342
- "type": "object",
343
- "properties": {
344
- "task_id": {
345
- "type": "string"
346
- },
347
- "source_id": {
348
- "type": "string"
349
- },
350
- "name": {
351
- "type": "string"
352
- },
353
- "type": {
354
- "type": "string"
355
- },
356
- "payload": {}
357
- }
358
- },
359
- "unnamed_in_spec": false,
360
- "destructive": false,
361
- "core": false,
362
- "sensitive_rule": false,
363
- "mcp": true,
364
- "anonymous": false,
365
- "scope": "deck:write"
366
- },
367
328
  {
368
329
  "command": "token create",
369
330
  "tool": "create_session_token",
@@ -479,7 +440,8 @@
479
440
  "description": "Natural language instructions for the agent to follow when executing this task."
480
441
  },
481
442
  "storage": {},
482
- "settings": {}
443
+ "settings": {},
444
+ "policies": {}
483
445
  }
484
446
  },
485
447
  "unnamed_in_spec": false,
@@ -818,33 +780,6 @@
818
780
  "anonymous": false,
819
781
  "scope": "deck:write"
820
782
  },
821
- {
822
- "command": "routines delete",
823
- "tool": "delete_routine",
824
- "operationId": "deleteRoutine",
825
- "description": "Delete a routine",
826
- "method": "DELETE",
827
- "path": "/v2/routines/{routine_id}",
828
- "path_params": [
829
- {
830
- "name": "routine_id",
831
- "required": true,
832
- "schema": {
833
- "type": "string"
834
- },
835
- "id_prefix": "rtn_"
836
- }
837
- ],
838
- "query_params": [],
839
- "body_schema": null,
840
- "unnamed_in_spec": false,
841
- "destructive": true,
842
- "core": false,
843
- "sensitive_rule": false,
844
- "mcp": true,
845
- "anonymous": false,
846
- "scope": "deck:write"
847
- },
848
783
  {
849
784
  "command": "sources delete",
850
785
  "tool": "delete_source",
@@ -1051,7 +986,15 @@
1051
986
  "id_prefix": "cred_"
1052
987
  }
1053
988
  ],
1054
- "query_params": [],
989
+ "query_params": [
990
+ {
991
+ "name": "include",
992
+ "required": false,
993
+ "schema": {
994
+ "type": "string"
995
+ }
996
+ }
997
+ ],
1055
998
  "body_schema": null,
1056
999
  "unnamed_in_spec": false,
1057
1000
  "destructive": false,
@@ -1214,69 +1157,6 @@
1214
1157
  "anonymous": false,
1215
1158
  "scope": "deck:read"
1216
1159
  },
1217
- {
1218
- "command": "routines retrieve",
1219
- "tool": "get_routine",
1220
- "operationId": "getRoutine",
1221
- "description": "Retrieve a routine",
1222
- "method": "GET",
1223
- "path": "/v2/routines/{routine_id}",
1224
- "path_params": [
1225
- {
1226
- "name": "routine_id",
1227
- "required": true,
1228
- "schema": {
1229
- "type": "string"
1230
- },
1231
- "id_prefix": "rtn_"
1232
- }
1233
- ],
1234
- "query_params": [],
1235
- "body_schema": null,
1236
- "unnamed_in_spec": false,
1237
- "destructive": false,
1238
- "core": false,
1239
- "sensitive_rule": false,
1240
- "mcp": true,
1241
- "anonymous": false,
1242
- "scope": "deck:read"
1243
- },
1244
- {
1245
- "command": "routines version",
1246
- "tool": "get_routine_version",
1247
- "operationId": "getRoutineVersion",
1248
- "description": "Retrieve a routine version",
1249
- "method": "GET",
1250
- "path": "/v2/routines/{routine_id}/versions/{version}",
1251
- "path_params": [
1252
- {
1253
- "name": "routine_id",
1254
- "required": true,
1255
- "schema": {
1256
- "type": "string"
1257
- },
1258
- "id_prefix": "rtn_"
1259
- },
1260
- {
1261
- "name": "version",
1262
- "required": true,
1263
- "schema": {
1264
- "pattern": "^-?(?:0|[1-9]\\d*)$",
1265
- "type": "integer",
1266
- "format": "int32"
1267
- }
1268
- }
1269
- ],
1270
- "query_params": [],
1271
- "body_schema": null,
1272
- "unnamed_in_spec": false,
1273
- "destructive": false,
1274
- "core": false,
1275
- "sensitive_rule": false,
1276
- "mcp": true,
1277
- "anonymous": false,
1278
- "scope": "deck:read"
1279
- },
1280
1160
  {
1281
1161
  "command": "sessions retrieve",
1282
1162
  "tool": "get_session",
@@ -2046,107 +1926,6 @@
2046
1926
  "anonymous": false,
2047
1927
  "scope": "deck:read"
2048
1928
  },
2049
- {
2050
- "command": "routines list",
2051
- "tool": "list_routines",
2052
- "operationId": "listRoutines",
2053
- "description": "List routines",
2054
- "method": "GET",
2055
- "path": "/v2/routines",
2056
- "path_params": [],
2057
- "query_params": [
2058
- {
2059
- "name": "task_id",
2060
- "required": false,
2061
- "schema": {
2062
- "type": "string"
2063
- },
2064
- "id_prefix": "task_"
2065
- },
2066
- {
2067
- "name": "source_id",
2068
- "required": false,
2069
- "schema": {
2070
- "type": "string"
2071
- },
2072
- "id_prefix": "src_"
2073
- },
2074
- {
2075
- "name": "Limit",
2076
- "required": false,
2077
- "schema": {
2078
- "pattern": "^-?(?:0|[1-9]\\d*)$",
2079
- "type": [
2080
- "integer",
2081
- "string"
2082
- ],
2083
- "format": "int32"
2084
- }
2085
- },
2086
- {
2087
- "name": "Cursor",
2088
- "required": false,
2089
- "schema": {
2090
- "type": "string"
2091
- }
2092
- }
2093
- ],
2094
- "body_schema": null,
2095
- "unnamed_in_spec": false,
2096
- "destructive": false,
2097
- "core": true,
2098
- "sensitive_rule": false,
2099
- "mcp": true,
2100
- "anonymous": false,
2101
- "scope": "deck:read"
2102
- },
2103
- {
2104
- "command": "routines versions",
2105
- "tool": "list_routine_versions",
2106
- "operationId": "listRoutineVersions",
2107
- "description": "List a routine's versions",
2108
- "method": "GET",
2109
- "path": "/v2/routines/{routine_id}/versions",
2110
- "path_params": [
2111
- {
2112
- "name": "routine_id",
2113
- "required": true,
2114
- "schema": {
2115
- "type": "string"
2116
- },
2117
- "id_prefix": "rtn_"
2118
- }
2119
- ],
2120
- "query_params": [
2121
- {
2122
- "name": "Limit",
2123
- "required": false,
2124
- "schema": {
2125
- "pattern": "^-?(?:0|[1-9]\\d*)$",
2126
- "type": [
2127
- "integer",
2128
- "string"
2129
- ],
2130
- "format": "int32"
2131
- }
2132
- },
2133
- {
2134
- "name": "Cursor",
2135
- "required": false,
2136
- "schema": {
2137
- "type": "string"
2138
- }
2139
- }
2140
- ],
2141
- "body_schema": null,
2142
- "unnamed_in_spec": false,
2143
- "destructive": false,
2144
- "core": false,
2145
- "sensitive_rule": false,
2146
- "mcp": true,
2147
- "anonymous": false,
2148
- "scope": "deck:read"
2149
- },
2150
1929
  {
2151
1930
  "command": "sessions list",
2152
1931
  "tool": "list_sessions",
@@ -2783,54 +2562,6 @@
2783
2562
  "anonymous": false,
2784
2563
  "scope": "deck:read"
2785
2564
  },
2786
- {
2787
- "command": "tasks sources reorder",
2788
- "tool": "reorder_task_source_routines",
2789
- "operationId": "reorderTaskSourceRoutines",
2790
- "description": "Reorder a source's routine chain",
2791
- "method": "PATCH",
2792
- "path": "/v2/tasks/{task_id}/sources/{source_id}",
2793
- "path_params": [
2794
- {
2795
- "name": "task_id",
2796
- "required": true,
2797
- "schema": {
2798
- "type": "string"
2799
- },
2800
- "id_prefix": "task_"
2801
- },
2802
- {
2803
- "name": "source_id",
2804
- "required": true,
2805
- "schema": {
2806
- "type": "string"
2807
- },
2808
- "id_prefix": "src_"
2809
- }
2810
- ],
2811
- "query_params": [],
2812
- "body_schema": {
2813
- "required": [
2814
- "routine_ids"
2815
- ],
2816
- "type": "object",
2817
- "properties": {
2818
- "routine_ids": {
2819
- "type": "array",
2820
- "items": {
2821
- "type": "string"
2822
- }
2823
- }
2824
- }
2825
- },
2826
- "unnamed_in_spec": false,
2827
- "destructive": false,
2828
- "core": false,
2829
- "sensitive_rule": false,
2830
- "mcp": true,
2831
- "anonymous": false,
2832
- "scope": "deck:write"
2833
- },
2834
2565
  {
2835
2566
  "command": "events replay",
2836
2567
  "tool": "replay_event",
@@ -3077,7 +2808,7 @@
3077
2808
  "input": {},
3078
2809
  "interactions_suppressed": {
3079
2810
  "type": "boolean",
3080
- "description": "When true, the run never sends an interaction (MFA code, security question) to a person. Challenges Deck clears on its own (captchas, auto-resolved verification steps) still proceed; one that needs a person fails the run with error code `interaction_suppressed` and leaves the credential valid. The credential stays valid. Defaults to false.",
2811
+ "description": "When true, the run never sends an interaction (MFA code, security question) to a person. Challenges Deck clears on its own still proceed: captchas, auto-resolved verification steps, and prompts the credential's managed interactions answer. One that needs a person fails the run with error code `interaction_suppressed`, or, for a managed credential with fallback off, the specific `interaction_*` code. That failure does not invalidate the credential; a managed credential goes invalid only when none of its methods works. Defaults to false.",
3081
2812
  "default": false
3082
2813
  }
3083
2814
  }
@@ -3169,7 +2900,7 @@
3169
2900
  },
3170
2901
  "interactions_suppressed": {
3171
2902
  "type": "boolean",
3172
- "description": "When true, no step of this run sends an interaction (MFA code, security question) to a person. Challenges Deck clears on its own (captchas, auto-resolved verification steps) still proceed; one that needs a person fails the run with error code `interaction_suppressed` and leaves the credential valid. The credential stays valid. Defaults to false."
2903
+ "description": "When true, no step of this run sends an interaction (MFA code, security question) to a person. Challenges Deck clears on its own still proceed: captchas, auto-resolved verification steps, and prompts a credential's managed interactions answer. One that needs a person fails the run with error code `interaction_suppressed`, or, for a managed credential with fallback off, the specific `interaction_*` code. That failure does not invalidate the credential; a managed credential goes invalid only when none of its methods works. Defaults to false."
3173
2904
  }
3174
2905
  }
3175
2906
  },
@@ -3323,6 +3054,7 @@
3323
3054
  "type": "object",
3324
3055
  "properties": {
3325
3056
  "name": {
3057
+ "maxLength": 255,
3326
3058
  "type": [
3327
3059
  "null",
3328
3060
  "string"
@@ -3330,6 +3062,7 @@
3330
3062
  "description": "New display name for the agent."
3331
3063
  },
3332
3064
  "description": {
3065
+ "maxLength": 2048,
3333
3066
  "type": [
3334
3067
  "null",
3335
3068
  "string"
@@ -3539,49 +3272,6 @@
3539
3272
  "anonymous": false,
3540
3273
  "scope": "deck:write"
3541
3274
  },
3542
- {
3543
- "command": "routines update",
3544
- "tool": "update_routine",
3545
- "operationId": "updateRoutine",
3546
- "description": "Update a routine",
3547
- "method": "PATCH",
3548
- "path": "/v2/routines/{routine_id}",
3549
- "path_params": [
3550
- {
3551
- "name": "routine_id",
3552
- "required": true,
3553
- "schema": {
3554
- "type": "string"
3555
- },
3556
- "id_prefix": "rtn_"
3557
- }
3558
- ],
3559
- "query_params": [],
3560
- "body_schema": {
3561
- "type": "object",
3562
- "properties": {
3563
- "name": {
3564
- "type": [
3565
- "null",
3566
- "string"
3567
- ]
3568
- },
3569
- "type": {
3570
- "type": [
3571
- "null",
3572
- "string"
3573
- ]
3574
- }
3575
- }
3576
- },
3577
- "unnamed_in_spec": false,
3578
- "destructive": false,
3579
- "core": true,
3580
- "sensitive_rule": false,
3581
- "mcp": true,
3582
- "anonymous": false,
3583
- "scope": "deck:write"
3584
- },
3585
3275
  {
3586
3276
  "command": "sources update",
3587
3277
  "tool": "update_source",
@@ -3679,7 +3369,8 @@
3679
3369
  },
3680
3370
  "storage": {},
3681
3371
  "settings": {},
3682
- "output_schema": {}
3372
+ "output_schema": {},
3373
+ "policies": {}
3683
3374
  }
3684
3375
  },
3685
3376
  "unnamed_in_spec": false,