tines 0.0.87 → 0.0.89
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 +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3514,6 +3514,7 @@ function utilizationLabel(quota, activeRuns, stateName = (id) => id) {
|
|
|
3514
3514
|
if (counts.size === 0) return `no active runs (roster default ${quota.default_limit} per state)`;
|
|
3515
3515
|
return [...counts.entries()].map(([stateId, { name: name2, n }]) => `${name2} ${n}/${quota.overrides[stateId] ?? quota.default_limit}`).join(" \xB7 ");
|
|
3516
3516
|
}
|
|
3517
|
+
var LIBRARY_MAX_BYTES = 5 * 1024 * 1024;
|
|
3517
3518
|
|
|
3518
3519
|
// ../shared/src/events.ts
|
|
3519
3520
|
var text = (t) => ({ kind: "text", text: t });
|
|
@@ -3887,7 +3888,13 @@ function createApiClient(options) {
|
|
|
3887
3888
|
// API keys (create/revoke require a browser session, not a key)
|
|
3888
3889
|
listApiKeys: () => get("/api/v1/api-keys"),
|
|
3889
3890
|
createApiKey: (body) => request("POST", "/api/v1/api-keys", body),
|
|
3890
|
-
revokeApiKey: (id) => request("DELETE", `/api/v1/api-keys/${id}`)
|
|
3891
|
+
revokeApiKey: (id) => request("DELETE", `/api/v1/api-keys/${id}`),
|
|
3892
|
+
// Library export / import (workflows + context; no tracker data, no secrets)
|
|
3893
|
+
exportLibrary: (opts = {}) => get(
|
|
3894
|
+
`/api/v1/export${opts.journals === false ? "?journals=false" : ""}`
|
|
3895
|
+
),
|
|
3896
|
+
/** Plan-then-apply; `dry_run: true` returns the preview the apply follows. */
|
|
3897
|
+
importLibrary: (body) => request("POST", "/api/v1/import", body)
|
|
3891
3898
|
};
|
|
3892
3899
|
}
|
|
3893
3900
|
|