markform 0.1.17 → 0.1.19
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 +27 -2
- package/dist/ai-sdk.d.mts +1 -2
- package/dist/ai-sdk.mjs +2 -2
- package/dist/ai-sdk.mjs.map +1 -1
- package/dist/{apply-DgDJBscb.mjs → apply-Dalpt-D6.mjs} +422 -31
- package/dist/apply-Dalpt-D6.mjs.map +1 -0
- package/dist/bin.mjs +20 -2
- package/dist/bin.mjs.map +1 -1
- package/dist/{cli-DAl8LQzI.mjs → cli-tpvFNqFY.mjs} +325 -73
- package/dist/cli-tpvFNqFY.mjs.map +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/{coreTypes-DiCddBKu.mjs → coreTypes-CPKXf2dc.mjs} +9 -4
- package/dist/coreTypes-CPKXf2dc.mjs.map +1 -0
- package/dist/{coreTypes-CnEea7Kh.d.mts → coreTypes-CkxML8g2.d.mts} +128 -10
- package/dist/index.d.mts +642 -22
- package/dist/index.mjs +5 -5
- package/dist/{session-XDrocA3j.mjs → session-CK0x28RO.mjs} +2 -2
- package/dist/session-CK0x28RO.mjs.map +1 -0
- package/dist/{session-B7aR6hno.mjs → session-ZHBi3LVQ.mjs} +1 -1
- package/dist/{shared-fUKfJ1UA.mjs → shared-BTR35aMz.mjs} +1 -1
- package/dist/{shared-CCq4haEV.mjs → shared-DwdyWmvE.mjs} +1 -3
- package/dist/shared-DwdyWmvE.mjs.map +1 -0
- package/dist/{src-CHVJLGKt.mjs → src-BTyz-wS6.mjs} +2009 -584
- package/dist/src-BTyz-wS6.mjs.map +1 -0
- package/docs/markform-apis.md +112 -0
- package/docs/markform-reference.md +27 -0
- package/docs/markform-spec.md +115 -0
- package/examples/movie-research/movie-deep-research-mock-filled.form.md +1 -1
- package/examples/movie-research/movie-deep-research.form.md +1 -1
- package/examples/parallel/parallel-research.form.md +57 -0
- package/examples/startup-deep-research/startup-deep-research.form.md +1 -1
- package/package.json +16 -14
- package/dist/apply-DgDJBscb.mjs.map +0 -1
- package/dist/cli-DAl8LQzI.mjs.map +0 -1
- package/dist/coreTypes-DiCddBKu.mjs.map +0 -1
- package/dist/session-XDrocA3j.mjs.map +0 -1
- package/dist/shared-CCq4haEV.mjs.map +0 -1
- package/dist/src-CHVJLGKt.mjs.map +0 -1
package/dist/bin.mjs
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { t as runCli } from "./cli-DAl8LQzI.mjs";
|
|
3
|
+
import { t as runCli } from "./cli-tpvFNqFY.mjs";
|
|
5
4
|
import { resolve } from "node:path";
|
|
6
5
|
import { existsSync } from "node:fs";
|
|
7
6
|
import { config } from "dotenv";
|
|
7
|
+
import { ProxyAgent, setGlobalDispatcher } from "undici";
|
|
8
|
+
|
|
9
|
+
//#region src/cli/bootstrapProxy.ts
|
|
10
|
+
/**
|
|
11
|
+
* Bootstrap proxy support for Node.js native fetch.
|
|
12
|
+
*
|
|
13
|
+
* Node.js native fetch (built on undici) does NOT honor HTTP_PROXY/HTTPS_PROXY
|
|
14
|
+
* environment variables. The `NODE_USE_ENV_PROXY` flag is only available in
|
|
15
|
+
* Node.js 23+. This module uses undici's ProxyAgent + setGlobalDispatcher to
|
|
16
|
+
* route all fetch requests through the proxy when one is configured.
|
|
17
|
+
*
|
|
18
|
+
* Must be called synchronously before any fetch calls are made.
|
|
19
|
+
*/
|
|
20
|
+
function bootstrapProxy() {
|
|
21
|
+
const proxyUrl = process.env.https_proxy ?? process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY;
|
|
22
|
+
if (proxyUrl) setGlobalDispatcher(new ProxyAgent(proxyUrl));
|
|
23
|
+
}
|
|
8
24
|
|
|
25
|
+
//#endregion
|
|
9
26
|
//#region src/cli/bin.ts
|
|
10
27
|
/**
|
|
11
28
|
* CLI entry point for the markform command.
|
|
@@ -24,6 +41,7 @@ for (const file of [".env.local", ".env"]) {
|
|
|
24
41
|
quiet: true
|
|
25
42
|
});
|
|
26
43
|
}
|
|
44
|
+
bootstrapProxy();
|
|
27
45
|
runCli().catch((error) => {
|
|
28
46
|
console.error("Fatal error:", error);
|
|
29
47
|
process.exit(1);
|
package/dist/bin.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.mjs","names":[],"sources":["../src/cli/bin.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * CLI entry point for the markform command.\n *\n * Loads environment variables from .env files before running the CLI.\n * Loading order: .env.local first (local overrides), then .env (defaults).\n * Existing environment variables are not overwritten.\n */\n\nimport { existsSync } from 'node:fs';\nimport { resolve } from 'node:path';\n\nimport { config } from 'dotenv';\n\nimport { runCli } from './cli.js';\n\n// Load .env files from current working directory\n// .env.local takes precedence over .env, shell env takes precedence over both\nconst cwd = process.cwd();\nfor (const file of ['.env.local', '.env']) {\n const path = resolve(cwd, file);\n if (existsSync(path)) {\n // quiet: true suppresses the tip messages added in dotenv v17\n config({ path, override: false, debug: false, quiet: true });\n }\n}\n\nrunCli().catch((error: unknown) => {\n console.error('Fatal error:', error);\n process.exit(1);\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bin.mjs","names":[],"sources":["../src/cli/bootstrapProxy.ts","../src/cli/bin.ts"],"sourcesContent":["/**\n * Bootstrap proxy support for Node.js native fetch.\n *\n * Node.js native fetch (built on undici) does NOT honor HTTP_PROXY/HTTPS_PROXY\n * environment variables. The `NODE_USE_ENV_PROXY` flag is only available in\n * Node.js 23+. This module uses undici's ProxyAgent + setGlobalDispatcher to\n * route all fetch requests through the proxy when one is configured.\n *\n * Must be called synchronously before any fetch calls are made.\n */\n\nimport { ProxyAgent, setGlobalDispatcher } from 'undici';\n\nexport function bootstrapProxy(): void {\n const proxyUrl = process.env.https_proxy ?? process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY;\n\n if (proxyUrl) {\n const agent = new ProxyAgent(proxyUrl);\n setGlobalDispatcher(agent);\n }\n}\n","#!/usr/bin/env node\n/**\n * CLI entry point for the markform command.\n *\n * Loads environment variables from .env files before running the CLI.\n * Loading order: .env.local first (local overrides), then .env (defaults).\n * Existing environment variables are not overwritten.\n */\n\nimport { existsSync } from 'node:fs';\nimport { resolve } from 'node:path';\n\nimport { config } from 'dotenv';\n\nimport { bootstrapProxy } from './bootstrapProxy.js';\nimport { runCli } from './cli.js';\n\n// Load .env files from current working directory\n// .env.local takes precedence over .env, shell env takes precedence over both\nconst cwd = process.cwd();\nfor (const file of ['.env.local', '.env']) {\n const path = resolve(cwd, file);\n if (existsSync(path)) {\n // quiet: true suppresses the tip messages added in dotenv v17\n config({ path, override: false, debug: false, quiet: true });\n }\n}\n\n// Configure proxy support for Node.js fetch (must be after env loading)\nbootstrapProxy();\n\nrunCli().catch((error: unknown) => {\n console.error('Fatal error:', error);\n process.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAaA,SAAgB,iBAAuB;CACrC,MAAM,WAAW,QAAQ,IAAI,eAAe,QAAQ,IAAI,eAAe,QAAQ,IAAI;AAEnF,KAAI,SAEF,qBADc,IAAI,WAAW,SAAS,CACZ;;;;;;;;;;;;ACC9B,MAAM,MAAM,QAAQ,KAAK;AACzB,KAAK,MAAM,QAAQ,CAAC,cAAc,OAAO,EAAE;CACzC,MAAM,OAAO,QAAQ,KAAK,KAAK;AAC/B,KAAI,WAAW,KAAK,CAElB,QAAO;EAAE;EAAM,UAAU;EAAO,OAAO;EAAO,OAAO;EAAM,CAAC;;AAKhE,gBAAgB;AAEhB,QAAQ,CAAC,OAAO,UAAmB;AACjC,SAAQ,MAAM,gBAAgB,MAAM;AACpC,SAAQ,KAAK,EAAE;EACf"}
|