mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 02:06:43 +00:00
refactor(packages): trim private aggregate roots (#105747)
This commit is contained in:
@@ -6,14 +6,7 @@
|
||||
"dist"
|
||||
],
|
||||
"type": "module",
|
||||
"main": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.mts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"import": "./dist/index.mjs",
|
||||
"default": "./dist/index.mjs"
|
||||
},
|
||||
"./active-model": {
|
||||
"types": "./dist/active-model.d.mts",
|
||||
"import": "./dist/active-model.mjs",
|
||||
@@ -66,6 +59,6 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown src/index.ts src/active-model.ts src/defaults.ts src/errors.ts src/format.ts src/openai-compatible-video.ts src/output-extract.ts src/provider-id.ts src/provider-supports.ts src/types.ts src/video.ts --no-config --platform node --format esm --dts --out-dir dist --clean"
|
||||
"build": "tsdown src/active-model.ts src/defaults.ts src/errors.ts src/format.ts src/openai-compatible-video.ts src/output-extract.ts src/provider-id.ts src/provider-supports.ts src/types.ts src/video.ts --no-config --platform node --format esm --dts --out-dir dist --clean"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
// Public barrel for media-understanding shared contracts and helpers.
|
||||
|
||||
export * from "./active-model.js";
|
||||
export * from "./defaults.js";
|
||||
export * from "./errors.js";
|
||||
export * from "./format.js";
|
||||
export * from "./openai-compatible-video.js";
|
||||
export * from "./output-extract.js";
|
||||
export * from "./provider-id.js";
|
||||
export * from "./provider-supports.js";
|
||||
export * from "./types.js";
|
||||
export * from "./video.js";
|
||||
@@ -7,7 +7,6 @@
|
||||
"@openclaw/normalization-core": "workspace:*"
|
||||
},
|
||||
"exports": {
|
||||
"./runtime": "./src/runtime.ts",
|
||||
"./runtime-core": "./src/runtime-core.ts",
|
||||
"./runtime-cli": "./src/runtime-cli.ts",
|
||||
"./runtime-files": "./src/runtime-files.ts",
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
// Aggregate workspace contract for memory runtime/helper seams.
|
||||
// Keep focused subpaths preferred for new code.
|
||||
|
||||
export * from "./runtime-core.js";
|
||||
export * from "./runtime-cli.js";
|
||||
export * from "./runtime-files.js";
|
||||
@@ -6,14 +6,7 @@
|
||||
"dist"
|
||||
],
|
||||
"type": "module",
|
||||
"main": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.mts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"import": "./dist/index.mjs",
|
||||
"default": "./dist/index.mjs"
|
||||
},
|
||||
"./provider-runtime-shared": {
|
||||
"types": "./dist/provider-runtime-shared.d.mts",
|
||||
"import": "./dist/provider-runtime-shared.mjs",
|
||||
@@ -21,6 +14,6 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown src/index.ts src/provider-runtime-shared.ts --no-config --platform node --format esm --dts --out-dir dist --clean"
|
||||
"build": "tsdown src/provider-runtime-shared.ts --no-config --platform node --format esm --dts --out-dir dist --clean"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
// Web Content Core public barrel exports the package API surface.
|
||||
export * from "./provider-runtime-shared.js";
|
||||
@@ -52,7 +52,6 @@ const MEMORY_HOST_SDK_EXPORTS = [
|
||||
"./engine-storage",
|
||||
"./multimodal",
|
||||
"./query",
|
||||
"./runtime",
|
||||
"./runtime-cli",
|
||||
"./runtime-core",
|
||||
"./runtime-files",
|
||||
|
||||
@@ -116,9 +116,6 @@
|
||||
"./packages/media-core/src/read-byte-stream-with-limit.ts"
|
||||
],
|
||||
"@openclaw/media-core/*": ["./packages/media-core/src/*"],
|
||||
"@openclaw/media-understanding-common": [
|
||||
"./packages/media-understanding-common/src/index.ts"
|
||||
],
|
||||
"@openclaw/media-understanding-common/*": [
|
||||
"./packages/media-understanding-common/src/*"
|
||||
],
|
||||
@@ -227,7 +224,6 @@
|
||||
"@openclaw/net-policy/url-protocol": ["./packages/net-policy/src/url-protocol.ts"],
|
||||
"@openclaw/net-policy/url-userinfo": ["./packages/net-policy/src/url-userinfo.ts"],
|
||||
"@openclaw/net-policy/*": ["./packages/net-policy/src/*"],
|
||||
"@openclaw/web-content-core": ["./packages/web-content-core/src/index.ts"],
|
||||
"@openclaw/web-content-core/provider-runtime-shared": [
|
||||
"./packages/web-content-core/src/provider-runtime-shared.ts"
|
||||
],
|
||||
|
||||
@@ -412,7 +412,6 @@ function buildMediaGenerationCoreDistEntries(): Record<string, string> {
|
||||
|
||||
function buildMediaUnderstandingCoreDistEntries(): Record<string, string> {
|
||||
return {
|
||||
index: "packages/media-understanding-common/src/index.ts",
|
||||
"active-model": "packages/media-understanding-common/src/active-model.ts",
|
||||
defaults: "packages/media-understanding-common/src/defaults.ts",
|
||||
errors: "packages/media-understanding-common/src/errors.ts",
|
||||
@@ -524,7 +523,6 @@ function buildTerminalCoreDistEntries(): Record<string, string> {
|
||||
|
||||
function buildWebContentCoreDistEntries(): Record<string, string> {
|
||||
return {
|
||||
index: "packages/web-content-core/src/index.ts",
|
||||
"provider-runtime-shared": "packages/web-content-core/src/provider-runtime-shared.ts",
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user