Skip to content

feat: 全面架构升级 - Permission Profile / SQLite 日志 / Job 队列 / Skill 标准化 - #258

Open
raymondginger2018-sudo wants to merge 5 commits into
lessweb:mainfrom
raymondginger2018-sudo:pr210
Open

feat: 全面架构升级 - Permission Profile / SQLite 日志 / Job 队列 / Skill 标准化#258
raymondginger2018-sudo wants to merge 5 commits into
lessweb:mainfrom
raymondginger2018-sudo:pr210

Conversation

@raymondginger2018-sudo

@raymondginger2018-sudo raymondginger2018-sudo commented Jul 25, 2026

Copy link
Copy Markdown

新增模块:

  • Permission Profile: 结构化 ACL 权限模型
  • SQLite Session Log: 异步结构化日志
  • Job Queue: 三阶段命令执行协议,支持重试/超时/并发
  • Skill Parser: frontmatter 解析
  • Hooks 系统: 18 种生命周期事件
  • 权限审计 / 会话压缩 / 运行时压缩补丁

Raymo added 2 commits July 31, 2026 14:16
保留 main 的 planMode 功能 (PLAN_MODE_ON/OFF/FORCE_ASK_SCOPES)
+ pr210 的压缩阈值常量 (DEFAULT/DEEPSEEK_V4_COMPACT_PROMPT_TOKEN_THRESHOLD)
+ HooksConfig 导入
合并 origin/main 后修复类型错误:
- session.ts: 保留 main 的 planMode 功能 (PLAN_MODE_* 常量 + forceAskScopes)
- prompt.ts: 保留 getPlanModePrompt + pr210 的 TOOL_CHAINING/AGENTIC_BEHAVIOR 提示
- permissions.ts: 恢复 forceAskScopes + pr210 的 auditPermissionPlan/isInternalPermissionScope
- exec-runner.ts: switch 补 default 分支
- 测试: 补齐 compressThreshold 等必填字段
- vscode tsconfig: include core 的 sql.js.d.ts
- Prettier 格式化全部文件
@raymondginger2018-sudo

Copy link
Copy Markdown
Author

Hi maintainers, I've resolved the merge conflicts with the latest main.

What was done (a242a74):

  • Merged latest main and resolved conflicts in session.ts / prompt.ts / permissions.ts
  • Preserved main's planMode feature (PLAN_MODE_* constants + forceAskScopes) alongside this PR's additions (auditPermissionPlan, isInternalPermissionScope, fireHook support, TOOL_CHAINING/AGENTIC_BEHAVIOR prompts)
  • Fixed type errors (exec-runner switch default, test settings fields, sql.js declarations)
  • npm run check passes locally with 0 errors (typecheck / lint / format)

Status: now mergeable (was dirty due to conflicts). Ready for review. Thanks!

Raymo added 2 commits July 31, 2026 16:30
…ntext)

- App.tsx: adopt main's resetStaticView/planMode/projectRoot
- PromptInput.tsx: merge both command sets (fork from main, compact/context from pr210)
App.tsx references setPlanMode/setPendingPlanImplementation/planMode
in the merged /fork command handler; add the missing state definitions.
@raymondginger2018-sudo

Copy link
Copy Markdown
Author

@qorzj The CI workflow for this PR is stuck in action_required -- GitHub requires a maintainer to approve running Actions on fork pull requests (main branch CI runs fine, only fork PRs need approval).

All code has been verified locally (npm run check passes, no conflicts, mergeable=True). Could you please Approve and run workflows on this PR? After approval the CI will pass and the status will become clean.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant