lighthouse-cli 0.21.0__tar.gz → 0.22.0__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.
- {lighthouse_cli-0.21.0/lighthouse_cli.egg-info → lighthouse_cli-0.22.0}/PKG-INFO +1 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/README.md +1 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/__init__.py +1 -1
- lighthouse_cli-0.22.0/lighthouse/commands/approvals.py +119 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/ar.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/de.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/en-US.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/en.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/es.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/fr.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/ga.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/it.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/ja.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/nl.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/pt.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/zh-Hans.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/locales/zh-Hant.json +15 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/main.py +2 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0/lighthouse_cli.egg-info}/PKG-INFO +1 -1
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse_cli.egg-info/SOURCES.txt +2 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/pyproject.toml +1 -1
- lighthouse_cli-0.22.0/tests/test_approvals.py +89 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_golden.py +5 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/LICENSE +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/NOTICE +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/__main__.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/__init__.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/agents.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/builds.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/collectors.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/connect.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/connections.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/datasets.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/evals.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/kb.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/language.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/limits.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/login.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/models.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/offline.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/runs.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/spend.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/stack.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/terms.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/verify.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/commands/whoami.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/config.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/credentials.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/device.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/exits.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/flags.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/http.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/i18n.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/out.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/py.typed +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse/sealing.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse_cli.egg-info/dependency_links.txt +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse_cli.egg-info/entry_points.txt +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse_cli.egg-info/requires.txt +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse_cli.egg-info/top_level.txt +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/setup.cfg +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_ci_credential.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_collectors.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_commands.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_connect_erp_hr.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_connect_finav.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_connect_library.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_datasets.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_dev_surface.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_fixtures.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_i18n.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_installers.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_offline.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_plumbing.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_sealing.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_stack.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_verify.py +0 -0
- {lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/tests/test_version.py +0 -0
|
@@ -147,6 +147,7 @@ a terminal, and when `CI`, `NO_COLOR` or `TERM=dumb` is set.
|
|
|
147
147
|
| `connections`, `connections schedule <id> --mode ...`, `connections sync <id>` | each connection's sync schedule, last and next sync; set a schedule (`off`, `every_15m`, `hourly`, `working_hours --tz ...`, `daily --at HH:MM --tz ...`) or sync now, as yourself (a client administrator; needs `cloudflared access login https://<host>`; checked by the service exactly as on the card) |
|
|
148
148
|
| `collectors`, `collectors request --vendor ... --product ... --reads ... --cloud ...` | your tenant's collector requests and their stage in Atlantic's backlog; ask for another (handler or client administrator; `--kind`, `--access read_write`, `--urgency`, `--docs-url` optional; at a terminal it asks for what is missing). The request becomes a public issue that never names your organisation |
|
|
149
149
|
| `datasets`, `datasets signals`, `datasets settings`, `datasets export --kind sft\|preference\|retrieval [--use-case ...]`, `datasets show <id>` | training datasets from Reinforcement signals: built in your deployment, redacted there and written to your own storage; LightHouse™ and this command see the manifest's counts and hashes, never a row. Exporting needs the handler role, exports switched on for the use case, `dataset.export` on, and a sign-in with the `datasets` scope |
|
|
150
|
+
| `approvals`, `approvals assign <pack:card~run_id> <email or external id> --reason ... [--note ...]` | who waiting approvals are assigned to, and until when; assign one to a named person (contract 1.45). Assigning routes the approval and decides nothing: until the assignment expires only that person may approve or reject, in LightHouse™. Needs the handler role, `approval.assign` on, and a sign-in with the `approvals:assign` scope |
|
|
150
151
|
| `models` | the model library and its evidence scores |
|
|
151
152
|
| `kb`, `kb show`, `kb ingest <index> --source <connection or connector> [--wait]` | knowledge bases and their freshness; sync a connection into one now (`connections sync` by another name, as yourself), and with `--wait` until the deployment reports the sync finished |
|
|
152
153
|
| `agents`, `agents show`, `agents init`, `agents logs` | the agents, and scaffold one |
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# Copyright 2026 Atlantic Agentic Labs. All Rights Reserved.
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
"""`lighthouse-ai approvals`: who a waiting approval is assigned to, and
|
|
4
|
+
assigning one to a named person.
|
|
5
|
+
|
|
6
|
+
lighthouse-ai approvals # the live assignments (the default)
|
|
7
|
+
lighthouse-ai approvals assign <approval id> <assignee> --reason "..." \\
|
|
8
|
+
[--note "..."] [--deployment example-org-prod]
|
|
9
|
+
|
|
10
|
+
An approval's id is `<pack>:<card>~<run_id>`: the agent whose output waits
|
|
11
|
+
and your deployment's run id. The assignee is the person's email address or
|
|
12
|
+
their external id (the identifier your organisation gives them, which a
|
|
13
|
+
client administrator sets in LightHouse or your identity provider sends).
|
|
14
|
+
|
|
15
|
+
**Assigning routes; it decides nothing.** Your deployment holds the approval
|
|
16
|
+
for that person until the assignment expires (a day unless your policy says
|
|
17
|
+
otherwise): only they may approve or reject it in the meantime, and nobody
|
|
18
|
+
can approve or reject from here. Assigning needs the handler role,
|
|
19
|
+
`approval.assign` switched on in your command settings and your deployment's
|
|
20
|
+
policy, and a sign-in approved with the `approvals:assign` scope
|
|
21
|
+
(`lighthouse-ai login --scope "telemetry:read approvals:assign"`). A machine
|
|
22
|
+
key never can. Reading the assignments needs `telemetry:read`.
|
|
23
|
+
"""
|
|
24
|
+
from __future__ import annotations
|
|
25
|
+
|
|
26
|
+
import argparse
|
|
27
|
+
from typing import Any
|
|
28
|
+
from urllib.parse import quote
|
|
29
|
+
|
|
30
|
+
from lighthouse.exits import USAGE, CliError
|
|
31
|
+
from lighthouse.flags import inherited
|
|
32
|
+
from lighthouse.http import Refused
|
|
33
|
+
from lighthouse.main import Command, Context
|
|
34
|
+
from lighthouse.out import Out
|
|
35
|
+
|
|
36
|
+
BASE = "/api/v1/approvals"
|
|
37
|
+
# Refusals a person can act on, each with where to look next.
|
|
38
|
+
HINTS = {
|
|
39
|
+
"unknown-assignee": "name the person by the email address they sign in with, or their "
|
|
40
|
+
"external id; they must have signed in to LightHouse once",
|
|
41
|
+
"ambiguous-assignee": "name the person by their email address",
|
|
42
|
+
"commands_disabled": "a client administrator switches approval.assign on in Command settings",
|
|
43
|
+
"role_required": "assigning needs the handler role",
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _configure(ap: argparse.ArgumentParser) -> None:
|
|
48
|
+
sub = ap.add_subparsers(dest="approvals_command", metavar="<subcommand>")
|
|
49
|
+
sub.add_parser("assignments", parents=[inherited()],
|
|
50
|
+
help="the live assignments (the default)")
|
|
51
|
+
one = sub.add_parser("assign", parents=[inherited()],
|
|
52
|
+
help="assign a waiting approval to one named person (handler)")
|
|
53
|
+
one.add_argument("approval_id", help="<pack>:<card>~<run_id>")
|
|
54
|
+
one.add_argument("assignee", help="the person's email address or external id")
|
|
55
|
+
one.add_argument("--reason", required=True, help="why this person, for the audit log")
|
|
56
|
+
one.add_argument("--note", help="shown with the assignment (at most 500 characters)")
|
|
57
|
+
one.add_argument("--deployment", help="the deployment, where the tenant has more than one")
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def _row(a: dict[str, Any]) -> dict[str, Any]:
|
|
61
|
+
return {"approval_id": a.get("approval_id"), "agent": a.get("agent"),
|
|
62
|
+
"assignee": a.get("assignee"), "by": a.get("by"), "at": a.get("at"),
|
|
63
|
+
"expires_at": a.get("expires_at"), "note": a.get("note"), "source": a.get("source"),
|
|
64
|
+
"run_id_hash": a.get("run_id_hash"), "command_id": a.get("command_id")}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _assign(ctx: Context) -> dict[str, Any]:
|
|
68
|
+
a = ctx.args
|
|
69
|
+
body: dict[str, Any] = {"assignee": a.assignee, "reason": a.reason}
|
|
70
|
+
for field in ("note", "deployment"):
|
|
71
|
+
value = getattr(a, field, None)
|
|
72
|
+
if value is not None:
|
|
73
|
+
body[field] = value
|
|
74
|
+
path = f"{BASE}/{quote(a.approval_id, safe=':~')}/assignee"
|
|
75
|
+
try:
|
|
76
|
+
got = ctx.client().request("POST", path, json_body=body) or {}
|
|
77
|
+
except Refused as e:
|
|
78
|
+
if e.error in ("invalid", "bad_query", "not_found"):
|
|
79
|
+
raise CliError(e.message, code=USAGE, error=e.error,
|
|
80
|
+
hint="an approval id is <pack>:<card>~<run_id>; see "
|
|
81
|
+
"`lighthouse-ai approvals assign --help`") from None
|
|
82
|
+
if e.error in HINTS:
|
|
83
|
+
raise CliError(e.message, code=e.code, error=e.error, hint=HINTS[e.error]) from None
|
|
84
|
+
raise
|
|
85
|
+
who = got.get("assignee") or {}
|
|
86
|
+
return {"ok": True, "action": "assign", "approval_id": got.get("approval_id"),
|
|
87
|
+
"command_id": got.get("command_id"), "status": got.get("status"),
|
|
88
|
+
"deployment": got.get("deployment"), "assignee": who.get("email"),
|
|
89
|
+
"external_id": who.get("external_id"), "eligible": who.get("eligible")}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def approvals(ctx: Context) -> dict[str, Any]:
|
|
93
|
+
if getattr(ctx.args, "approvals_command", None) == "assign":
|
|
94
|
+
return _assign(ctx)
|
|
95
|
+
body = ctx.client().get(f"{BASE}/assignments") or {}
|
|
96
|
+
return {"ok": True, "action": "assignments",
|
|
97
|
+
"assignments": [_row(a) for a in body.get("assignments") or []]}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def _show(out: Out, body: dict[str, Any]) -> None:
|
|
101
|
+
if body.get("action") == "assign":
|
|
102
|
+
out.pairs([("approval", body["approval_id"]), ("assignee", body["assignee"]),
|
|
103
|
+
("eligible", "yes" if body["eligible"] else "no"),
|
|
104
|
+
("command", body["command_id"]), ("status", body["status"])])
|
|
105
|
+
out.note("your deployment holds the approval for this person once it applies the "
|
|
106
|
+
"command; `lighthouse-ai approvals` shows it then")
|
|
107
|
+
if not body["eligible"]:
|
|
108
|
+
out.note("this person's role does not let them decide approvals; your deployment "
|
|
109
|
+
"refuses the assignment unless its catalogue names them as an approver")
|
|
110
|
+
return
|
|
111
|
+
out.table(["approval", "assignee", "until", "by", "source"],
|
|
112
|
+
[[a["approval_id"] or a["agent"], a["assignee"] or "(proposed by the deployment)",
|
|
113
|
+
a["expires_at"], a["by"] or "-", a["source"]] for a in body["assignments"]])
|
|
114
|
+
out.note("`lighthouse-ai approvals assign <approval id> <email or external id> --reason ...` "
|
|
115
|
+
"assigns one")
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
COMMANDS = (Command("approvals", "who waiting approvals are assigned to, and assigning one",
|
|
119
|
+
_configure, approvals, _show),)
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "نتائج التقييم من مجموعة واحدة",
|
|
405
405
|
"help.datasets.export.deployment": "عملية النشر، عندما يكون لدى المستأجر أكثر من واحدة",
|
|
406
406
|
"help.datasets.export.reason": "السبب، لسجل التدقيق",
|
|
407
|
+
"help.approvals._help": "لمن أُسندت الموافقات قيد الانتظار، وإسناد إحداها",
|
|
408
|
+
"help.approvals.assignments._help": "عمليات الإسناد السارية (الافتراضي)",
|
|
409
|
+
"help.approvals.assign._help": "إسناد موافقة قيد الانتظار إلى شخص واحد مُسمّى (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "عنوان البريد الإلكتروني للشخص أو معرّفه الخارجي",
|
|
412
|
+
"help.approvals.assign.reason": "لماذا هذا الشخص، لسجل التدقيق",
|
|
413
|
+
"help.approvals.assign.note": "تظهر مع الإسناد (500 حرف على الأكثر)",
|
|
414
|
+
"help.approvals.assign.deployment": "عملية النشر، عندما يكون لدى المستأجر أكثر من واحدة",
|
|
407
415
|
"label.export": "تصدير",
|
|
408
416
|
"label.use_cases": "حالات الاستخدام",
|
|
409
417
|
"label.destination": "الوجهة",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "الصفوف، بحد أقصى",
|
|
413
421
|
"label.rows": "الصفوف",
|
|
414
422
|
"label.files": "الملفات",
|
|
415
|
-
"label.content_sha256": "sha256 للمحتوى"
|
|
423
|
+
"label.content_sha256": "sha256 للمحتوى",
|
|
424
|
+
"label.approval": "الموافقة",
|
|
425
|
+
"label.assignee": "المُسنَد إليه",
|
|
426
|
+
"label.until": "حتى",
|
|
427
|
+
"label.by": "بواسطة",
|
|
428
|
+
"label.source": "المصدر",
|
|
429
|
+
"label.eligible": "مؤهَّل"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "Evaluierungsergebnisse einer Suite",
|
|
405
405
|
"help.datasets.export.deployment": "die Bereitstellung, wenn der Mandant mehrere hat",
|
|
406
406
|
"help.datasets.export.reason": "warum, für das Auditprotokoll",
|
|
407
|
+
"help.approvals._help": "wem wartende Freigaben zugewiesen sind, und eine zuweisen",
|
|
408
|
+
"help.approvals.assignments._help": "die laufenden Zuweisungen (Standard)",
|
|
409
|
+
"help.approvals.assign._help": "eine wartende Freigabe einer namentlich genannten Person zuweisen (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "die E-Mail-Adresse oder externe ID der Person",
|
|
412
|
+
"help.approvals.assign.reason": "warum diese Person, für das Prüfprotokoll",
|
|
413
|
+
"help.approvals.assign.note": "mit der Zuweisung angezeigt (höchstens 500 Zeichen)",
|
|
414
|
+
"help.approvals.assign.deployment": "die Bereitstellung, wenn der Mandant mehrere hat",
|
|
407
415
|
"label.export": "Export",
|
|
408
416
|
"label.use_cases": "Anwendungsfälle",
|
|
409
417
|
"label.destination": "Ziel",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "Zeilen, höchstens",
|
|
413
421
|
"label.rows": "Zeilen",
|
|
414
422
|
"label.files": "Dateien",
|
|
415
|
-
"label.content_sha256": "SHA-256 des Inhalts"
|
|
423
|
+
"label.content_sha256": "SHA-256 des Inhalts",
|
|
424
|
+
"label.approval": "Freigabe",
|
|
425
|
+
"label.assignee": "zugewiesen an",
|
|
426
|
+
"label.until": "bis",
|
|
427
|
+
"label.by": "von",
|
|
428
|
+
"label.source": "Quelle",
|
|
429
|
+
"label.eligible": "berechtigt"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "evaluation results from one suite",
|
|
405
405
|
"help.datasets.export.deployment": "the deployment, where the tenant has more than one",
|
|
406
406
|
"help.datasets.export.reason": "why, for the audit log",
|
|
407
|
+
"help.approvals._help": "who waiting approvals are assigned to, and assigning one",
|
|
408
|
+
"help.approvals.assignments._help": "the live assignments (the default)",
|
|
409
|
+
"help.approvals.assign._help": "assign a waiting approval to one named person (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "the person's email address or external id",
|
|
412
|
+
"help.approvals.assign.reason": "why this person, for the audit log",
|
|
413
|
+
"help.approvals.assign.note": "shown with the assignment (at most 500 characters)",
|
|
414
|
+
"help.approvals.assign.deployment": "the deployment, where the tenant has more than one",
|
|
407
415
|
"label.export": "export",
|
|
408
416
|
"label.use_cases": "use cases",
|
|
409
417
|
"label.destination": "destination",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "rows, at most",
|
|
413
421
|
"label.rows": "rows",
|
|
414
422
|
"label.files": "files",
|
|
415
|
-
"label.content_sha256": "content sha256"
|
|
423
|
+
"label.content_sha256": "content sha256",
|
|
424
|
+
"label.approval": "approval",
|
|
425
|
+
"label.assignee": "assignee",
|
|
426
|
+
"label.until": "until",
|
|
427
|
+
"label.by": "by",
|
|
428
|
+
"label.source": "source",
|
|
429
|
+
"label.eligible": "eligible"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "evaluation results from one suite",
|
|
405
405
|
"help.datasets.export.deployment": "the deployment, where the tenant has more than one",
|
|
406
406
|
"help.datasets.export.reason": "why, for the audit log",
|
|
407
|
+
"help.approvals._help": "who waiting approvals are assigned to, and assigning one",
|
|
408
|
+
"help.approvals.assignments._help": "the live assignments (the default)",
|
|
409
|
+
"help.approvals.assign._help": "assign a waiting approval to one named person (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "the person's email address or external id",
|
|
412
|
+
"help.approvals.assign.reason": "why this person, for the audit log",
|
|
413
|
+
"help.approvals.assign.note": "shown with the assignment (at most 500 characters)",
|
|
414
|
+
"help.approvals.assign.deployment": "the deployment, where the tenant has more than one",
|
|
407
415
|
"label.export": "export",
|
|
408
416
|
"label.use_cases": "use cases",
|
|
409
417
|
"label.destination": "destination",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "rows, at most",
|
|
413
421
|
"label.rows": "rows",
|
|
414
422
|
"label.files": "files",
|
|
415
|
-
"label.content_sha256": "content sha256"
|
|
423
|
+
"label.content_sha256": "content sha256",
|
|
424
|
+
"label.approval": "approval",
|
|
425
|
+
"label.assignee": "assignee",
|
|
426
|
+
"label.until": "until",
|
|
427
|
+
"label.by": "by",
|
|
428
|
+
"label.source": "source",
|
|
429
|
+
"label.eligible": "eligible"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "resultados de evaluación de una sola suite",
|
|
405
405
|
"help.datasets.export.deployment": "el despliegue, cuando el cliente tiene más de uno",
|
|
406
406
|
"help.datasets.export.reason": "por qué, para el registro de auditoría",
|
|
407
|
+
"help.approvals._help": "a quién están asignadas las aprobaciones pendientes, y asignar una",
|
|
408
|
+
"help.approvals.assignments._help": "las asignaciones vigentes (por defecto)",
|
|
409
|
+
"help.approvals.assign._help": "asignar una aprobación pendiente a una persona concreta (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "la dirección de correo o el identificador externo de la persona",
|
|
412
|
+
"help.approvals.assign.reason": "por qué esta persona, para el registro de auditoría",
|
|
413
|
+
"help.approvals.assign.note": "se muestra con la asignación (500 caracteres como máximo)",
|
|
414
|
+
"help.approvals.assign.deployment": "el despliegue, cuando el cliente tiene más de uno",
|
|
407
415
|
"label.export": "exportación",
|
|
408
416
|
"label.use_cases": "casos de uso",
|
|
409
417
|
"label.destination": "destino",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "filas, como máximo",
|
|
413
421
|
"label.rows": "filas",
|
|
414
422
|
"label.files": "archivos",
|
|
415
|
-
"label.content_sha256": "sha256 del contenido"
|
|
423
|
+
"label.content_sha256": "sha256 del contenido",
|
|
424
|
+
"label.approval": "aprobación",
|
|
425
|
+
"label.assignee": "asignada a",
|
|
426
|
+
"label.until": "hasta",
|
|
427
|
+
"label.by": "por",
|
|
428
|
+
"label.source": "origen",
|
|
429
|
+
"label.eligible": "habilitada"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "les résultats d'évaluation d'une seule suite",
|
|
405
405
|
"help.datasets.export.deployment": "le déploiement, lorsque le client en a plusieurs",
|
|
406
406
|
"help.datasets.export.reason": "pourquoi, pour le journal d'audit",
|
|
407
|
+
"help.approvals._help": "à qui les validations en attente sont attribuées, et en attribuer une",
|
|
408
|
+
"help.approvals.assignments._help": "les attributions en cours (par défaut)",
|
|
409
|
+
"help.approvals.assign._help": "attribuer une validation en attente à une personne nommée (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "l'adresse e-mail ou l'identifiant externe de la personne",
|
|
412
|
+
"help.approvals.assign.reason": "pourquoi cette personne, pour le journal d'audit",
|
|
413
|
+
"help.approvals.assign.note": "affichée avec l'attribution (500 caractères au plus)",
|
|
414
|
+
"help.approvals.assign.deployment": "le déploiement, lorsque le client en a plusieurs",
|
|
407
415
|
"label.export": "export",
|
|
408
416
|
"label.use_cases": "cas d'usage",
|
|
409
417
|
"label.destination": "destination",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "lignes, au plus",
|
|
413
421
|
"label.rows": "lignes",
|
|
414
422
|
"label.files": "fichiers",
|
|
415
|
-
"label.content_sha256": "sha256 du contenu"
|
|
423
|
+
"label.content_sha256": "sha256 du contenu",
|
|
424
|
+
"label.approval": "validation",
|
|
425
|
+
"label.assignee": "attributaire",
|
|
426
|
+
"label.until": "jusqu'au",
|
|
427
|
+
"label.by": "par",
|
|
428
|
+
"label.source": "origine",
|
|
429
|
+
"label.eligible": "habilité"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "torthaí measúnaithe ó shraith amháin",
|
|
405
405
|
"help.datasets.export.deployment": "an t-imscaradh, nuair atá níos mó ná ceann amháin ag an tionónta",
|
|
406
406
|
"help.datasets.export.reason": "cén fáth, don loga iniúchta",
|
|
407
|
+
"help.approvals._help": "cé dó a sanntar formheasanna atá ag fanacht, agus ceann a shannadh",
|
|
408
|
+
"help.approvals.assignments._help": "na sannacháin bheo (an réamhshocrú)",
|
|
409
|
+
"help.approvals.assign._help": "formheas atá ag fanacht a shannadh do dhuine ainmnithe amháin (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "seoladh ríomhphoist nó aitheantas seachtrach an duine",
|
|
412
|
+
"help.approvals.assign.reason": "cén fáth an duine seo, don loga iniúchta",
|
|
413
|
+
"help.approvals.assign.note": "taispeántar leis an sannadh é (500 carachtar ar a mhéad)",
|
|
414
|
+
"help.approvals.assign.deployment": "an t-imscaradh, nuair atá níos mó ná ceann amháin ag an tionónta",
|
|
407
415
|
"label.export": "easpórtáil",
|
|
408
416
|
"label.use_cases": "cásanna úsáide",
|
|
409
417
|
"label.destination": "ceann scríbe",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "rónna, ar a mhéad",
|
|
413
421
|
"label.rows": "rónna",
|
|
414
422
|
"label.files": "comhaid",
|
|
415
|
-
"label.content_sha256": "sha256 an ábhair"
|
|
423
|
+
"label.content_sha256": "sha256 an ábhair",
|
|
424
|
+
"label.approval": "formheas",
|
|
425
|
+
"label.assignee": "sannaí",
|
|
426
|
+
"label.until": "go dtí",
|
|
427
|
+
"label.by": "ag",
|
|
428
|
+
"label.source": "foinse",
|
|
429
|
+
"label.eligible": "incháilithe"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "i risultati di valutazione di una sola suite",
|
|
405
405
|
"help.datasets.export.deployment": "il deployment, quando il cliente ne ha più di uno",
|
|
406
406
|
"help.datasets.export.reason": "perché, per il registro di audit",
|
|
407
|
+
"help.approvals._help": "a chi sono assegnate le approvazioni in attesa, e assegnarne una",
|
|
408
|
+
"help.approvals.assignments._help": "le assegnazioni in corso (predefinito)",
|
|
409
|
+
"help.approvals.assign._help": "assegnare un'approvazione in attesa a una persona indicata per nome (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "l'indirizzo email o l'identificativo esterno della persona",
|
|
412
|
+
"help.approvals.assign.reason": "perché questa persona, per il registro di audit",
|
|
413
|
+
"help.approvals.assign.note": "mostrata con l'assegnazione (al massimo 500 caratteri)",
|
|
414
|
+
"help.approvals.assign.deployment": "il deployment, quando il cliente ne ha più di uno",
|
|
407
415
|
"label.export": "esportazione",
|
|
408
416
|
"label.use_cases": "casi d'uso",
|
|
409
417
|
"label.destination": "destinazione",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "righe, al massimo",
|
|
413
421
|
"label.rows": "righe",
|
|
414
422
|
"label.files": "file",
|
|
415
|
-
"label.content_sha256": "sha256 del contenuto"
|
|
423
|
+
"label.content_sha256": "sha256 del contenuto",
|
|
424
|
+
"label.approval": "approvazione",
|
|
425
|
+
"label.assignee": "assegnatario",
|
|
426
|
+
"label.until": "fino al",
|
|
427
|
+
"label.by": "da",
|
|
428
|
+
"label.source": "origine",
|
|
429
|
+
"label.eligible": "abilitato"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "1 つのスイートの評価結果",
|
|
405
405
|
"help.datasets.export.deployment": "テナントに複数ある場合のデプロイメント",
|
|
406
406
|
"help.datasets.export.reason": "理由(監査ログ用)",
|
|
407
|
+
"help.approvals._help": "承認待ちの項目の割り当て先の確認と割り当て",
|
|
408
|
+
"help.approvals.assignments._help": "現在有効な割り当て(既定)",
|
|
409
|
+
"help.approvals.assign._help": "承認待ちの項目を指定した一人に割り当てる(handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "その人のメールアドレスまたは外部 ID",
|
|
412
|
+
"help.approvals.assign.reason": "この人を選んだ理由(監査ログ用)",
|
|
413
|
+
"help.approvals.assign.note": "割り当てと一緒に表示されるメモ(最大 500 文字)",
|
|
414
|
+
"help.approvals.assign.deployment": "テナントに複数ある場合のデプロイメント",
|
|
407
415
|
"label.export": "エクスポート",
|
|
408
416
|
"label.use_cases": "ユースケース",
|
|
409
417
|
"label.destination": "保存先",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "最大行数",
|
|
413
421
|
"label.rows": "行数",
|
|
414
422
|
"label.files": "ファイル",
|
|
415
|
-
"label.content_sha256": "コンテンツの sha256"
|
|
423
|
+
"label.content_sha256": "コンテンツの sha256",
|
|
424
|
+
"label.approval": "承認",
|
|
425
|
+
"label.assignee": "割り当て先",
|
|
426
|
+
"label.until": "期限",
|
|
427
|
+
"label.by": "割り当て者",
|
|
428
|
+
"label.source": "経路",
|
|
429
|
+
"label.eligible": "判断可能"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "evaluatieresultaten van één suite",
|
|
405
405
|
"help.datasets.export.deployment": "de implementatie, als de tenant er meer dan één heeft",
|
|
406
406
|
"help.datasets.export.reason": "waarom, voor het auditlogboek",
|
|
407
|
+
"help.approvals._help": "aan wie wachtende goedkeuringen zijn toegewezen, en er een toewijzen",
|
|
408
|
+
"help.approvals.assignments._help": "de lopende toewijzingen (standaard)",
|
|
409
|
+
"help.approvals.assign._help": "een wachtende goedkeuring toewijzen aan één bij naam genoemde persoon (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "het e-mailadres of de externe id van de persoon",
|
|
412
|
+
"help.approvals.assign.reason": "waarom deze persoon, voor het auditlogboek",
|
|
413
|
+
"help.approvals.assign.note": "getoond bij de toewijzing (ten hoogste 500 tekens)",
|
|
414
|
+
"help.approvals.assign.deployment": "de implementatie, als de tenant er meer dan één heeft",
|
|
407
415
|
"label.export": "export",
|
|
408
416
|
"label.use_cases": "use cases",
|
|
409
417
|
"label.destination": "bestemming",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "regels, hoogstens",
|
|
413
421
|
"label.rows": "regels",
|
|
414
422
|
"label.files": "bestanden",
|
|
415
|
-
"label.content_sha256": "sha256 van de inhoud"
|
|
423
|
+
"label.content_sha256": "sha256 van de inhoud",
|
|
424
|
+
"label.approval": "goedkeuring",
|
|
425
|
+
"label.assignee": "toegewezen aan",
|
|
426
|
+
"label.until": "tot",
|
|
427
|
+
"label.by": "door",
|
|
428
|
+
"label.source": "bron",
|
|
429
|
+
"label.eligible": "bevoegd"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "resultados de avaliação de um só conjunto",
|
|
405
405
|
"help.datasets.export.deployment": "a implementação, quando o cliente tem mais de uma",
|
|
406
406
|
"help.datasets.export.reason": "porquê, para o registo de auditoria",
|
|
407
|
+
"help.approvals._help": "a quem estão atribuídas as aprovações pendentes, e atribuir uma",
|
|
408
|
+
"help.approvals.assignments._help": "as atribuições em vigor (por omissão)",
|
|
409
|
+
"help.approvals.assign._help": "atribuir uma aprovação pendente a uma pessoa indicada pelo nome (handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "o endereço de email ou o identificador externo da pessoa",
|
|
412
|
+
"help.approvals.assign.reason": "porquê esta pessoa, para o registo de auditoria",
|
|
413
|
+
"help.approvals.assign.note": "mostrada com a atribuição (no máximo 500 caracteres)",
|
|
414
|
+
"help.approvals.assign.deployment": "a implementação, quando o cliente tem mais de uma",
|
|
407
415
|
"label.export": "exportação",
|
|
408
416
|
"label.use_cases": "casos de utilização",
|
|
409
417
|
"label.destination": "destino",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "linhas, no máximo",
|
|
413
421
|
"label.rows": "linhas",
|
|
414
422
|
"label.files": "ficheiros",
|
|
415
|
-
"label.content_sha256": "sha256 do conteúdo"
|
|
423
|
+
"label.content_sha256": "sha256 do conteúdo",
|
|
424
|
+
"label.approval": "aprovação",
|
|
425
|
+
"label.assignee": "atribuída a",
|
|
426
|
+
"label.until": "até",
|
|
427
|
+
"label.by": "por",
|
|
428
|
+
"label.source": "origem",
|
|
429
|
+
"label.eligible": "elegível"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "来自单个套件的评估结果",
|
|
405
405
|
"help.datasets.export.deployment": "部署(当租户有多个部署时)",
|
|
406
406
|
"help.datasets.export.reason": "原因,用于审计日志",
|
|
407
|
+
"help.approvals._help": "等待审批的事项分配给了谁,以及分配一项",
|
|
408
|
+
"help.approvals.assignments._help": "当前有效的分配(默认)",
|
|
409
|
+
"help.approvals.assign._help": "将等待审批的事项分配给一位指定人员(handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "该人员的电子邮件地址或外部 ID",
|
|
412
|
+
"help.approvals.assign.reason": "为何选择此人,用于审计日志",
|
|
413
|
+
"help.approvals.assign.note": "随分配一起显示(最多 500 个字符)",
|
|
414
|
+
"help.approvals.assign.deployment": "部署(当租户有多个部署时)",
|
|
407
415
|
"label.export": "导出",
|
|
408
416
|
"label.use_cases": "用例",
|
|
409
417
|
"label.destination": "目标位置",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "最多行数",
|
|
413
421
|
"label.rows": "行数",
|
|
414
422
|
"label.files": "文件",
|
|
415
|
-
"label.content_sha256": "内容 sha256"
|
|
423
|
+
"label.content_sha256": "内容 sha256",
|
|
424
|
+
"label.approval": "审批",
|
|
425
|
+
"label.assignee": "受派人",
|
|
426
|
+
"label.until": "截止",
|
|
427
|
+
"label.by": "分配人",
|
|
428
|
+
"label.source": "来源",
|
|
429
|
+
"label.eligible": "可审批"
|
|
416
430
|
}
|
|
@@ -404,6 +404,14 @@
|
|
|
404
404
|
"help.datasets.export.eval_suite": "來自單一套件的評估結果",
|
|
405
405
|
"help.datasets.export.deployment": "部署(當租戶有多個部署時)",
|
|
406
406
|
"help.datasets.export.reason": "原因,用於稽核記錄",
|
|
407
|
+
"help.approvals._help": "等待核准的事項指派給了誰,以及指派一項",
|
|
408
|
+
"help.approvals.assignments._help": "目前有效的指派(預設)",
|
|
409
|
+
"help.approvals.assign._help": "將等待核准的事項指派給一位指定人員(handler)",
|
|
410
|
+
"help.approvals.assign.approval_id": "<pack>:<card>~<run_id>",
|
|
411
|
+
"help.approvals.assign.assignee": "該人員的電子郵件地址或外部 ID",
|
|
412
|
+
"help.approvals.assign.reason": "為何選擇此人,用於稽核記錄",
|
|
413
|
+
"help.approvals.assign.note": "隨指派一同顯示(最多 500 個字元)",
|
|
414
|
+
"help.approvals.assign.deployment": "部署(當租戶有多個部署時)",
|
|
407
415
|
"label.export": "匯出",
|
|
408
416
|
"label.use_cases": "使用案例",
|
|
409
417
|
"label.destination": "目的地",
|
|
@@ -412,5 +420,11 @@
|
|
|
412
420
|
"label.rows_at_most": "最多列數",
|
|
413
421
|
"label.rows": "列數",
|
|
414
422
|
"label.files": "檔案",
|
|
415
|
-
"label.content_sha256": "內容 sha256"
|
|
423
|
+
"label.content_sha256": "內容 sha256",
|
|
424
|
+
"label.approval": "核准",
|
|
425
|
+
"label.assignee": "受指派人",
|
|
426
|
+
"label.until": "截止",
|
|
427
|
+
"label.by": "指派人",
|
|
428
|
+
"label.source": "來源",
|
|
429
|
+
"label.eligible": "可核准"
|
|
416
430
|
}
|
|
@@ -122,6 +122,7 @@ def commands() -> dict[str, Command]:
|
|
|
122
122
|
costs one import, not twelve."""
|
|
123
123
|
from lighthouse.commands import (
|
|
124
124
|
agents,
|
|
125
|
+
approvals,
|
|
125
126
|
builds,
|
|
126
127
|
collectors,
|
|
127
128
|
connect,
|
|
@@ -143,7 +144,7 @@ def commands() -> dict[str, Command]:
|
|
|
143
144
|
)
|
|
144
145
|
out: dict[str, Command] = {}
|
|
145
146
|
for module in (login, whoami, connect, connections, collectors, models, kb, agents, builds, evals,
|
|
146
|
-
datasets,
|
|
147
|
+
datasets, approvals,
|
|
147
148
|
runs, spend, limits, terms, stack, language, offline, verify):
|
|
148
149
|
for command in module.COMMANDS:
|
|
149
150
|
out[command.name] = command
|
|
@@ -17,6 +17,7 @@ lighthouse/py.typed
|
|
|
17
17
|
lighthouse/sealing.py
|
|
18
18
|
lighthouse/commands/__init__.py
|
|
19
19
|
lighthouse/commands/agents.py
|
|
20
|
+
lighthouse/commands/approvals.py
|
|
20
21
|
lighthouse/commands/builds.py
|
|
21
22
|
lighthouse/commands/collectors.py
|
|
22
23
|
lighthouse/commands/connect.py
|
|
@@ -54,6 +55,7 @@ lighthouse_cli.egg-info/dependency_links.txt
|
|
|
54
55
|
lighthouse_cli.egg-info/entry_points.txt
|
|
55
56
|
lighthouse_cli.egg-info/requires.txt
|
|
56
57
|
lighthouse_cli.egg-info/top_level.txt
|
|
58
|
+
tests/test_approvals.py
|
|
57
59
|
tests/test_ci_credential.py
|
|
58
60
|
tests/test_collectors.py
|
|
59
61
|
tests/test_commands.py
|
|
@@ -18,7 +18,7 @@ build-backend = "setuptools.build_meta"
|
|
|
18
18
|
|
|
19
19
|
[project]
|
|
20
20
|
name = "lighthouse-cli"
|
|
21
|
-
version = "0.
|
|
21
|
+
version = "0.22.0"
|
|
22
22
|
description = "The LightHouse command line: sign in, connect your estate, deploy agents, watch runs"
|
|
23
23
|
requires-python = ">=3.11"
|
|
24
24
|
license = "Apache-2.0"
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Copyright 2026 Atlantic Agentic Labs. All Rights Reserved.
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
"""`lighthouse-ai approvals`: the live assignments, and assigning a waiting
|
|
4
|
+
approval to one named person (contract 1.45). The service is invented
|
|
5
|
+
(routes); every name is too."""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
import json
|
|
9
|
+
from typing import Any
|
|
10
|
+
|
|
11
|
+
import httpx
|
|
12
|
+
|
|
13
|
+
from lighthouse import exits
|
|
14
|
+
from tests.api_fixtures import load
|
|
15
|
+
from tests.conftest import HOST, Runner, routes
|
|
16
|
+
from tests.test_commands import signed_in
|
|
17
|
+
|
|
18
|
+
APPROVAL = "research:summary~run-0001"
|
|
19
|
+
ASSIGN = f"/api/v1/approvals/{APPROVAL}/assignee"
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def test_the_live_assignments_are_listed(run: Runner):
|
|
23
|
+
signed_in(run)
|
|
24
|
+
run.transport = routes({("GET", "/api/v1/approvals/assignments"): load("approval-assignments")})
|
|
25
|
+
result = run(f"--host={HOST}", "approvals", "--json")
|
|
26
|
+
assert result.code == 0, result.stderr
|
|
27
|
+
(row,) = result.json["assignments"]
|
|
28
|
+
assert row["approval_id"] == APPROVAL and row["assignee"] == "finance.lead@example.test"
|
|
29
|
+
shown = run(f"--host={HOST}", "approvals", "assignments")
|
|
30
|
+
assert shown.code == 0 and "finance.lead@example.test" in shown.stdout
|
|
31
|
+
assert "approvals assign" in shown.stderr + shown.stdout
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def test_assign_sends_the_person_reason_and_note_and_nothing_else(run: Runner):
|
|
35
|
+
signed_in(run, "telemetry:read approvals:assign")
|
|
36
|
+
seen: list[dict[str, Any]] = []
|
|
37
|
+
|
|
38
|
+
def post(request: httpx.Request) -> httpx.Response:
|
|
39
|
+
seen.append(json.loads(request.content))
|
|
40
|
+
return httpx.Response(202, json=load("approval-assign"))
|
|
41
|
+
|
|
42
|
+
run.transport = routes({("POST", ASSIGN): post})
|
|
43
|
+
result = run(f"--host={HOST}", "approvals", "assign", APPROVAL, "E-1042", "--reason",
|
|
44
|
+
"the finance lead owns this", "--note", "Before close.", "--deployment",
|
|
45
|
+
"example-org-prod", "--json")
|
|
46
|
+
assert result.code == 0, result.stderr
|
|
47
|
+
assert seen == [{"assignee": "E-1042", "reason": "the finance lead owns this",
|
|
48
|
+
"note": "Before close.", "deployment": "example-org-prod"}]
|
|
49
|
+
assert result.json["assignee"] == "finance.lead@example.test" and result.json["eligible"] is True
|
|
50
|
+
assert result.json["status"] == "queued" and result.json["approval_id"] == APPROVAL
|
|
51
|
+
person = run(f"--host={HOST}", "approvals", "assign", APPROVAL, "E-1042", "--reason", "x")
|
|
52
|
+
assert person.code == 0 and "holds the approval" in person.stderr + person.stdout
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def test_a_viewer_assignee_is_said_plainly(run: Runner):
|
|
56
|
+
signed_in(run, "telemetry:read approvals:assign")
|
|
57
|
+
body = load("approval-assign")
|
|
58
|
+
body["assignee"]["eligible"] = False
|
|
59
|
+
run.transport = routes({("POST", ASSIGN): httpx.Response(202, json=body)})
|
|
60
|
+
result = run(f"--host={HOST}", "approvals", "assign", APPROVAL, "reader@example.test",
|
|
61
|
+
"--reason", "x")
|
|
62
|
+
assert result.code == 0 and "does not let them decide" in result.stderr + result.stdout
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def test_refusals_say_what_to_do_next(run: Runner):
|
|
66
|
+
signed_in(run, "telemetry:read approvals:assign")
|
|
67
|
+
for status, error, hint in ((422, "unknown-assignee", "signed in to LightHouse once"),
|
|
68
|
+
(409, "ambiguous-assignee", "email address"),
|
|
69
|
+
(403, "commands_disabled", "Command settings"),
|
|
70
|
+
(404, "not_found", "<pack>:<card>~<run_id>")):
|
|
71
|
+
run.transport = routes({("POST", ASSIGN): httpx.Response(
|
|
72
|
+
status, json={"error": error, "message": "refused"})})
|
|
73
|
+
result = run(f"--host={HOST}", "approvals", "assign", APPROVAL, "x@example.test",
|
|
74
|
+
"--reason", "x", "--json")
|
|
75
|
+
assert result.code != 0 and result.json["error"] == error, error
|
|
76
|
+
assert hint in json.dumps(result.json), error
|
|
77
|
+
run.transport = routes({("POST", ASSIGN): httpx.Response(
|
|
78
|
+
403, json={"error": "scope_required", "message": "needs approvals:assign",
|
|
79
|
+
"required_scope": "approvals:assign"})})
|
|
80
|
+
scoped = run(f"--host={HOST}", "approvals", "assign", APPROVAL, "x@example.test",
|
|
81
|
+
"--reason", "x", "--json")
|
|
82
|
+
assert scoped.code != 0 and scoped.json["error"] == "scope_required"
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def test_a_reason_is_required_before_anything_is_sent(run: Runner):
|
|
86
|
+
signed_in(run, "telemetry:read approvals:assign")
|
|
87
|
+
run.transport = routes({})
|
|
88
|
+
result = run(f"--host={HOST}", "approvals", "assign", APPROVAL, "x@example.test")
|
|
89
|
+
assert result.code == exits.USAGE
|
|
@@ -68,6 +68,8 @@ ANSWERS: dict[tuple[str, str], Any] = {
|
|
|
68
68
|
("POST", "/api/v1/datasets/exports"): load("dataset-export"),
|
|
69
69
|
("GET", "/api/v1/datasets/exports/0123456789abcdef0123456789abcd01"): load("dataset-export-one"),
|
|
70
70
|
("POST", "/api/v1/collector-requests"): load("collector-request"),
|
|
71
|
+
("GET", "/api/v1/approvals/assignments"): load("approval-assignments"),
|
|
72
|
+
("POST", "/api/v1/approvals/research:summary~run-0001/assignee"): load("approval-assign"),
|
|
71
73
|
("GET", "/api/v1/deployments/example-org-prod/telemetry-bundles"): load("telemetry-bundles"),
|
|
72
74
|
("POST", "/api/v1/deployments/example-org-prod/command-file"): load("command-file"),
|
|
73
75
|
}
|
|
@@ -88,6 +90,9 @@ CASES: dict[str, list[str]] = {
|
|
|
88
90
|
"collectors": ["collectors"],
|
|
89
91
|
"collectors-request": ["collectors", "request", "--vendor", "Invented CRM", "--product",
|
|
90
92
|
"Sales Suite", "--reads", "Accounts.", "--cloud", "aws"],
|
|
93
|
+
"approvals": ["approvals"],
|
|
94
|
+
"approvals-assign": ["approvals", "assign", "research:summary~run-0001", "E-1042",
|
|
95
|
+
"--reason", "the finance lead owns this"],
|
|
91
96
|
"datasets": ["datasets"],
|
|
92
97
|
"datasets-settings": ["datasets", "settings"],
|
|
93
98
|
"datasets-signals": ["datasets", "signals"],
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lighthouse_cli-0.21.0 → lighthouse_cli-0.22.0}/lighthouse_cli.egg-info/dependency_links.txt
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|