@antasphere/slideless 0.2.0 → 0.2.1

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/bin.js +15 -6
  2. package/package.json +12 -11
package/dist/bin.js CHANGED
@@ -3042,7 +3042,7 @@ var {
3042
3042
  Help
3043
3043
  } = import_index.default;
3044
3044
 
3045
- // ../../node_modules/.pnpm/@antasphere+cli-core@0.1.0/node_modules/@antasphere/cli-core/dist/config.js
3045
+ // ../../node_modules/.pnpm/@antasphere+cli-core@0.2.0/node_modules/@antasphere/cli-core/dist/config.js
3046
3046
  import { chmodSync, existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
3047
3047
  import { dirname, join } from "node:path";
3048
3048
  var HUB_TOOL = "hub";
@@ -3110,13 +3110,13 @@ function redactKey(key) {
3110
3110
  return `${key.slice(0, 13)}\u2026${key.slice(-4)}`;
3111
3111
  }
3112
3112
 
3113
- // ../../node_modules/.pnpm/@antasphere+cli-core@0.1.0/node_modules/@antasphere/cli-core/dist/io.js
3113
+ // ../../node_modules/.pnpm/@antasphere+cli-core@0.2.0/node_modules/@antasphere/cli-core/dist/io.js
3114
3114
  function printJson(io, value) {
3115
3115
  io.out.write(`${JSON.stringify(value, null, 2)}
3116
3116
  `);
3117
3117
  }
3118
3118
 
3119
- // ../../node_modules/.pnpm/@antasphere+cli-core@0.1.0/node_modules/@antasphere/cli-core/dist/resolve.js
3119
+ // ../../node_modules/.pnpm/@antasphere+cli-core@0.2.0/node_modules/@antasphere/cli-core/dist/resolve.js
3120
3120
  var CliUsageError = class extends Error {
3121
3121
  };
3122
3122
  function resolveProfile(config, requested, opts = {}) {
@@ -3142,7 +3142,7 @@ function resolveApiKey(opts) {
3142
3142
  return opts.flag ?? opts.env[opts.envVar] ?? opts.profile?.apiKey;
3143
3143
  }
3144
3144
 
3145
- // ../../node_modules/.pnpm/@antasphere+cli-core@0.1.0/node_modules/@antasphere/cli-core/dist/auth.js
3145
+ // ../../node_modules/.pnpm/@antasphere+cli-core@0.2.0/node_modules/@antasphere/cli-core/dist/auth.js
3146
3146
  var CliAuthError = class extends Error {
3147
3147
  status;
3148
3148
  code;
@@ -3197,7 +3197,7 @@ var CliAuthClient = class {
3197
3197
  }
3198
3198
  };
3199
3199
 
3200
- // ../../node_modules/.pnpm/@antasphere+cli-core@0.1.0/node_modules/@antasphere/cli-core/dist/migrate.js
3200
+ // ../../node_modules/.pnpm/@antasphere+cli-core@0.2.0/node_modules/@antasphere/cli-core/dist/migrate.js
3201
3201
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
3202
3202
  import { join as join2 } from "node:path";
3203
3203
  function migrateLegacyConfig(env, spec) {
@@ -3337,6 +3337,15 @@ var PlatformClient = class {
3337
3337
  cliAuthComplete(req) {
3338
3338
  return this.request("POST", "/cli/auth/complete", req);
3339
3339
  }
3340
+ /**
3341
+ * Public, CLOUD EDITION only (404 on oss): exchange a hub-minted 120 s
3342
+ * connect JWT (the hub's /sso/tool-token response) for an `slk_` API key
3343
+ * bound to the projected workspace — same grant and one-shot response
3344
+ * shape as cliAuthComplete. Each token works exactly once (jti).
3345
+ */
3346
+ ssoCliConnect(req) {
3347
+ return this.request("POST", "/sso/cli-connect", req);
3348
+ }
3340
3349
  // ── Members ───────────────────────────────────────────────────────────────
3341
3350
  members(params = {}) {
3342
3351
  return this.request("GET", this.pathWithQuery("/members", params));
@@ -4824,7 +4833,7 @@ function registerCompletionCommand(program2, io) {
4824
4833
  }
4825
4834
 
4826
4835
  // src/index.ts
4827
- var VERSION = "0.2.0";
4836
+ var VERSION = "0.2.1";
4828
4837
  function buildProgram(io) {
4829
4838
  const program2 = new Command();
4830
4839
  program2.name("slideless").description("Command-line client for a Slideless instance (push, share, pull, preview)").version(VERSION).option("--api-url <url>", "instance base URL (or SLIDELESS_URL / profile baseUrl)").option("--url <url>", "alias of --api-url").option("--api-key <key>", "API key (or SLIDELESS_API_KEY / profile apiKey)").option("--profile <name>", "use this saved profile instead of the active one").option("--json", "machine-readable JSON output", false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antasphere/slideless",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "The Slideless CLI — push, share, pull, and preview decks on a Slideless instance",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,19 +22,20 @@
22
22
  "files": [
23
23
  "dist"
24
24
  ],
25
- "devDependencies": {
26
- "@antasphere/cli-core": "^0.1.0",
27
- "@types/node": "^22.15.0",
28
- "commander": "^12.1.0",
29
- "esbuild": "^0.25.0",
30
- "vitest": "^3.2.0",
31
- "@slideless/contract": "0.1.0",
32
- "@slideless/sdk": "0.1.0"
33
- },
34
25
  "scripts": {
35
26
  "build": "rm -rf dist && esbuild src/bin.ts --bundle --platform=node --format=esm --target=node22 --outfile=dist/bin.js --log-level=warning --banner:js=\"import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);\"",
27
+ "prepack": "npm run build",
36
28
  "typecheck": "tsc -p tsconfig.json --noEmit",
37
29
  "lint": "eslint src",
38
30
  "test": "vitest run --passWithNoTests"
31
+ },
32
+ "devDependencies": {
33
+ "@antasphere/cli-core": "^0.2.0",
34
+ "@slideless/contract": "workspace:*",
35
+ "@slideless/sdk": "workspace:*",
36
+ "@types/node": "^22.15.0",
37
+ "commander": "^12.1.0",
38
+ "esbuild": "^0.25.0",
39
+ "vitest": "^3.2.0"
39
40
  }
40
- }
41
+ }