cyberdesk 2.2.43 → 2.2.45
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/client/types.gen.d.ts +28 -12
- package/dist/index.d.ts +7 -4
- package/dist/index.js +7 -4
- package/package.json +7 -1
|
@@ -312,10 +312,6 @@ export type MachineCreate = {
|
|
|
312
312
|
* Name
|
|
313
313
|
*/
|
|
314
314
|
name?: string | null;
|
|
315
|
-
/**
|
|
316
|
-
* Fingerprint
|
|
317
|
-
*/
|
|
318
|
-
fingerprint: string;
|
|
319
315
|
/**
|
|
320
316
|
* Version
|
|
321
317
|
*/
|
|
@@ -344,6 +340,10 @@ export type MachineCreate = {
|
|
|
344
340
|
machine_sensitive_parameters?: {
|
|
345
341
|
[key: string]: string;
|
|
346
342
|
} | null;
|
|
343
|
+
/**
|
|
344
|
+
* Fingerprint
|
|
345
|
+
*/
|
|
346
|
+
fingerprint: string;
|
|
347
347
|
/**
|
|
348
348
|
* Unkey Key Id
|
|
349
349
|
*/
|
|
@@ -410,10 +410,6 @@ export type MachineResponse = {
|
|
|
410
410
|
* Name
|
|
411
411
|
*/
|
|
412
412
|
name?: string | null;
|
|
413
|
-
/**
|
|
414
|
-
* Fingerprint
|
|
415
|
-
*/
|
|
416
|
-
fingerprint: string;
|
|
417
413
|
/**
|
|
418
414
|
* Version
|
|
419
415
|
*/
|
|
@@ -512,10 +508,6 @@ export type MachineResponseWithIncludes = {
|
|
|
512
508
|
* Name
|
|
513
509
|
*/
|
|
514
510
|
name?: string | null;
|
|
515
|
-
/**
|
|
516
|
-
* Fingerprint
|
|
517
|
-
*/
|
|
518
|
-
fingerprint: string;
|
|
519
511
|
/**
|
|
520
512
|
* Unkey Key Id
|
|
521
513
|
*/
|
|
@@ -2868,6 +2860,12 @@ export type WorkflowCreate = {
|
|
|
2868
2860
|
* Send webhook on run completion
|
|
2869
2861
|
*/
|
|
2870
2862
|
is_webhooks_enabled?: boolean;
|
|
2863
|
+
/**
|
|
2864
|
+
* Terminal Command Allowlist
|
|
2865
|
+
*
|
|
2866
|
+
* 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.
|
|
2867
|
+
*/
|
|
2868
|
+
terminal_command_allowlist?: Array<string> | null;
|
|
2871
2869
|
/**
|
|
2872
2870
|
* Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
|
|
2873
2871
|
*/
|
|
@@ -3262,6 +3260,12 @@ export type WorkflowResponse = {
|
|
|
3262
3260
|
* Send webhook on run completion
|
|
3263
3261
|
*/
|
|
3264
3262
|
is_webhooks_enabled?: boolean;
|
|
3263
|
+
/**
|
|
3264
|
+
* Terminal Command Allowlist
|
|
3265
|
+
*
|
|
3266
|
+
* 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.
|
|
3267
|
+
*/
|
|
3268
|
+
terminal_command_allowlist?: Array<string> | null;
|
|
3265
3269
|
/**
|
|
3266
3270
|
* Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
|
|
3267
3271
|
*/
|
|
@@ -3351,6 +3355,12 @@ export type WorkflowResponseWithIncludes = {
|
|
|
3351
3355
|
* Send webhook on run completion
|
|
3352
3356
|
*/
|
|
3353
3357
|
is_webhooks_enabled?: boolean;
|
|
3358
|
+
/**
|
|
3359
|
+
* Terminal Command Allowlist
|
|
3360
|
+
*
|
|
3361
|
+
* 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.
|
|
3362
|
+
*/
|
|
3363
|
+
terminal_command_allowlist?: Array<string> | null;
|
|
3354
3364
|
/**
|
|
3355
3365
|
* Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
|
|
3356
3366
|
*/
|
|
@@ -3662,6 +3672,12 @@ export type WorkflowUpdate = {
|
|
|
3662
3672
|
* Send webhook on run completion
|
|
3663
3673
|
*/
|
|
3664
3674
|
is_webhooks_enabled?: boolean | null;
|
|
3675
|
+
/**
|
|
3676
|
+
* Terminal Command Allowlist
|
|
3677
|
+
*
|
|
3678
|
+
* Optional workflow-level allowlist for execute_terminal_command. Set to an empty list or null to clear the allowlist.
|
|
3679
|
+
*/
|
|
3680
|
+
terminal_command_allowlist?: Array<string> | null;
|
|
3665
3681
|
/**
|
|
3666
3682
|
* Optional workflow-level model configuration metadata (main agent, cache detection, and fallbacks).
|
|
3667
3683
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -176,7 +176,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
|
|
|
176
176
|
* @param params.include - Optional list of related resources to include. Available: ["pools"].
|
|
177
177
|
* Related resources are returned in the `included` array following the JSON:API pattern.
|
|
178
178
|
* @returns Machine details including:
|
|
179
|
-
* - Basic info: id, name, status,
|
|
179
|
+
* - Basic info: id, name, status, version, hostname, etc.
|
|
180
180
|
* - machine_parameters: Dict of desktop parameters (if configured)
|
|
181
181
|
* - machine_sensitive_parameters: Dict of sensitive parameter aliases (if configured)
|
|
182
182
|
* - physical_server_id: Fly machine ID currently hosting the WebSocket connection
|
|
@@ -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
|
|
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
|
@@ -331,7 +331,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
|
|
|
331
331
|
* @param params.include - Optional list of related resources to include. Available: ["pools"].
|
|
332
332
|
* Related resources are returned in the `included` array following the JSON:API pattern.
|
|
333
333
|
* @returns Machine details including:
|
|
334
|
-
* - Basic info: id, name, status,
|
|
334
|
+
* - Basic info: id, name, status, version, hostname, etc.
|
|
335
335
|
* - machine_parameters: Dict of desktop parameters (if configured)
|
|
336
336
|
* - machine_sensitive_parameters: Dict of sensitive parameter aliases (if configured)
|
|
337
337
|
* - physical_server_id: Fly machine ID currently hosting the WebSocket connection
|
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "2.2.45",
|
|
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
|
},
|