@keystrokehq/cli 0.0.65 → 0.0.68
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/{cat-TSFMZVYS-Qzyhqpeq.mjs → cat-TSFMZVYS-Bp6ZgHzP.mjs} +2 -2
- package/dist/{cat-TSFMZVYS-Qzyhqpeq.mjs.map → cat-TSFMZVYS-Bp6ZgHzP.mjs.map} +1 -1
- package/dist/{cut-OKARJCCV-UOo5blGN.mjs → cut-OKARJCCV-DLzvnQ0X.mjs} +2 -2
- package/dist/{cut-OKARJCCV-UOo5blGN.mjs.map → cut-OKARJCCV-DLzvnQ0X.mjs.map} +1 -1
- package/dist/{dist-D2apKUWN-BDQ3166v.mjs → dist-BNJUEQuz-C9tkfUCE.mjs} +203 -9
- package/dist/dist-BNJUEQuz-C9tkfUCE.mjs.map +1 -0
- package/dist/{dist-CMxQJtOA.mjs → dist-nRx_8hnk.mjs} +6 -8
- package/dist/dist-nRx_8hnk.mjs.map +1 -0
- package/dist/{du-572XNP42-4gdN6HgU.mjs → du-572XNP42-DCcv0kSr.mjs} +2 -2
- package/dist/{du-572XNP42-4gdN6HgU.mjs.map → du-572XNP42-DCcv0kSr.mjs.map} +1 -1
- package/dist/{emit-route-manifest-DRcNXHCP-BHonsCIQ.mjs → emit-route-manifest-DRcNXHCP-BkSmGkhV.mjs} +32 -13
- package/dist/{emit-route-manifest-DRcNXHCP-BHonsCIQ.mjs.map → emit-route-manifest-DRcNXHCP-BkSmGkhV.mjs.map} +1 -1
- package/dist/index.mjs +1044 -117
- package/dist/index.mjs.map +1 -1
- package/dist/{jq-4XLYLOS5-D_rIiq4w.mjs → jq-4XLYLOS5-CgTVHGto.mjs} +2 -2
- package/dist/{jq-4XLYLOS5-D_rIiq4w.mjs.map → jq-4XLYLOS5-CgTVHGto.mjs.map} +1 -1
- package/dist/{ls-ZJGQER7M-B-eSANU2.mjs → ls-ZJGQER7M-DbHjJAJ5.mjs} +2 -2
- package/dist/{ls-ZJGQER7M-B-eSANU2.mjs.map → ls-ZJGQER7M-DbHjJAJ5.mjs.map} +1 -1
- package/dist/{mistral-CCsOaxvh-FZsMk4KR.mjs → mistral-D7a1LQ-6-CFFRHspK.mjs} +3 -3
- package/dist/{mistral-CCsOaxvh-FZsMk4KR.mjs.map → mistral-D7a1LQ-6-CFFRHspK.mjs.map} +1 -1
- package/dist/{sort-SW2YEO5B-BaN_eY3l.mjs → sort-SW2YEO5B-DM3UAdjd.mjs} +2 -2
- package/dist/{sort-SW2YEO5B-BaN_eY3l.mjs.map → sort-SW2YEO5B-DM3UAdjd.mjs.map} +1 -1
- package/dist/{tree-YLD52CNT-BZJomf0H.mjs → tree-YLD52CNT-Bv1j-DWN.mjs} +2 -2
- package/dist/{tree-YLD52CNT-BZJomf0H.mjs.map → tree-YLD52CNT-Bv1j-DWN.mjs.map} +1 -1
- package/dist/{uniq-XSIZR6PB-Ajuixkb6.mjs → uniq-XSIZR6PB-d6Kx_H64.mjs} +2 -2
- package/dist/{uniq-XSIZR6PB-Ajuixkb6.mjs.map → uniq-XSIZR6PB-d6Kx_H64.mjs.map} +1 -1
- package/dist/{wc-LF7NU4LA-DiSdKP_u.mjs → wc-LF7NU4LA-B6PXzeyp.mjs} +2 -2
- package/dist/{wc-LF7NU4LA-DiSdKP_u.mjs.map → wc-LF7NU4LA-B6PXzeyp.mjs.map} +1 -1
- package/dist/{xan-Y6WF3IRG-COQGCVSz.mjs → xan-Y6WF3IRG-CnmH45qB.mjs} +2 -2
- package/dist/{xan-Y6WF3IRG-COQGCVSz.mjs.map → xan-Y6WF3IRG-CnmH45qB.mjs.map} +1 -1
- package/package.json +21 -21
- package/dist/dist-CMxQJtOA.mjs.map +0 -1
- package/dist/dist-D2apKUWN-BDQ3166v.mjs.map +0 -1
|
@@ -73,14 +73,14 @@ function userAppBuildDepsConfig() {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
* Published entry packages (cli, keystroke, platform):
|
|
77
|
-
*
|
|
76
|
+
* Published entry packages (cli, keystroke, platform): declare bundled @keystrokehq/*
|
|
77
|
+
* in dependencies (changesets release graph ignores devDependencies). Inlining is
|
|
78
|
+
* driven by alwaysBundle below, not by dep kind. Runtime npm deps stay external.
|
|
78
79
|
*/
|
|
79
80
|
function bundledEntryDepsConfig() {
|
|
80
81
|
return {
|
|
81
82
|
alwaysBundle: [/^@keystrokehq\//],
|
|
82
83
|
neverBundle: [...BUNDLED_ENTRY_EXTERNAL_DEPS],
|
|
83
|
-
/** devDependencies (@keystrokehq/*) bundle when imported; suppress d.ts transitive noise */
|
|
84
84
|
onlyBundle: false
|
|
85
85
|
};
|
|
86
86
|
}
|
|
@@ -205,10 +205,8 @@ async function buildApp(options = {}) {
|
|
|
205
205
|
...options,
|
|
206
206
|
root
|
|
207
207
|
}));
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
await emitRouteManifest(root);
|
|
211
|
-
}
|
|
208
|
+
const { emitRouteManifest } = await import("./emit-route-manifest-DRcNXHCP-BkSmGkhV.mjs");
|
|
209
|
+
await emitRouteManifest(root);
|
|
212
210
|
} finally {
|
|
213
211
|
process.chdir(previous);
|
|
214
212
|
}
|
|
@@ -226,4 +224,4 @@ async function watchApp(options = {}) {
|
|
|
226
224
|
//#endregion
|
|
227
225
|
export { buildApp, resolveRuntimeBuildArtifact, watchApp };
|
|
228
226
|
|
|
229
|
-
//# sourceMappingURL=dist-
|
|
227
|
+
//# sourceMappingURL=dist-nRx_8hnk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-nRx_8hnk.mjs","names":[],"sources":["../../../packages/tsdown-config/deps.js","../../../packages/tsdown-config/index.js","../../../packages/build/dist/index.mjs"],"sourcesContent":["import { isBuiltin } from \"node:module\";\n\n/** Native addons kept external — resolved from the CLI runtime at app start. */\nexport const NATIVE_RUNTIME_DEPS = [\"pg\", \"better-sqlite3\"];\n\n/** Kept external so .d.ts emission does not inline internal/inferred types. */\nexport const LIBRARY_EXTERNAL_DEPS = [\"better-auth\", /^@better-auth\\//, /^better-auth\\//];\n\n/** Non-auth runtime deps kept external for published entry bundles (platform, etc.). */\nexport const BUNDLED_ENTRY_RUNTIME_EXTERNAL_DEPS = [\n ...NATIVE_RUNTIME_DEPS,\n \"dockerode\",\n \"ssh2\",\n \"cpu-features\",\n \"microsandbox\",\n /^@aws-sdk\\//,\n /^@napi-rs\\//,\n \"hono\",\n /^@hono\\//,\n \"undici\",\n];\n\n/** Kept external when bundling published entry points (cli, keystroke, platform). */\nexport const BUNDLED_ENTRY_EXTERNAL_DEPS = [\n ...BUNDLED_ENTRY_RUNTIME_EXTERNAL_DEPS,\n ...LIBRARY_EXTERNAL_DEPS,\n];\n\n/** Bundle into CLI — device login uses Better Auth client only. */\nexport const BETTER_AUTH_CLIENT_BUNDLE_PATTERNS = [\n /^better-auth\\/client$/,\n /^better-auth\\/client\\//,\n];\n\n/** Server adapters and root entry — must not ship in the CLI bundle. */\nexport const BETTER_AUTH_SERVER_EXTERNAL_PATTERNS = [\n /^better-auth$/,\n /^@better-auth\\//,\n /^better-auth\\/(?!client(\\/|$)).+/,\n];\n\nexport function isNativeRuntimeDep(id) {\n return NATIVE_RUNTIME_DEPS.some((dep) => id === dep || id.startsWith(`${dep}/`));\n}\n\nfunction packageName(id) {\n if (id.startsWith(\"@\")) {\n const [scope, name] = id.split(\"/\");\n return name ? `${scope}/${name}` : id;\n }\n\n return id.split(\"/\")[0] ?? id;\n}\n\nfunction isRuntimeExternal(id) {\n const name = packageName(id);\n if (isNativeRuntimeDep(name)) {\n return true;\n }\n\n if (name.startsWith(\"@keystrokehq/\")) {\n return true;\n }\n\n if (name === \"better-auth\" || name.startsWith(\"@better-auth/\")) {\n return true;\n }\n\n return false;\n}\n\n/** Library packages resolve npm deps from node_modules at runtime. */\nexport function libraryBuildDepsConfig() {\n return {\n alwaysBundle: (_id) => null,\n neverBundle: [...NATIVE_RUNTIME_DEPS, /^@keystrokehq\\//, ...LIBRARY_EXTERNAL_DEPS],\n onlyBundle: false,\n };\n}\n\n/** Bundle npm deps into dist; resolve @keystrokehq/* and natives from the runtime. */\nexport function userAppBuildDepsConfig() {\n return {\n alwaysBundle: (id, _importer) => {\n if (id.startsWith(\".\") || id.startsWith(\"/\") || isBuiltin(id)) {\n return null;\n }\n\n return isRuntimeExternal(id) ? null : true;\n },\n neverBundle: [...NATIVE_RUNTIME_DEPS, /^@keystrokehq\\//, ...LIBRARY_EXTERNAL_DEPS],\n onlyBundle: false,\n };\n}\n\n/**\n * Published entry packages (cli, keystroke, platform): declare bundled @keystrokehq/*\n * in dependencies (changesets release graph ignores devDependencies). Inlining is\n * driven by alwaysBundle below, not by dep kind. Runtime npm deps stay external.\n */\nexport function bundledEntryDepsConfig() {\n return {\n alwaysBundle: [/^@keystrokehq\\//],\n neverBundle: [...BUNDLED_ENTRY_EXTERNAL_DEPS],\n onlyBundle: false,\n };\n}\n\n/** Published CLI: inline better-auth client + @better-auth/*; keep server adapters external. */\nexport const BETTER_AUTH_CLI_BUNDLE_PATTERNS = [\n ...BETTER_AUTH_CLIENT_BUNDLE_PATTERNS,\n /^@better-auth\\//,\n];\n\nexport const BETTER_AUTH_CLI_EXTERNAL_PATTERNS = [\n /^better-auth$/,\n /^better-auth\\/(?!client(\\/|$)).+/,\n /^@better-auth\\/drizzle-adapter/,\n \"drizzle-orm\",\n];\n\n/** Rolldown/tsdown — native bindings; stay in CLI node_modules at runtime. */\nexport const CLI_BUILD_TOOL_EXTERNAL_PATTERNS = [\"tsdown\", \"rolldown\", /^@rolldown\\//, \"tsx\"];\n\n/** CLI: inline better-auth/client; keep server + drizzle adapters external. */\nexport function cliBundledEntryDepsConfig() {\n return {\n alwaysBundle: [/^@keystrokehq\\//, ...BETTER_AUTH_CLI_BUNDLE_PATTERNS],\n neverBundle: [\n ...BUNDLED_ENTRY_RUNTIME_EXTERNAL_DEPS,\n ...BETTER_AUTH_CLI_EXTERNAL_PATTERNS,\n ...CLI_BUILD_TOOL_EXTERNAL_PATTERNS,\n ],\n onlyBundle: false,\n };\n}\n","import { bundledEntryDepsConfig, libraryBuildDepsConfig, userAppBuildDepsConfig } from \"./deps.js\";\n\nexport {\n isNativeRuntimeDep,\n NATIVE_RUNTIME_DEPS,\n bundledEntryDepsConfig,\n cliBundledEntryDepsConfig,\n libraryBuildDepsConfig,\n userAppBuildDepsConfig,\n} from \"./deps.js\";\n\nexport const baseTsdownConfig = {\n format: [\"esm\", \"cjs\"],\n dts: true,\n clean: true,\n sourcemap: true,\n target: \"node20\",\n deps: libraryBuildDepsConfig(),\n};\n\n/** tsdown config for published bundles (cli, keystroke, platform). */\nexport const bundledEntryTsdownConfig = {\n format: [\"esm\", \"cjs\"],\n dts: true,\n clean: true,\n sourcemap: true,\n target: \"node20\",\n deps: bundledEntryDepsConfig(),\n};\n","import { existsSync, mkdirSync, readdirSync, statSync, writeFileSync } from \"node:fs\";\nimport { dirname, join } from \"node:path\";\nimport { entryIdFromFile } from \"@keystrokehq/server/discovery\";\nimport { packAssetDirs } from \"@keystrokehq/sandbox/files\";\nimport { baseTsdownConfig, userAppBuildDepsConfig } from \"@keystrokehq/tsdown-config\";\nimport { build, mergeConfig } from \"tsdown\";\n//#region src/resolve-runtime-artifact.ts\nfunction packageRoot(nodeModules, scope, name) {\n\tconst direct = scope ? join(nodeModules, scope, name) : join(nodeModules, name);\n\tif (existsSync(join(direct, \"package.json\"))) return direct;\n\tconst pnpmDir = join(nodeModules, \".pnpm\");\n\tif (!existsSync(pnpmDir)) return null;\n\tfor (const entry of readdirSync(pnpmDir)) {\n\t\tconst candidate = scope ? join(pnpmDir, entry, \"node_modules\", scope, name) : join(pnpmDir, entry, \"node_modules\", name);\n\t\tif (existsSync(join(candidate, \"package.json\"))) return candidate;\n\t}\n\treturn null;\n}\n/** Resolve a file shipped with `@keystrokehq/build` inside the CLI runtime. */\nfunction resolveRuntimeBuildArtifact(runtimeNodeModules, relativePath) {\n\tconst pkgRoot = packageRoot(runtimeNodeModules, \"@keystrokehq\", \"build\");\n\tif (!pkgRoot) throw new Error(\"Keystroke runtime is missing @keystrokehq/build\");\n\tconst artifact = join(pkgRoot, relativePath);\n\tif (!existsSync(artifact)) throw new Error(`Keystroke runtime artifact not found: ${relativePath}`);\n\treturn artifact;\n}\n//#endregion\n//#region src/vitest-plugin.ts\nconst ASSETS_MODULE$1 = \"@keystrokehq/assets\";\nconst virtualPrefix = `\\0${ASSETS_MODULE$1}:`;\n/** Vitest plugin resolving `@keystrokehq/assets` from disk. */\nfunction agentAssetsVitestPlugin(appRoot = process.cwd()) {\n\tlet manifest = null;\n\treturn {\n\t\tname: \"keystroke-assets\",\n\t\tresolveId(source) {\n\t\t\tif (source !== ASSETS_MODULE$1) return null;\n\t\t\treturn `${virtualPrefix}manifest`;\n\t\t},\n\t\tload(id) {\n\t\t\tif (id !== `${virtualPrefix}manifest`) return null;\n\t\t\tmanifest ??= packAssetDirs(appRoot);\n\t\t\treturn `export default ${JSON.stringify(manifest)};`;\n\t\t}\n\t};\n}\nfunction findAppRootFromConfig(configFile) {\n\tif (!configFile) return process.cwd();\n\treturn dirname(configFile);\n}\nfunction agentAssetsVitestPluginFromConfig(configFile) {\n\treturn agentAssetsVitestPlugin(findAppRootFromConfig(configFile));\n}\n//#endregion\n//#region src/index.ts\nconst ASSETS_MODULE = \"@keystrokehq/assets\";\nconst VIRTUAL_PREFIX = `\\0${ASSETS_MODULE}:`;\nfunction walkTypeScriptSources(dir) {\n\tif (!existsSync(dir)) return [];\n\tconst files = [];\n\tfor (const name of readdirSync(dir)) {\n\t\tconst path = join(dir, name);\n\t\tif (statSync(path).isDirectory()) files.push(...walkTypeScriptSources(path));\n\t\telse if (/\\.(ts|mts)$/.test(name) && !/\\.(int\\.)?test\\.(ts|mts)$/.test(name)) files.push(path);\n\t}\n\treturn files;\n}\nfunction discoveredEntries(dir, nestedEntry, prefix) {\n\tconst entries = {};\n\tfor (const filePath of walkTypeScriptSources(dir)) {\n\t\tconst id = entryIdFromFile(dir, filePath, { nestedEntry });\n\t\tif (!id) continue;\n\t\tentries[`${prefix}/${id}`] = filePath;\n\t}\n\treturn entries;\n}\nfunction renderAssetModule(manifest) {\n\treturn `export default ${JSON.stringify(manifest)};\\n`;\n}\n/** Rolldown plugin: pack src/skills + src/files and expose `@keystrokehq/assets`. */\nfunction agentAssetsPlugin(options) {\n\tconst srcDir = options.srcDir ?? \"src\";\n\tlet manifest = null;\n\treturn {\n\t\tname: \"keystroke-assets\",\n\t\tbuildStart() {\n\t\t\tmanifest = packAssetDirs(options.root, srcDir);\n\t\t},\n\t\tresolveId(source) {\n\t\t\tif (source !== ASSETS_MODULE) return null;\n\t\t\treturn `${VIRTUAL_PREFIX}manifest`;\n\t\t},\n\t\tload(id) {\n\t\t\tif (id !== `${VIRTUAL_PREFIX}manifest` || !manifest) return null;\n\t\t\treturn renderAssetModule(manifest);\n\t\t},\n\t\tbuildEnd() {\n\t\t\tif (!manifest) return;\n\t\t\tconst outDir = join(options.root, options.outDir ?? \"dist\", \".keystroke\");\n\t\t\tmkdirSync(outDir, { recursive: true });\n\t\t\twriteFileSync(join(outDir, \"assets.mjs\"), renderAssetModule(manifest));\n\t\t}\n\t};\n}\n/** Full tsdown config for user keystroke apps (config + discovered modules only). */\nfunction createAppBuildConfig(options = {}) {\n\tconst root = options.root ?? process.cwd();\n\tconst srcDir = options.srcDir ?? \"src\";\n\tconst outDir = options.outDir ?? \"dist\";\n\tconst srcRoot = join(root, srcDir);\n\tconst configEntry = existsSync(join(root, \"keystroke.config.ts\")) ? join(root, \"keystroke.config.ts\") : void 0;\n\tconst entries = {\n\t\t...configEntry ? { config: configEntry } : {},\n\t\t...discoveredEntries(join(srcRoot, \"agents\"), \"agent\", \"agents\"),\n\t\t...discoveredEntries(join(srcRoot, \"workflows\"), \"workflow\", \"workflows\"),\n\t\t...discoveredEntries(join(srcRoot, \"triggers\"), \"trigger\", \"triggers\")\n\t};\n\tif (Object.keys(entries).length === 0) throw new Error(\"Nothing to build — add keystroke.config.ts or modules under src/\");\n\treturn mergeConfig(baseTsdownConfig, {\n\t\tentry: entries,\n\t\tformat: [\"esm\"],\n\t\toutDir: join(root, outDir),\n\t\tclean: options.clean ?? true,\n\t\tdts: false,\n\t\tloader: { \".md\": \"text\" },\n\t\tdeps: userAppBuildDepsConfig(),\n\t\tplugins: [agentAssetsPlugin({\n\t\t\troot,\n\t\t\tsrcDir,\n\t\t\toutDir\n\t\t})]\n\t});\n}\n/** Build user agents, workflows, triggers, and config to `dist/`. */\nasync function buildApp(options = {}) {\n\tconst root = options.root ?? process.cwd();\n\tconst previous = process.cwd();\n\ttry {\n\t\tprocess.chdir(root);\n\t\tawait build(createAppBuildConfig({\n\t\t\t...options,\n\t\t\troot\n\t\t}));\n\t\tconst { emitRouteManifest } = await import(\"./emit-route-manifest-DRcNXHCP.mjs\");\n\t\tawait emitRouteManifest(root);\n\t} finally {\n\t\tprocess.chdir(previous);\n\t}\n}\n/**\n* Watch `src/` and rebuild `dist/` on change.\n*\n* NOT true hot reload — each change runs a full tsdown rebuild. Callers should\n* restart the API server in `onRebuild` so discovery picks up new/changed modules.\n*/\nasync function watchApp(options = {}) {\n\tconst { runWatchApp } = await import(\"./watch-app-DTIeKrbl.mjs\");\n\tawait runWatchApp(buildApp, options);\n}\n//#endregion\nexport { agentAssetsVitestPlugin, agentAssetsVitestPluginFromConfig, buildApp, createAppBuildConfig, resolveRuntimeBuildArtifact, watchApp };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;AAGA,MAAa,sBAAsB,CAAC,MAAM,gBAAgB;;AAG1D,MAAa,wBAAwB;CAAC;CAAe;CAAmB;AAAgB;;AAiBxF,MAAa,8BAA8B,CACzC,GAAG;CAdH,GAAG;CACH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAKG,GACH,GAAG,qBACL;;AAGA,MAAa,qCAAqC,CAChD,yBACA,wBACF;AASA,SAAgB,mBAAmB,IAAI;CACrC,OAAO,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AS,UAAU,GAAG,WAAW,UAAU;CACtE;CACA,IAAI,OAAO,KAAK,OAAO,EAAE,WAAW,GAAG,MAAM,IAAI,MAAM,kEAAkE;CACzH,OAAO,YAAY,kBAAkB;EACpC,OAAO;EACP,QAAQ,CAAC,KAAK;EACd,QAAQ,KAAK,MAAM,MAAM;EACzB,OAAO,QAAQ,SAAS;EACxB,KAAK;EACL,QAAQ,EAAE,OAAO,OAAO;EACxB,MAAM,uBAAuB;EAC7B,SAAS,CAAC,kBAAkB;GAC3B;GACA;GACA;EACD,CAAC,CAAC;CACH,CAAC;AACF;;AAEA,eAAe,SAAS,UAAU,CAAC,GAAG;CACrC,MAAM,OAAO,QAAQ,QAAQ,QAAQ,IAAI;CACzC,MAAM,WAAW,QAAQ,IAAI;CAC7B,IAAI;EACH,QAAQ,MAAM,IAAI;EAClB,MAAM,MAAM,qBAAqB;GAChC,GAAG;GACH;EACD,CAAC,CAAC;EACF,MAAM,EAAE,sBAAsB,MAAM,OAAO;EAC3C,MAAM,kBAAkB,IAAI;CAC7B,UAAU;EACT,QAAQ,MAAM,QAAQ;CACvB;AACD;;;;;;;AAOA,eAAe,SAAS,UAAU,CAAC,GAAG;CACrC,MAAM,EAAE,gBAAgB,MAAM,OAAO;CACrC,MAAM,YAAY,UAAU,OAAO;AACpC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { r as s, t as o } from "./chunk-QAYAQNCG-Bl0Kbd53.mjs";
|
|
3
3
|
import "./chunk-BZUGFHVS-CPWRFwK8.mjs";
|
|
4
4
|
import { t as x$1 } from "./chunk-QIQMJJZ4-BwKdslXs.mjs";
|
|
5
|
-
import "./emit-route-manifest-DRcNXHCP-
|
|
5
|
+
import "./emit-route-manifest-DRcNXHCP-BkSmGkhV.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
//#region ../../node_modules/.pnpm/just-bash@3.0.1/node_modules/just-bash/dist/bundle/chunks/chunk-2VJJEDV2.js
|
|
8
8
|
createRequire(import.meta.url);
|
|
@@ -173,4 +173,4 @@ createRequire(import.meta.url);
|
|
|
173
173
|
//#endregion
|
|
174
174
|
export { _ as duCommand };
|
|
175
175
|
|
|
176
|
-
//# sourceMappingURL=du-572XNP42-
|
|
176
|
+
//# sourceMappingURL=du-572XNP42-DCcv0kSr.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"du-572XNP42-
|
|
1
|
+
{"version":3,"file":"du-572XNP42-DCcv0kSr.mjs","names":["F","$","b","o","s"],"sources":["../../../node_modules/.pnpm/just-bash@3.0.1/node_modules/just-bash/dist/bundle/chunks/chunk-2VJJEDV2.js","../../../node_modules/.pnpm/just-bash@3.0.1/node_modules/just-bash/dist/bundle/chunks/du-572XNP42.js"],"sourcesContent":["import{createRequire} from\"node:module\";const require=createRequire(import.meta.url);\nimport{a as b}from\"./chunk-QIQMJJZ4.js\";import{a as $,b as F}from\"./chunk-QAYAQNCG.js\";var x={name:\"du\",summary:\"estimate file space usage\",usage:\"du [OPTION]... [FILE]...\",options:[\"-a write counts for all files, not just directories\",\"-h print sizes in human readable format\",\"-s display only a total for each argument\",\"-c produce a grand total\",\"--max-depth=N print total for directory only if N or fewer levels deep\",\" --help display this help and exit\"]},R={allFiles:{short:\"a\",type:\"boolean\"},humanReadable:{short:\"h\",type:\"boolean\"},summarize:{short:\"s\",type:\"boolean\"},grandTotal:{short:\"c\",type:\"boolean\"},maxDepth:{long:\"max-depth\",type:\"number\"}},_={name:\"du\",async execute(a,s){if(F(a))return $(x);let n=b(\"du\",a,R);if(!n.ok)return n.error;let r={allFiles:n.result.flags.allFiles,humanReadable:n.result.flags.humanReadable,summarize:n.result.flags.summarize,grandTotal:n.result.flags.grandTotal,maxDepth:n.result.flags.maxDepth??null},l=n.result.positional;l.length===0&&l.push(\".\");let o=\"\",m=\"\",p=0;for(let u of l){let z=s.fs.resolvePath(s.cwd,u);try{await s.fs.stat(z);let h=await w(s,z,u,r,0);o+=h.output,p+=h.totalSize,m+=h.stderr}catch{m+=`du: cannot access '${u}': No such file or directory\n`}}return r.grandTotal&&l.length>0&&(o+=`${D(p,r.humanReadable)}\ttotal\n`),{stdout:o,stderr:m,exitCode:m?1:0}}},E=1e3;async function w(a,s,n,r,l){let o={output:\"\",totalSize:0,stderr:\"\"};if(l>E)return o;try{let m=await a.fs.stat(s);if(!m.isDirectory)return o.totalSize=m.size,(r.allFiles||l===0)&&(o.output=D(m.size,r.humanReadable)+\"\t\"+n+`\n`),o;let p=0,u=[];if(a.fs.readdirWithFileTypes){let t=await a.fs.readdirWithFileTypes(s),i=t.filter(e=>e.isFile),f=t.filter(e=>e.isDirectory);for(let e=0;e<i.length;e+=100){let c=i.slice(e,e+100),y=await Promise.all(c.map(async d=>{let T=s===\"/\"?`/${d.name}`:`${s}/${d.name}`;try{let S=await a.fs.stat(T);return{name:d.name,isDirectory:!1,size:S.size}}catch{return{name:d.name,isDirectory:!1,size:0}}}));u.push(...y)}u.push(...f.map(e=>({name:e.name,isDirectory:!0})))}else{let t=await a.fs.readdir(s);for(let i=0;i<t.length;i+=100){let f=t.slice(i,i+100),e=await Promise.all(f.map(async c=>{let y=s===\"/\"?`/${c}`:`${s}/${c}`;try{let d=await a.fs.stat(y);return{name:c,isDirectory:d.isDirectory,size:d.isDirectory?void 0:d.size}}catch{return{name:c,isDirectory:!1,size:0}}}));u.push(...e)}}u.sort((t,i)=>t.name.localeCompare(i.name));let z=u.filter(t=>!t.isDirectory);for(let t of z){let i=t.size??0;if(p+=i,r.allFiles&&!r.summarize){let f=n===\".\"?t.name:`${n}/${t.name}`;o.output+=D(i,r.humanReadable)+\"\t\"+f+`\n`}}let h=u.filter(t=>t.isDirectory);for(let t=0;t<h.length;t+=100){let i=h.slice(t,t+100),f=await Promise.all(i.map(async e=>{let c=s===\"/\"?`/${e.name}`:`${s}/${e.name}`,y=n===\".\"?e.name:`${n}/${e.name}`;return{name:e.name,result:await w(a,c,y,r,l+1)}}));f.sort((e,c)=>e.name.localeCompare(c.name));for(let{result:e}of f)p+=e.totalSize,r.summarize||(r.maxDepth===null||l+1<=r.maxDepth)&&(o.output+=e.output)}o.totalSize=p,(r.summarize||r.maxDepth===null||l<=r.maxDepth)&&(o.output+=`${D(p,r.humanReadable)}\t${n}\n`)}catch{o.stderr=`du: cannot read directory '${n}': Permission denied\n`}return o}function D(a,s){return s?a<1024?`${a}`:a<1024*1024?`${(a/1024).toFixed(1)}K`:a<1024*1024*1024?`${(a/(1024*1024)).toFixed(1)}M`:`${(a/(1024*1024*1024)).toFixed(1)}G`:String(Math.ceil(a/1024)||1)}var v={name:\"du\",flags:[{flag:\"-a\",type:\"boolean\"},{flag:\"-h\",type:\"boolean\"},{flag:\"-s\",type:\"boolean\"},{flag:\"-c\",type:\"boolean\"},{flag:\"--max-depth\",type:\"value\",valueHint:\"number\"}],needsFiles:!0};export{_ as a,v as b};\n","import{createRequire} from\"node:module\";const require=createRequire(import.meta.url);\nimport{a,b}from\"./chunk-2VJJEDV2.js\";import\"./chunk-STHBFACM.js\";import\"./chunk-QIQMJJZ4.js\";import\"./chunk-QAYAQNCG.js\";import\"./chunk-BZUGFHVS.js\";export{a as duCommand,b as flagsForFuzzing};\n"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;AAAsD,cAAc,OAAO,KAAK,GAAG;AACI,IAAI,IAAE;CAAC,MAAK;CAAK,SAAQ;CAA4B,OAAM;CAA2B,SAAQ;EAAC;EAA+D;EAAmD;EAAqD;EAAoC;EAA0E;CAAwC;AAAC,GAAE,IAAE;CAAC,UAAS;EAAC,OAAM;EAAI,MAAK;CAAS;CAAE,eAAc;EAAC,OAAM;EAAI,MAAK;CAAS;CAAE,WAAU;EAAC,OAAM;EAAI,MAAK;CAAS;CAAE,YAAW;EAAC,OAAM;EAAI,MAAK;CAAS;CAAE,UAAS;EAAC,MAAK;EAAY,MAAK;CAAQ;AAAC,GAAE,IAAE;CAAC,MAAK;CAAK,MAAM,QAAQ,GAAE,KAAE;EAAC,IAAGA,EAAE,CA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W,QAAM,KAAG,EAAE,cAAY,EAAE,UAAQ,GAAG,EAAE,GAAE,EAAE,aAAa,EAAE,GAAG,EAAE;;CAC7f,QAAM;EAAC,EAAE,SAAO,8BAA8B,EAAE;;CACjD;CAAC,OAAO;AAAC;AAAC,SAAS,EAAE,GAAE,GAAE;CAAC,OAAO,IAAE,IAAE,OAAK,GAAG,MAAI,IAAE,OAAK,OAAK,IAAI,IAAE,MAAM,QAAQ,CAAC,EAAE,KAAG,IAAE,OAAK,OAAK,OAAK,IAAI,KAAG,OAAK,OAAO,QAAQ,CAAC,EAAE,KAAG,IAAI,KAAG,OAAK,OAAK,OAAO,QAAQ,CAAC,EAAE,KAAG,OAAO,KAAK,KAAK,IAAE,IAAI,KAAG,CAAC;AAAC;;;ACPtJ,cAAc,OAAO,KAAK,GAAG"}
|
package/dist/{emit-route-manifest-DRcNXHCP-BHonsCIQ.mjs → emit-route-manifest-DRcNXHCP-BkSmGkhV.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as __toESM, i as __require, r as __exportAll$1, t as __commonJSMin } from "./chunk-lXUa1qmO.mjs";
|
|
3
|
-
import { a as createSession$1, c as isCredentialError$1, d as withSpan$1, i as captureConsole$1, l as listMessageEvents$1, m as ZodIssueCode, n as appendEvent$1, o as getSession$1, p as defineCredential, r as buildCredentialRunContext$1, s as getTraceContext$1, t as MESSAGE_EVENT_TYPE$3, u as touchSession$1 } from "./dist-
|
|
3
|
+
import { a as createSession$1, c as isCredentialError$1, d as withSpan$1, i as captureConsole$1, l as listMessageEvents$1, m as ZodIssueCode, n as appendEvent$1, o as getSession$1, p as defineCredential, r as buildCredentialRunContext$1, s as getTraceContext$1, t as MESSAGE_EVENT_TYPE$3, u as touchSession$1 } from "./dist-BNJUEQuz-C9tkfUCE.mjs";
|
|
4
4
|
import { A as WorkflowSubscriptionListResponseSchema, C as TriggerRunListResponseSchema, D as WorkflowRunDetailResponseSchema, E as UpsertWorkflowSubscriptionBodySchema, F as parsePollRunRequest, G as _null, H as ZodType, I as parsePromptInput, J as array, L as parseTriggerRunDetailInclude, M as credentialInputSchema, N as normalizeCredentialList, O as WorkflowRunListQuerySchema, P as parseAgentSessionDetailInclude, Q as discriminatedUnion, R as parseWorkflowRunDetailInclude, S as TriggerRunListQuerySchema, T as UpsertGatewayAttachmentBodySchema, U as _enum, V as number$1, W as _function, X as custom, Y as boolean$1, _ as QueuedAgentPromptResponseSchema, a as CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE, at as number, b as TriggerListResponseSchema, c as CredentialInstanceRecordSchema, ct as preprocess$1, d as GatewayAttachmentListResponseSchema, dt as union$2, et as intersection, f as GatewayAttachmentRecordSchema, ft as unknown$1, g as PromptResponseSchema, gt as toJSONSchema, h as PromptInputSchema, ht as datetime, i as AgentSessionListResponseSchema, j as WorkflowSubscriptionRecordSchema, k as WorkflowRunListResponseSchema, l as DISCOVERY_CONVENTIONS, lt as record, m as PollRunResponseSchema, mt as ZodError, n as AgentSessionDetailResponseSchema, nt as literal, o as CreateCredentialInstanceBodySchema, ot as object, p as PollRunRequestSchema, pt as url$2, q as any, r as AgentSessionListQuerySchema, rt as looseObject, s as CredentialInstanceListResponseSchema, st as optional, t as AgentListResponseSchema, u as ErrorResponseSchema, ut as string$2, v as SkipResponseSchema, w as UpdateCredentialInstanceBodySchema, x as TriggerRunDetailResponseSchema, y as TriggerDetailResponseSchema, yt as NEVER, z as validationErrorResponse } from "./index.mjs";
|
|
5
5
|
import "./env-api-keys-CjsGqLnm.mjs";
|
|
6
6
|
import { t as AssistantMessageEventStream } from "./event-stream-FOdgPz2L.mjs";
|
|
@@ -2274,7 +2274,7 @@ var tt = [
|
|
|
2274
2274
|
},
|
|
2275
2275
|
{
|
|
2276
2276
|
name: "cat",
|
|
2277
|
-
load: async () => (await import("./cat-TSFMZVYS-
|
|
2277
|
+
load: async () => (await import("./cat-TSFMZVYS-Bp6ZgHzP.mjs")).catCommand
|
|
2278
2278
|
},
|
|
2279
2279
|
{
|
|
2280
2280
|
name: "printf",
|
|
@@ -2282,7 +2282,7 @@ var tt = [
|
|
|
2282
2282
|
},
|
|
2283
2283
|
{
|
|
2284
2284
|
name: "ls",
|
|
2285
|
-
load: async () => (await import("./ls-ZJGQER7M-
|
|
2285
|
+
load: async () => (await import("./ls-ZJGQER7M-DbHjJAJ5.mjs")).lsCommand
|
|
2286
2286
|
},
|
|
2287
2287
|
{
|
|
2288
2288
|
name: "mkdir",
|
|
@@ -2334,7 +2334,7 @@ var tt = [
|
|
|
2334
2334
|
},
|
|
2335
2335
|
{
|
|
2336
2336
|
name: "wc",
|
|
2337
|
-
load: async () => (await import("./wc-LF7NU4LA-
|
|
2337
|
+
load: async () => (await import("./wc-LF7NU4LA-B6PXzeyp.mjs")).wcCommand
|
|
2338
2338
|
},
|
|
2339
2339
|
{
|
|
2340
2340
|
name: "stat",
|
|
@@ -2366,11 +2366,11 @@ var tt = [
|
|
|
2366
2366
|
},
|
|
2367
2367
|
{
|
|
2368
2368
|
name: "sort",
|
|
2369
|
-
load: async () => (await import("./sort-SW2YEO5B-
|
|
2369
|
+
load: async () => (await import("./sort-SW2YEO5B-DM3UAdjd.mjs")).sortCommand
|
|
2370
2370
|
},
|
|
2371
2371
|
{
|
|
2372
2372
|
name: "uniq",
|
|
2373
|
-
load: async () => (await import("./uniq-XSIZR6PB-
|
|
2373
|
+
load: async () => (await import("./uniq-XSIZR6PB-d6Kx_H64.mjs")).uniqCommand
|
|
2374
2374
|
},
|
|
2375
2375
|
{
|
|
2376
2376
|
name: "comm",
|
|
@@ -2378,7 +2378,7 @@ var tt = [
|
|
|
2378
2378
|
},
|
|
2379
2379
|
{
|
|
2380
2380
|
name: "cut",
|
|
2381
|
-
load: async () => (await import("./cut-OKARJCCV-
|
|
2381
|
+
load: async () => (await import("./cut-OKARJCCV-DLzvnQ0X.mjs")).cutCommand
|
|
2382
2382
|
},
|
|
2383
2383
|
{
|
|
2384
2384
|
name: "paste",
|
|
@@ -2442,11 +2442,11 @@ var tt = [
|
|
|
2442
2442
|
},
|
|
2443
2443
|
{
|
|
2444
2444
|
name: "tree",
|
|
2445
|
-
load: async () => (await import("./tree-YLD52CNT-
|
|
2445
|
+
load: async () => (await import("./tree-YLD52CNT-Bv1j-DWN.mjs")).treeCommand
|
|
2446
2446
|
},
|
|
2447
2447
|
{
|
|
2448
2448
|
name: "du",
|
|
2449
|
-
load: async () => (await import("./du-572XNP42-
|
|
2449
|
+
load: async () => (await import("./du-572XNP42-DCcv0kSr.mjs")).duCommand
|
|
2450
2450
|
},
|
|
2451
2451
|
{
|
|
2452
2452
|
name: "env",
|
|
@@ -2494,7 +2494,7 @@ var tt = [
|
|
|
2494
2494
|
},
|
|
2495
2495
|
{
|
|
2496
2496
|
name: "jq",
|
|
2497
|
-
load: async () => (await import("./jq-4XLYLOS5-
|
|
2497
|
+
load: async () => (await import("./jq-4XLYLOS5-CgTVHGto.mjs")).jqCommand
|
|
2498
2498
|
},
|
|
2499
2499
|
{
|
|
2500
2500
|
name: "base64",
|
|
@@ -2593,7 +2593,7 @@ var tt = [
|
|
|
2593
2593
|
load: async () => (await import("./yq-4QJW3EQG-XhB3aACo.mjs")).yqCommand
|
|
2594
2594
|
}), tt.push({
|
|
2595
2595
|
name: "xan",
|
|
2596
|
-
load: async () => (await import("./xan-Y6WF3IRG-
|
|
2596
|
+
load: async () => (await import("./xan-Y6WF3IRG-CnmH45qB.mjs")).xanCommand
|
|
2597
2597
|
}), tt.push({
|
|
2598
2598
|
name: "sqlite3",
|
|
2599
2599
|
load: async () => (await import("./sqlite3-CGOEFJAO-DVuaAgm0.mjs")).sqlite3Command
|
|
@@ -17900,10 +17900,27 @@ const organizationUsers = pgTable("organization_users", {
|
|
|
17900
17900
|
organizationId: text$6("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
|
|
17901
17901
|
userId: text$6("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
17902
17902
|
role: text$6("role").notNull().$type(),
|
|
17903
|
+
status: text$6("status").notNull().$type().default("active"),
|
|
17903
17904
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
17904
17905
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
|
|
17905
17906
|
deletedAt: timestamp("deleted_at", { withTimezone: true })
|
|
17906
17907
|
}, (table) => [primaryKey$1({ columns: [table.organizationId, table.userId] }), index$2("organization_users_user_id_idx").on(table.userId)]);
|
|
17908
|
+
const organizationInvitations = pgTable("organization_invitations", {
|
|
17909
|
+
id: text$6("id").primaryKey(),
|
|
17910
|
+
organizationId: text$6("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
|
|
17911
|
+
userId: text$6("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
17912
|
+
email: text$6("email").notNull(),
|
|
17913
|
+
role: text$6("role").notNull().$type(),
|
|
17914
|
+
status: text$6("status").notNull().$type(),
|
|
17915
|
+
invitedByUserId: text$6("invited_by_user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
17916
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
17917
|
+
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
|
|
17918
|
+
expiresAt: timestamp("expires_at", { withTimezone: true })
|
|
17919
|
+
}, (table) => [
|
|
17920
|
+
index$2("organization_invitations_user_id_idx").on(table.userId),
|
|
17921
|
+
index$2("organization_invitations_organization_id_idx").on(table.organizationId),
|
|
17922
|
+
uniqueIndex$1("organization_invitations_org_user_pending_unique").on(table.organizationId, table.userId).where(sql`${table.status} = 'pending'`)
|
|
17923
|
+
]);
|
|
17907
17924
|
const projectStatusEnum = pgEnum("project_status", [
|
|
17908
17925
|
"inactive",
|
|
17909
17926
|
"starting",
|
|
@@ -17918,6 +17935,7 @@ const projects = pgTable("projects", {
|
|
|
17918
17935
|
baseUrl: text$6("base_url"),
|
|
17919
17936
|
runtimeId: text$6("runtime_id"),
|
|
17920
17937
|
activeArtifactId: text$6("active_artifact_id"),
|
|
17938
|
+
pendingArtifactId: text$6("pending_artifact_id"),
|
|
17921
17939
|
lastError: text$6("last_error"),
|
|
17922
17940
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
|
|
17923
17941
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
|
|
@@ -17946,6 +17964,7 @@ const secretValues = pgTable("secret_values", {
|
|
|
17946
17964
|
buildPgSchema({
|
|
17947
17965
|
organizations: { pg: organizations },
|
|
17948
17966
|
organizationUsers: { pg: organizationUsers },
|
|
17967
|
+
organizationInvitations: { pg: organizationInvitations },
|
|
17949
17968
|
projects: { pg: projects },
|
|
17950
17969
|
projectArtifacts: { pg: projectArtifacts },
|
|
17951
17970
|
users: { pg: users },
|
|
@@ -98169,7 +98188,7 @@ function loadGoogleVertexProviderModule() {
|
|
|
98169
98188
|
return googleVertexProviderModulePromise;
|
|
98170
98189
|
}
|
|
98171
98190
|
function loadMistralProviderModule() {
|
|
98172
|
-
mistralProviderModulePromise ||= import("./mistral-
|
|
98191
|
+
mistralProviderModulePromise ||= import("./mistral-D7a1LQ-6-CFFRHspK.mjs").then((module) => {
|
|
98173
98192
|
const provider = module;
|
|
98174
98193
|
return {
|
|
98175
98194
|
stream: provider.streamMistral,
|
|
@@ -110699,4 +110718,4 @@ async function emitRouteManifest(root) {
|
|
|
110699
110718
|
//#endregion
|
|
110700
110719
|
export { emitRouteManifest };
|
|
110701
110720
|
|
|
110702
|
-
//# sourceMappingURL=emit-route-manifest-DRcNXHCP-
|
|
110721
|
+
//# sourceMappingURL=emit-route-manifest-DRcNXHCP-BkSmGkhV.mjs.map
|