@haven_ai/connect 0.0.0-dev.202609031523.fd49e1a
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/README.md +406 -0
- package/dist/cli.cjs +5164 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +15 -0
- package/dist/cli.d.ts +15 -0
- package/dist/cli.js +5156 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +5203 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +902 -0
- package/dist/index.d.ts +902 -0
- package/dist/index.js +5166 -0
- package/dist/index.js.map +1 -0
- package/package.json +70 -0
package/dist/cli.d.cts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
interface CliIo {
|
|
3
|
+
stdout: (message: string) => void;
|
|
4
|
+
stderr: (message: string) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function runCli(argv: string[], io?: CliIo): Promise<number>;
|
|
7
|
+
/**
|
|
8
|
+
* npm executes package bins through a `node_modules/.bin` symlink. Node keeps
|
|
9
|
+
* that symlink in `process.argv[1]`, whereas `import.meta.url` identifies the
|
|
10
|
+
* real module path. Resolve both sides before comparing so a published
|
|
11
|
+
* `haven-connect` bin starts, while an ordinary `runCli` import remains inert.
|
|
12
|
+
*/
|
|
13
|
+
declare function isCliEntrypoint(argvPath?: string | undefined, moduleUrl?: string): boolean;
|
|
14
|
+
|
|
15
|
+
export { type CliIo, isCliEntrypoint, runCli };
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
interface CliIo {
|
|
3
|
+
stdout: (message: string) => void;
|
|
4
|
+
stderr: (message: string) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function runCli(argv: string[], io?: CliIo): Promise<number>;
|
|
7
|
+
/**
|
|
8
|
+
* npm executes package bins through a `node_modules/.bin` symlink. Node keeps
|
|
9
|
+
* that symlink in `process.argv[1]`, whereas `import.meta.url` identifies the
|
|
10
|
+
* real module path. Resolve both sides before comparing so a published
|
|
11
|
+
* `haven-connect` bin starts, while an ordinary `runCli` import remains inert.
|
|
12
|
+
*/
|
|
13
|
+
declare function isCliEntrypoint(argvPath?: string | undefined, moduleUrl?: string): boolean;
|
|
14
|
+
|
|
15
|
+
export { type CliIo, isCliEntrypoint, runCli };
|