larness 0.3.0 → 0.4.0
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/apps/server/dist/{address-CaYVz64G.js → address-BDs0FfMq.js} +1 -1
- package/apps/server/dist/{client-Bh20nnvS.js → client-D88ULjn9.js} +1 -1
- package/apps/server/dist/{doctor-CFNC4Inb.js → doctor-dwTQiTef.js} +1 -1
- package/apps/server/dist/doctor.js +1 -1
- package/apps/server/dist/index.js +12224 -5381
- package/apps/server/dist/{managed-BPl4Lyn0.js → managed-Br7VqQiP.js} +73 -9
- package/apps/server/dist/{paths-BAdni_6q.js → paths-DUfwiH2X.js} +646 -18
- package/apps/server/dist/{status-DMHY6AAL.js → status-D2oSIMoj.js} +1 -1
- package/apps/server/dist/status.js +3 -3
- package/apps/server/dist/tui.js +4 -4
- package/apps/server/drizzle/0032_agent_profile.sql +1 -0
- package/apps/server/drizzle/0033_agent_profile_service_ops.sql +1 -0
- package/apps/server/drizzle/0034_agent_profile_coding_plan.sql +1 -0
- package/apps/server/drizzle/0035_session_title_source.sql +1 -0
- package/apps/server/drizzle/0036_project_memory.sql +62 -0
- package/apps/server/drizzle/0037_web_search.sql +14 -0
- package/apps/server/drizzle/0038_document_attachments.sql +16 -0
- package/apps/server/drizzle/meta/0032_snapshot.json +5169 -0
- package/apps/server/drizzle/meta/0035_snapshot.json +5177 -0
- package/apps/server/drizzle/meta/0036_snapshot.json +5576 -0
- package/apps/server/drizzle/meta/0037_snapshot.json +5667 -0
- package/apps/server/drizzle/meta/0038_snapshot.json +5776 -0
- package/apps/server/drizzle/meta/_journal.json +49 -0
- package/apps/server/package.json +10 -0
- package/apps/web/dist/assets/{FileEditor-DE6LrI-M.js → FileEditor-EgU1WoyG.js} +1 -1
- package/apps/web/dist/assets/{FileViewer-DRVKNNXJ.js → FileViewer-CK3jt-Kt.js} +1 -1
- package/apps/web/dist/assets/{cssMode-B9FyCAPl.js → cssMode-C8rMoO9f.js} +1 -1
- package/apps/web/dist/assets/{editor.api-Ci88W9RG.js → editor.api-oDs5eZGS.js} +1 -1
- package/apps/web/dist/assets/{freemarker2-DG29rXiM.js → freemarker2-Bpg8JM09.js} +1 -1
- package/apps/web/dist/assets/{handlebars-BdUtfAnO.js → handlebars-17J16rlT.js} +1 -1
- package/apps/web/dist/assets/{html-D_HjNTyA.js → html-DJQFF1_1.js} +1 -1
- package/apps/web/dist/assets/{htmlMode-CmbE2qeS.js → htmlMode-H8gHwZ6x.js} +1 -1
- package/apps/web/dist/assets/{index-DTot0J9O.js → index-BTVfvWIs.js} +2 -2
- package/apps/web/dist/assets/{javascript-CEShQSfS.js → javascript-CjeM-nVA.js} +1 -1
- package/apps/web/dist/assets/{jsonMode-CiiEUOHC.js → jsonMode-C6seMV0X.js} +1 -1
- package/apps/web/dist/assets/{liquid-Bj4N-0iy.js → liquid-B33LyktO.js} +1 -1
- package/apps/web/dist/assets/{lspLanguageFeatures-A8ZbLPDT.js → lspLanguageFeatures-H7IuoVNs.js} +1 -1
- package/apps/web/dist/assets/main-CQzbYrTZ.js +157 -0
- package/apps/web/dist/assets/main-gq3n_vn8.css +1 -0
- package/apps/web/dist/assets/{mdx-BjSmwFzj.js → mdx-CcNcLUd8.js} +1 -1
- package/apps/web/dist/assets/{monaco-BQTeQiD2.js → monaco-xD43LINc.js} +3 -3
- package/apps/web/dist/assets/{python-DyyMbLlw.js → python-BfhjzxvI.js} +1 -1
- package/apps/web/dist/assets/{razor-LiDN5b1t.js → razor-COinq8YD.js} +1 -1
- package/apps/web/dist/assets/{tsMode-DXgADabI.js → tsMode-CXpnR4mr.js} +1 -1
- package/apps/web/dist/assets/{typescript-CyVJyana.js → typescript-DAgfuTsy.js} +1 -1
- package/apps/web/dist/assets/{workers-Be8tmwOD.js → workers-DI76FldO.js} +1 -1
- package/apps/web/dist/assets/{xml-YcdNXsJT.js → xml-CSNVYs0K.js} +1 -1
- package/apps/web/dist/assets/{yaml-Cx-igwqu.js → yaml-Bzp-4SkQ.js} +1 -1
- package/apps/web/dist/index.html +1 -1
- package/docs/README.md +1 -0
- package/docs/guides/install.md +3 -3
- package/package.json +1 -1
- package/apps/web/dist/assets/main-B_CVViox.js +0 -158
- package/apps/web/dist/assets/main-D1Y-WDQ4.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e}from"./editor.api-
|
|
1
|
+
import{m as e}from"./editor.api-oDs5eZGS.js";var t={comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<`,`>`]],autoClosingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],surroundingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],onEnterRules:[{beforeText:RegExp(`<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},n={defaultToken:``,tokenPostfix:`.xml`,ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,``],{include:`@whitespace`},[/(<)(@qualifiedName)/,[{token:`delimiter`},{token:`tag`,next:`@tag`}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:`delimiter`},{token:`tag`},``,{token:`delimiter`}]],[/(<\?)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/(<\!)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/<\!\[CDATA\[/,{token:`delimiter.cdata`,next:`@cdata`}],[/&\w+;/,`string.escape`]],cdata:[[/[^\]]+/,``],[/\]\]>/,{token:`delimiter.cdata`,next:`@pop`}],[/\]/,``]],tag:[[/[ \t\r\n]+/,``],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,[`attribute.name`,``,`attribute.value`]],[/@qualifiedName/,`attribute.name`],[/\?>/,{token:`delimiter`,next:`@pop`}],[/(\/)(>)/,[{token:`tag`},{token:`delimiter`,next:`@pop`}]],[/>/,{token:`delimiter`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,``],[/<!--/,{token:`comment`,next:`@comment`}]],comment:[[/[^<\-]+/,`comment.content`],[/-->/,{token:`comment`,next:`@pop`}],[/<!--/,`comment.content.invalid`],[/[<\-]/,`comment.content`]]}};export{t as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e}from"./editor.api-
|
|
1
|
+
import{m as e}from"./editor.api-oDs5eZGS.js";var t={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},n={tokenPostfix:`.yaml`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:[`true`,`True`,`TRUE`,`false`,`False`,`FALSE`,`null`,`Null`,`Null`,`~`],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:`@whitespace`},{include:`@comment`},[/%[^ ]+.*$/,`meta.directive`],[/---/,`operators.directivesEnd`],[/\.{3}/,`operators.documentEnd`],[/[-?:](?= )/,`operators`],{include:`@anchor`},{include:`@tagHandle`},{include:`@flowCollections`},{include:`@blockStyle`},[/@numberInteger(?![ \t]*\S+)/,`number`],[/@numberFloat(?![ \t]*\S+)/,`number.float`],[/@numberOctal(?![ \t]*\S+)/,`number.octal`],[/@numberHex(?![ \t]*\S+)/,`number.hex`],[/@numberInfinity(?![ \t]*\S+)/,`number.infinity`],[/@numberNaN(?![ \t]*\S+)/,`number.nan`],[/@numberDate(?![ \t]*\S+)/,`number.date`],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,[`type`,`white`,`operators`,`white`]],{include:`@flowScalars`},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],object:[{include:`@whitespace`},{include:`@comment`},[/\}/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],[/:(?= )/,`operators`],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,`type`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\},]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],array:[{include:`@whitespace`},{include:`@comment`},[/\]/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\],]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],multiString:[[/^( +).+$/,`string`,`@multiStringContinued.$1`]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":`string`,"@default":{token:`@rematch`,next:`@popall`}}}]],whitespace:[[/[ \t\r\n]+/,`white`]],comment:[[/#.*$/,`comment`]],flowCollections:[[/\[/,`@brackets`,`@array`],[/\{/,`@brackets`,`@object`]],flowScalars:[[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'[^']*'/,`string`],[/"/,`string`,`@doubleQuotedString`]],doubleQuotedString:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],blockStyle:[[/[>|][0-9]*[+-]?$/,`operators`,`@multiString`]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,`number`],[/@numberFloat(?=[ \t]*[,\]\}])/,`number.float`],[/@numberOctal(?=[ \t]*[,\]\}])/,`number.octal`],[/@numberHex(?=[ \t]*[,\]\}])/,`number.hex`],[/@numberInfinity(?=[ \t]*[,\]\}])/,`number.infinity`],[/@numberNaN(?=[ \t]*[,\]\}])/,`number.nan`],[/@numberDate(?=[ \t]*[,\]\}])/,`number.date`]],tagHandle:[[/\![^ ]*/,`tag`]],anchor:[[/[&*][^ ]+/,`namespace`]]}};export{t as conf,n as language};
|
package/apps/web/dist/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
8
8
|
<title>Larness</title>
|
|
9
9
|
<style>.startup{text-align:center;background:var(--canvas,#f4f4f6);color:var(--ink,#1d1d1f);--startup-muted:var(--ink-3,#8a8a91);--startup-fill:var(--accent,#0a84ff);place-content:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;display:none;position:fixed;inset:0}[data-theme=dark] .startup{background:var(--canvas,#161618);color:var(--ink,#f2f2f5);--startup-muted:var(--ink-3,#7e7e87);--startup-fill:var(--accent,#3d9bff)}#root:empty+.startup{display:grid}.startup-wordmark{letter-spacing:.06em;color:#0000;background:radial-gradient(ellipse 25% 100% at center bottom, var(--startup-fill) 97%, transparent) 0 calc(50% - .12em) / 1.5em .24em repeat-x, radial-gradient(ellipse 25% 100% at center top, var(--startup-muted) 97%, transparent) -.75em calc(50% + .12em) / 1.5em .24em repeat-x, linear-gradient(var(--startup-muted) 50%, var(--startup-fill) 50%);-webkit-background-clip:text;background-clip:text;font-size:clamp(2rem,9vw,3.5rem);font-weight:800;line-height:1;animation:1.6s linear infinite startup-wave}.startup a{color:var(--startup-fill)}@keyframes startup-wave{to{background-position-x:-1.5em,-2.25em,0}}@media (prefers-reduced-motion:reduce),(forced-colors:active){.startup-wordmark{animation:none}}@media (forced-colors:active){.startup-wordmark{color:canvastext}}</style>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-BTVfvWIs.js"></script>
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|
package/docs/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| [architecture/overview.md](architecture/overview.md) | 系统拓扑、进程边界、模块职责、关键数据流 | 每次开始新里程碑 |
|
|
8
8
|
| [architecture/stack.md](architecture/stack.md) | 冻结技术栈、workspace 结构、依赖升级规则 | 选型、加依赖、搭脚手架 |
|
|
9
9
|
| [architecture/security.md](architecture/security.md) | 信任模型、审批分级、认证、秘密、预览隔离、失败关闭矩阵 | 涉及认证 / 工具 / 代理 / 审批 |
|
|
10
|
+
| [architecture/ui-feedback.md](architecture/ui-feedback.md) | 统一消息反馈:Toast 的用法、位置、例外与检查清单 | 新增任何成功 / 失败 / 状态提示 |
|
|
10
11
|
| [contracts/rest-api.md](contracts/rest-api.md) | REST 约定、错误码、M0–M5 接口契约 | 写 API 或前端请求 |
|
|
11
12
|
| [contracts/ws-events.md](contracts/ws-events.md) | 事件包络、序号、重放、主题与事件类型 | 写实时链路 |
|
|
12
13
|
| [contracts/ipc.md](contracts/ipc.md) | 本机 TUI ↔ Server 的 NDJSON 协议、方法与事件 | 写 TUI / IPC |
|
package/docs/guides/install.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# 安装、升级与卸载
|
|
2
2
|
|
|
3
|
-
> 状态:macOS Apple Silicon、Windows 11 x64
|
|
3
|
+
> 状态:macOS Apple Silicon、Windows 11 x64、Windows 10 x64 已验证;Ubuntu 待实机复测。支持矩阵与限制见 [known-limitations](https://github.com/bulv0620/Larness/blob/main/docs/known-limitations.md);发布流程见 [release](https://github.com/bulv0620/Larness/blob/main/docs/process/release.md)。不支持 macOS Intel。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
要求:
|
|
8
8
|
|
|
9
9
|
- Node.js **22.22+(22.x)/ 24+**,请使用对应主版本的最新补丁版;macOS Apple Silicon 已验证 22.23.4 和 24.22.2,Windows 11 已验证 24.9.0
|
|
10
|
-
- 发布包固定 `better-sqlite3@13.0.3`。其 npm 包内含 Node-API 预编译文件,macOS Apple Silicon 与 Windows 11 已实测
|
|
10
|
+
- 发布包固定 `better-sqlite3@13.0.3`。其 npm 包内含 Node-API 预编译文件,macOS Apple Silicon 与 Windows 10 / 11 已实测
|
|
11
11
|
- macOS 需要 Xcode Command Line Tools 仅在原生依赖没有可用预编译时使用
|
|
12
12
|
- Ubuntu 的 `node-pty` 没有预编译,可能需要 `build-essential`、`python`、`make`
|
|
13
13
|
- Windows 10 1809+ / Windows 11 x64 使用包内预编译;PowerShell 5.1 与 ConPTY 是系统自带,无需 WSL 或 Visual Studio Build Tools
|
|
@@ -73,7 +73,7 @@ npm uninstall -g larness
|
|
|
73
73
|
- npm 11 会提示 `install-scripts` 未审查;脚本仍会执行。若被策略阻止,使用:
|
|
74
74
|
`npm install -g larness --allow-scripts=node-pty@1.1.0`
|
|
75
75
|
- npm 11 全局安装可能把 `node-pty` 的 `spawn-helper` 解压成不可执行;Larness 在创建终端前会修复该文件权限(仅 macOS),不需要用户手动 chmod。
|
|
76
|
-
- Linux 安装可能需要编译 `node-pty`;Windows 11 x64 使用包内预编译并已实测。
|
|
76
|
+
- Linux 安装可能需要编译 `node-pty`;Windows 10 / 11 x64 使用包内预编译并已实测。
|
|
77
77
|
- Windows 数据目录位于 `%LOCALAPPDATA%\larness`,依赖当前用户 ACL 保护;不要共享同一 Windows 账户。
|
|
78
78
|
- Windows 停止终端/命令使用 `taskkill /T /F` 清理进程树;这不是沙箱,源进程仍以当前用户权限运行。
|
|
79
79
|
|
package/package.json
CHANGED