Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
705f04e
refactor(build): 统一构建脚本并优化输出
TrueNine Mar 3, 2026
70e684c
refactor(plugin-output-shared): 合并 BaseCLIOutputPlugin 到 AbstractOutp…
TrueNine Mar 3, 2026
ea97bc1
refactor(plugin-output): 重构规则输出功能并统一处理逻辑
TrueNine Mar 3, 2026
9172a02
refactor(rules): 修复 Windows 路径问题并添加 paths frontmatter 支持
TrueNine Mar 3, 2026
f3ea6b5
refactor(规则提示): 将字段 series 重命名为 prefix 以提高可读性
TrueNine Mar 3, 2026
8e4bec7
feat(input): 为createPrompt方法添加metadata参数
TrueNine Mar 3, 2026
24d8fa8
feat(路径系统): 添加类型安全的路径解析系统
TrueNine Mar 3, 2026
819477f
refactor(utils): 简化路径处理并移除未使用的类型依赖
TrueNine Mar 3, 2026
d03c618
refactor(CleanupUtils): 直接使用文件对象而非路径
TrueNine Mar 3, 2026
6bbca5a
refactor(desk-paths): 移除未使用的RelativePath相关代码并简化路径处理
TrueNine Mar 3, 2026
c6bd12c
refactor(plugin-core): 重构插件核心模块,移除废弃代码并优化类型定义
TrueNine Mar 4, 2026
e4d99cf
refactor(plugin-core): 重构插件核心模块,合并共享代码到plugin-core
TrueNine Mar 4, 2026
986d10d
refactor(plugin-core): 重构插件核心模块结构,移除废弃代码并优化类型导出
TrueNine Mar 4, 2026
468b2b9
refactor(plugin-core): 移除废弃代码并重构类型定义
TrueNine Mar 4, 2026
165ae3d
feat: 重构输出插件系统以支持基于声明式的文件输出和范围管理
TrueNine Mar 4, 2026
5a2640a
fix(cleanup): 保护已知的aindex输入配置文件不被删除
TrueNine Mar 4, 2026
9af7f6e
feat(插件核心): 增强子代理功能支持
TrueNine Mar 4, 2026
96c8683
feat(plugin-core): 新增插件核心模块及相关功能实现
TrueNine Mar 4, 2026
4bb905b
refactor(cli): 移除过时检查功能及相关代码
TrueNine Mar 4, 2026
82b6c77
feat(md-compiler): 添加原始YAML前端内容包装功能
TrueNine Mar 5, 2026
1f79784
refactor: 删除无用注释并修复测试描述格式
TrueNine Mar 5, 2026
e1dae89
refactor: move compiler and gui config paths to shared core
TrueNine Mar 11, 2026
31c7008
refactor: finish cli config and compiler alignment
TrueNine Mar 11, 2026
644780f
fix(cli): resolve lint errors in build
TrueNine Mar 11, 2026
dfba3f4
Update SECURITY.md
TrueNine Mar 11, 2026
ca08243
Fix CommandResult optional typing
TrueNine Mar 12, 2026
c5482b8
Document CLI cleanup updates
TrueNine Mar 12, 2026
0cc9a9c
Update deletion guard configs
TrueNine Mar 12, 2026
ad89284
Explain Cursor cleanup error
TrueNine Mar 12, 2026
00337ae
chore: recover full-chain release automation
TrueNine Mar 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .githooks/sync-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,24 @@ for (const pkg of [...packages, ...libraryPackages, ...packagesPackages, ...cliN
}
}

// Sync Cargo.toml version
// Sync root workspace Cargo.toml version
const workspaceCargoTomlPath = resolve('Cargo.toml')
try {
const cargoContent = readFileSync(workspaceCargoTomlPath, 'utf-8')
const cargoUpdated = cargoContent.replace(
/(\[workspace\.package\][\s\S]*?^version = ")([^"]+)(")/m,
`$1${rootVersion}$3`,
)
if (cargoContent !== cargoUpdated) {
writeFileSync(workspaceCargoTomlPath, cargoUpdated, 'utf-8')
console.log(` ✓ workspace Cargo.toml: version → ${rootVersion}`)
changed = true
}
} catch {
console.log('⚠️ Cargo.toml not found, skipping')
}

// Sync GUI Cargo.toml version
const cargoTomlPath = resolve('gui/src-tauri/Cargo.toml')
try {
const cargoContent = readFileSync(cargoTomlPath, 'utf-8')
Expand Down Expand Up @@ -172,6 +189,8 @@ if (changed) {
console.log('\n📦 Versions synced, auto-staging changes...')
try {
const filesToStage = [
'package.json',
'Cargo.toml',
'cli/package.json',
'gui/package.json',
'doc/package.json',
Expand All @@ -181,7 +200,7 @@ if (changed) {
...libraryPackages.map(p => p.path),
...packagesPackages.map(p => p.path),
...cliNpmPackages.map(p => p.path),
]
].filter(path => existsSync(resolve(path)))
execSync(
`git add ${filesToStage.join(' ')}`,
{ stdio: 'inherit' }
Expand Down
10 changes: 10 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Default owner for repository changes
* @TrueNine

# High-risk directories
/.github/ @TrueNine
/cli/ @TrueNine
/libraries/ @TrueNine
/gui/ @TrueNine
/doc/ @TrueNine
/scripts/ @TrueNine
28 changes: 26 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ body:
options:
- label: I have searched for duplicate or closed issues
required: true
- label: I redacted secrets, tokens, and private paths from logs or config snippets
required: true
- type: input
id: os
attributes:
Expand All @@ -37,6 +39,14 @@ body:
placeholder: "e.g., 2026.10125.0"
validations:
required: true
- type: input
id: first-bad-version
attributes:
label: First version where this appeared
description: If known, tell us the first version where you noticed the problem
placeholder: "e.g., worked in 2026.10222.0, broken in 2026.10303.11117"
validations:
required: false
- type: dropdown
id: context
attributes:
Expand All @@ -47,6 +57,20 @@ body:
- Both / unsure
validations:
required: true
- type: dropdown
id: affected-module
attributes:
label: Affected module
description: Pick the closest area so maintainers can route triage faster
options:
- Config / sync core
- Plugin or adapter pipeline
- Native module / N-API binding
- CLI packaging / release artifact
- GUI shell / updater
- Docs / unclear
validations:
required: true
- type: input
id: plugin-context
attributes:
Expand Down Expand Up @@ -87,7 +111,7 @@ body:
id: additional-context
attributes:
label: Additional Context
description: Logs, config, screenshots, workarounds
placeholder: "Error messages, .tnmsc.json (redact secrets), or environment details."
description: Logs, config, screenshots, workarounds, and whether config snippets were redacted
placeholder: "Error messages, .tnmsc.json (with secrets removed), screenshots, or environment details."
validations:
required: false
8 changes: 7 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
blank_issues_enabled: false
contact_links: []
contact_links:
- name: Documentation and setup guide
url: https://github.com/TrueNine/memory-sync/tree/main/doc
about: Read the docs and setup references before opening a support issue.
- name: Security policy
url: https://github.com/TrueNine/memory-sync/security/policy
about: Report vulnerabilities through the security policy instead of opening a public issue.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@ body:
Before submitting, please [search and confirm](https://github.com/TrueNine/memory-sync/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) that the idea does not yet exist. Duplicate requests may be closed.

---
- type: checkboxes
id: confirm
attributes:
label: Before opening, please confirm
options:
- label: I searched for an existing request or discussion first
required: true
- type: dropdown
id: area
attributes:
label: Affected area
description: Choose the closest part of the product
options:
- CLI (tnmsc)
- Shared Rust / N-API libraries
- GUI (Tauri app)
- Docs or onboarding
- Multiple / unsure
validations:
required: true
- type: textarea
id: feature-description
attributes:
Expand All @@ -24,6 +44,14 @@ body:
placeholder: "Concrete examples: which target (Cursor/Kiro/Warp/…), which input source, typical workflow."
validations:
required: true
- type: textarea
id: current-workaround
attributes:
label: Current workaround
description: If you already have a manual workaround, describe it
placeholder: "Explain how you are handling this today, and what is still painful."
validations:
required: false
- type: textarea
id: additional-context
attributes:
Expand Down
15 changes: 12 additions & 3 deletions .github/actions/setup-tauri/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ inputs:
runs:
using: composite
steps:
- name: Cache Linux package archives
if: runner.os == 'Linux'
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-tauri-apt-${{ hashFiles('.github/actions/setup-tauri/action.yml') }}
restore-keys: |
${{ runner.os }}-tauri-apt-

- name: Install Linux dependencies
if: runner.os == 'Linux'
shell: bash
Expand Down Expand Up @@ -46,7 +55,7 @@ runs:
path: |
~/.cargo/registry
~/.cargo/git
gui/src-tauri/target
target
key: ${{ runner.os }}-cargo-${{ steps.cargo-deps-hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-cargo-
Expand All @@ -67,6 +76,6 @@ runs:
- name: Clean old bundle artifacts
shell: bash
run: |
if [ -d "gui/src-tauri/target" ]; then
find gui/src-tauri/target -type d -name bundle -prune -exec rm -rf {} +
if [ -d "target" ]; then
find target -type d -name bundle -prune -exec rm -rf {} +
fi
145 changes: 145 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- github-actions
groups:
github-actions:
patterns:
- '*'

- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- rust
groups:
cargo-workspace:
patterns:
- '*'

- package-ecosystem: npm
directory: /
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- javascript
groups:
npm-root:
patterns:
- '*'

- package-ecosystem: npm
directory: /cli
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- javascript
groups:
npm-cli:
patterns:
- '*'

- package-ecosystem: npm
directory: /gui
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- javascript
groups:
npm-gui:
patterns:
- '*'

- package-ecosystem: npm
directory: /doc
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- javascript
groups:
npm-doc:
patterns:
- '*'

- package-ecosystem: npm
directory: /libraries/logger
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- javascript
groups:
npm-logger:
patterns:
- '*'

- package-ecosystem: npm
directory: /libraries/md-compiler
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- javascript
groups:
npm-md-compiler:
patterns:
- '*'

- package-ecosystem: npm
directory: /libraries/script-runtime
schedule:
interval: weekly
day: monday
time: '09:00'
timezone: Asia/Shanghai
open-pull-requests-limit: 5
labels:
- dependencies
- javascript
groups:
npm-script-runtime:
patterns:
- '*'
38 changes: 38 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Summary

- Describe the change in one or two sentences.

## Scope

- [ ] CLI (`cli/`)
- [ ] Shared Rust / N-API libraries (`libraries/`)
- [ ] GUI (`gui/`)
- [ ] Docs (`doc/`)
- [ ] GitHub automation / release chain (`.github/`)

## Release Impact

- [ ] No release or version impact
- [ ] Affects npm package contents or NAPI publishing
- [ ] Affects GUI artifacts or GitHub Release flow
- [ ] Affects config schema, CLI flags, or user-facing behavior

Details:

## Testing

- [ ] Not run locally
- [ ] Local checks passed
- [ ] Workflow or YAML validation passed

Commands / evidence:

## Risks and Follow-ups

- List rollout risks, migrations, or follow-up tasks if any.

## Checklist

- [ ] I reviewed version and release implications
- [ ] I called out any `.github/` or workflow changes above
- [ ] I documented remaining follow-up work, if any
Loading
Loading