monk-pi 0.2.0 → 0.10.0

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/cli.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  printBanner,
9
9
  runCommand,
10
10
  statusCommand
11
- } from "./chunk-6OMOTI3T.js";
11
+ } from "./chunk-37UZNIY3.js";
12
12
 
13
13
  // src/cli.ts
14
14
  import { Command } from "commander";
@@ -55,9 +55,13 @@ async function main() {
55
55
  console.log(` ${pc.cyan('monk-pi --model monk-fast "\u5FEB\u901F\u5BA1\u67E5\u8FD9\u4E2A\u63D0\u4EA4"')}`);
56
56
  console.log();
57
57
  console.log(` ${pc.dim("# \u6062\u590D\u4E0A\u4E00\u8F6E\u5386\u53F2\u4F1A\u8BDD")}`);
58
- console.log(` ${pc.cyan("monk-pi --continue")}`);
58
+ console.log(` ${pc.cyan("monk-pi --continue (\u6216 monk-pi continue)")}`);
59
+ console.log();
60
+ console.log(` ${pc.dim("# \u53EF\u89C6\u5316\u6D4F\u89C8\u5E76\u6062\u590D\u4EE5\u5F80\u5386\u53F2\u4EFB\u52A1")}`);
61
+ console.log(` ${pc.cyan("monk-pi -r (\u6216 monk-pi resume)")}`);
59
62
  console.log();
60
63
  console.log(` ${pc.bold("\u4E13\u5C5E\u7BA1\u7406\u6307\u4EE4:")}`);
64
+ console.log(` ${pc.yellow("monk-pi resume (\u6216 -r)")} \u53EF\u89C6\u5316\u6D4F\u89C8\u5E76\u6062\u590D\u5386\u53F2\u4F1A\u8BDD (\u65AD\u70B9\u7EED\u5199)`);
61
65
  console.log(` ${pc.yellow("monk-pi login")} \u914D\u7F6E / \u66F4\u65B0 Monk API Key`);
62
66
  console.log(` ${pc.yellow("monk-pi status")} \u68C0\u6D4B API \u5EF6\u8FDF\u3001Key \u72B6\u6001\u4E0E\u8FDE\u901A\u6027`);
63
67
  console.log(` ${pc.yellow("monk-pi model [name]")} \u67E5\u770B\u6216\u5207\u6362\u9ED8\u8BA4\u4E3B\u529B\u6A21\u578B`);
package/dist/index.d.ts CHANGED
@@ -61,9 +61,10 @@ declare function syncPiModelsJson(apiKey?: string): {
61
61
  /**
62
62
  * Safely writes or updates the Monk native extension in ~/.pi/agent/extensions/monk.ts
63
63
  */
64
- declare function syncPiExtension(): {
64
+ declare function syncPiExtension(force?: boolean): {
65
65
  success: boolean;
66
66
  path: string;
67
+ updated: boolean;
67
68
  error?: string;
68
69
  };
69
70
  /**
@@ -129,6 +130,7 @@ interface LaunchPiOptions {
129
130
  */
130
131
  declare function launchPi(options: LaunchPiOptions): number;
131
132
 
133
+ declare function openBrowser(url: string): boolean;
132
134
  declare function printBanner(): void;
133
135
  declare function logSuccess(msg: string): void;
134
136
  declare function logInfo(msg: string): void;
@@ -136,7 +138,7 @@ declare function logWarn(msg: string): void;
136
138
  declare function logError(msg: string): void;
137
139
  declare function logStep(step: number, total: number, msg: string): void;
138
140
  /**
139
- * Interactive prompt for API Key
141
+ * Interactive prompt for API Key with one-click browser checkout option
140
142
  */
141
143
  declare function promptForApiKey(currentKey?: string): Promise<string>;
142
144
  /**
@@ -159,4 +161,4 @@ declare function doctorCommand(): Promise<void>;
159
161
 
160
162
  declare function runCommand(passthroughArgs: string[]): Promise<number>;
161
163
 
162
- export { type CompletionTestResult, DEFAULT_MONK_MODEL, type LaunchPiOptions, MONK_ACCOUNT_URL, MONK_BASE_URL, MONK_MODELS, MONK_WEBSITE, type MonkLocalConfig, type MonkModelId, type PiBinaryType, type ResolvedPi, type ValidateResult, detectPackageManager, detectPi, doctorCommand, getDefaultModel, getMonkConfigFile, getMonkHomeDir, getPiExtensionsDir, getPiHomeDir, getPiModelsFile, getPiMonkExtensionFile, getPiSettingsFile, installPi, launchPi, loadMonkConfig, logError, logInfo, logStep, logSuccess, logWarn, loginCommand, maskKey, modelCommand, printBanner, promptForApiKey, promptInstallPi, promptSelectModel, resolveApiKey, resolvePiBinary, runCommand, saveMonkConfig, statusCommand, syncPiExtension, syncPiModelsJson, testChatCompletion, validateApiKey };
164
+ export { type CompletionTestResult, DEFAULT_MONK_MODEL, type LaunchPiOptions, MONK_ACCOUNT_URL, MONK_BASE_URL, MONK_MODELS, MONK_WEBSITE, type MonkLocalConfig, type MonkModelId, type PiBinaryType, type ResolvedPi, type ValidateResult, detectPackageManager, detectPi, doctorCommand, getDefaultModel, getMonkConfigFile, getMonkHomeDir, getPiExtensionsDir, getPiHomeDir, getPiModelsFile, getPiMonkExtensionFile, getPiSettingsFile, installPi, launchPi, loadMonkConfig, logError, logInfo, logStep, logSuccess, logWarn, loginCommand, maskKey, modelCommand, openBrowser, printBanner, promptForApiKey, promptInstallPi, promptSelectModel, resolveApiKey, resolvePiBinary, runCommand, saveMonkConfig, statusCommand, syncPiExtension, syncPiModelsJson, testChatCompletion, validateApiKey };
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ import {
26
26
  loginCommand,
27
27
  maskKey,
28
28
  modelCommand,
29
+ openBrowser,
29
30
  printBanner,
30
31
  promptForApiKey,
31
32
  promptInstallPi,
@@ -39,7 +40,7 @@ import {
39
40
  syncPiModelsJson,
40
41
  testChatCompletion,
41
42
  validateApiKey
42
- } from "./chunk-6OMOTI3T.js";
43
+ } from "./chunk-37UZNIY3.js";
43
44
  export {
44
45
  DEFAULT_MONK_MODEL,
45
46
  MONK_ACCOUNT_URL,
@@ -68,6 +69,7 @@ export {
68
69
  loginCommand,
69
70
  maskKey,
70
71
  modelCommand,
72
+ openBrowser,
71
73
  printBanner,
72
74
  promptForApiKey,
73
75
  promptInstallPi,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monk-pi",
3
- "version": "0.2.0",
3
+ "version": "0.10.0",
4
4
  "description": "Zero-config harness for running Pi Coding Agent with Monk API (monk.party)",
5
5
  "type": "module",
6
6
  "bin": "./dist/cli.js",