tines 0.0.125 → 0.0.127
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.
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3401,10 +3401,12 @@ function readBodyValue(value, stdin = processStdin) {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
|
|
3403
3403
|
// ../shared/src/types.ts
|
|
3404
|
+
function runRefLabel(run) {
|
|
3405
|
+
return run.issue_ref ? `run on ${run.issue_ref.project_name}/${run.issue_ref.number}` : `run ${run.run_id}`;
|
|
3406
|
+
}
|
|
3404
3407
|
function actorLabel(actor) {
|
|
3405
3408
|
if (actor.run) {
|
|
3406
|
-
|
|
3407
|
-
return `${actor.user_name} via ${actor.run.runner_name} \xB7 ${ref}`;
|
|
3409
|
+
return `${actor.user_name} via ${actor.run.runner_name} \xB7 ${runRefLabel(actor.run)}`;
|
|
3408
3410
|
}
|
|
3409
3411
|
return actor.api_key_name ? `${actor.user_name} via ${actor.api_key_name}` : actor.user_name;
|
|
3410
3412
|
}
|
|
@@ -3986,7 +3988,7 @@ function createApiClient(options) {
|
|
|
3986
3988
|
getSupervisorSettings: () => get("/api/v1/supervisor/settings"),
|
|
3987
3989
|
updateSupervisorSettings: (body) => request("PUT", "/api/v1/supervisor/settings", body),
|
|
3988
3990
|
// API keys (create/revoke require a browser session, not a key)
|
|
3989
|
-
listApiKeys: () => get(
|
|
3991
|
+
listApiKeys: (filters = {}) => get(`/api/v1/api-keys${query(filters)}`),
|
|
3990
3992
|
createApiKey: (body) => request("POST", "/api/v1/api-keys", body),
|
|
3991
3993
|
revokeApiKey: (id) => request("DELETE", `/api/v1/api-keys/${id}`),
|
|
3992
3994
|
// Library export / import (workflows + context; no tracker data, no secrets)
|