poe-code 12.0.5 → 12.0.7

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 (63) hide show
  1. package/README.md +24 -3
  2. package/dist/index.js +143 -21
  3. package/dist/index.js.map +4 -4
  4. package/dist/metafile.json +1 -1
  5. package/package.json +46 -5
  6. package/packages/package-lint/dist/bundle-policy.d.ts +144 -1
  7. package/packages/package-lint/dist/bundle-policy.js +289 -60
  8. package/packages/package-lint/dist/model.d.ts +2 -1
  9. package/packages/package-lint/dist/model.js +8 -1
  10. package/packages/safe-fs/dist/bridge/filesystem.d.ts +88 -0
  11. package/packages/safe-fs/dist/bridge/index.d.ts +6 -0
  12. package/packages/safe-fs/dist/bridge/stats.d.ts +4 -0
  13. package/packages/safe-fs/dist/bridge/types.d.ts +75 -0
  14. package/packages/safe-fs/dist/bridge/values.d.ts +6 -0
  15. package/packages/safe-fs/dist/contracts/errors.d.ts +3 -2
  16. package/packages/safe-fs/dist/contracts/path.d.ts +1 -6
  17. package/packages/safe-fs/dist/contracts/virtual-path.d.ts +7 -0
  18. package/packages/safe-fs/dist/core.d.ts +11 -0
  19. package/packages/safe-fs/dist/fs/mount/comparison.d.ts +1 -0
  20. package/packages/safe-fs/dist/fs/overlay/index.d.ts +2 -1
  21. package/packages/safe-fs/dist/fs/readonly/index.d.ts +2 -1
  22. package/packages/safe-fs/dist/fs/s3/authority.d.ts +3 -9
  23. package/packages/safe-fs/dist/fs/s3/registry.d.ts +10 -0
  24. package/packages/safe-fs/dist/fs/webdav/webdav.d.ts +2 -1
  25. package/packages/safe-fs/dist/node/stats.d.ts +1 -4
  26. package/packages/safe-fs/dist/node/values.d.ts +1 -6
  27. package/packages/safe-fs/dist/node-host.d.ts +1 -0
  28. package/packages/safe-fs/dist/node-unavailable.d.ts +1 -0
  29. package/packages/safe-fs/dist/platform/browser.d.ts +12 -0
  30. package/packages/safe-fs/dist/platform/node.d.ts +13 -0
  31. package/packages/safejs/dist/browser/chunks/chunk-MUKMA7ZY.js +4053 -0
  32. package/packages/safejs/dist/browser/chunks/chunk-MUKMA7ZY.js.map +7 -0
  33. package/packages/safejs/dist/browser/safe-fs-core.js +55 -0
  34. package/packages/safejs/dist/browser/safe-fs-core.js.map +7 -0
  35. package/packages/safejs/dist/browser/safe-fs.js +55 -0
  36. package/packages/safejs/dist/browser/safe-fs.js.map +7 -0
  37. package/packages/safejs/dist/chunks/chunk-F7NY24BF.js +2603 -0
  38. package/packages/safejs/dist/chunks/chunk-F7NY24BF.js.map +7 -0
  39. package/packages/safejs/dist/chunks/{chunk-XBRQ72W6.js → chunk-NDHGDM46.js} +89 -17
  40. package/packages/safejs/dist/chunks/{chunk-XBRQ72W6.js.map → chunk-NDHGDM46.js.map} +3 -3
  41. package/packages/safejs/dist/chunks/{chunk-RRSINVWT.js → chunk-NTYX57KK.js} +7 -5
  42. package/packages/safejs/dist/chunks/{chunk-RRSINVWT.js.map → chunk-NTYX57KK.js.map} +1 -1
  43. package/packages/safejs/dist/chunks/{chunk-B3G3JVCW.js → chunk-YBQUQPZV.js} +637 -3120
  44. package/packages/safejs/dist/chunks/chunk-YBQUQPZV.js.map +7 -0
  45. package/packages/safejs/dist/cli.js +4 -3
  46. package/packages/safejs/dist/cli.js.map +1 -1
  47. package/packages/safejs/dist/core.js +1 -1
  48. package/packages/safejs/dist/index.js +4 -3
  49. package/packages/safejs/dist/index.js.map +1 -1
  50. package/packages/safejs/dist/interp/methods/collection-callback.d.ts +7 -0
  51. package/packages/safejs/dist/interp/methods/collection-callback.js +68 -0
  52. package/packages/safejs/dist/interp/methods/map.js +18 -9
  53. package/packages/safejs/dist/interp/methods/set.js +17 -9
  54. package/packages/safejs/dist/safe-fs-core.js +80 -0
  55. package/packages/safejs/dist/safe-fs-core.js.map +7 -0
  56. package/packages/safejs/dist/safe-fs-node.js +94 -0
  57. package/packages/safejs/dist/safe-fs-node.js.map +7 -0
  58. package/packages/safejs/dist/safe-fs.js +20 -18
  59. package/packages/terminal-pilot/dist/commands/index.d.ts +2 -2
  60. package/packages/terminal-pilot/dist/commands/installer.d.ts +1 -1
  61. package/packages/tiny-mcp-client/dist/index.d.ts +1 -1
  62. package/packages/toolcraft/dist/mcp.d.ts +3 -3
  63. package/packages/safejs/dist/chunks/chunk-B3G3JVCW.js.map +0 -7
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../safe-fs/src/bridge/index.ts"],
4
+ "sourcesContent": ["import { platform } from \"#safe-fs-platform\";\nimport type { FileSystem } from \"../contracts/filesystem.js\";\nimport { dirname, relativePath, resolvePath } from \"../contracts/virtual-path.js\";\nimport { FileSystemBridge } from \"./filesystem.js\";\nimport type { FsBridgeOptions } from \"./types.js\";\n\nexport type {\n FsBridgeCodec, FsBridgeDirent, FsBridgeEncoding, FsBridgeFileSystem, FsBridgeOptions, FsBridgeStats\n} from \"./types.js\";\nexport type FsBridge = FileSystemBridge<Uint8Array<ArrayBuffer>>;\n\nexport function createFsBridge(fs: FileSystem, options: FsBridgeOptions): FsBridge {\n if (options === undefined || options === null) throw new TypeError(\"An explicit filesystem codec is required\");\n return new FileSystemBridge(fs, options, {\n codec: options.codec,\n copyBytes(bytes) { return new Uint8Array(bytes); },\n randomSuffix() { return platform.randomUUID().slice(0, 6); },\n paths: {\n isAbsolute(path) { return typeof path === \"string\" && path.startsWith(\"/\"); },\n dirname,\n relative: relativePath,\n resolve: resolvePath\n }\n });\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,SAAS,eAAe,IAAgB,SAAoC;AACjF,MAAI,YAAY,UAAa,YAAY,KAAM,OAAM,IAAI,UAAU,0CAA0C;AAC7G,SAAO,IAAI,iBAAiB,IAAI,SAAS;AAAA,IACvC,OAAO,QAAQ;AAAA,IACf,UAAU,OAAO;AAAE,aAAO,IAAI,WAAW,KAAK;AAAA,IAAG;AAAA,IACjD,eAAe;AAAE,aAAO,SAAS,WAAW,EAAE,MAAM,GAAG,CAAC;AAAA,IAAG;AAAA,IAC3D,OAAO;AAAA,MACL,WAAW,MAAM;AAAE,eAAO,OAAO,SAAS,YAAY,KAAK,WAAW,GAAG;AAAA,MAAG;AAAA,MAC5E;AAAA,MACA,UAAU;AAAA,MACV,SAAS;AAAA,IACX;AAAA,EACF,CAAC;AACH;",
6
+ "names": []
7
+ }
@@ -0,0 +1,94 @@
1
+ import {
2
+ MockS3Client,
3
+ RealFileSystem,
4
+ S3FileSystem,
5
+ S3RenameError,
6
+ S3ServiceError,
7
+ basename,
8
+ createFileSystem,
9
+ createNodeFileSystemAdapterRegistry,
10
+ createNodeFsBridge,
11
+ createRealFileSystem,
12
+ createS3HttpTransport,
13
+ createS3Transport,
14
+ dirname,
15
+ encodeCopySource,
16
+ extname,
17
+ isAbsolutePath,
18
+ joinPath,
19
+ posixPath,
20
+ readConfigRecord,
21
+ validateFileSystemConfig
22
+ } from "./chunks/chunk-F7NY24BF.js";
23
+ import {
24
+ ACCESS_MODES,
25
+ FsError,
26
+ MemoryFileSystem,
27
+ MountFileSystem,
28
+ OverlayFileSystem,
29
+ ReadOnlyFileSystem,
30
+ WebDavFileSystem,
31
+ assertPathWithin,
32
+ collectBytes,
33
+ createMemoryFileSystem,
34
+ createMountFileSystem,
35
+ createOverlayFileSystem,
36
+ createReadOnlyFileSystem,
37
+ isErrnoCode,
38
+ isFsError,
39
+ isPathWithin,
40
+ normalizePath,
41
+ readBytes,
42
+ relativePath,
43
+ resolvePath,
44
+ toByteSource,
45
+ toFsError,
46
+ validatePath
47
+ } from "./chunks/chunk-YBQUQPZV.js";
48
+ import "./chunks/chunk-4YIDX44G.js";
49
+ export {
50
+ ACCESS_MODES,
51
+ FsError,
52
+ MemoryFileSystem,
53
+ MockS3Client,
54
+ MountFileSystem,
55
+ OverlayFileSystem,
56
+ ReadOnlyFileSystem,
57
+ RealFileSystem,
58
+ S3FileSystem,
59
+ S3RenameError,
60
+ S3ServiceError,
61
+ WebDavFileSystem,
62
+ assertPathWithin,
63
+ basename,
64
+ collectBytes,
65
+ createFileSystem,
66
+ createMemoryFileSystem,
67
+ createMountFileSystem,
68
+ createNodeFileSystemAdapterRegistry,
69
+ createNodeFsBridge,
70
+ createOverlayFileSystem,
71
+ createReadOnlyFileSystem,
72
+ createRealFileSystem,
73
+ createS3HttpTransport,
74
+ createS3Transport,
75
+ dirname,
76
+ encodeCopySource,
77
+ extname,
78
+ isAbsolutePath,
79
+ isErrnoCode,
80
+ isFsError,
81
+ isPathWithin,
82
+ joinPath,
83
+ normalizePath,
84
+ posixPath,
85
+ readBytes,
86
+ readConfigRecord,
87
+ relativePath,
88
+ resolvePath,
89
+ toByteSource,
90
+ toFsError,
91
+ validateFileSystemConfig,
92
+ validatePath
93
+ };
94
+ //# sourceMappingURL=safe-fs-node.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,26 +1,13 @@
1
1
  import {
2
- ACCESS_MODES,
3
- FsError,
4
- MemoryFileSystem,
5
2
  MockS3Client,
6
- MountFileSystem,
7
- OverlayFileSystem,
8
- ReadOnlyFileSystem,
9
3
  RealFileSystem,
10
4
  S3FileSystem,
11
5
  S3RenameError,
12
6
  S3ServiceError,
13
- WebDavFileSystem,
14
- assertPathWithin,
15
7
  basename,
16
- collectBytes,
17
8
  createFileSystem,
18
- createMemoryFileSystem,
19
- createMountFileSystem,
20
9
  createNodeFileSystemAdapterRegistry,
21
10
  createNodeFsBridge,
22
- createOverlayFileSystem,
23
- createReadOnlyFileSystem,
24
11
  createRealFileSystem,
25
12
  createS3HttpTransport,
26
13
  createS3Transport,
@@ -28,21 +15,36 @@ import {
28
15
  encodeCopySource,
29
16
  extname,
30
17
  isAbsolutePath,
18
+ joinPath,
19
+ posixPath,
20
+ readConfigRecord,
21
+ validateFileSystemConfig
22
+ } from "./chunks/chunk-F7NY24BF.js";
23
+ import {
24
+ ACCESS_MODES,
25
+ FsError,
26
+ MemoryFileSystem,
27
+ MountFileSystem,
28
+ OverlayFileSystem,
29
+ ReadOnlyFileSystem,
30
+ WebDavFileSystem,
31
+ assertPathWithin,
32
+ collectBytes,
33
+ createMemoryFileSystem,
34
+ createMountFileSystem,
35
+ createOverlayFileSystem,
36
+ createReadOnlyFileSystem,
31
37
  isErrnoCode,
32
38
  isFsError,
33
39
  isPathWithin,
34
- joinPath,
35
40
  normalizePath,
36
- posixPath,
37
41
  readBytes,
38
- readConfigRecord,
39
42
  relativePath,
40
43
  resolvePath,
41
44
  toByteSource,
42
45
  toFsError,
43
- validateFileSystemConfig,
44
46
  validatePath
45
- } from "./chunks/chunk-B3G3JVCW.js";
47
+ } from "./chunks/chunk-YBQUQPZV.js";
46
48
  import "./chunks/chunk-4YIDX44G.js";
47
49
  export {
48
50
  ACCESS_MODES,
@@ -18,7 +18,7 @@ export { waitForExit } from "./wait-for-exit.js";
18
18
  export { createTerminalPilotRuntime, SESSION_ENV_VAR } from "./runtime.js";
19
19
  export type { TerminalPilotCommandServices, TerminalPilotRuntime } from "./runtime.js";
20
20
  export declare function createTerminalPilotGroup(): import("../../../toolcraft/dist/index.js").Group<TerminalPilotCommandServices> & {
21
- readonly __agentKitGroupTypeInfo: import("../../../toolcraft/dist/index.js").GroupTypeInfo<TerminalPilotCommandServices, "../index.js", readonly [import("../../../toolcraft/dist/index.js").Command<TerminalPilotCommandServices, import("../../../toolcraft/dist/index.js").ObjectSchema<{
21
+ readonly __agentKitGroupTypeInfo: import("../../../toolcraft/dist/index.js").GroupTypeInfo<TerminalPilotCommandServices, "terminal-pilot", readonly [import("../../../toolcraft/dist/index.js").Command<TerminalPilotCommandServices, import("../../../toolcraft/dist/index.js").ObjectSchema<{
22
22
  readonly command: import("../../../toolcraft/dist/index.js").StringSchema;
23
23
  readonly args: import("../../../toolcraft/dist/index.js").OptionalSchema<import("../../../toolcraft/dist/index.js").ArraySchema<import("../../../toolcraft/dist/index.js").StringSchema>>;
24
24
  readonly session: import("../../../toolcraft/dist/index.js").OptionalSchema<import("../../../toolcraft/dist/index.js").StringSchema>;
@@ -243,7 +243,7 @@ export declare function createTerminalPilotGroup(): import("../../../toolcraft/d
243
243
  }], readonly ["cli", "mcp", "sdk"], undefined>;
244
244
  };
245
245
  export declare const terminalPilotGroup: Readonly<import("../../../toolcraft/dist/index.js").Group<TerminalPilotCommandServices> & {
246
- readonly __agentKitGroupTypeInfo: import("../../../toolcraft/dist/index.js").GroupTypeInfo<TerminalPilotCommandServices, "../index.js", readonly [import("../../../toolcraft/dist/index.js").Command<TerminalPilotCommandServices, import("../../../toolcraft/dist/index.js").ObjectSchema<{
246
+ readonly __agentKitGroupTypeInfo: import("../../../toolcraft/dist/index.js").GroupTypeInfo<TerminalPilotCommandServices, "terminal-pilot", readonly [import("../../../toolcraft/dist/index.js").Command<TerminalPilotCommandServices, import("../../../toolcraft/dist/index.js").ObjectSchema<{
247
247
  readonly command: import("../../../toolcraft/dist/index.js").StringSchema;
248
248
  readonly args: import("../../../toolcraft/dist/index.js").OptionalSchema<import("../../../toolcraft/dist/index.js").ArraySchema<import("../../../toolcraft/dist/index.js").StringSchema>>;
249
249
  readonly session: import("../../../toolcraft/dist/index.js").OptionalSchema<import("../../../toolcraft/dist/index.js").StringSchema>;
@@ -25,7 +25,7 @@ export type TerminalPilotInstallScope = "global" | "local";
25
25
  export type TerminalPilotInstallerPlatform = "darwin" | "linux" | "win32";
26
26
  export declare const DEFAULT_INSTALL_AGENT = "claude-code";
27
27
  export declare const DEFAULT_INSTALL_SCOPE: TerminalPilotInstallScope;
28
- export declare const TERMINAL_PILOT_SKILL_NAME = "../index.js";
28
+ export declare const TERMINAL_PILOT_SKILL_NAME = "terminal-pilot";
29
29
  export declare const installableAgents: readonly string[];
30
30
  export type TerminalPilotInstallerServices = {
31
31
  fs?: TerminalPilotInstallerFileSystem;
@@ -1,7 +1,7 @@
1
1
  import { SpawnOptions, ChildProcessWithoutNullStreams } from 'node:child_process';
2
2
  import { Readable, Writable } from 'node:stream';
3
3
  import http from 'node:http';
4
- import { Server } from '../../tiny-stdio-mcp-server/dist/index.js';
4
+ import { Server } from "../../tiny-stdio-mcp-server/dist/index.js";
5
5
 
6
6
  interface MachineIdentity {
7
7
  hostname: string;
@@ -8,9 +8,9 @@ type CmdkitServer = Omit<TinyServer, "connect"> & {
8
8
  connect(transport: SDKTransport): Promise<void>;
9
9
  };
10
10
  export declare const MCP_STREAM_METHODS: {
11
- readonly list: "./streams/list.js";
12
- readonly subscribe: "./streams/subscribe.js";
13
- readonly unsubscribe: "./streams/unsubscribe.js";
11
+ readonly list: "toolcraft/streams/list";
12
+ readonly subscribe: "toolcraft/streams/subscribe";
13
+ readonly unsubscribe: "toolcraft/streams/unsubscribe";
14
14
  readonly notification: "notifications/toolcraft/stream";
15
15
  };
16
16
  export interface RunMCPOptions<TServices extends object = Record<string, unknown>> {