@tomradex/plugin-sdk 0.2.24 → 0.2.26

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.
@@ -46,21 +46,41 @@ export interface LocalAgentPick {
46
46
  /**
47
47
  * SDK 0.2.18. An installer script the app runs for the person: `script` (a
48
48
  * POSIX shell installer) as `curl -fsSL <url> | bash`, `powershell` as
49
- * `irm <url> | iex`. Plugin code names only the address.
49
+ * `irm <url> | iex`. SDK 0.2.26 adds `npm`, a package installed with
50
+ * `npm install -g` — through the app's own npm on a machine without Node.
51
+ * Plugin code names only the address or package; these also run as the
52
+ * one-click setup, in the declared order, each on the platforms it fits.
50
53
  */
51
54
  export type LocalAgentInstaller = {
52
55
  script: string;
53
56
  } | {
54
57
  powershell: string;
58
+ } | {
59
+ npm: string;
55
60
  };
56
61
  /** How the agent is installed and signed in, for setup screens. */
57
62
  export interface LocalAgentSetup {
58
- /** Install commands, the recommended one first; an installer script by its address (SDK 0.2.18). */
63
+ /** Install commands, the recommended one first; an installer by its address or package (SDK 0.2.18, npm 0.2.26). */
59
64
  install: (string | LocalAgentInstaller)[];
60
65
  signIn?: string;
61
66
  /** Signing in starts the agent itself, which then asks; otherwise the command signs in and returns. */
62
67
  signInRuns?: boolean;
68
+ /**
69
+ * SDK 0.2.26. A sign-in command the app runs and watches itself: it opens or
70
+ * prints a browser address and needs no typing; the agent counts as signed in
71
+ * once `probe`/`signedIn` says so. Without it, signing in takes a terminal.
72
+ */
73
+ signInRun?: {
74
+ args: string[];
75
+ };
63
76
  docs?: string;
77
+ /** SDK 0.2.25. The agent's official download page, opened in the system browser beside these commands, for those without the tools they need: one that offers the CLI. */
78
+ download?: string;
79
+ /** SDK 0.2.25. The agent's desktop app, when it has one: whether installing it puts the CLI where Tomrade finds it. Setup screens say so either way. */
80
+ desktop?: {
81
+ title: string;
82
+ shipsCli: boolean;
83
+ };
64
84
  suggested?: boolean;
65
85
  }
66
86
  /** The machine a CLI is looked for on, for `cli.bundled`. */
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  /** The contract this SDK describes. A plugin's `engines.sdk` range is checked against the host's. */
3
- export declare const SDK_CONTRACT = "0.2.24";
3
+ export declare const SDK_CONTRACT = "0.2.26";
4
4
  export declare const PLUGIN_ID: RegExp;
5
5
  export declare const NAMESPACE: RegExp;
6
6
  /** The app's own names, and the official publisher's. */
package/dist/manifest.js CHANGED
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import { LANGUAGE_PACK_LIMITS, LanguageEntrySchema } from "./language.js";
3
3
  import { isRange, isVersion } from "./semver.js";
4
4
  /** The contract this SDK describes. A plugin's `engines.sdk` range is checked against the host's. */
5
- export const SDK_CONTRACT = "0.2.24";
5
+ export const SDK_CONTRACT = "0.2.26";
6
6
  export const PLUGIN_ID = /^[a-z0-9][a-z0-9-]{0,38}\/[a-z0-9][a-z0-9-]{0,63}$/;
7
7
  export const NAMESPACE = /^[a-z][a-z0-9_]{1,31}$/;
8
8
  /** The app's own names, and the official publisher's. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomradex/plugin-sdk",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "type": "module",
5
5
  "author": "Haoyuan Tang",
6
6
  "engines": {
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@tomradex/domain": "0.2.24",
32
+ "@tomradex/domain": "0.2.26",
33
33
  "zod": "^4.4.3"
34
34
  }
35
35
  }