Commit Graph
168 Commits
Author SHA1 Message Date
gitea 2ace4e2378 feat(assist): 支持协助身份与角色权限穿透呈现及高管防误用警示
- 实测澄清协助平台时长限制: 服务端 POST /api/assistPlatform/create 硬性单次上限为 24 小时 (1 天),超过直接报错 400,支持 --days/--hours 并在超限时清晰提示
- 协助直通会话生成及落盘时实时穿透解析组织架构: 提取人员姓名、工号、手机、所属部门、所配角色清单及核心系统权限
- 建立高管身份与特权角色风控评级体系 (analyzeStaffRoleRisk): 自动识别总监、主管理员、财务负责人、总经理等高危身份并输出安全风控警示框
- 将完整人员身份画像与风控元数据注入持久化企业配置 (enterprises/<corpId>.json)
- 在 SKILL.md 追加 Rule 13 及更新 assist-platform.md 说明文档
2026-10-21 11:39:00 +08:00
gitea f0fc7148ec feat(assist-platform): add approve command and support direct link generation for enter 2026-10-21 11:24:26 +08:00
gitea 1e45c441c6 feat(assist-platform): add ticket application command and enforce local config trust rules 2026-10-21 11:07:35 +08:00
gitea 35552944d1 feat(assist-platform): adapt to live assist backend query and id dialect
- Support filterBy in corporation search for server-side name/id resolution
- Normalize corporation ID with leading dollar prefix for detail and ticket endpoints
- Include required query object in ticket search payloads
- Improve ticket status mapping for live numeric states
- Rebuild plugin mcp bundle
2026-10-21 10:44:27 +08:00
gitea ed9fa979e0 feat(assist-platform): add assist platform automation and tenant onboarding
- Add SSO QR status poller and assist platform HTTP client
- Add assist-platform session store with 0600 secure permissions
- Implement domains/assist-platform (api, services, types) for corporation search, detail, tickets, staff query and passwordless token generation
- Implement cli/commands/assist-platform with aliases assist-center and ap
- Support seamless --save --switch --elevate pipeline to import tenant and extract persistent OpenAPI credentials
- Update embedded skill documentation, reference guide, and test suites
2026-10-21 10:33:27 +08:00
gitea ec7584c194 merge: integrate review-18-watch-timeout 2026-10-20 23:03:48 +08:00
gitea 4537c6eb53 merge: integrate review-16-node-grant-failure 2026-10-20 23:03:31 +08:00
gitea e872beaab8 merge: integrate review-14-script-json-output 2026-10-20 23:03:14 +08:00
gitea 6f4608635b merge: integrate review-11-session-expiry 2026-10-20 23:02:48 +08:00
gitea bf80273891 merge: integrate review-09-service-dry-run 2026-10-20 23:02:31 +08:00
gitea d1a75c011a merge: integrate review-08-update-dry-run 2026-10-20 23:02:23 +08:00
gitea a1527246da merge: integrate review-05-node-grant-confirmation 2026-10-20 23:01:59 +08:00
gitea b2059ec350 merge: integrate review-04-approval-dry-run 2026-10-20 23:01:50 +08:00
gitea 98ceb85a5c fix(workflow): distinguish watch completion from timeout and cancellation 2026-10-20 18:06:53 +08:00
gitea 3141cc3b29 fix(workflow): propagate rejected node grants to CLI failure status 2026-10-20 18:04:48 +08:00
gitea 4c4cd42edd fix(workflow): return script JSON reports and honor output options 2026-10-20 18:02:31 +08:00
gitea b69b78fc30 fix(approval): enforce session expiry for every operation handle 2026-10-20 17:58:33 +08:00
gitea b232e934fc fix(service): preview lifecycle actions without process mutations 2026-10-20 17:53:48 +08:00
gitea 32610e0b11 fix(update): preview updates before network or installation side effects 2026-10-20 17:52:50 +08:00
gitea 0e6090a92c fix(workflow): require confirmation and honor dry-run for node grants 2026-10-20 17:50:45 +08:00
gitea ae2a1a9d60 fix(approval): keep dry-run paths free of remote and local mutations 2026-10-20 17:50:06 +08:00
gitea 221b9596b8 fix(approval): reject execution across session corporation boundaries 2026-10-20 17:48:03 +08:00
gitea 18da4cc066 feat(workflow): 显式化静态分析硬门禁与软建议边界、完善发布门禁与架构演进文档 2026-10-20 13:30:23 +08:00
gitea 0768b94d65 feat(workflow): 企业可用节点探针、灰度开通收敛与DataLink公式硬规则校验 2026-10-20 13:08:36 +08:00
gitea 103ead0fe5 fix: harden CLI parsing, MCP startup and release integrity 2026-10-17 20:32:36 +08:00
gitea 1876e8a8f2 feat(workflow): add action enums, EKB_ENUM resolver, and condition dead-filter lint 2026-10-16 13:27:32 +08:00
gitea af1e11c018 feat(corps): 企业配置增加环境属性与生产安全保护机制
- Schema 扩展: CorpConfigSchema 增加 env ('prod' | 'test' | 'demo') 与 isTest 字段,未知企业保守兜底为 prod
- 智能初判与归一化: inferCorpEnvFromName 依据名称初判环境,normalizeCorpConfig 确保配置持久化时环境对齐
- CLI 视图升级: corps list 与 search 增加「环境」列 (🏭 正式 / 🧪 测试 / 🎪 演示),支持 --test/--prod/--env 筛选
- 环境打标与迁移: 新增 hose-use corps tag 命令,支持单个企业标记与 --migrate-all 批量显式升级持久化
- 生产安全阻断: workflow test 等敏感调试在正式生产环境 (prod) 阻断执行,需显式附加 --force 确认生产风险
- 上下文与探针增强: context、probe、corps current 全面输出企业环境属性
- 测试与文档补全: 覆盖 489 项全量测试并通过 tsc 类型检查
2026-10-16 12:30:08 +08:00
gitea d293bb47a4 feat(workflow): implement script linting and offline sandbox evaluation 2026-10-15 16:50:24 +08:00
gitea 53201ba4e1 feat(workflow): implement real-time workflow tail and watch commands 2026-10-15 16:37:27 +08:00
gitea 3261b6ebdb feat(workflow): implement declarative node editing commands 2026-10-15 16:24:25 +08:00
gitea 02b197c119 feat(workflow): implement workflow create command from scratch with draft state defense 2026-10-15 15:54:33 +08:00
gitea b043cb614e feat(workflow): implement workflow copy and delete lifecycle commands 2026-10-15 15:18:49 +08:00
gitea c56460716f feat(workflow): support webhook sample records, params preview and expand trigger catalog 2026-10-15 15:01:20 +08:00
gitea b605d7c2bb Merge origin/main and preserve debug safeguards across trigger paths 2026-10-15 14:56:11 +08:00
gitea 7ec369f77e fix: stabilize auth identity, record operations, and workflow diagnostics 2026-10-15 14:54:10 +08:00
gitea c8d9e409c6 feat(workflow): implement trigger-aware debug path branching for clock, webhook, datalink and flowform 2026-10-15 14:32:56 +08:00
gitea c507879896 feat(workflow): allow enabled workflow debugging with full security prompts instead of hard block 2026-10-15 14:19:00 +08:00
gitea 0b4519652b fix(workflow): intercept production debug on enabled workflows without force and document platform vulnerability 2026-10-15 14:13:50 +08:00
yunyingk ed3f38f1ab Merge pull request #104 from yunyingk/feat/workflow-debug-test-and-branch-diagnosis
feat(workflow): end-to-end workflow debug test command and condition branch explanation
2026-10-15 13:24:50 +08:00
gitea fe6183dd44 feat(workflow): add end-to-end workflow debug test command and condition branch explanation 2026-10-15 13:24:14 +08:00
gitea 03195bbbe5 feat(platform): add streaming ndjson, stats profiling, flat normalization, and public sdk surface 2026-10-15 11:00:18 +08:00
gitea cd0aa2bf41 feat(datalink,platform): add ledger math audit, continuity check, and in-line declarative batch update 2026-10-14 22:25:48 +08:00
gitea 2f94768184 feat(workflow): add workflow snapshot diff and job execution diff suite (Phase 3) 2026-10-14 22:13:05 +08:00
gitea ffec604ed9 feat(bill,flow): add unified bill trace and flow get diagnostic engine (Phase 2) 2026-10-14 22:00:55 +08:00
gitea 0c6a3ee660 feat(workflow,corps): add dynamic staff link switching and deep failed job inspection 2026-10-14 18:32:14 +08:00
gitea 0499ccb2cc refactor(corps): normalize credential categories and format workflow history logs 2026-10-14 18:19:13 +08:00
gitea 95eb8ee676 chore(legacy): remove ekb-mcp migration layer, approval db compat shim, and stale daily notes
The ekb-mcp -> hose-use rename migration (LEGACY_* constants,
syncLegacyEnterprisesDir/syncLegacyGlobalConfig with 7-day grace
cleanup, dual-source enterprises resolution) has completed its job:
legacy data self-deleted on active machines years of grace ago.
Config resolution now returns the single primary
~/.config/hose-use source; startup no longer scans the legacy dir.

- core/config/loader.ts: drop legacy constants, sync functions, and
  LEGACY path from diagnostics candidates; loader.test.ts drops the
  three legacy-migration cases
- domains/approval/db.ts deleted: pure pass-through over core/db whose
  consumers (repository.ts) already call core/db directly; the four
  test files now import getDatabase/closeDatabase from core/db
- scripts/dev-hygiene.ts: drop the config.legacy finding and
  legacyConfig snapshot field
- docs/daily/* removed: Python-era (ekb-cli/ekb-mcp) notes describing
  commands and architecture that no longer exist (preserved in git
  history)

No behavior change on machines without legacy data: tsc clean,
313 tests pass (316 minus the 3 removed legacy cases).
2026-10-05 16:29:19 +08:00
gitea 8c6ee6ca89 refactor(cli): split commands/bill.ts into bill/{context,approve,search,flow,related,meta,index}.ts
The five closures that captured corp/client/confirmation state move
into a per-invocation createBillActionContext factory; case bodies
become ctx-taking handlers grouped by concern (approval write actions,
list/get, flow/risk/budget, refs/relations/attachments/download,
schema/link/spec). index.ts keeps the original switch semantics.
No behavior change: tsc clean, 316 tests pass.
2026-10-04 14:18:29 +08:00
gitea 6cb05ebc37 refactor(cli): split commands/platform.ts into platform/{shared,app-info,records,record-actions,index}.ts
Verbatim code moves grouped by concern: app metadata & permissions,
record query + ledger audit, and record write actions (incl. batch
safe edit). No behavior change: tsc clean, 316 tests pass.
2026-10-04 14:14:57 +08:00
gitea c8450b9908 refactor(cli): split commands/update.ts into update/{index,releases}.ts
releases.ts carries the GitHub/Gitea release infrastructure (types,
listing, mirrored download, archive extraction, semver compare);
index.ts keeps handleUpdateCommand and re-exports the previously
public members so update.test.ts stays source-compatible.
Verbatim code moves, no behavior change: tsc clean, 316 tests pass.
2026-10-04 14:12:03 +08:00