{"_id":"@bytetrade/files-core","_rev":"4-9dc1e46fc3b38e41f7404cb8c6d93d13","name":"@bytetrade/files-core","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@bytetrade/files-core","version":"0.1.0","keywords":["olares","files","drive"],"license":"GPL-3.0-or-later","_id":"@bytetrade/files-core@0.1.0","maintainers":[{"name":"pengpeng1985","email":"pengpeng@bytetrade.io"},{"name":"yyh_yongheng","email":"yangyongheng@bytetrade.io"},{"name":"icebergtsn","email":"zhangyuhang@bytetrade.io"},{"name":"luz33c","email":"33cluz@gmail.com"},{"name":"guojianmin_123","email":"guojianmin@bytetrade.io"}],"homepage":"https://github.com/beclab/olares-files-picker/tree/main/packages/files-core#readme","bugs":{"url":"https://github.com/beclab/olares-files-picker/issues"},"dist":{"shasum":"56cbe08104fe945c9212ba267ded6729ffc39df3","tarball":"https://registry.npmjs.org/@bytetrade/files-core/-/files-core-0.1.0.tgz","fileCount":524,"integrity":"sha512-G0F6kkJTr5jZG0iR+HWFE5IfirHmNwyxiWlQRbWAFwA4D8bF1sjywSbrR33b8pSQeD+X2g7siqFCFp9hMvhLIg==","signatures":[{"sig":"MEYCIQDSx13FD5OIsqlKjCSAH1iCpW7Mm42KnF/mKACVBWzXwwIhAMIgomd2Mom7YU0lXRKuO2gaBH/umKPlhr59e4NDBSCD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1363650},"main":"./assets/index.js","types":"./assets/index.d.ts","module":"./assets/index.js","exports":{".":{"types":"./assets/index.d.ts","import":"./assets/index.js","default":"./assets/index.js"},"./base":{"types":"./assets/base.d.ts","import":"./assets/base.js","default":"./assets/base.js"}},"gitHead":"74b79678a0f97540509e81a49979fc34a0b62a6c","scripts":{"test":"jest","build":"rm -rf assets && tsc -p tsconfig.json","prepack":"npm run build"},"_npmUser":{"name":"guojianmin_123","email":"guojianmin@bytetrade.io"},"repository":{"url":"git+https://github.com/beclab/olares-files-picker.git","type":"git","directory":"packages/files-core"},"_npmVersion":"10.9.8","description":"Files API types, transport, and browse session — framework-free","directories":{},"sideEffects":["**/source/registry.ts","**/source/registry.js"],"_nodeVersion":"22.22.3","dependencies":{"axios":"1.19.0","js-md5":"^0.7.3"},"//sideEffects":"registry.ts registers the static sources at module scope; every other module is pure, so hosts that only use part of the API (e.g. the folder picker) can drop the rest.","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.4.9","typescript":"^4.9.5","@types/jest":"^29.5.14","@types/js-md5":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/files-core_0.1.0_1787319572833_0.08348419569928667","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bytetrade/files-core","version":"0.1.1","keywords":["olares","files","drive"],"license":"GPL-3.0-or-later","_id":"@bytetrade/files-core@0.1.1","maintainers":[{"name":"pengpeng1985","email":"pengpeng@bytetrade.io"},{"name":"yyh_yongheng","email":"yangyongheng@bytetrade.io"},{"name":"icebergtsn","email":"zhangyuhang@bytetrade.io"},{"name":"luz33c","email":"33cluz@gmail.com"},{"name":"guojianmin_123","email":"guojianmin@bytetrade.io"}],"homepage":"https://github.com/beclab/olares-files-picker/tree/main/packages/files-core#readme","bugs":{"url":"https://github.com/beclab/olares-files-picker/issues"},"dist":{"shasum":"ce11e6fb88ff7a047fbb0616b28870804791dcd3","tarball":"https://registry.npmjs.org/@bytetrade/files-core/-/files-core-0.1.1.tgz","fileCount":530,"integrity":"sha512-YEiq/nU9mbRq26GaoupZhHOVu9GSZ+SkdoZIHB+16d/UZGxYV4pn49fnnqahapmblY3xPTRt+rRac5PiMzc31A==","signatures":[{"sig":"MEYCIQDw7kFJhc8W4owQ09Dfhl6bMB0+zx7vloSW2FgdWo7/CQIhAM22/JPDtn347N3TwKii/TA/lij2ARpJSXDEgBctyxC8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1376893},"main":"./assets/index.js","types":"./assets/index.d.ts","module":"./assets/index.js","exports":{".":{"types":"./assets/index.d.ts","import":"./assets/index.js","default":"./assets/index.js"},"./base":{"types":"./assets/base.d.ts","import":"./assets/base.js","default":"./assets/base.js"}},"gitHead":"583d5f9ee6b21ceceac70abb6cbfafeaa5786dc4","scripts":{"test":"jest","build":"rm -rf assets && tsc -p tsconfig.json","prepack":"npm run build"},"_npmUser":{"name":"guojianmin_123","email":"guojianmin@bytetrade.io"},"repository":{"url":"git+https://github.com/beclab/olares-files-picker.git","type":"git","directory":"packages/files-core"},"_npmVersion":"10.9.8","description":"Files API types, transport, and browse session — framework-free","directories":{},"sideEffects":["**/source/registry.ts","**/source/registry.js"],"_nodeVersion":"22.22.3","dependencies":{"axios":"1.19.0","js-md5":"^0.7.3"},"//sideEffects":"registry.ts registers the static sources at module scope; every other module is pure, so hosts that only use part of the API (e.g. the folder picker) can drop the rest.","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.4.9","typescript":"^4.9.5","@types/jest":"^29.5.14","@types/js-md5":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/files-core_0.1.1_1787322391690_0.4583548317291748","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bytetrade/files-core","version":"0.1.2","keywords":["olares","files","drive"],"license":"GPL-3.0-or-later","_id":"@bytetrade/files-core@0.1.2","maintainers":[{"name":"pengpeng1985","email":"pengpeng@bytetrade.io"},{"name":"yyh_yongheng","email":"yangyongheng@bytetrade.io"},{"name":"icebergtsn","email":"zhangyuhang@bytetrade.io"},{"name":"luz33c","email":"33cluz@gmail.com"},{"name":"guojianmin_123","email":"guojianmin@bytetrade.io"}],"homepage":"https://github.com/beclab/olares-files-picker/tree/main/packages/files-core#readme","bugs":{"url":"https://github.com/beclab/olares-files-picker/issues"},"dist":{"shasum":"677babc1f8f145935dff74cccb0cc4a5da3408a9","tarball":"https://registry.npmjs.org/@bytetrade/files-core/-/files-core-0.1.2.tgz","fileCount":519,"integrity":"sha512-TQBlheQkCrwk63fpjXtnECowbw5nAxTw2XfNJUPtYepTMHD3lWwSaOOyTCNM5NmnNi6xHWhprK17ARRGdETVCw==","signatures":[{"sig":"MEUCIQD8jaa4xwXEoe29vZ2l8t00Z6p3SNvzALvkkCVUp5QhTAIgIJGTeNfH5bxDx/3xmd8kFY03lyJbhB1qewuuJyJLXzE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1340985},"main":"./assets/index.js","types":"./assets/index.d.ts","module":"./assets/index.js","//files":"src ships alongside the build because hosts that type-check or run jest against sources resolve into it; tests are not part of that, and tsconfig excludes them from the build for the same reason.","exports":{".":{"types":"./assets/index.d.ts","import":"./assets/index.js","default":"./assets/index.js"},"./base":{"types":"./assets/base.d.ts","import":"./assets/base.js","default":"./assets/base.js"}},"gitHead":"dff6edab282542c8f403c7cf91bae946e2ec4049","scripts":{"test":"jest","build":"rm -rf assets && tsc -p tsconfig.json","prepack":"npm run build"},"_npmUser":{"name":"guojianmin_123","email":"guojianmin@bytetrade.io"},"repository":{"url":"git+https://github.com/beclab/olares-files-picker.git","type":"git","directory":"packages/files-core"},"_npmVersion":"10.9.8","description":"Files API types, transport, and browse session — framework-free","directories":{},"sideEffects":["**/source/registry.ts","**/source/registry.js"],"_nodeVersion":"22.22.3","dependencies":{"axios":"1.19.0","js-md5":"^0.7.3"},"//sideEffects":"registry.ts registers the static sources at module scope; every other module is pure, so hosts that only use part of the API (e.g. the folder picker) can drop the rest.","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.4.9","typescript":"^4.9.5","@types/jest":"^29.5.14","@types/js-md5":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/files-core_0.1.2_1788246069279_0.42179899207229377","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"_id":"@bytetrade/files-core@0.1.3","bugs":{"url":"https://github.com/beclab/olares-files-picker/issues"},"dist":{"shasum":"9c1c5e3f4b4331b7465497667cfebb79c56efb0b","tarball":"https://registry.npmjs.org/@bytetrade/files-core/-/files-core-0.1.3.tgz","fileCount":524,"integrity":"sha512-wlt2+X4pIQfcbQj8BYJACMgskWSbAIYydrnbUYfAPN9maZTJ1id0qGsYb4+2nO0MGeS9w+yJmVVWFv8Jwbq6uA==","signatures":[{"sig":"MEUCIQDyZ/W+dJM23nDIt8fjYH7wWhP3juYOLvTBJUDhXPusMgIgN2y3XBJMFQI2x+WfTTxDatuAw+TWtN0mf7jjwO6jYIE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCh4EwmXyesMXjSVJwd6zdxGwRgBhWaBUEKiM89IBhvqwIhAN3xxqt0Bjkn9bclvvNR12ec7d+yoFyZ69DjcaVldXT7"}],"unpackedSize":1361600},"main":"./assets/index.js","name":"@bytetrade/files-core","types":"./assets/index.d.ts","module":"./assets/index.js","//files":"src ships alongside the build because hosts that type-check or run jest against sources resolve into it; tests are not part of that, and tsconfig excludes them from the build for the same reason.","exports":{".":{"types":"./assets/index.d.ts","import":"./assets/index.js","default":"./assets/index.js"},"./base":{"types":"./assets/base.d.ts","import":"./assets/base.js","default":"./assets/base.js"}},"gitHead":"42476dfa645ef33790cc4fb86a73a1227790340b","license":"GPL-3.0-or-later","scripts":{"test":"jest","build":"rm -rf assets && tsc -p tsconfig.json","prepack":"npm run build"},"version":"0.1.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b79ce285-e83f-410c-80e4-f8395db0cb65"}},"homepage":"https://github.com/beclab/olares-files-picker/tree/main/packages/files-core#readme","keywords":["olares","files","drive"],"repository":{"url":"git+https://github.com/beclab/olares-files-picker.git","type":"git","directory":"packages/files-core"},"_npmVersion":"11.19.0","description":"Files API types, transport, and browse session — framework-free","directories":{},"maintainers":[{"name":"pengpeng1985","email":"pengpeng@bytetrade.io"},{"name":"yyh_yongheng","email":"yangyongheng@bytetrade.io"},{"name":"icebergtsn","email":"zhangyuhang@bytetrade.io"},{"name":"luz33c","email":"33cluz@gmail.com"},{"name":"guojianmin_123","email":"guojianmin@bytetrade.io"}],"sideEffects":["**/source/registry.ts","**/source/registry.js"],"_nodeVersion":"24.20.0","dependencies":{"axios":"1.19.0","js-md5":"^0.7.3"},"//sideEffects":"registry.ts registers the static sources at module scope; every other module is pure, so hosts that only use part of the API (e.g. the folder picker) can drop the rest.","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.4.9","typescript":"^4.9.5","@types/jest":"^29.5.14","@types/js-md5":"^0.7.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/files-core_0.1.3_1789893844680_0.3936843053399455"}}},"time":{"created":"2026-08-21T13:39:32.210Z","modified":"2026-09-20T08:44:05.048Z","0.1.0":"2026-08-21T13:39:32.946Z","0.1.1":"2026-08-21T14:26:31.861Z","0.1.2":"2026-09-01T07:01:09.429Z","0.1.3":"2026-09-20T08:44:04.784Z"},"bugs":{"url":"https://github.com/beclab/olares-files-picker/issues"},"license":"GPL-3.0-or-later","homepage":"https://github.com/beclab/olares-files-picker/tree/main/packages/files-core#readme","keywords":["olares","files","drive"],"repository":{"url":"git+https://github.com/beclab/olares-files-picker.git","type":"git","directory":"packages/files-core"},"description":"Files API types, transport, and browse session — framework-free","maintainers":[{"name":"pengpeng1985","email":"pengpeng@bytetrade.io"},{"name":"yyh_yongheng","email":"yangyongheng@bytetrade.io"},{"name":"icebergtsn","email":"zhangyuhang@bytetrade.io"},{"name":"luz33c","email":"33cluz@gmail.com"},{"name":"guojianmin_123","email":"guojianmin@bytetrade.io"}],"readme":"# @bytetrade/files-core\n\nFramework-free files API: types, transport, path helpers, browse session, and (optionally) the HTTP drive adapters. No Vue, Pinia, or Quasar.\n\n## Entries\n\n| Import | Contents |\n| --- | --- |\n| `@bytetrade/files-core` | Full surface, including drive adapters |\n| `@bytetrade/files-core/base` | Types, config, session, paths, i18n — **no** HTTP drives. Prefer this when the host supplies its own `FilesBrowserClient` (the folder picker does). |\n\n## Configure\n\n```ts\nimport {\n  configureFiles,\n  setFilesLocale,\n  setFilesI18n\n} from '@bytetrade/files-core/base';\n\nconfigureFiles({\n  baseURL: 'https://…',\n  token: () => getAccessToken(),\n  transport: myAxiosLikeTransport,\n  browser: myFilesBrowserClient\n});\n\nsetFilesLocale('zh-CN');\n// Optional: forward to the host app's i18n so every language is covered.\nsetFilesI18n((key, params) => i18n.t(key, params));\n```\n\n### Built-in i18n\n\nWithout `setFilesI18n`, only **English** and **Chinese** catalogs ship in [`src/i18n.ts`](src/i18n.ts). Hosts that support more locales must inject a translator.\n\n### FilesBrowserClient\n\nHosts that drive the UI (folder picker, custom browser) implement `FilesBrowserClient` and pass it via `configureFiles({ browser })`. The session (`BrowseSession` / `getBrowseSession(id)`) is the navigation authority the UI subscribes to; the client is how the UI asks the host to load menus, open paths, create directories, and go back/forward.\n\n## Build\n\nRun these from the repository root so the workspace links resolve:\n\n```bash\nnpm install\nnpm run build --workspace @bytetrade/files-core\nnpm test --workspace @bytetrade/files-core\n```\n\nOutput lands in `assets/` (gitignored / regenerated). Publishing rebuilds it\nthrough the package's `prepack` hook.\n","readmeFilename":"README.md"}