@abyssinia-labs/sokie 0.13.1-staging.502 → 0.13.2

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.
Files changed (2) hide show
  1. package/dist/sokie.mjs +24 -17
  2. package/package.json +2 -2
package/dist/sokie.mjs CHANGED
@@ -25685,9 +25685,9 @@ var require_jmespath_umd = __commonJS((exports, module) => {
25685
25685
 
25686
25686
  // package.json
25687
25687
  var name = "@abyssinia-labs/sokie";
25688
- var version = "0.13.1-staging.502";
25688
+ var version = "0.13.2";
25689
25689
  var sokie = {
25690
- site: "https://staging.sokie.sh"
25690
+ site: "https://sokie.sh"
25691
25691
  };
25692
25692
 
25693
25693
  // src/command.ts
@@ -75869,7 +75869,7 @@ GraphQL schema says neither, so it needs both.`,
75869
75869
  };
75870
75870
 
75871
75871
  // src/commands/keys.ts
75872
- import { stdin as stdin6 } from "node:process";
75872
+ import { stdin as stdin6, stdout as stdout2 } from "node:process";
75873
75873
 
75874
75874
  // src/keys-api.ts
75875
75875
  var API_SCOPES = [
@@ -76048,12 +76048,18 @@ async function runKeys(argv, out, deps) {
76048
76048
  }), deps.stepUp);
76049
76049
  const where2 = servers.length > 0 ? servers.map((server) => server.name).join(", ") : "all servers";
76050
76050
  const until = days2 === null ? "never expires" : `expires ${formatDate(now + days2 * 86400000)}`;
76051
- await out.line(`Made "${name3}". Copy it now; it isn't shown again:`, "strong");
76052
- await out.line();
76053
- await out.line(` ${made.key}`);
76054
- await out.line();
76055
- await out.line(`${scopes.join(" ")} · ${where2} · ${until}`, "dim");
76056
- await out.line("Set SOKIE_TOKEN to it, and every sokie command runs as the key.", "dim");
76051
+ const summary = `${scopes.join(" ")} · ${where2} · ${until}`;
76052
+ if (!out.json && (deps.piped ?? stdout2.isTTY !== true)) {
76053
+ await out.problem(`Made "${name3}": ${summary}`, "dim");
76054
+ await out.line(made.key);
76055
+ } else {
76056
+ await out.line(`Made "${name3}". Copy it now; it isn't shown again:`, "strong");
76057
+ await out.line();
76058
+ await out.line(` ${made.key}`);
76059
+ await out.line();
76060
+ await out.line(summary, "dim");
76061
+ await out.line("Set SOKIE_TOKEN to it, and every sokie command runs as the key.", "dim");
76062
+ }
76057
76063
  await out.result({
76058
76064
  ok: true,
76059
76065
  keyId: made.keyId,
@@ -76110,7 +76116,8 @@ var keysCommand = {
76110
76116
  help: `With no verb, lists your API keys: what each may do, where, and when it expires.
76111
76117
 
76112
76118
  create <name>
76113
- Makes a key and prints it once. It acts as you, with only what you give it:
76119
+ Makes a key and prints it once; into a pipe or a file, the key alone. It
76120
+ acts as you, with only what you give it:
76114
76121
  --from <p> Start from read, ci (deploy, read logs), agent (read, edit and
76115
76122
  call tools) or all.
76116
76123
  --scope <s> Scopes to add, comma-separated: servers:read, deploys:write, …
@@ -80133,21 +80140,21 @@ function ignoreClosedPipe(stream) {
80133
80140
  throw error63;
80134
80141
  });
80135
80142
  }
80136
- function createOutput(json3, stdout2 = process.stdout, stderr2 = process.stderr) {
80137
- ignoreClosedPipe(stdout2);
80143
+ function createOutput(json3, stdout3 = process.stdout, stderr2 = process.stderr) {
80144
+ ignoreClosedPipe(stdout3);
80138
80145
  ignoreClosedPipe(stderr2);
80139
- const outColor = !json3 && colorFor(stdout2);
80146
+ const outColor = !json3 && colorFor(stdout3);
80140
80147
  const errColor = !json3 && colorFor(stderr2);
80141
80148
  return {
80142
80149
  json: json3,
80143
- line: (text11 = "", tone) => json3 ? Promise.resolve() : writeAll(stdout2, `${paint(outColor, tone, text11)}
80150
+ line: (text11 = "", tone) => json3 ? Promise.resolve() : writeAll(stdout3, `${paint(outColor, tone, text11)}
80144
80151
  `),
80145
80152
  problem: (text11, tone) => json3 ? Promise.resolve() : writeAll(stderr2, `${paint(errColor, tone, text11)}
80146
80153
  `),
80147
80154
  tint: (tone, text11) => paint(outColor, tone, text11),
80148
- result: (value2) => json3 ? writeAll(stdout2, `${JSON.stringify(value2, null, 2)}
80155
+ result: (value2) => json3 ? writeAll(stdout3, `${JSON.stringify(value2, null, 2)}
80149
80156
  `) : Promise.resolve(),
80150
- event: (value2) => json3 ? writeAll(stdout2, `${JSON.stringify(value2)}
80157
+ event: (value2) => json3 ? writeAll(stdout3, `${JSON.stringify(value2)}
80151
80158
  `) : Promise.resolve(),
80152
80159
  aside: (value2) => json3 ? writeAll(stderr2, `${JSON.stringify(value2)}
80153
80160
  `) : Promise.resolve()
@@ -80183,7 +80190,7 @@ function shellAbove(ppid, table) {
80183
80190
  }
80184
80191
  function processTable() {
80185
80192
  return new Promise((resolve22, reject) => {
80186
- execFile("ps", ["-A", "-o", "pid=,ppid=,comm="], { timeout: 300 }, (error63, stdout2) => error63 ? reject(error63) : resolve22(stdout2));
80193
+ execFile("ps", ["-A", "-o", "pid=,ppid=,comm="], { timeout: 300 }, (error63, stdout3) => error63 ? reject(error63) : resolve22(stdout3));
80187
80194
  });
80188
80195
  }
80189
80196
  async function terminalSession(runner, ppid = process.ppid, table = processTable) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abyssinia-labs/sokie",
3
3
  "type": "module",
4
- "version": "0.13.1-staging.502",
4
+ "version": "0.13.2",
5
5
  "description": "Turn an OpenAPI or Swagger spec into an MCP server, run it on your machine, and deploy it to Sokie. The sokie command (alias sok).",
6
6
  "license": "Apache-2.0",
7
7
  "homepage": "https://sokie.sh/docs/cli",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "author": "Abyssinia Labs <hello@sokie.sh> (https://sokie.sh)",
12
12
  "sokie": {
13
- "site": "https://staging.sokie.sh"
13
+ "site": "https://sokie.sh"
14
14
  },
15
15
  "keywords": [
16
16
  "mcp",