happy-imou-cloud 2.1.0 → 2.1.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 (47) hide show
  1. package/bin/happy-cloud.mjs +21 -17
  2. package/compat/acp-sdk-schema/index.js +28 -0
  3. package/compat/acp-sdk-schema/types.gen.js +3 -0
  4. package/compat/acp-sdk-schema/zod.gen.js +1554 -0
  5. package/compat/ink-build/components/Cursor.d.ts +83 -0
  6. package/compat/ink-build/components/Cursor.js +53 -0
  7. package/compat/ink-build/components/CursorContext.d.ts +11 -0
  8. package/compat/ink-build/components/CursorContext.js +8 -0
  9. package/compat/ink-build/components/ErrorBoundary.d.ts +18 -0
  10. package/compat/ink-build/components/ErrorBoundary.js +23 -0
  11. package/compat/ink-build/hooks/use-cursor.d.ts +12 -0
  12. package/compat/ink-build/hooks/use-cursor.js +29 -0
  13. package/dist/{BaseReasoningProcessor-C9mH8EVn.cjs → BaseReasoningProcessor-CBMK-8Gi.cjs} +3 -3
  14. package/dist/{BaseReasoningProcessor-DQkzwRuf.mjs → BaseReasoningProcessor-Dn9FxfxU.mjs} +3 -3
  15. package/dist/ProviderSelectionHandler-BuXk-8ji.cjs +680 -0
  16. package/dist/ProviderSelectionHandler-CMaQThYO.mjs +673 -0
  17. package/dist/{api-w_CUxb9Q.mjs → api-DBy5lPZw.mjs} +5 -4
  18. package/dist/{api-Bd-MnOS4.cjs → api-DId_j3C2.cjs} +4 -3
  19. package/dist/{command-mTWwCqTY.mjs → command-CeaBwYCW.mjs} +3 -3
  20. package/dist/{command-DoDmHNxR.cjs → command-DwfUpmId.cjs} +3 -3
  21. package/dist/{index-GuXV-pxB.mjs → index-66vjECEd.mjs} +72 -165
  22. package/dist/{index-BQmJ4NAa.cjs → index-CuuYSKiv.cjs} +75 -168
  23. package/dist/index.cjs +3 -3
  24. package/dist/index.mjs +3 -3
  25. package/dist/lib.cjs +1 -1
  26. package/dist/lib.d.cts +52 -51
  27. package/dist/lib.d.mts +52 -51
  28. package/dist/lib.mjs +1 -1
  29. package/dist/{persistence-MSy70is3.mjs → persistence-BOWh1NER.mjs} +1 -1
  30. package/dist/{persistence-BL06LLVz.cjs → persistence-Dzr6sFwD.cjs} +1 -1
  31. package/dist/{registerKillSessionHandler-CjWfUfc3.mjs → registerKillSessionHandler-D4_wpN18.mjs} +5 -417
  32. package/dist/{registerKillSessionHandler-D9kwxy6B.cjs → registerKillSessionHandler-Dg_iRBPm.cjs} +4 -419
  33. package/dist/{runClaude-DpZ95Twb.mjs → runClaude-B74dHAnQ.mjs} +5 -5
  34. package/dist/{runClaude-D2ZEXue8.cjs → runClaude-oIFzkfuU.cjs} +8 -8
  35. package/dist/{runCodex-Dz_1ho8d.cjs → runCodex-D_9CuL6M.cjs} +9 -9
  36. package/dist/{runCodex-CJwaep2R.mjs → runCodex-mLHjsgVj.mjs} +6 -6
  37. package/dist/{runGemini-BehqjM73.mjs → runGemini-BMiho2ab.mjs} +70 -189
  38. package/dist/{runGemini-Dfu6LltX.cjs → runGemini-CcWGezMt.cjs} +70 -189
  39. package/package.json +9 -8
  40. package/scripts/build.mjs +68 -66
  41. package/scripts/devtools/README.md +9 -9
  42. package/scripts/e2e/fake-codex-acp-agent.mjs +139 -139
  43. package/scripts/e2e/local-server-session-roundtrip.mjs +1063 -1063
  44. package/scripts/ensureAcpSdkCompat.mjs +173 -0
  45. package/scripts/release-smoke.mjs +35 -24
  46. package/dist/ProviderSelectionHandler-5Dedbm8j.cjs +0 -265
  47. package/dist/ProviderSelectionHandler-BlrrLPlo.mjs +0 -261
@@ -1,20 +1,23 @@
1
- #!/usr/bin/env node
2
-
3
- import { execFileSync } from 'child_process';
4
- import { fileURLToPath } from 'url';
5
- import { join, dirname } from 'path';
1
+ #!/usr/bin/env node
2
+
3
+ import { execFileSync } from 'child_process';
4
+ import { fileURLToPath } from 'url';
5
+ import { join, dirname } from 'path';
6
+ import { ensureAcpSdkCompat } from '../scripts/ensureAcpSdkCompat.mjs';
6
7
 
7
8
  // Check if we're already running with the flags
8
9
  const hasNoWarnings = process.execArgv.includes('--no-warnings');
9
10
  const hasNoDeprecation = process.execArgv.includes('--no-deprecation');
10
11
 
11
- if (!hasNoWarnings || !hasNoDeprecation) {
12
- // Get path to the actual CLI entrypoint
13
- const projectRoot = dirname(dirname(fileURLToPath(import.meta.url)));
14
- const entrypoint = join(projectRoot, 'dist', 'index.mjs');
15
-
16
- // Execute the actual CLI directly with the correct flags
17
- try {
12
+ if (!hasNoWarnings || !hasNoDeprecation) {
13
+ // Get path to the actual CLI entrypoint
14
+ const projectRoot = dirname(dirname(fileURLToPath(import.meta.url)));
15
+ const entrypoint = join(projectRoot, 'dist', 'index.mjs');
16
+
17
+ ensureAcpSdkCompat();
18
+
19
+ // Execute the actual CLI directly with the correct flags
20
+ try {
18
21
  execFileSync(process.execPath, [
19
22
  '--no-warnings',
20
23
  '--no-deprecation',
@@ -28,8 +31,9 @@ if (!hasNoWarnings || !hasNoDeprecation) {
28
31
  // execFileSync throws if the process exits with non-zero
29
32
  process.exit(error.status || 1);
30
33
  }
31
- } else {
32
- // We're running Node with the flags we wanted, import the CLI entrypoint
33
- // module to avoid creating a new process.
34
- import("../dist/index.mjs");
35
- }
34
+ } else {
35
+ // We're running Node with the flags we wanted, import the CLI entrypoint
36
+ // module to avoid creating a new process.
37
+ ensureAcpSdkCompat();
38
+ import("../dist/index.mjs");
39
+ }
@@ -0,0 +1,28 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export const AGENT_METHODS = {
3
+ authenticate: "authenticate",
4
+ initialize: "initialize",
5
+ session_cancel: "session/cancel",
6
+ session_fork: "session/fork",
7
+ session_list: "session/list",
8
+ session_load: "session/load",
9
+ session_new: "session/new",
10
+ session_prompt: "session/prompt",
11
+ session_resume: "session/resume",
12
+ session_set_config_option: "session/set_config_option",
13
+ session_set_mode: "session/set_mode",
14
+ session_set_model: "session/set_model",
15
+ };
16
+ export const CLIENT_METHODS = {
17
+ fs_read_text_file: "fs/read_text_file",
18
+ fs_write_text_file: "fs/write_text_file",
19
+ session_request_permission: "session/request_permission",
20
+ session_update: "session/update",
21
+ terminal_create: "terminal/create",
22
+ terminal_kill: "terminal/kill",
23
+ terminal_output: "terminal/output",
24
+ terminal_release: "terminal/release",
25
+ terminal_wait_for_exit: "terminal/wait_for_exit",
26
+ };
27
+ export const PROTOCOL_VERSION = 1;
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export {};
3
+ //# sourceMappingURL=types.gen.js.map