@tessl/cli 0.22.1 → 0.24.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 (3) hide show
  1. package/dist/bundle.mjs +2880 -2495
  2. package/dist/cli.d.ts +26 -379
  3. package/package.json +4 -1
package/dist/cli.d.ts CHANGED
@@ -49,6 +49,7 @@ declare const netSchema: _sinclair_typebox.TObject<{
49
49
  TESSL_LOG_LEVEL: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"trace">, _sinclair_typebox.TLiteral<"debug">, _sinclair_typebox.TLiteral<"info">, _sinclair_typebox.TLiteral<"warn">, _sinclair_typebox.TLiteral<"error">, _sinclair_typebox.TLiteral<"fatal">, _sinclair_typebox.TLiteral<"silent">]>;
50
50
  TESSL_LOG_FILE: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
51
51
  WORKOS_CLIENT_ID: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
52
+ TESSL_TOKEN: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
52
53
  TESSL_LLM_API_KEY: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
53
54
  TESSL_LLM_BASE_URL: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
54
55
  TESSL_DISABLE_LLM_CACHE: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"true">, _sinclair_typebox.TLiteral<"false">]>>;
@@ -252,7 +253,7 @@ interface paths {
252
253
  get: {
253
254
  parameters: {
254
255
  query?: {
255
- sort?: 'updatedAt' | '-updatedAt';
256
+ sort?: ('updatedAt' | '-updatedAt' | 'similarity' | '-similarity' | 'id' | '-id') | ('updatedAt' | '-updatedAt' | 'similarity' | '-similarity' | 'id' | '-id')[];
256
257
  'page[size]'?: number;
257
258
  'page[after]'?: string;
258
259
  'page[before]'?: string;
@@ -265,6 +266,14 @@ interface paths {
265
266
  'filter[name][lte]'?: string;
266
267
  'filter[name][ne]'?: string;
267
268
  'filter[name][like]'?: string;
269
+ 'filter[fullName]'?: string;
270
+ 'filter[fullName][eq]'?: string;
271
+ 'filter[fullName][gte]'?: string;
272
+ 'filter[fullName][gt]'?: string;
273
+ 'filter[fullName][lt]'?: string;
274
+ 'filter[fullName][lte]'?: string;
275
+ 'filter[fullName][ne]'?: string;
276
+ 'filter[fullName][like]'?: string;
268
277
  'filter[describes]'?: string;
269
278
  'filter[describes][eq]'?: string;
270
279
  'filter[describes][gte]'?: string;
@@ -930,7 +939,7 @@ interface paths {
930
939
  get: {
931
940
  parameters: {
932
941
  query?: {
933
- sort?: 'createdAt' | '-createdAt';
942
+ sort?: ('version' | '-version') | ('version' | '-version')[];
934
943
  'page[size]'?: number;
935
944
  'page[after]'?: string;
936
945
  'page[before]'?: string;
@@ -1402,7 +1411,7 @@ interface paths {
1402
1411
  get: {
1403
1412
  parameters: {
1404
1413
  query?: {
1405
- sort?: 'username' | '-username' | 'createdAt' | '-createdAt';
1414
+ sort?: ('username' | '-username' | 'createdAt' | '-createdAt') | ('username' | '-username' | 'createdAt' | '-createdAt')[];
1406
1415
  'page[size]'?: number;
1407
1416
  'page[after]'?: string;
1408
1417
  'page[before]'?: string;
@@ -2402,9 +2411,7 @@ interface paths {
2402
2411
  };
2403
2412
  requestBody?: {
2404
2413
  content: {
2405
- 'application/json': {
2406
- name?: string;
2407
- };
2414
+ 'application/json': Record<string, never>;
2408
2415
  };
2409
2416
  };
2410
2417
  responses: {
@@ -2645,7 +2652,7 @@ interface paths {
2645
2652
  get: {
2646
2653
  parameters: {
2647
2654
  query?: {
2648
- sort?: 'name' | '-name' | 'updatedAt' | '-updatedAt';
2655
+ sort?: ('name' | '-name' | 'updatedAt' | '-updatedAt') | ('name' | '-name' | 'updatedAt' | '-updatedAt')[];
2649
2656
  'page[size]'?: number;
2650
2657
  'page[after]'?: string;
2651
2658
  'page[before]'?: string;
@@ -2936,7 +2943,7 @@ interface paths {
2936
2943
  get: {
2937
2944
  parameters: {
2938
2945
  query?: {
2939
- sort?: 'username' | '-username';
2946
+ sort?: ('username' | '-username') | ('username' | '-username')[];
2940
2947
  'page[size]'?: number;
2941
2948
  'page[after]'?: string;
2942
2949
  'page[before]'?: string;
@@ -3331,370 +3338,6 @@ interface paths {
3331
3338
  patch?: never;
3332
3339
  trace?: never;
3333
3340
  };
3334
- '/experimental/package-versions': {
3335
- parameters: {
3336
- query?: never;
3337
- header?: never;
3338
- path?: never;
3339
- cookie?: never;
3340
- };
3341
- get?: never;
3342
- put?: never;
3343
- post: {
3344
- parameters: {
3345
- query?: never;
3346
- header?: never;
3347
- path?: never;
3348
- cookie?: never;
3349
- };
3350
- requestBody: {
3351
- content: {
3352
- 'application/json': {
3353
- purl: string;
3354
- };
3355
- };
3356
- };
3357
- responses: {
3358
- /** @description Default Response */
3359
- 200: {
3360
- headers: {
3361
- [name: string]: unknown;
3362
- };
3363
- content?: never;
3364
- };
3365
- };
3366
- };
3367
- delete?: never;
3368
- options?: never;
3369
- head?: never;
3370
- patch?: never;
3371
- trace?: never;
3372
- };
3373
- '/experimental/package-versions/{purl}': {
3374
- parameters: {
3375
- query?: never;
3376
- header?: never;
3377
- path?: never;
3378
- cookie?: never;
3379
- };
3380
- get: {
3381
- parameters: {
3382
- query?: never;
3383
- header?: never;
3384
- path: {
3385
- purl: string;
3386
- };
3387
- cookie?: never;
3388
- };
3389
- requestBody?: never;
3390
- responses: {
3391
- /** @description Default Response */
3392
- 200: {
3393
- headers: {
3394
- [name: string]: unknown;
3395
- };
3396
- content: {
3397
- 'application/json': {
3398
- jsonapi: {
3399
- profile: string[];
3400
- /** @enum {string} */
3401
- version: '1.1';
3402
- };
3403
- data: {
3404
- /** Format: uuid */
3405
- id: string;
3406
- /** @enum {string} */
3407
- type: 'package';
3408
- attributes: {
3409
- purl: string;
3410
- packageDisplayName: string;
3411
- version: string;
3412
- summaryText: string;
3413
- lookupText: string;
3414
- descriptionMarkdown: string;
3415
- /** Format: date-time */
3416
- createdAt: string;
3417
- };
3418
- relationships?: Record<string, never>;
3419
- meta?: Record<string, never>;
3420
- };
3421
- included?: unknown;
3422
- links: {
3423
- /** Format: uri */
3424
- self: string;
3425
- /** Format: uri */
3426
- related?: string;
3427
- };
3428
- meta?: Record<string, never>;
3429
- };
3430
- };
3431
- };
3432
- /** @description Unauthorized */
3433
- 401: {
3434
- headers: {
3435
- [name: string]: unknown;
3436
- };
3437
- content: {
3438
- 'application/json': {
3439
- jsonapi: {
3440
- profile: string[];
3441
- /** @enum {string} */
3442
- version: '1.1';
3443
- };
3444
- errors: {
3445
- title: string;
3446
- status: string;
3447
- detail: string;
3448
- }[];
3449
- };
3450
- };
3451
- };
3452
- /** @description Forbidden */
3453
- 403: {
3454
- headers: {
3455
- [name: string]: unknown;
3456
- };
3457
- content: {
3458
- 'application/json': {
3459
- jsonapi: {
3460
- profile: string[];
3461
- /** @enum {string} */
3462
- version: '1.1';
3463
- };
3464
- errors: {
3465
- title: string;
3466
- status: string;
3467
- detail: string;
3468
- }[];
3469
- };
3470
- };
3471
- };
3472
- /** @description Not Found */
3473
- 404: {
3474
- headers: {
3475
- [name: string]: unknown;
3476
- };
3477
- content: {
3478
- 'application/json': {
3479
- jsonapi: {
3480
- profile: string[];
3481
- /** @enum {string} */
3482
- version: '1.1';
3483
- };
3484
- errors: {
3485
- title: string;
3486
- status: string;
3487
- detail: string;
3488
- }[];
3489
- };
3490
- };
3491
- };
3492
- /** @description Internal Server Error */
3493
- 500: {
3494
- headers: {
3495
- [name: string]: unknown;
3496
- };
3497
- content: {
3498
- 'application/json': {
3499
- jsonapi: {
3500
- profile: string[];
3501
- /** @enum {string} */
3502
- version: '1.1';
3503
- };
3504
- errors: {
3505
- title: string;
3506
- status: string;
3507
- detail: string;
3508
- }[];
3509
- };
3510
- };
3511
- };
3512
- };
3513
- };
3514
- put?: never;
3515
- post?: never;
3516
- delete?: never;
3517
- options?: never;
3518
- head?: never;
3519
- patch?: never;
3520
- trace?: never;
3521
- };
3522
- '/experimental/packages': {
3523
- parameters: {
3524
- query?: never;
3525
- header?: never;
3526
- path?: never;
3527
- cookie?: never;
3528
- };
3529
- get: {
3530
- parameters: {
3531
- query?: {
3532
- sort?: 'displayName' | '-displayName' | 'updatedAt' | '-updatedAt';
3533
- 'page[size]'?: number;
3534
- 'page[after]'?: string;
3535
- 'page[before]'?: string;
3536
- include?: string;
3537
- 'filter[displayName]'?: string;
3538
- 'filter[displayName][eq]'?: string;
3539
- 'filter[displayName][gte]'?: string;
3540
- 'filter[displayName][gt]'?: string;
3541
- 'filter[displayName][lt]'?: string;
3542
- 'filter[displayName][lte]'?: string;
3543
- 'filter[displayName][ne]'?: string;
3544
- 'filter[displayName][like]'?: string;
3545
- 'filter[packageType]'?: string;
3546
- 'filter[packageType][eq]'?: string;
3547
- 'filter[packageType][gte]'?: string;
3548
- 'filter[packageType][gt]'?: string;
3549
- 'filter[packageType][lt]'?: string;
3550
- 'filter[packageType][lte]'?: string;
3551
- 'filter[packageType][ne]'?: string;
3552
- 'filter[packageType][like]'?: string;
3553
- 'filter[description]'?: string;
3554
- 'filter[description][eq]'?: string;
3555
- 'filter[description][gte]'?: string;
3556
- 'filter[description][gt]'?: string;
3557
- 'filter[description][lt]'?: string;
3558
- 'filter[description][lte]'?: string;
3559
- 'filter[description][ne]'?: string;
3560
- 'filter[description][like]'?: string;
3561
- };
3562
- header?: never;
3563
- path?: never;
3564
- cookie?: never;
3565
- };
3566
- requestBody?: never;
3567
- responses: {
3568
- /** @description Default Response */
3569
- 200: {
3570
- headers: {
3571
- [name: string]: unknown;
3572
- };
3573
- content: {
3574
- 'application/json': {
3575
- jsonapi: {
3576
- profile: string[];
3577
- /** @enum {string} */
3578
- version: '1.1';
3579
- };
3580
- links: {
3581
- /** Format: uri */
3582
- self: string;
3583
- next: string | null;
3584
- prev: string | null;
3585
- };
3586
- meta: {
3587
- count: number;
3588
- };
3589
- included?: unknown;
3590
- relationships?: Record<string, never>;
3591
- data: {
3592
- /** Format: uuid */
3593
- id: string;
3594
- /** @enum {string} */
3595
- type: 'package';
3596
- attributes: {
3597
- purl: string;
3598
- packageType: string;
3599
- displayName: string;
3600
- summaryText: string;
3601
- };
3602
- relationships?: Record<string, never>;
3603
- meta?: Record<string, never>;
3604
- }[];
3605
- };
3606
- };
3607
- };
3608
- /** @description Unauthorized */
3609
- 401: {
3610
- headers: {
3611
- [name: string]: unknown;
3612
- };
3613
- content: {
3614
- 'application/json': {
3615
- jsonapi: {
3616
- profile: string[];
3617
- /** @enum {string} */
3618
- version: '1.1';
3619
- };
3620
- errors: {
3621
- title: string;
3622
- status: string;
3623
- detail: string;
3624
- }[];
3625
- };
3626
- };
3627
- };
3628
- /** @description Forbidden */
3629
- 403: {
3630
- headers: {
3631
- [name: string]: unknown;
3632
- };
3633
- content: {
3634
- 'application/json': {
3635
- jsonapi: {
3636
- profile: string[];
3637
- /** @enum {string} */
3638
- version: '1.1';
3639
- };
3640
- errors: {
3641
- title: string;
3642
- status: string;
3643
- detail: string;
3644
- }[];
3645
- };
3646
- };
3647
- };
3648
- /** @description Not Found */
3649
- 404: {
3650
- headers: {
3651
- [name: string]: unknown;
3652
- };
3653
- content: {
3654
- 'application/json': {
3655
- jsonapi: {
3656
- profile: string[];
3657
- /** @enum {string} */
3658
- version: '1.1';
3659
- };
3660
- errors: {
3661
- title: string;
3662
- status: string;
3663
- detail: string;
3664
- }[];
3665
- };
3666
- };
3667
- };
3668
- /** @description Internal Server Error */
3669
- 500: {
3670
- headers: {
3671
- [name: string]: unknown;
3672
- };
3673
- content: {
3674
- 'application/json': {
3675
- jsonapi: {
3676
- profile: string[];
3677
- /** @enum {string} */
3678
- version: '1.1';
3679
- };
3680
- errors: {
3681
- title: string;
3682
- status: string;
3683
- detail: string;
3684
- }[];
3685
- };
3686
- };
3687
- };
3688
- };
3689
- };
3690
- put?: never;
3691
- post?: never;
3692
- delete?: never;
3693
- options?: never;
3694
- head?: never;
3695
- patch?: never;
3696
- trace?: never;
3697
- };
3698
3341
  '/experimental/cli-env': {
3699
3342
  parameters: {
3700
3343
  query?: never;
@@ -3932,7 +3575,9 @@ interface paths {
3932
3575
  };
3933
3576
  }
3934
3577
 
3935
- type TesslClient = Client<paths>;
3578
+ type TesslClient = Client<paths> & {
3579
+ setAccessToken: (accessToken: string | undefined) => void;
3580
+ };
3936
3581
 
3937
3582
  type TaskDetails = {
3938
3583
  task: string;
@@ -4147,6 +3792,8 @@ interface ExecRequest {
4147
3792
  cwd: string;
4148
3793
  /** Timeout in seconds (default: 10) */
4149
3794
  timeoutSecs?: number;
3795
+ /** Inactivity Timeout in seconds (default: 10) - times out the process if it doesn't output anything for x seconds */
3796
+ inactivityTimeoutSecs?: number;
4150
3797
  /** List of files to fetch after execution */
4151
3798
  fetchFiles?: string[];
4152
3799
  /** Whether to merge stdout/stderr (default: false) */
@@ -4169,6 +3816,10 @@ interface ExecResponse {
4169
3816
  fetchedFiles: Record<string, string>;
4170
3817
  /** Error if spawn failed */
4171
3818
  error?: unknown;
3819
+ /** Way that the process has timed out, either 'process':overall timeout,
3820
+ * or 'inactivity', i.e. the process has not written anything to stdout or stderr in x seconds
3821
+ * */
3822
+ timeoutType?: 'process' | 'inactivity';
4172
3823
  }
4173
3824
 
4174
3825
  interface CreateCommitRequest {
@@ -4398,6 +4049,7 @@ type RelativePath$1 = string;
4398
4049
  type Fsd = EnhancedFileApi;
4399
4050
  interface PrimitiveFileApi {
4400
4051
  exists: (path: RelativePath$1) => Promise<boolean>;
4052
+ isDir: (path: RelativePath$1) => Promise<boolean>;
4401
4053
  readText: (path: RelativePath$1) => Promise<string | undefined>;
4402
4054
  writeText: (path: RelativePath$1, content: string) => Promise<void>;
4403
4055
  glob: (pattern: string, options?: Record<string, unknown>) => Promise<string[]>;
@@ -4490,11 +4142,6 @@ interface RunToolArgs {
4490
4142
  declare const runToolOrCrash: (...args: Parameters<typeof runTool>) => Promise<void>;
4491
4143
  declare function runTool<T extends AnyZodObject>(toolToRun: ToolToRun<T>, args: RunToolArgs): Promise<ExitCode>;
4492
4144
 
4493
- type WaitForInputFn = (inputDetails: {
4494
- question: string;
4495
- filePaths?: string[];
4496
- showContinueOptions: boolean;
4497
- }) => Promise<string | undefined>;
4498
4145
  interface RequestContext {
4499
4146
  uuid: string;
4500
4147
  parent?: string;
@@ -4513,7 +4160,7 @@ interface RequestContext {
4513
4160
  projectConfig: Readonly<ProjectConfig>;
4514
4161
  projectDir: string;
4515
4162
  reporter: Reporter;
4516
- waitForInput?: WaitForInputFn;
4163
+ reqLevelParams: ReqDefaults;
4517
4164
  shutdown: () => Promise<void>;
4518
4165
  }
4519
4166
  interface HiEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tessl/cli",
3
- "version": "0.22.1",
3
+ "version": "0.24.0",
4
4
  "description": "Command line interface and MCP server for using Tessl",
5
5
  "types": "dist/cli.d.ts",
6
6
  "bin": {
@@ -33,5 +33,8 @@
33
33
  "protobufjs": "7.5.3",
34
34
  "tsx": "4.20.3",
35
35
  "open": "10.1.2"
36
+ },
37
+ "engines": {
38
+ "node": ">=22.0.0"
36
39
  }
37
40
  }