happy-coder 0.1.14 → 0.2.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/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var types = require('./types-Cg4664gs.cjs');
3
+ var types = require('./types-CkPUFpfr.cjs');
4
4
  require('axios');
5
5
  require('chalk');
6
6
  require('fs');
package/dist/lib.d.cts CHANGED
@@ -333,7 +333,16 @@ declare const UserMessageSchema: z.ZodObject<{
333
333
  text: string;
334
334
  }>;
335
335
  localKey: z.ZodOptional<z.ZodString>;
336
- sentFrom: z.ZodOptional<z.ZodEnum<["mobile", "cli"]>>;
336
+ meta: z.ZodOptional<z.ZodObject<{
337
+ sentFrom: z.ZodOptional<z.ZodString>;
338
+ permissionMode: z.ZodOptional<z.ZodString>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ sentFrom?: string | undefined;
341
+ permissionMode?: string | undefined;
342
+ }, {
343
+ sentFrom?: string | undefined;
344
+ permissionMode?: string | undefined;
345
+ }>>;
337
346
  }, "strip", z.ZodTypeAny, {
338
347
  content: {
339
348
  type: "text";
@@ -341,7 +350,10 @@ declare const UserMessageSchema: z.ZodObject<{
341
350
  };
342
351
  role: "user";
343
352
  localKey?: string | undefined;
344
- sentFrom?: "mobile" | "cli" | undefined;
353
+ meta?: {
354
+ sentFrom?: string | undefined;
355
+ permissionMode?: string | undefined;
356
+ } | undefined;
345
357
  }, {
346
358
  content: {
347
359
  type: "text";
@@ -349,7 +361,10 @@ declare const UserMessageSchema: z.ZodObject<{
349
361
  };
350
362
  role: "user";
351
363
  localKey?: string | undefined;
352
- sentFrom?: "mobile" | "cli" | undefined;
364
+ meta?: {
365
+ sentFrom?: string | undefined;
366
+ permissionMode?: string | undefined;
367
+ } | undefined;
353
368
  }>;
354
369
  type UserMessage = z.infer<typeof UserMessageSchema>;
355
370
  type Metadata = {
@@ -411,6 +426,9 @@ declare class ApiSessionClient extends EventEmitter {
411
426
  } | {
412
427
  type: 'message';
413
428
  message: string;
429
+ } | {
430
+ type: 'permission-mode-changed';
431
+ mode: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
414
432
  }, id?: string): void;
415
433
  /**
416
434
  * Send a ping message to keep the connection alive
package/dist/lib.d.mts CHANGED
@@ -333,7 +333,16 @@ declare const UserMessageSchema: z.ZodObject<{
333
333
  text: string;
334
334
  }>;
335
335
  localKey: z.ZodOptional<z.ZodString>;
336
- sentFrom: z.ZodOptional<z.ZodEnum<["mobile", "cli"]>>;
336
+ meta: z.ZodOptional<z.ZodObject<{
337
+ sentFrom: z.ZodOptional<z.ZodString>;
338
+ permissionMode: z.ZodOptional<z.ZodString>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ sentFrom?: string | undefined;
341
+ permissionMode?: string | undefined;
342
+ }, {
343
+ sentFrom?: string | undefined;
344
+ permissionMode?: string | undefined;
345
+ }>>;
337
346
  }, "strip", z.ZodTypeAny, {
338
347
  content: {
339
348
  type: "text";
@@ -341,7 +350,10 @@ declare const UserMessageSchema: z.ZodObject<{
341
350
  };
342
351
  role: "user";
343
352
  localKey?: string | undefined;
344
- sentFrom?: "mobile" | "cli" | undefined;
353
+ meta?: {
354
+ sentFrom?: string | undefined;
355
+ permissionMode?: string | undefined;
356
+ } | undefined;
345
357
  }, {
346
358
  content: {
347
359
  type: "text";
@@ -349,7 +361,10 @@ declare const UserMessageSchema: z.ZodObject<{
349
361
  };
350
362
  role: "user";
351
363
  localKey?: string | undefined;
352
- sentFrom?: "mobile" | "cli" | undefined;
364
+ meta?: {
365
+ sentFrom?: string | undefined;
366
+ permissionMode?: string | undefined;
367
+ } | undefined;
353
368
  }>;
354
369
  type UserMessage = z.infer<typeof UserMessageSchema>;
355
370
  type Metadata = {
@@ -411,6 +426,9 @@ declare class ApiSessionClient extends EventEmitter {
411
426
  } | {
412
427
  type: 'message';
413
428
  message: string;
429
+ } | {
430
+ type: 'permission-mode-changed';
431
+ mode: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
414
432
  }, id?: string): void;
415
433
  /**
416
434
  * Send a ping message to keep the connection alive
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, i as initLoggerWithGlobalConfiguration, b as initializeConfiguration, l as logger } from './types-DD9P_5rj.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, i as initLoggerWithGlobalConfiguration, b as initializeConfiguration, l as logger } from './types-DNu8okOb.mjs';
2
2
  import 'axios';
3
3
  import 'chalk';
4
4
  import 'fs';