agent-neckbeard 1.1.29 → 1.1.30

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 (51) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +25 -27
  3. package/dist/archil.d.ts +73 -0
  4. package/dist/archil.js +673 -0
  5. package/dist/build.cjs +129 -5315
  6. package/dist/build.d.cts +9 -5
  7. package/dist/build.d.ts +9 -5
  8. package/dist/build.js +4 -6
  9. package/dist/{chunk-BPXEIXPM.js → chunk-FHNQ5DNA.js} +3264 -564
  10. package/dist/{chunk-FSBTLBB5.js → chunk-I5GIWADK.js} +29 -7
  11. package/dist/chunk-I5NULOJP.js +129 -0
  12. package/dist/chunk-PKUGXECR.js +13 -0
  13. package/dist/chunk-QA4L7ZI2.js +72 -0
  14. package/dist/{chunk-KG6SJM74.js → chunk-VHBDBB3N.js} +8 -5
  15. package/dist/cli.cjs +124 -5309
  16. package/dist/cli.js +7 -8
  17. package/dist/define-gdmBe9RA.d.ts +227 -0
  18. package/dist/durable.d.ts +53 -0
  19. package/dist/durable.js +92 -0
  20. package/dist/index.cjs +720 -988
  21. package/dist/index.d.cts +139 -87
  22. package/dist/index.d.ts +139 -87
  23. package/dist/index.js +12 -11
  24. package/dist/inside.d.ts +15 -0
  25. package/dist/inside.js +530 -0
  26. package/dist/{invoke-client-P2CPBYTF.js → invoke-client-QB2NTZ3L.js} +1 -2
  27. package/dist/pi-watch-legacy.d.ts +4503 -0
  28. package/dist/serve.cjs +9 -439
  29. package/dist/serve.d.cts +14 -1
  30. package/dist/serve.d.ts +14 -1
  31. package/dist/serve.js +3 -5
  32. package/docs/AGENT.md +81 -77
  33. package/docs/DAYTONA.md +2 -0
  34. package/docs/DOCKER.md +0 -1
  35. package/docs/E2B.md +1 -1
  36. package/docs/LEGACY.md +1 -8
  37. package/docs/MODAL.md +1 -1
  38. package/package.json +57 -23
  39. package/types/pi-watch.d.cts +68 -0
  40. package/dist/chunk-33IXN6MM.js +0 -21
  41. package/dist/chunk-6P5I7ZCH.js +0 -2552
  42. package/dist/chunk-YFG4EKZM.js +0 -508
  43. package/dist/sandbox-capabilities-CFjnZ_kB.d.cts +0 -77
  44. package/dist/sandbox-capabilities-CFjnZ_kB.d.ts +0 -77
  45. package/dist/serve-Du2NCz9_.d.cts +0 -111
  46. package/dist/serve-Du2NCz9_.d.ts +0 -111
  47. package/dist/supervisor.cjs +0 -5731
  48. package/dist/supervisor.d.cts +0 -482
  49. package/dist/supervisor.d.ts +0 -482
  50. package/dist/supervisor.js +0 -3187
  51. package/docs/SUPERVISOR.md +0 -258
@@ -0,0 +1,68 @@
1
+ // @ts-ignore Standalone host installations omit the optional Pi Durable peer.
2
+ import type { ConversationView, WatchCall } from '@earendil-works/pi-durable' with { 'resolution-mode': 'import' };
3
+
4
+ export type PiWatchEvent = WatchCall<ConversationView>;
5
+
6
+ // @ts-ignore Standalone host installations omit the optional Pi Durable peer.
7
+ import type { ConversationAbortOptions, ConversationWindow, ConversationWatch, EntryId, EntryRecord, Submission, SubmissionId } from '@earendil-works/pi-durable' with { 'resolution-mode': 'import' };
8
+ // @ts-ignore Standalone host installations omit the optional Chord peer.
9
+ import type { Context } from '@earendil-works/chord/context' with { 'resolution-mode': 'import' };
10
+
11
+ // @ts-ignore Standalone host installations omit the optional Pi Durable peer.
12
+ import type { Conversation, Harness, HarnessOptions, Storage } from '@earendil-works/pi-durable' with { 'resolution-mode': 'import' };
13
+ // @ts-ignore Standalone host installations omit the optional Pi Durable peer.
14
+ import type { ExecutionEnv } from '@earendil-works/pi-durable/env' with { 'resolution-mode': 'import' };
15
+
16
+ export type { Context };
17
+
18
+ export type RemoteInput = {
19
+ type: 'input';
20
+ content: string;
21
+ requestId: string;
22
+ whenBusy?: 'reject' | 'steer' | 'followUp';
23
+ whenIdle?: 'reject';
24
+ onAbort?: 'withdraw' | 'keep';
25
+ };
26
+ export interface RemoteConversation {
27
+ watch(context: Context, window?: ConversationWindow): Promise<ConversationWatch>;
28
+ waitForIdle(context: Context): Promise<void>;
29
+ abort(context: Context, options?: ConversationAbortOptions): Promise<void>;
30
+ submit(draft: RemoteInput, context: Context): Promise<Submission>;
31
+ submissionByRequest(requestId: string, context: Context): Promise<Submission | undefined>;
32
+ stopSubmission(id: SubmissionId, context: Context): Promise<void>;
33
+ entry(id: EntryId, context: Context): Promise<EntryRecord | undefined>;
34
+ }
35
+
36
+ /** Resources owned by a Pi Durable runtime inside its sandbox. */
37
+ export interface ServedConversation {
38
+ submit(draft: RemoteInput, context: Context): Promise<SubmissionId>;
39
+ watch(context: Context, window?: ConversationWindow): Promise<ConversationWatch>;
40
+ abort(context: Context, options?: ConversationAbortOptions): Promise<void>;
41
+ waitForIdle(context: Context): Promise<void>;
42
+ entry(id: EntryId, context: Context): Promise<EntryRecord | undefined>;
43
+ submissionByRequest(requestId: string, context: Context): Promise<SubmissionId | undefined>;
44
+ submission(id: SubmissionId, context: Context): Promise<Submission | undefined>;
45
+ busy(context: Context): Promise<boolean>;
46
+ stopSubmission(id: SubmissionId, context: Context): Promise<void>;
47
+ close(): Promise<void>;
48
+ }
49
+
50
+ export interface HostSession {
51
+ sessionId: string;
52
+ conversation: Conversation;
53
+ harness: Harness;
54
+ executionEnv: ExecutionEnv;
55
+ storage: Storage;
56
+ close(): Promise<void>;
57
+ }
58
+
59
+ export type HostExecutionFactory = (session: { sessionId: string; storage: Storage }, context: Context) => Promise<{
60
+ executionEnv: ExecutionEnv;
61
+ resolve?: NonNullable<HarnessOptions['env']>;
62
+ }>;
63
+
64
+ export interface HostStartOptions {
65
+ sessionId: string;
66
+ storage: Storage;
67
+ execution: ExecutionEnv | HostExecutionFactory;
68
+ }
@@ -1,21 +0,0 @@
1
- // src/serialized-error.ts
2
- function isSerializedError(value) {
3
- if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
4
- const candidate = value;
5
- return typeof candidate.message === "string" && (candidate.name === void 0 || typeof candidate.name === "string") && (candidate.stack === void 0 || typeof candidate.stack === "string");
6
- }
7
- function serializeError(error) {
8
- if (error instanceof Error) {
9
- return {
10
- name: error.name,
11
- message: error.message,
12
- ...error.stack === void 0 ? {} : { stack: error.stack }
13
- };
14
- }
15
- return { message: String(error) };
16
- }
17
-
18
- export {
19
- isSerializedError,
20
- serializeError
21
- };