happy-imou-cloud 2.1.0 → 2.1.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.
Files changed (45) hide show
  1. package/bin/happy-cloud.mjs +4 -0
  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-DQkzwRuf.mjs → BaseReasoningProcessor-BaOWkVcu.mjs} +3 -3
  14. package/dist/{BaseReasoningProcessor-C9mH8EVn.cjs → BaseReasoningProcessor-CzvqwxuY.cjs} +3 -3
  15. package/dist/{ProviderSelectionHandler-BlrrLPlo.mjs → ProviderSelectionHandler-Q8pl7e-d.mjs} +2 -2
  16. package/dist/{ProviderSelectionHandler-5Dedbm8j.cjs → ProviderSelectionHandler-wwbfeK_s.cjs} +2 -2
  17. package/dist/{api-w_CUxb9Q.mjs → api-Cxifhw5r.mjs} +4 -3
  18. package/dist/{api-Bd-MnOS4.cjs → api-DZimmN4C.cjs} +4 -3
  19. package/dist/{command-mTWwCqTY.mjs → command-B6LM3Nml.mjs} +3 -3
  20. package/dist/{command-DoDmHNxR.cjs → command-RcCJI1jl.cjs} +3 -3
  21. package/dist/{index-BQmJ4NAa.cjs → index-Cuvs0lFS.cjs} +11 -11
  22. package/dist/{index-GuXV-pxB.mjs → index-Des7I5WX.mjs} +8 -8
  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 +82 -81
  27. package/dist/lib.d.mts +82 -81
  28. package/dist/lib.mjs +1 -1
  29. package/dist/{persistence-MSy70is3.mjs → persistence-6d4U4Sh8.mjs} +1 -1
  30. package/dist/{persistence-BL06LLVz.cjs → persistence-C8-MtdQK.cjs} +1 -1
  31. package/dist/{registerKillSessionHandler-CjWfUfc3.mjs → registerKillSessionHandler-BFBkz_XT.mjs} +3 -3
  32. package/dist/{registerKillSessionHandler-D9kwxy6B.cjs → registerKillSessionHandler-BapPCRmp.cjs} +3 -3
  33. package/dist/{runClaude-DpZ95Twb.mjs → runClaude-CPV5Uap2.mjs} +34 -5
  34. package/dist/{runClaude-D2ZEXue8.cjs → runClaude-DVnqKa1q.cjs} +34 -5
  35. package/dist/{runCodex-Dz_1ho8d.cjs → runCodex-Bzsp8gFO.cjs} +26 -18
  36. package/dist/{runCodex-CJwaep2R.mjs → runCodex-CwtLSTMJ.mjs} +26 -18
  37. package/dist/{runGemini-Dfu6LltX.cjs → runGemini-6Dwyk_Km.cjs} +83 -17
  38. package/dist/{runGemini-BehqjM73.mjs → runGemini-Bmoxehlh.mjs} +83 -17
  39. package/package.json +3 -2
  40. package/scripts/build.mjs +2 -0
  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 +171 -0
  45. package/scripts/release-smoke.mjs +14 -0
@@ -3,6 +3,7 @@
3
3
  import { execFileSync } from 'child_process';
4
4
  import { fileURLToPath } from 'url';
5
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');
@@ -12,6 +13,8 @@ if (!hasNoWarnings || !hasNoDeprecation) {
12
13
  // Get path to the actual CLI entrypoint
13
14
  const projectRoot = dirname(dirname(fileURLToPath(import.meta.url)));
14
15
  const entrypoint = join(projectRoot, 'dist', 'index.mjs');
16
+
17
+ ensureAcpSdkCompat();
15
18
 
16
19
  // Execute the actual CLI directly with the correct flags
17
20
  try {
@@ -31,5 +34,6 @@ if (!hasNoWarnings || !hasNoDeprecation) {
31
34
  } else {
32
35
  // We're running Node with the flags we wanted, import the CLI entrypoint
33
36
  // module to avoid creating a new process.
37
+ ensureAcpSdkCompat();
34
38
  import("../dist/index.mjs");
35
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