@method-ai-hq/sdk 0.20.1 → 0.20.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  MIT-licensed JavaScript API and the `method` CLI. Source and releases: https://github.com/method-ai-hq/method-sdk
4
4
 
5
5
  ```sh
6
- npm install https://github.com/method-ai-hq/method-sdk/releases/download/v0.20.1/method-ai-hq-sdk-0.20.1.tgz
6
+ npm install https://github.com/method-ai-hq/method-sdk/releases/download/v0.20.2/method-ai-hq-sdk-0.20.2.tgz
7
7
  npx method --version
8
8
  ```
9
9
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@method-ai-hq/sdk",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "Build and run reusable .method files with checked steps and saved results.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,2 +1,2 @@
1
- /** The prompt for agents without the Method plugin. The installed guide holds the rules; this prompt only starts them. */
2
- export declare const authoringPrompt = "Help me turn repeated work into a Method with the Method CLI. Do the setup first, without asking me:\n\n1. If `which method` finds nothing, install Method now with `curl -fsSL https://app.withmethod.ai/install.sh | sh`. I approve this installer.\n2. Run `method login` and wait while I approve the sign-in in my browser.\n3. Run `method authoring` and follow it.\n\nThen ask me what work to turn into a Method. Make each prompt its own step, so that I can improve it. Run it on a sample, show me the result and the dashboard link, and ask me what to change.";
1
+ /** The setup prompt shared by the dashboard, site, and quickstart guide. */
2
+ export declare const authoringPrompt = "Help me turn repeated work into a Method with the Method CLI. I approve the setup below, including the official Method installer and the Method agent plugin. Do these steps first:\n\n1. On macOS, check `xcode-select -p` and `git --version`. If Apple's Command Line Tools are missing, run `xcode-select --install`, tell me to finish the Apple installer, and wait. Check both commands again before continuing. The full Xcode app is not needed.\n2. Find `method` on PATH or at `~/.local/bin/method`. If it is missing, install it with `curl -fsSL https://app.withmethod.ai/install.sh | sh`. Use `~/.local/bin/method` if the current shell still cannot find it. Verify the CLI with `method --version`. The installer supplies its own runtime; do not ask me to install Node or npm first.\n3. Install and verify the official Method plugin for the agent I am using. This is an approved part of setup, even if a quickstart page does not mention it. For Claude Code, run `claude plugin list`; if Method is missing, run `claude plugin marketplace add method-ai-hq/method-sdk` and `claude plugin install method@method --scope user`. Confirm that `method@method` is enabled. For Codex, use its plugin controls or `codex plugin marketplace add method-ai-hq/method-sdk` and `codex plugin add method@method`, and verify the plugin is enabled. If this agent does not support plugins, continue with the CLI and its authoring guide. If a reload is required, tell me what to reload and where to resume. CLI installation alone does not confirm plugin installation.\n4. If an agent permission rule blocks a setup action, show the exact blocked action and ask for its approval through the normal permission controls. Do not silently skip it or disable safeguards.\n5. Run `method login` and wait while I approve the sign-in in my browser. Use my intended Method account; a workspace invitation applies to the email that was invited. If a saved sign-in uses the wrong account, run `method logout` before signing in again. Keep the same Method profile for later commands.\n6. Run `method authoring` and follow it.\n\nThen ask me what work to turn into a Method. Make each prompt its own step, so that I can improve it. Run it on a sample, show me the result and the dashboard link, and ask me what to change.";
@@ -1,8 +1,11 @@
1
- /** The prompt for agents without the Method plugin. The installed guide holds the rules; this prompt only starts them. */
2
- export const authoringPrompt = `Help me turn repeated work into a Method with the Method CLI. Do the setup first, without asking me:
1
+ /** The setup prompt shared by the dashboard, site, and quickstart guide. */
2
+ export const authoringPrompt = `Help me turn repeated work into a Method with the Method CLI. I approve the setup below, including the official Method installer and the Method agent plugin. Do these steps first:
3
3
 
4
- 1. If \`which method\` finds nothing, install Method now with \`curl -fsSL https://app.withmethod.ai/install.sh | sh\`. I approve this installer.
5
- 2. Run \`method login\` and wait while I approve the sign-in in my browser.
6
- 3. Run \`method authoring\` and follow it.
4
+ 1. On macOS, check \`xcode-select -p\` and \`git --version\`. If Apple's Command Line Tools are missing, run \`xcode-select --install\`, tell me to finish the Apple installer, and wait. Check both commands again before continuing. The full Xcode app is not needed.
5
+ 2. Find \`method\` on PATH or at \`~/.local/bin/method\`. If it is missing, install it with \`curl -fsSL https://app.withmethod.ai/install.sh | sh\`. Use \`~/.local/bin/method\` if the current shell still cannot find it. Verify the CLI with \`method --version\`. The installer supplies its own runtime; do not ask me to install Node or npm first.
6
+ 3. Install and verify the official Method plugin for the agent I am using. This is an approved part of setup, even if a quickstart page does not mention it. For Claude Code, run \`claude plugin list\`; if Method is missing, run \`claude plugin marketplace add method-ai-hq/method-sdk\` and \`claude plugin install method@method --scope user\`. Confirm that \`method@method\` is enabled. For Codex, use its plugin controls or \`codex plugin marketplace add method-ai-hq/method-sdk\` and \`codex plugin add method@method\`, and verify the plugin is enabled. If this agent does not support plugins, continue with the CLI and its authoring guide. If a reload is required, tell me what to reload and where to resume. CLI installation alone does not confirm plugin installation.
7
+ 4. If an agent permission rule blocks a setup action, show the exact blocked action and ask for its approval through the normal permission controls. Do not silently skip it or disable safeguards.
8
+ 5. Run \`method login\` and wait while I approve the sign-in in my browser. Use my intended Method account; a workspace invitation applies to the email that was invited. If a saved sign-in uses the wrong account, run \`method logout\` before signing in again. Keep the same Method profile for later commands.
9
+ 6. Run \`method authoring\` and follow it.
7
10
 
8
11
  Then ask me what work to turn into a Method. Make each prompt its own step, so that I can improve it. Run it on a sample, show me the result and the dashboard link, and ask me what to change.`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@method-ai-hq/sdk",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "Build and run reusable .method files with checked steps and saved results.",
5
5
  "license": "MIT",
6
6
  "type": "module",