@jentrix/cli 0.5.10 → 0.5.12
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/main.js +7 -5
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -20962,7 +20962,7 @@ function refreshAccessToken(input) {
|
|
|
20962
20962
|
|
|
20963
20963
|
// src/client.ts
|
|
20964
20964
|
var CLI_NAME = "stacks-cli";
|
|
20965
|
-
var CLI_VERSION = "0.5.
|
|
20965
|
+
var CLI_VERSION = "0.5.12";
|
|
20966
20966
|
var DEAD_TOKEN_MESSAGE = "authentication failed (HTTP 401): the token is dead or expired \u2014 mint a new PAT at /account/tokens on your Jentrix server and update STACKS_TOKEN (or --token / the config file).";
|
|
20967
20967
|
var RELOGIN_MESSAGE = "OAuth session expired and could not be refreshed \u2014 run `jentrix login` to sign in again.";
|
|
20968
20968
|
function originOf2(url2) {
|
|
@@ -24939,10 +24939,11 @@ async function basisBlock(refs, deps2) {
|
|
|
24939
24939
|
await withCaller(deps2, async (caller) => {
|
|
24940
24940
|
for (const id of ids) {
|
|
24941
24941
|
try {
|
|
24942
|
-
const
|
|
24942
|
+
const result = await callStructured(caller, "get_artifact", {
|
|
24943
24943
|
artifactId: id
|
|
24944
24944
|
});
|
|
24945
|
-
|
|
24945
|
+
const record3 = result.artifact ?? result;
|
|
24946
|
+
titles.set(id, String(record3.title ?? ""));
|
|
24946
24947
|
} catch {
|
|
24947
24948
|
throw new UsageError(
|
|
24948
24949
|
`--basis ${id} does not resolve to an artifact you can read \u2014 push the context first (\`jentrix push context\`), or pass a URL`,
|
|
@@ -25101,11 +25102,12 @@ async function runMintIssue(flags, deps2) {
|
|
|
25101
25102
|
);
|
|
25102
25103
|
sessionId = marker?.sessionId ?? null;
|
|
25103
25104
|
}
|
|
25104
|
-
const
|
|
25105
|
+
const result = await withCaller(
|
|
25105
25106
|
deps2,
|
|
25106
25107
|
(caller) => callStructured(caller, "get_artifact", { artifactId: flags.artifact })
|
|
25107
25108
|
);
|
|
25108
|
-
const
|
|
25109
|
+
const record3 = result.artifact ?? result;
|
|
25110
|
+
const type = String(record3.type ?? "");
|
|
25109
25111
|
if (!MINTABLE_ARTIFACT_TYPES.includes(type)) {
|
|
25110
25112
|
throw new UsageError(
|
|
25111
25113
|
`artifact ${flags.artifact} is ${type || "of unknown type"} \u2014 only FINDINGS, GAP, and ISSUE artifacts mint into cards`,
|