happy-coder 0.1.14 → 0.2.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.
- package/dist/index.cjs +678 -113
- package/dist/index.mjs +677 -112
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +21 -3
- package/dist/lib.d.mts +21 -3
- package/dist/lib.mjs +1 -1
- package/dist/types-CkPUFpfr.cjs +885 -0
- package/dist/types-DNu8okOb.mjs +874 -0
- package/package.json +1 -1
package/dist/lib.cjs
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
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';
|