current-cli 0.1.29__tar.gz → 0.1.31__tar.gz
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.
- {current_cli-0.1.29 → current_cli-0.1.31}/PKG-INFO +1 -1
- {current_cli-0.1.29 → current_cli-0.1.31}/current_cli/schema.yml +199 -14
- {current_cli-0.1.29 → current_cli-0.1.31}/llms.txt +47 -11
- {current_cli-0.1.29 → current_cli-0.1.31}/pyproject.toml +1 -1
- {current_cli-0.1.29 → current_cli-0.1.31}/tests/test_command_tree.py +1 -1
- {current_cli-0.1.29 → current_cli-0.1.31}/tests/test_requests.py +2 -2
- {current_cli-0.1.29 → current_cli-0.1.31}/.gitignore +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/README.md +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/current_cli/__init__.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/current_cli/build.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/current_cli/config.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/current_cli/docs.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/current_cli/http.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/current_cli/main.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/current_cli/schema.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/scripts/bump_version.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/tests/__init__.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/tests/conftest.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/tests/test_auth.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/tests/test_bump_version.py +0 -0
- {current_cli-0.1.29 → current_cli-0.1.31}/tests/test_docs.py +0 -0
|
@@ -634,10 +634,10 @@ paths:
|
|
|
634
634
|
schema:
|
|
635
635
|
$ref: '#/components/schemas/FileUrlResponse'
|
|
636
636
|
description: ''
|
|
637
|
-
/api/
|
|
637
|
+
/api/inboxes/inboxes/:
|
|
638
638
|
get:
|
|
639
|
-
operationId:
|
|
640
|
-
description:
|
|
639
|
+
operationId: inbox_list
|
|
640
|
+
description: List (and lazily provision) the workspace's inboxes, one per role.
|
|
641
641
|
parameters:
|
|
642
642
|
- in: query
|
|
643
643
|
name: workspace
|
|
@@ -646,7 +646,7 @@ paths:
|
|
|
646
646
|
description: Workspace UUID
|
|
647
647
|
required: true
|
|
648
648
|
tags:
|
|
649
|
-
-
|
|
649
|
+
- inboxes
|
|
650
650
|
security:
|
|
651
651
|
- MessagingJobTokenAuth: []
|
|
652
652
|
- tokenAuth: []
|
|
@@ -655,8 +655,112 @@ paths:
|
|
|
655
655
|
content:
|
|
656
656
|
application/json:
|
|
657
657
|
schema:
|
|
658
|
-
|
|
658
|
+
type: array
|
|
659
|
+
items:
|
|
660
|
+
$ref: '#/components/schemas/WorkspaceInbox'
|
|
661
|
+
description: ''
|
|
662
|
+
/api/inboxes/inboxes/{inbox_id}/allow-lists/:
|
|
663
|
+
get:
|
|
664
|
+
operationId: inbox_allow_lists_retrieve
|
|
665
|
+
description: |-
|
|
666
|
+
Inbox-scoped AgentMail receive and send allow lists.
|
|
667
|
+
|
|
668
|
+
Every workspace member can inspect the effective entries. Only workspace
|
|
669
|
+
admins can add or remove entries, matching other integration settings.
|
|
670
|
+
parameters:
|
|
671
|
+
- in: path
|
|
672
|
+
name: inbox_id
|
|
673
|
+
schema:
|
|
674
|
+
type: string
|
|
675
|
+
format: uuid
|
|
676
|
+
required: true
|
|
677
|
+
tags:
|
|
678
|
+
- inboxes
|
|
679
|
+
security:
|
|
680
|
+
- MessagingJobTokenAuth: []
|
|
681
|
+
- tokenAuth: []
|
|
682
|
+
responses:
|
|
683
|
+
'200':
|
|
684
|
+
content:
|
|
685
|
+
application/json:
|
|
686
|
+
schema:
|
|
687
|
+
$ref: '#/components/schemas/EmailAllowLists'
|
|
659
688
|
description: ''
|
|
689
|
+
post:
|
|
690
|
+
operationId: inbox_allow_lists_create
|
|
691
|
+
description: |-
|
|
692
|
+
Inbox-scoped AgentMail receive and send allow lists.
|
|
693
|
+
|
|
694
|
+
Every workspace member can inspect the effective entries. Only workspace
|
|
695
|
+
admins can add or remove entries, matching other integration settings.
|
|
696
|
+
parameters:
|
|
697
|
+
- in: path
|
|
698
|
+
name: inbox_id
|
|
699
|
+
schema:
|
|
700
|
+
type: string
|
|
701
|
+
format: uuid
|
|
702
|
+
required: true
|
|
703
|
+
tags:
|
|
704
|
+
- inboxes
|
|
705
|
+
requestBody:
|
|
706
|
+
content:
|
|
707
|
+
application/json:
|
|
708
|
+
schema:
|
|
709
|
+
$ref: '#/components/schemas/EmailAllowListMutationRequest'
|
|
710
|
+
application/x-www-form-urlencoded:
|
|
711
|
+
schema:
|
|
712
|
+
$ref: '#/components/schemas/EmailAllowListMutationRequest'
|
|
713
|
+
multipart/form-data:
|
|
714
|
+
schema:
|
|
715
|
+
$ref: '#/components/schemas/EmailAllowListMutationRequest'
|
|
716
|
+
required: true
|
|
717
|
+
security:
|
|
718
|
+
- MessagingJobTokenAuth: []
|
|
719
|
+
- tokenAuth: []
|
|
720
|
+
responses:
|
|
721
|
+
'201':
|
|
722
|
+
content:
|
|
723
|
+
application/json:
|
|
724
|
+
schema:
|
|
725
|
+
$ref: '#/components/schemas/EmailAllowListEntry'
|
|
726
|
+
description: ''
|
|
727
|
+
delete:
|
|
728
|
+
operationId: inbox_allow_lists_destroy
|
|
729
|
+
description: |-
|
|
730
|
+
Inbox-scoped AgentMail receive and send allow lists.
|
|
731
|
+
|
|
732
|
+
Every workspace member can inspect the effective entries. Only workspace
|
|
733
|
+
admins can add or remove entries, matching other integration settings.
|
|
734
|
+
parameters:
|
|
735
|
+
- in: query
|
|
736
|
+
name: direction
|
|
737
|
+
schema:
|
|
738
|
+
type: string
|
|
739
|
+
enum:
|
|
740
|
+
- receive
|
|
741
|
+
- send
|
|
742
|
+
description: AgentMail allow-list direction
|
|
743
|
+
required: true
|
|
744
|
+
- in: query
|
|
745
|
+
name: entry
|
|
746
|
+
schema:
|
|
747
|
+
type: string
|
|
748
|
+
description: Email address or domain to remove
|
|
749
|
+
required: true
|
|
750
|
+
- in: path
|
|
751
|
+
name: inbox_id
|
|
752
|
+
schema:
|
|
753
|
+
type: string
|
|
754
|
+
format: uuid
|
|
755
|
+
required: true
|
|
756
|
+
tags:
|
|
757
|
+
- inboxes
|
|
758
|
+
security:
|
|
759
|
+
- MessagingJobTokenAuth: []
|
|
760
|
+
- tokenAuth: []
|
|
761
|
+
responses:
|
|
762
|
+
'204':
|
|
763
|
+
description: No response body
|
|
660
764
|
/api/integrations/connections/:
|
|
661
765
|
get:
|
|
662
766
|
operationId: integrations_connections_list
|
|
@@ -943,7 +1047,12 @@ paths:
|
|
|
943
1047
|
/api/integrations/messaging/react/:
|
|
944
1048
|
post:
|
|
945
1049
|
operationId: integrations_messaging_react
|
|
946
|
-
description:
|
|
1050
|
+
description: |-
|
|
1051
|
+
Add an emoji reaction to the message a reply_ref points at.
|
|
1052
|
+
|
|
1053
|
+
Email has no reactions and is refused. An email job is not offered the
|
|
1054
|
+
``react`` tool at all, so reaching here means a caller sent something it
|
|
1055
|
+
should not have.
|
|
947
1056
|
tags:
|
|
948
1057
|
- integrations
|
|
949
1058
|
requestBody:
|
|
@@ -971,14 +1080,8 @@ paths:
|
|
|
971
1080
|
post:
|
|
972
1081
|
operationId: integrations_messaging_respond
|
|
973
1082
|
description: |-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
Slack shares the files and the text as one message (the text becomes
|
|
978
|
-
the upload's ``initial_comment``). Teams cannot: a bot there has to
|
|
979
|
-
offer each file through a FileConsentCard the recipient accepts, and
|
|
980
|
-
only in a 1:1 chat, so the text posts first and each file follows as
|
|
981
|
-
its own offer.
|
|
1083
|
+
Relay the agent's reply, and any workspace files it chose to attach,
|
|
1084
|
+
into the conversation the message came from — see :func:`send_reply`.
|
|
982
1085
|
tags:
|
|
983
1086
|
- integrations
|
|
984
1087
|
requestBody:
|
|
@@ -1053,6 +1156,10 @@ paths:
|
|
|
1053
1156
|
``append``/``stop`` replace the card in full, rebuilt from the chunks —
|
|
1054
1157
|
the sandbox always sends its complete state, so the relay stays
|
|
1055
1158
|
stateless.
|
|
1159
|
+
|
|
1160
|
+
Email has no live message to evolve and is refused. An email job builds
|
|
1161
|
+
no reporter, so reaching here means a caller sent something it should
|
|
1162
|
+
not have.
|
|
1056
1163
|
tags:
|
|
1057
1164
|
- integrations
|
|
1058
1165
|
requestBody:
|
|
@@ -3423,6 +3530,57 @@ components:
|
|
|
3423
3530
|
type: string
|
|
3424
3531
|
required:
|
|
3425
3532
|
- detail
|
|
3533
|
+
DirectionEnum:
|
|
3534
|
+
enum:
|
|
3535
|
+
- receive
|
|
3536
|
+
- send
|
|
3537
|
+
type: string
|
|
3538
|
+
description: |-
|
|
3539
|
+
* `receive` - receive
|
|
3540
|
+
* `send` - send
|
|
3541
|
+
EmailAllowListEntry:
|
|
3542
|
+
type: object
|
|
3543
|
+
properties:
|
|
3544
|
+
entry:
|
|
3545
|
+
type: string
|
|
3546
|
+
entry_type:
|
|
3547
|
+
$ref: '#/components/schemas/EntryTypeEnum'
|
|
3548
|
+
read_only:
|
|
3549
|
+
type: boolean
|
|
3550
|
+
default: false
|
|
3551
|
+
created_at:
|
|
3552
|
+
type: string
|
|
3553
|
+
format: date-time
|
|
3554
|
+
required:
|
|
3555
|
+
- created_at
|
|
3556
|
+
- entry
|
|
3557
|
+
- entry_type
|
|
3558
|
+
EmailAllowListMutationRequest:
|
|
3559
|
+
type: object
|
|
3560
|
+
properties:
|
|
3561
|
+
direction:
|
|
3562
|
+
$ref: '#/components/schemas/DirectionEnum'
|
|
3563
|
+
entry:
|
|
3564
|
+
type: string
|
|
3565
|
+
minLength: 1
|
|
3566
|
+
maxLength: 254
|
|
3567
|
+
required:
|
|
3568
|
+
- direction
|
|
3569
|
+
- entry
|
|
3570
|
+
EmailAllowLists:
|
|
3571
|
+
type: object
|
|
3572
|
+
properties:
|
|
3573
|
+
receive:
|
|
3574
|
+
type: array
|
|
3575
|
+
items:
|
|
3576
|
+
$ref: '#/components/schemas/EmailAllowListEntry'
|
|
3577
|
+
send:
|
|
3578
|
+
type: array
|
|
3579
|
+
items:
|
|
3580
|
+
$ref: '#/components/schemas/EmailAllowListEntry'
|
|
3581
|
+
required:
|
|
3582
|
+
- receive
|
|
3583
|
+
- send
|
|
3426
3584
|
EmojiEnum:
|
|
3427
3585
|
enum:
|
|
3428
3586
|
- eyes
|
|
@@ -3433,6 +3591,14 @@ components:
|
|
|
3433
3591
|
* `eyes` - eyes
|
|
3434
3592
|
* `heart` - heart
|
|
3435
3593
|
* `thumbsup` - thumbsup
|
|
3594
|
+
EntryTypeEnum:
|
|
3595
|
+
enum:
|
|
3596
|
+
- email
|
|
3597
|
+
- domain
|
|
3598
|
+
type: string
|
|
3599
|
+
description: |-
|
|
3600
|
+
* `email` - email
|
|
3601
|
+
* `domain` - domain
|
|
3436
3602
|
ErrorDetail:
|
|
3437
3603
|
type: object
|
|
3438
3604
|
properties:
|
|
@@ -3646,6 +3812,14 @@ components:
|
|
|
3646
3812
|
required:
|
|
3647
3813
|
- path
|
|
3648
3814
|
- url
|
|
3815
|
+
InboxRoleEnum:
|
|
3816
|
+
enum:
|
|
3817
|
+
- interaction
|
|
3818
|
+
- ingest
|
|
3819
|
+
type: string
|
|
3820
|
+
description: |-
|
|
3821
|
+
* `interaction` - Interaction
|
|
3822
|
+
* `ingest` - Ingest
|
|
3649
3823
|
IntegrationConnection:
|
|
3650
3824
|
type: object
|
|
3651
3825
|
description: |-
|
|
@@ -3957,6 +4131,11 @@ components:
|
|
|
3957
4131
|
type: string
|
|
3958
4132
|
minLength: 1
|
|
3959
4133
|
maxLength: 1024
|
|
4134
|
+
about_runs:
|
|
4135
|
+
type: array
|
|
4136
|
+
items:
|
|
4137
|
+
type: string
|
|
4138
|
+
format: uuid
|
|
3960
4139
|
required:
|
|
3961
4140
|
- reply_ref
|
|
3962
4141
|
- text
|
|
@@ -5538,6 +5717,11 @@ components:
|
|
|
5538
5717
|
address:
|
|
5539
5718
|
type: string
|
|
5540
5719
|
readOnly: true
|
|
5720
|
+
role:
|
|
5721
|
+
allOf:
|
|
5722
|
+
- $ref: '#/components/schemas/InboxRoleEnum'
|
|
5723
|
+
readOnly: true
|
|
5724
|
+
default: interaction
|
|
5541
5725
|
created_at:
|
|
5542
5726
|
type: string
|
|
5543
5727
|
format: date-time
|
|
@@ -5546,6 +5730,7 @@ components:
|
|
|
5546
5730
|
- address
|
|
5547
5731
|
- created_at
|
|
5548
5732
|
- id
|
|
5733
|
+
- role
|
|
5549
5734
|
- workspace
|
|
5550
5735
|
WorkspaceInvite:
|
|
5551
5736
|
type: object
|
|
@@ -241,11 +241,45 @@ POST /api/files/upload-url/
|
|
|
241
241
|
Options:
|
|
242
242
|
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
243
243
|
|
|
244
|
-
### current
|
|
244
|
+
### current inboxes allow-lists create <inbox_id>
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
Inbox-scoped AgentMail receive and send allow lists.
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
Every workspace member can inspect the effective entries. Only workspace
|
|
249
|
+
admins can add or remove entries, matching other integration settings.
|
|
250
|
+
|
|
251
|
+
POST /api/inboxes/inboxes/{inbox_id}/allow-lists/
|
|
252
|
+
|
|
253
|
+
Options:
|
|
254
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
255
|
+
|
|
256
|
+
### current inboxes allow-lists destroy <inbox_id>
|
|
257
|
+
|
|
258
|
+
Inbox-scoped AgentMail receive and send allow lists.
|
|
259
|
+
|
|
260
|
+
Every workspace member can inspect the effective entries. Only workspace
|
|
261
|
+
admins can add or remove entries, matching other integration settings.
|
|
262
|
+
|
|
263
|
+
DELETE /api/inboxes/inboxes/{inbox_id}/allow-lists/
|
|
264
|
+
|
|
265
|
+
Options:
|
|
266
|
+
- `--direction` - AgentMail allow-list direction
|
|
267
|
+
- `--entry` - Email address or domain to remove
|
|
268
|
+
|
|
269
|
+
### current inboxes allow-lists retrieve <inbox_id>
|
|
270
|
+
|
|
271
|
+
Inbox-scoped AgentMail receive and send allow lists.
|
|
272
|
+
|
|
273
|
+
Every workspace member can inspect the effective entries. Only workspace
|
|
274
|
+
admins can add or remove entries, matching other integration settings.
|
|
275
|
+
|
|
276
|
+
GET /api/inboxes/inboxes/{inbox_id}/allow-lists/
|
|
277
|
+
|
|
278
|
+
### current inboxes list
|
|
279
|
+
|
|
280
|
+
List (and lazily provision) the workspace's inboxes, one per role.
|
|
281
|
+
|
|
282
|
+
GET /api/inboxes/inboxes/
|
|
249
283
|
|
|
250
284
|
Options:
|
|
251
285
|
- `--workspace` - Workspace UUID
|
|
@@ -364,6 +398,10 @@ Options:
|
|
|
364
398
|
|
|
365
399
|
Add an emoji reaction to the message a reply_ref points at.
|
|
366
400
|
|
|
401
|
+
Email has no reactions and is refused. An email job is not offered the
|
|
402
|
+
``react`` tool at all, so reaching here means a caller sent something it
|
|
403
|
+
should not have.
|
|
404
|
+
|
|
367
405
|
POST /api/integrations/messaging/react/
|
|
368
406
|
|
|
369
407
|
Options:
|
|
@@ -371,14 +409,8 @@ Options:
|
|
|
371
409
|
|
|
372
410
|
### current integrations messaging respond post
|
|
373
411
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
Slack shares the files and the text as one message (the text becomes
|
|
378
|
-
the upload's ``initial_comment``). Teams cannot: a bot there has to
|
|
379
|
-
offer each file through a FileConsentCard the recipient accepts, and
|
|
380
|
-
only in a 1:1 chat, so the text posts first and each file follows as
|
|
381
|
-
its own offer.
|
|
412
|
+
Relay the agent's reply, and any workspace files it chose to attach,
|
|
413
|
+
into the conversation the message came from — see :func:`send_reply`.
|
|
382
414
|
|
|
383
415
|
POST /api/integrations/messaging/respond/
|
|
384
416
|
|
|
@@ -416,6 +448,10 @@ toggleable activity section) and returns its activity id as ``ts``;
|
|
|
416
448
|
the sandbox always sends its complete state, so the relay stays
|
|
417
449
|
stateless.
|
|
418
450
|
|
|
451
|
+
Email has no live message to evolve and is refused. An email job builds
|
|
452
|
+
no reporter, so reaching here means a caller sent something it should
|
|
453
|
+
not have.
|
|
454
|
+
|
|
419
455
|
POST /api/integrations/messaging/stream/
|
|
420
456
|
|
|
421
457
|
Options:
|
|
@@ -45,7 +45,7 @@ def test_expected_command_paths(cli):
|
|
|
45
45
|
["workspaces", "members", "list"],
|
|
46
46
|
["workspaces", "invites", "accept", "create"],
|
|
47
47
|
["integrations", "connections", "channels", "list"],
|
|
48
|
-
["
|
|
48
|
+
["inboxes", "list"],
|
|
49
49
|
]:
|
|
50
50
|
_resolve(cli, parts)
|
|
51
51
|
|
|
@@ -64,7 +64,7 @@ def test_default_workspace_fallback(cli, runner, transport_factory):
|
|
|
64
64
|
config.set_value("default_workspace", "default-ws")
|
|
65
65
|
transport = transport_factory(ok({}))
|
|
66
66
|
|
|
67
|
-
result = runner.invoke(cli, ["
|
|
67
|
+
result = runner.invoke(cli, ["inboxes", "list"])
|
|
68
68
|
|
|
69
69
|
assert result.exit_code == 0, result.output
|
|
70
70
|
assert transport.requests[0].url.params["workspace"] == "default-ws"
|
|
@@ -73,7 +73,7 @@ def test_default_workspace_fallback(cli, runner, transport_factory):
|
|
|
73
73
|
def test_required_workspace_missing_fails(cli, runner, transport_factory):
|
|
74
74
|
transport = transport_factory(ok({}))
|
|
75
75
|
|
|
76
|
-
result = runner.invoke(cli, ["
|
|
76
|
+
result = runner.invoke(cli, ["inboxes", "list"])
|
|
77
77
|
|
|
78
78
|
assert result.exit_code != 0
|
|
79
79
|
assert "--workspace" in result.output
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|