current-cli 0.1.85__tar.gz → 0.1.87__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: current-cli
3
- Version: 0.1.85
3
+ Version: 0.1.87
4
4
  Summary: Command line interface for the Current API, generated from its OpenAPI schema at runtime
5
5
  Author-email: Orin <your-email@example.com>
6
6
  License-Expression: MIT
@@ -890,8 +890,8 @@ paths:
890
890
  post:
891
891
  operationId: files_delete
892
892
  description: |-
893
- Delete workspace files. The bucket is versioned, so this writes
894
- delete markers — recoverable by an operator, invisible to the portal.
893
+ Delete workspace files. Each keeps a copy under ``_trash/`` for 30
894
+ days — recoverable by an operator, invisible to the portal.
895
895
  tags:
896
896
  - files
897
897
  requestBody:
@@ -4957,7 +4957,13 @@ paths:
4957
4957
  One page of interactions. Each row is compact: sender, the message
4958
4958
  and a reply preview, status, duration, tokens, cost, tool and error
4959
4959
  counts, the workflow runs it started, and review counts (``mine`` is
4960
- the caller's own sentiment). Read the transcript on ``GET {id}/``.
4960
+ the caller's own sentiment). Read a recorded trace on ``GET {id}/``.
4961
+
4962
+ When ``trace_available`` is false, ``id`` is an observation UUID and
4963
+ ``email_evidence`` contains the stored message and matched replies.
4964
+ Trace detail and review endpoints do not accept these observation IDs.
4965
+ Execution metrics are null. Status, tool, error, and review filters
4966
+ include recorded traces only. Intake emails are not interactions.
4961
4967
  parameters:
4962
4968
  - in: query
4963
4969
  name: channel
@@ -5618,7 +5624,8 @@ paths:
5618
5624
 
5619
5625
  This endpoint is intentionally narrower than the member-facing file
5620
5626
  deletion API. A workflow can remove only a draft PDF in its own project's
5621
- ``po/`` directory, and bucket versioning keeps the operation recoverable.
5627
+ ``po/`` directory, and the copy under ``_trash/`` keeps the operation
5628
+ recoverable for 30 days.
5622
5629
  parameters:
5623
5630
  - in: path
5624
5631
  name: run_id
@@ -7327,6 +7334,21 @@ components:
7327
7334
  BlankEnum:
7328
7335
  enum:
7329
7336
  - ''
7337
+ ChannelReaction:
7338
+ type: object
7339
+ properties:
7340
+ actor_name:
7341
+ type: string
7342
+ reaction:
7343
+ type: string
7344
+ description: The channel's reaction name, e.g. like.
7345
+ occurred_at:
7346
+ type: string
7347
+ format: date-time
7348
+ required:
7349
+ - actor_name
7350
+ - occurred_at
7351
+ - reaction
7330
7352
  CheckpointRequestRequest:
7331
7353
  type: object
7332
7354
  properties:
@@ -8390,6 +8412,16 @@ components:
8390
8412
  required:
8391
8413
  - receive
8392
8414
  - send
8415
+ EmailEvidence:
8416
+ type: object
8417
+ properties:
8418
+ message:
8419
+ type: string
8420
+ reply:
8421
+ type: string
8422
+ required:
8423
+ - message
8424
+ - reply
8393
8425
  EmojiEnum:
8394
8426
  enum:
8395
8427
  - eyes
@@ -9272,114 +9304,13 @@ components:
9272
9304
  * `notion` - Notion
9273
9305
  * `salesforce` - Salesforce
9274
9306
  * `adobe_sign` - Adobe Sign
9275
- Interaction:
9276
- type: object
9277
- description: |-
9278
- One row of the interactions list: what a reviewer scans to pick a
9279
- trace to read. The transcript itself is on the detail route.
9280
- properties:
9281
- id:
9282
- type: string
9283
- format: uuid
9284
- readOnly: true
9285
- kind:
9286
- allOf:
9287
- - $ref: '#/components/schemas/AgentTraceKindEnum'
9288
- readOnly: true
9289
- workspace:
9290
- allOf:
9291
- - $ref: '#/components/schemas/WorkspaceRef'
9292
- readOnly: true
9293
- status:
9294
- allOf:
9295
- - $ref: '#/components/schemas/AgentTraceStatusEnum'
9296
- readOnly: true
9297
- channel:
9298
- type: string
9299
- readOnly: true
9300
- sender:
9301
- type: string
9302
- readOnly: true
9303
- message_preview:
9304
- type: string
9305
- readOnly: true
9306
- reply_preview:
9307
- type: string
9308
- readOnly: true
9309
- started_at:
9310
- type: string
9311
- format: date-time
9312
- readOnly: true
9313
- duration_ms:
9314
- type: integer
9315
- readOnly: true
9316
- nullable: true
9317
- model:
9318
- type: string
9319
- readOnly: true
9320
- input_tokens:
9321
- type: integer
9322
- readOnly: true
9323
- nullable: true
9324
- output_tokens:
9325
- type: integer
9326
- readOnly: true
9327
- nullable: true
9328
- cost_usd:
9329
- type: string
9330
- format: decimal
9331
- pattern: ^-?\d{0,6}(?:\.\d{0,6})?$
9332
- readOnly: true
9333
- nullable: true
9334
- tool_call_count:
9335
- type: integer
9336
- readOnly: true
9337
- nullable: true
9338
- tool_error_count:
9339
- type: integer
9340
- readOnly: true
9341
- nullable: true
9342
- tools_used:
9343
- type: array
9344
- items:
9345
- type: string
9346
- readOnly: true
9347
- spawned_runs:
9348
- type: array
9349
- items:
9350
- $ref: '#/components/schemas/SpawnedRunRef'
9351
- readOnly: true
9352
- review:
9353
- allOf:
9354
- - $ref: '#/components/schemas/ReviewSummary'
9355
- readOnly: true
9356
- required:
9357
- - channel
9358
- - cost_usd
9359
- - duration_ms
9360
- - id
9361
- - input_tokens
9362
- - kind
9363
- - message_preview
9364
- - model
9365
- - output_tokens
9366
- - reply_preview
9367
- - review
9368
- - sender
9369
- - spawned_runs
9370
- - started_at
9371
- - status
9372
- - tool_call_count
9373
- - tool_error_count
9374
- - tools_used
9375
- - workspace
9376
9307
  InteractionListResponse:
9377
9308
  type: object
9378
9309
  properties:
9379
9310
  items:
9380
9311
  type: array
9381
9312
  items:
9382
- $ref: '#/components/schemas/Interaction'
9313
+ $ref: '#/components/schemas/ReviewInteraction'
9383
9314
  total:
9384
9315
  type: integer
9385
9316
  next_offset:
@@ -11033,6 +10964,22 @@ components:
11033
10964
  - user_email
11034
10965
  - user_name
11035
10966
  - workspace
10967
+ ReactionCounts:
10968
+ type: object
10969
+ properties:
10970
+ up:
10971
+ type: integer
10972
+ description: Members' current thumbs-up on the runs it started.
10973
+ down:
10974
+ type: integer
10975
+ description: Members' current thumbs-down on the runs it started.
10976
+ channel:
10977
+ type: integer
10978
+ description: Reactions people left on the agent's reply in the channel (Teams).
10979
+ required:
10980
+ - channel
10981
+ - down
10982
+ - up
11036
10983
  ReactionCreate:
11037
10984
  type: object
11038
10985
  description: |-
@@ -11172,6 +11119,41 @@ components:
11172
11119
  maxLength: 2048
11173
11120
  required:
11174
11121
  - reason
11122
+ Reply:
11123
+ type: object
11124
+ properties:
11125
+ text:
11126
+ type: string
11127
+ description: The reply text the agent drafted.
11128
+ status:
11129
+ allOf:
11130
+ - $ref: '#/components/schemas/ReplyStatusEnum'
11131
+ description: |-
11132
+ sent: delivered to the person. rejected: the reviewer returned it and nothing was sent. failed: sending failed. pending: no result yet.
11133
+
11134
+ * `sent` - sent
11135
+ * `rejected` - rejected
11136
+ * `failed` - failed
11137
+ * `pending` - pending
11138
+ feedback:
11139
+ type: string
11140
+ description: The reviewer's feedback on a rejected draft, or the failure.
11141
+ required:
11142
+ - feedback
11143
+ - status
11144
+ - text
11145
+ ReplyStatusEnum:
11146
+ enum:
11147
+ - sent
11148
+ - rejected
11149
+ - failed
11150
+ - pending
11151
+ type: string
11152
+ description: |-
11153
+ * `sent` - sent
11154
+ * `rejected` - rejected
11155
+ * `failed` - failed
11156
+ * `pending` - pending
11175
11157
  RequestMagicLinkRequest:
11176
11158
  type: object
11177
11159
  properties:
@@ -11240,6 +11222,123 @@ components:
11240
11222
  format: uuid
11241
11223
  required:
11242
11224
  - write_id
11225
+ ReviewInteraction:
11226
+ type: object
11227
+ description: A trace-backed interaction or a read-only email ledger fallback.
11228
+ properties:
11229
+ id:
11230
+ type: string
11231
+ format: uuid
11232
+ readOnly: true
11233
+ kind:
11234
+ allOf:
11235
+ - $ref: '#/components/schemas/AgentTraceKindEnum'
11236
+ readOnly: true
11237
+ workspace:
11238
+ allOf:
11239
+ - $ref: '#/components/schemas/WorkspaceRef'
11240
+ readOnly: true
11241
+ status:
11242
+ readOnly: true
11243
+ nullable: true
11244
+ oneOf:
11245
+ - $ref: '#/components/schemas/AgentTraceStatusEnum'
11246
+ - $ref: '#/components/schemas/NullEnum'
11247
+ channel:
11248
+ type: string
11249
+ readOnly: true
11250
+ sender:
11251
+ type: string
11252
+ readOnly: true
11253
+ message_preview:
11254
+ type: string
11255
+ readOnly: true
11256
+ reply_preview:
11257
+ type: string
11258
+ readOnly: true
11259
+ started_at:
11260
+ type: string
11261
+ format: date-time
11262
+ readOnly: true
11263
+ duration_ms:
11264
+ type: integer
11265
+ readOnly: true
11266
+ nullable: true
11267
+ model:
11268
+ type: string
11269
+ readOnly: true
11270
+ input_tokens:
11271
+ type: integer
11272
+ readOnly: true
11273
+ nullable: true
11274
+ output_tokens:
11275
+ type: integer
11276
+ readOnly: true
11277
+ nullable: true
11278
+ cost_usd:
11279
+ type: string
11280
+ format: decimal
11281
+ pattern: ^-?\d{0,6}(?:\.\d{0,6})?$
11282
+ readOnly: true
11283
+ nullable: true
11284
+ tool_call_count:
11285
+ type: integer
11286
+ readOnly: true
11287
+ nullable: true
11288
+ tool_error_count:
11289
+ type: integer
11290
+ readOnly: true
11291
+ nullable: true
11292
+ tools_used:
11293
+ type: array
11294
+ items:
11295
+ type: string
11296
+ readOnly: true
11297
+ spawned_runs:
11298
+ type: array
11299
+ items:
11300
+ $ref: '#/components/schemas/SpawnedRunRef'
11301
+ readOnly: true
11302
+ review:
11303
+ allOf:
11304
+ - $ref: '#/components/schemas/ReviewSummary'
11305
+ readOnly: true
11306
+ trace_available:
11307
+ type: boolean
11308
+ readOnly: true
11309
+ default: true
11310
+ email_evidence:
11311
+ allOf:
11312
+ - $ref: '#/components/schemas/EmailEvidence'
11313
+ readOnly: true
11314
+ nullable: true
11315
+ reaction_counts:
11316
+ allOf:
11317
+ - $ref: '#/components/schemas/ReactionCounts'
11318
+ readOnly: true
11319
+ required:
11320
+ - channel
11321
+ - cost_usd
11322
+ - duration_ms
11323
+ - email_evidence
11324
+ - id
11325
+ - input_tokens
11326
+ - kind
11327
+ - message_preview
11328
+ - model
11329
+ - output_tokens
11330
+ - reaction_counts
11331
+ - reply_preview
11332
+ - review
11333
+ - sender
11334
+ - spawned_runs
11335
+ - started_at
11336
+ - status
11337
+ - tool_call_count
11338
+ - tool_error_count
11339
+ - tools_used
11340
+ - trace_available
11341
+ - workspace
11243
11342
  ReviewSummary:
11244
11343
  type: object
11245
11344
  properties:
@@ -12108,6 +12207,12 @@ components:
12108
12207
  duration_ms:
12109
12208
  type: integer
12110
12209
  nullable: true
12210
+ reply:
12211
+ allOf:
12212
+ - $ref: '#/components/schemas/Reply'
12213
+ nullable: true
12214
+ description: 'Set on the agent''s reply tool: what it tried to send and
12215
+ what happened.'
12111
12216
  required:
12112
12217
  - arguments
12113
12218
  - arguments_truncated
@@ -12302,6 +12407,11 @@ components:
12302
12407
  items:
12303
12408
  $ref: '#/components/schemas/Reaction'
12304
12409
  readOnly: true
12410
+ channel_reactions:
12411
+ type: array
12412
+ items:
12413
+ $ref: '#/components/schemas/ChannelReaction'
12414
+ readOnly: true
12305
12415
  reviews:
12306
12416
  type: array
12307
12417
  items:
@@ -12311,6 +12421,7 @@ components:
12311
12421
  - attempt
12312
12422
  - cached_tokens
12313
12423
  - channel
12424
+ - channel_reactions
12314
12425
  - conversation_key
12315
12426
  - cost_usd
12316
12427
  - document_state
@@ -12449,6 +12560,22 @@ components:
12449
12560
  $ref: '#/components/schemas/TurnRoleEnum'
12450
12561
  text:
12451
12562
  type: string
12563
+ source:
12564
+ allOf:
12565
+ - $ref: '#/components/schemas/TurnSourceEnum'
12566
+ description: |-
12567
+ User turns only. prompt: the opening turn. runtime: a note the runtime added to the conversation, not from the person.
12568
+
12569
+ * `prompt` - prompt
12570
+ * `runtime` - runtime
12571
+ message:
12572
+ type: string
12573
+ description: 'Prompt turns only: the person''s own message, or empty when
12574
+ the prompt has none (a workflow step).'
12575
+ context:
12576
+ type: string
12577
+ description: 'Prompt turns only: the context the platform added around the
12578
+ message.'
12452
12579
  reasoning:
12453
12580
  type: string
12454
12581
  tool_calls:
@@ -12484,6 +12611,14 @@ components:
12484
12611
  description: |-
12485
12612
  * `user` - user
12486
12613
  * `assistant` - assistant
12614
+ TurnSourceEnum:
12615
+ enum:
12616
+ - prompt
12617
+ - runtime
12618
+ type: string
12619
+ description: |-
12620
+ * `prompt` - prompt
12621
+ * `runtime` - runtime
12487
12622
  TypeEnum:
12488
12623
  enum:
12489
12624
  - link
@@ -292,8 +292,8 @@ Options:
292
292
 
293
293
  ### current files delete post
294
294
 
295
- Delete workspace files. The bucket is versioned, so this writes
296
- delete markers — recoverable by an operator, invisible to the portal.
295
+ Delete workspace files. Each keeps a copy under ``_trash/`` for 30
296
+ days — recoverable by an operator, invisible to the portal.
297
297
 
298
298
  POST /api/files/delete/
299
299
 
@@ -1430,7 +1430,13 @@ Options:
1430
1430
  One page of interactions. Each row is compact: sender, the message
1431
1431
  and a reply preview, status, duration, tokens, cost, tool and error
1432
1432
  counts, the workflow runs it started, and review counts (``mine`` is
1433
- the caller's own sentiment). Read the transcript on ``GET {id}/``.
1433
+ the caller's own sentiment). Read a recorded trace on ``GET {id}/``.
1434
+
1435
+ When ``trace_available`` is false, ``id`` is an observation UUID and
1436
+ ``email_evidence`` contains the stored message and matched replies.
1437
+ Trace detail and review endpoints do not accept these observation IDs.
1438
+ Execution metrics are null. Status, tool, error, and review filters
1439
+ include recorded traces only. Intake emails are not interactions.
1434
1440
 
1435
1441
  GET /api/traces/interactions/
1436
1442
 
@@ -1715,7 +1721,8 @@ Remove superseded generated PDFs from this run's project.
1715
1721
 
1716
1722
  This endpoint is intentionally narrower than the member-facing file
1717
1723
  deletion API. A workflow can remove only a draft PDF in its own project's
1718
- ``po/`` directory, and bucket versioning keeps the operation recoverable.
1724
+ ``po/`` directory, and the copy under ``_trash/`` keeps the operation
1725
+ recoverable for 30 days.
1719
1726
 
1720
1727
  POST /api/workflows/runs/{run_id}/files/delete/
1721
1728
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.85"
3
+ version = "0.1.87"
4
4
  description = "Command line interface for the Current API, generated from its OpenAPI schema at runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
File without changes
File without changes