@agentsky/桌面-ui
AgentSky for Mac的界面:应用程序窗口显示的页面,已建
输入 dist/ 并用应用软件的外壳给他们服务 外壳是电能
应用程序的一面, 在这个上面的目录中; 两个在桥上相会
说明 文件/壳体合同这个
软件包名称它创建于 package.json
(单位:千美元)agentsky.shellContract) (中文(简体) ).
此软件包是专有的( 请参看 自由主义) (中文(简体) ). 它的来源不是
已出版: npm publish 船舶 index.js, (中文(简体) ), dist/执照和这个文件.
版式
src/ the pages (index.html, quick-ask.html, browser-bar.html),
their modules (*.mjs) and styles/
src/assets/ pictures the pages name by path (web/ and makers/ are
generated copies of the web's)
src/editors/ the artifact editors, bundled from the web by editors/
scripts/build.js builds dist/
scripts/sync-web-* regenerate the web-derived files (tokens, icons, logos, Arena)
editors/ the editors bundle's own build and dependencies
test/ node --test suites for the modules and the generated files
dist/ the build output: one script and one stylesheet per page,
the pages rewritten to load them, chunks/ (what the main
window imports on demand), assets/, editors/ and
vendor/mermaid.js
大楼
npm run build # dist/, minified, as the app ships it
npm run watch # rebuild on every change, readable, with source maps
npm test
在此运行这些或从 shell 的目录中运行 --workspace ui贝壳
npm start, (中文(简体) ), pack, (中文(简体) ), dist 财务报告和审定财务报表 test 先建此软件包。 在这
寄存器 shell 取决于包作为 ui npm 工作空间,所以
npm install 在 shell 目录中安装此软件包的依赖性
并链接到 node_modules/@agentsky/desktop-ui。 。 。 .
网页是ES模块,与 htm 结束
预告; marked, (中文(简体) ), dompurify 财务报告和审定财务报表 katex 输入和捆绑。 美人鱼是
太大且过于活泼,无法捆绑, 因此构建复制其预建文件到
dist/vendor/mermaid.js 页面将它装入一个简单的脚本
图表绘图。 文物编辑是他们自己的包
(单位:千美元)src/editors/,由 editors/build.js 从网络应用程序的来源)
当编辑器打开时,页面会导入; 构造复制它。 主要内容
窗口的捆绑被分割:它用什么导入 import() (PDF读取器
pdf.js)下为块 dist/chunks/ 第一次需要的时候就去取,所以要发射
仅解析第一个屏幕运行的内容 .
所有在运行时间的页面引用 都必须在下 dist/: 贝壳
根据内容安全政策
允许不连接网络。 一页 <link rel="stylesheet"> 线条是
按此顺序捆绑成一个样式表; 每页都有一个
<script type="module">,捆绑为一个脚本。 这栋建筑读取这些
页面标记,所以添加样式表意味着添加其 <link>。 。 。 .
网络文件
颜色、图标、标志和Arena的排队来自此中的网络应用
仓库(ts/: npm run sync:web 重新生成 src/styles/web-tokens.css, (中文(简体) ),
src/web-accents.mjs, (中文(简体) ), src/web-icons.mjs, (中文(简体) ), src/web-logos.mjs 财务报告和审定财务报表
src/assets/web/,以及 src/web-arena.mjs实现产出
软件包构建不包含 ts/· ; npm test 当一个被扭曲和跳过时失败
那些检查,当 ts/ 缺席。 更改网络上的颜色或标志, 永远不要
在生成的文件中。 编辑捆绑和市场制造者标记是
以 cd editors && npm install && npm run build 财务报告和审定财务报表
node makers.js 在这里.
出版
界面有自己的版本;外壳针是准确的版本. 这样可以让捆绑推进而不重新发布已经签名的应用程序版本 。 发表: npm run build,则 npm publish
从此目录(即 files 列表中保留来源。 那贝壳呢
将公布的版本取而代之;参见 shell 的 README.