current-cli 0.1.61__tar.gz → 0.1.63__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.61
3
+ Version: 0.1.63
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
@@ -7,6 +7,7 @@ is stale. Regenerate with: uv run python -m current_cli.docs > llms.txt
7
7
  from __future__ import annotations
8
8
 
9
9
  from collections.abc import Iterator
10
+ from inspect import cleandoc
10
11
 
11
12
  import click
12
13
 
@@ -70,7 +71,7 @@ def render_docs(root: click.Group) -> str:
70
71
  lines = [f"### {usage}"]
71
72
  if command.help:
72
73
  lines.append("")
73
- lines.append(command.help.strip())
74
+ lines.append(cleandoc(command.help))
74
75
  if options:
75
76
  lines.append("")
76
77
  lines.append("Options:")
@@ -1432,6 +1432,40 @@ paths:
1432
1432
  schema:
1433
1433
  $ref: '#/components/schemas/MessagingStreamResponse'
1434
1434
  description: ''
1435
+ /api/integrations/messaging/trace/:
1436
+ post:
1437
+ operationId: integrations_messaging_trace
1438
+ description: |-
1439
+ Where the messaging job reports its agent trace.
1440
+
1441
+ Returns the trace's ids and a fresh presigned PUT for the transcript
1442
+ document (see ``traces.storage``); a ``summary``, when sent, is copied
1443
+ onto the trace first, and a terminal ``summary.status`` finishes it. The
1444
+ job calls this at start, at checkpoints, and at the end. The token names
1445
+ the trace, so the body carries no trace id.
1446
+ tags:
1447
+ - integrations
1448
+ requestBody:
1449
+ content:
1450
+ application/json:
1451
+ schema:
1452
+ $ref: '#/components/schemas/MessagingTraceRequestRequest'
1453
+ application/x-www-form-urlencoded:
1454
+ schema:
1455
+ $ref: '#/components/schemas/MessagingTraceRequestRequest'
1456
+ multipart/form-data:
1457
+ schema:
1458
+ $ref: '#/components/schemas/MessagingTraceRequestRequest'
1459
+ required: true
1460
+ security:
1461
+ - MessagingJobTokenAuth: []
1462
+ responses:
1463
+ '200':
1464
+ content:
1465
+ application/json:
1466
+ schema:
1467
+ $ref: '#/components/schemas/AgentTraceUpload'
1468
+ description: ''
1435
1469
  /api/integrations/teams/app-package/:
1436
1470
  get:
1437
1471
  operationId: integrations_teams_app_package
@@ -2310,6 +2344,20 @@ paths:
2310
2344
  schema:
2311
2345
  type: string
2312
2346
  description: Keep only projects whose name contains this text, ignoring case
2347
+ - in: query
2348
+ name: readiness
2349
+ schema:
2350
+ type: string
2351
+ enum:
2352
+ - all
2353
+ - blocked
2354
+ - complete
2355
+ - incomplete
2356
+ - not_assessed
2357
+ - ready
2358
+ - unverified
2359
+ description: Filter evidence readiness independently of the existing status
2360
+ filter.
2313
2361
  - in: query
2314
2362
  name: status
2315
2363
  schema:
@@ -4450,6 +4498,46 @@ paths:
4450
4498
  schema:
4451
4499
  $ref: '#/components/schemas/ToolInvokeResponse'
4452
4500
  description: ''
4501
+ /api/workflows/runs/{run_id}/traces/:
4502
+ post:
4503
+ operationId: workflows_runs_traces_create
4504
+ description: |-
4505
+ Machine endpoint: the runner reports one agent step attempt's trace.
4506
+
4507
+ Makes the trace on first call for its (step_id, attempt) and returns it
4508
+ after; a ``summary``, when sent, is copied onto it first, and a terminal
4509
+ ``summary.status`` finishes it. The response carries a fresh presigned
4510
+ PUT for the transcript document (see ``traces.storage``).
4511
+ parameters:
4512
+ - in: path
4513
+ name: run_id
4514
+ schema:
4515
+ type: string
4516
+ format: uuid
4517
+ required: true
4518
+ tags:
4519
+ - workflows
4520
+ requestBody:
4521
+ content:
4522
+ application/json:
4523
+ schema:
4524
+ $ref: '#/components/schemas/RunTraceRequestRequest'
4525
+ application/x-www-form-urlencoded:
4526
+ schema:
4527
+ $ref: '#/components/schemas/RunTraceRequestRequest'
4528
+ multipart/form-data:
4529
+ schema:
4530
+ $ref: '#/components/schemas/RunTraceRequestRequest'
4531
+ required: true
4532
+ security:
4533
+ - RunTokenAuth: []
4534
+ responses:
4535
+ '200':
4536
+ content:
4537
+ application/json:
4538
+ schema:
4539
+ $ref: '#/components/schemas/RunTraceUpload'
4540
+ description: ''
4453
4541
  /api/workflows/runs/{run_id}/transitions/:
4454
4542
  post:
4455
4543
  operationId: workflows_runs_transitions_create
@@ -5180,6 +5268,20 @@ components:
5180
5268
  - role
5181
5269
  - workspace_id
5182
5270
  - workspace_name
5271
+ AgentTraceUpload:
5272
+ type: object
5273
+ properties:
5274
+ trace_id:
5275
+ type: string
5276
+ format: uuid
5277
+ traceparent:
5278
+ type: string
5279
+ upload_url:
5280
+ type: string
5281
+ required:
5282
+ - trace_id
5283
+ - traceparent
5284
+ - upload_url
5183
5285
  ApiUserConnectRequestRequest:
5184
5286
  type: object
5185
5287
  description: |-
@@ -5364,6 +5466,16 @@ components:
5364
5466
  - client_secret
5365
5467
  - login_host
5366
5468
  - workspace
5469
+ CloseoutCompletionEnum:
5470
+ enum:
5471
+ - complete
5472
+ - incomplete
5473
+ - unverified
5474
+ type: string
5475
+ description: |-
5476
+ * `complete` - complete
5477
+ * `incomplete` - incomplete
5478
+ * `unverified` - unverified
5367
5479
  CloseoutQueueItem:
5368
5480
  type: object
5369
5481
  description: One project on a closeout queue page.
@@ -5437,6 +5549,19 @@ components:
5437
5549
  outcome:
5438
5550
  type: string
5439
5551
  nullable: true
5552
+ property_handoff:
5553
+ nullable: true
5554
+ oneOf:
5555
+ - $ref: '#/components/schemas/PropertyHandoffEnum'
5556
+ - $ref: '#/components/schemas/NullEnum'
5557
+ closeout_completion:
5558
+ nullable: true
5559
+ oneOf:
5560
+ - $ref: '#/components/schemas/CloseoutCompletionEnum'
5561
+ - $ref: '#/components/schemas/NullEnum'
5562
+ policy_id:
5563
+ type: string
5564
+ nullable: true
5440
5565
  open_outcome:
5441
5566
  type: string
5442
5567
  nullable: true
@@ -6813,6 +6938,8 @@ components:
6813
6938
  items:
6814
6939
  type: string
6815
6940
  minLength: 1
6941
+ traceparent:
6942
+ type: string
6816
6943
  required:
6817
6944
  - reply_ref
6818
6945
  - workflow
@@ -6870,6 +6997,15 @@ components:
6870
6997
  required:
6871
6998
  - ok
6872
6999
  - ts
7000
+ MessagingTraceRequestRequest:
7001
+ type: object
7002
+ properties:
7003
+ workspace:
7004
+ type: string
7005
+ format: uuid
7006
+ summary: {}
7007
+ required:
7008
+ - workspace
6873
7009
  MessagingUploadUrlsRequestRequest:
6874
7010
  type: object
6875
7011
  properties:
@@ -6886,6 +7022,9 @@ components:
6886
7022
  required:
6887
7023
  - paths
6888
7024
  - project
7025
+ NullEnum:
7026
+ enum:
7027
+ - null
6889
7028
  Observation:
6890
7029
  type: object
6891
7030
  description: |-
@@ -7619,6 +7758,16 @@ components:
7619
7758
  required:
7620
7759
  - path
7621
7760
  - url
7761
+ PropertyHandoffEnum:
7762
+ enum:
7763
+ - ready
7764
+ - blocked
7765
+ - unverified
7766
+ type: string
7767
+ description: |-
7768
+ * `ready` - ready
7769
+ * `blocked` - blocked
7770
+ * `unverified` - unverified
7622
7771
  Proposal:
7623
7772
  type: object
7624
7773
  properties:
@@ -8158,6 +8307,9 @@ components:
8158
8307
  clock:
8159
8308
  $ref: '#/components/schemas/RunClock'
8160
8309
  workflow_config: {}
8310
+ traceparent:
8311
+ type: string
8312
+ default: ''
8161
8313
  required:
8162
8314
  - clock
8163
8315
  - definition
@@ -8166,6 +8318,34 @@ components:
8166
8318
  - steps_state
8167
8319
  - trigger
8168
8320
  - workspace
8321
+ RunTraceRequestRequest:
8322
+ type: object
8323
+ properties:
8324
+ step_id:
8325
+ type: string
8326
+ minLength: 1
8327
+ maxLength: 128
8328
+ attempt:
8329
+ type: integer
8330
+ minimum: 1
8331
+ summary: {}
8332
+ required:
8333
+ - attempt
8334
+ - step_id
8335
+ RunTraceUpload:
8336
+ type: object
8337
+ properties:
8338
+ trace_id:
8339
+ type: string
8340
+ format: uuid
8341
+ traceparent:
8342
+ type: string
8343
+ upload_url:
8344
+ type: string
8345
+ required:
8346
+ - trace_id
8347
+ - traceparent
8348
+ - upload_url
8169
8349
  RunTrigger:
8170
8350
  type: object
8171
8351
  description: 'Why a run exists: trigger kind plus the triggering messages.'
@@ -548,6 +548,21 @@ POST /api/integrations/messaging/stream/
548
548
  Options:
549
549
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
550
550
 
551
+ ### current integrations messaging trace post
552
+
553
+ Where the messaging job reports its agent trace.
554
+
555
+ Returns the trace's ids and a fresh presigned PUT for the transcript
556
+ document (see ``traces.storage``); a ``summary``, when sent, is copied
557
+ onto the trace first, and a terminal ``summary.status`` finishes it. The
558
+ job calls this at start, at checkpoints, and at the end. The token names
559
+ the trace, so the body carries no trace id.
560
+
561
+ POST /api/integrations/messaging/trace/
562
+
563
+ Options:
564
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
565
+
551
566
  ### current integrations teams app-package get
552
567
 
553
568
  Download the Teams app package (manifest + icons) as a zip.
@@ -565,7 +580,7 @@ Options:
565
580
  ### current login <email>
566
581
 
567
582
  Sign in with a magic link (and an authenticator code when the account
568
- requires two-factor authentication) and store the auth token.
583
+ requires two-factor authentication) and store the auth token.
569
584
 
570
585
  ### current logout
571
586
 
@@ -679,6 +694,7 @@ Options:
679
694
  - `--limit` - Max projects per page (default 50, max 200)
680
695
  - `--offset` - Number of projects to skip (default 0)
681
696
  - `--q` - Keep only projects whose name contains this text, ignoring case
697
+ - `--readiness` - Filter evidence readiness independently of the existing status filter.
682
698
  - `--status` - Which reviewed projects to keep: 'pending' (default) for the ones asking something of a person, 'clear' for the rest, 'all' for both. A project with no closeout review is absent at every status.
683
699
  - `--workspace` - Workspace UUID
684
700
 
@@ -1461,6 +1477,20 @@ POST /api/workflows/runs/{run_id}/tools/{tool_name}/invoke/
1461
1477
  Options:
1462
1478
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1463
1479
 
1480
+ ### current workflows runs traces create <run_id>
1481
+
1482
+ Machine endpoint: the runner reports one agent step attempt's trace.
1483
+
1484
+ Makes the trace on first call for its (step_id, attempt) and returns it
1485
+ after; a ``summary``, when sent, is copied onto it first, and a terminal
1486
+ ``summary.status`` finishes it. The response carries a fresh presigned
1487
+ PUT for the transcript document (see ``traces.storage``).
1488
+
1489
+ POST /api/workflows/runs/{run_id}/traces/
1490
+
1491
+ Options:
1492
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1493
+
1464
1494
  ### current workflows runs transitions create <run_id>
1465
1495
 
1466
1496
  Machine endpoint: the runner journals step state changes. Idempotent —
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.61"
3
+ version = "0.1.63"
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"
@@ -32,3 +32,16 @@ def test_docs_command_prints_reference(cli, runner):
32
32
  assert result.exit_code == 0, result.output
33
33
  assert "# Current CLI reference" in result.output
34
34
  assert "### current projects list" in result.output
35
+
36
+
37
+ def test_docstring_indentation_is_stable_across_python_versions():
38
+ import click
39
+
40
+ from current_cli.docs import render_docs
41
+
42
+ def reference(help_text):
43
+ group = click.Group("current")
44
+ group.add_command(click.Command("example", help=help_text))
45
+ return render_docs(group)
46
+
47
+ assert reference("First line.\n Continuation.") == reference("First line.\nContinuation.")
File without changes
File without changes