cyberdesk 2.2.42 → 2.2.44

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.
@@ -2868,6 +2868,12 @@ export type WorkflowCreate = {
2868
2868
  * Send webhook on run completion
2869
2869
  */
2870
2870
  is_webhooks_enabled?: boolean;
2871
+ /**
2872
+ * Terminal Command Allowlist
2873
+ *
2874
+ * Optional workflow-level allowlist for execute_terminal_command. When set, the agent may only run commands that exactly match one of the approved command templates.
2875
+ */
2876
+ terminal_command_allowlist?: Array<string> | null;
2871
2877
  /**
2872
2878
  * Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
2873
2879
  */
@@ -3262,6 +3268,12 @@ export type WorkflowResponse = {
3262
3268
  * Send webhook on run completion
3263
3269
  */
3264
3270
  is_webhooks_enabled?: boolean;
3271
+ /**
3272
+ * Terminal Command Allowlist
3273
+ *
3274
+ * Optional workflow-level allowlist for execute_terminal_command. When set, the agent may only run commands that exactly match one of the approved command templates.
3275
+ */
3276
+ terminal_command_allowlist?: Array<string> | null;
3265
3277
  /**
3266
3278
  * Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
3267
3279
  */
@@ -3351,6 +3363,12 @@ export type WorkflowResponseWithIncludes = {
3351
3363
  * Send webhook on run completion
3352
3364
  */
3353
3365
  is_webhooks_enabled?: boolean;
3366
+ /**
3367
+ * Terminal Command Allowlist
3368
+ *
3369
+ * Optional workflow-level allowlist for execute_terminal_command. When set, the agent may only run commands that exactly match one of the approved command templates.
3370
+ */
3371
+ terminal_command_allowlist?: Array<string> | null;
3354
3372
  /**
3355
3373
  * Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
3356
3374
  */
@@ -3662,6 +3680,12 @@ export type WorkflowUpdate = {
3662
3680
  * Send webhook on run completion
3663
3681
  */
3664
3682
  is_webhooks_enabled?: boolean | null;
3683
+ /**
3684
+ * Terminal Command Allowlist
3685
+ *
3686
+ * Optional workflow-level allowlist for execute_terminal_command. Set to an empty list or null to clear the allowlist.
3687
+ */
3688
+ terminal_command_allowlist?: Array<string> | null;
3665
3689
  /**
3666
3690
  * Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
3667
3691
  */
package/dist/index.d.ts CHANGED
@@ -514,7 +514,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
514
514
  /**
515
515
  * Create a new workflow
516
516
  *
517
- * @param data - Workflow configuration including name and main prompt
517
+ * @param data - Workflow configuration including name, main prompt, and optional fields like `terminal_command_allowlist`
518
518
  * @returns Created workflow details
519
519
  *
520
520
  * @example
@@ -522,7 +522,10 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
522
522
  * const workflow = await client.workflows.create({
523
523
  * name: 'My Workflow',
524
524
  * main_prompt: 'Perform this task...',
525
- * includes_file_exports: true
525
+ * includes_file_exports: true,
526
+ * terminal_command_allowlist: [
527
+ * 'Get-ChildItem "C:\\Exports\\*.pdf" | ConvertTo-Json'
528
+ * ]
526
529
  * });
527
530
  * ```
528
531
  */
@@ -562,7 +565,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
562
565
  * Update a workflow
563
566
  *
564
567
  * @param workflowId - The ID of the workflow to update
565
- * @param data - Update data (name, main_prompt, output_schema, etc.)
568
+ * @param data - Update data (name, main_prompt, output_schema, terminal_command_allowlist, etc.)
566
569
  * @returns Updated workflow details
567
570
  */
568
571
  update: (workflowId: string, data: WorkflowUpdate) => Promise<({
package/dist/index.js CHANGED
@@ -641,7 +641,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
641
641
  /**
642
642
  * Create a new workflow
643
643
  *
644
- * @param data - Workflow configuration including name and main prompt
644
+ * @param data - Workflow configuration including name, main prompt, and optional fields like `terminal_command_allowlist`
645
645
  * @returns Created workflow details
646
646
  *
647
647
  * @example
@@ -649,7 +649,10 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
649
649
  * const workflow = await client.workflows.create({
650
650
  * name: 'My Workflow',
651
651
  * main_prompt: 'Perform this task...',
652
- * includes_file_exports: true
652
+ * includes_file_exports: true,
653
+ * terminal_command_allowlist: [
654
+ * 'Get-ChildItem "C:\\Exports\\*.pdf" | ConvertTo-Json'
655
+ * ]
653
656
  * });
654
657
  * ```
655
658
  */
@@ -681,7 +684,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
681
684
  * Update a workflow
682
685
  *
683
686
  * @param workflowId - The ID of the workflow to update
684
- * @param data - Update data (name, main_prompt, output_schema, etc.)
687
+ * @param data - Update data (name, main_prompt, output_schema, terminal_command_allowlist, etc.)
685
688
  * @returns Updated workflow details
686
689
  */
687
690
  update: (workflowId, data) => __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "2.2.42",
3
+ "version": "2.2.44",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,6 +24,12 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "author": "Cyberdesk Team <dev@cyberdesk.io>",
27
+ "overrides": {
28
+ "c12": "3.3.4",
29
+ "giget": "3.2.0",
30
+ "rc9": "3.0.1",
31
+ "defu": "6.1.6"
32
+ },
27
33
  "bugs": {
28
34
  "url": "https://github.com/cyberdesk-hq/cyberdesk/issues"
29
35
  },