Commit Graph

191 Commits

Author SHA1 Message Date
Ed1s0nZ d590cdd714 fix: place accessible password visibility toggle inside login input 2026-10-08 11:52:44 +08:00
Ed1s0nZ 4d397a3741 docs: f3 plan for login password eye 2026-10-08 11:51:12 +08:00
Ed1s0nZ 6a31e290bf docs: f2 design for login password eye 2026-10-08 11:51:10 +08:00
Ed1s0nZ 30b680d4c5 docs: f1 requirements for login password eye 2026-10-08 11:51:08 +08:00
Ed1s0nZ 2f2e01e99f docs: f0 intake for login password eye 2026-10-08 11:51:05 +08:00
Sycun e80668b2e9 feat: make a restart part of the one-click update, and recover the page by itself
The console now knows what it is running: the status endpoint compares the binary
identity captured at startup (size + nanosecond mtime) with the file on disk, so
an update, a rollback or a CLI run that swapped the binary without a restart is
reported as needsRestart (with the build time) - a state that used to live only in
one job's result and vanished with the process. That state grows a persistent
banner and POST /api/system/update/restart (409 when there is nothing to activate
or a job owns the tree, 400 without a hook), so a forgotten tick is one click
instead of a shell login.

The restart tick defaults to on exactly where it is safe: launchd/systemd leave
markers in the environment (XPC_SERVICE_NAME, INVOCATION_ID/JOURNAL_STREAM) and
the box follows them; an operator's own choice is never second-guessed afterwards.

While the process is down the console becomes a recovery view that probes the
status endpoint every 2 seconds: 200 means the old process still answers, a dead
socket means it is on its way out, and a 401 - only a new process can fail to know
the session - reloads the page back to #system-update. A job poll that dies during
a requested restart is the restart in flight, not a failure to toast.

Also fixed: updateT now asks i18next not to escape interpolated values, because
the console escapes at render time - the apply confirm dialog has been showing
branch names with / ever since they contained a slash, and the new banner
showed dates the same way.

Tests: 7 new console contract tests (36 total: banner, tick default, restart
confirm/refusal, watchdog 200-vs-401, timeout copy, the in-flight poll death) plus
handler tests for the stamp and the endpoint, all mutation-probed; docs describe
the pending-restart state and the self-recovery.
2026-10-07 22:53:32 +08:00
Sycun cbd8073beb feat: move the one-click update into the system settings menu
The update console stops being a page of its own and becomes the last section
of 系统设置 (data-section="update", gated by update:read): the sidebar entry
and page-system-update are gone, the console markup lives in
settings-section-update, and the settings menu is where an operator now finds
it. #system-update keeps working as an alias - both hash parsers normalize it
to settings + the update section - so existing deep links and docs keep landing.

Polling follows the new home: leaving the settings page (router) or switching
to another section (settings.js) stops it, selecting the section loads the
console, and returning to the settings page with the section still selected
re-reads the install tree and re-arms the poller (a frozen progress read is
the "nothing is happening" picture an operator must never be shown).

The guard suite follows the move: the old nav/page assertions become "must not
exist", the new ones pin the section, the alias, the poller handoff and the
retired nav.systemUpdate key (settings.nav.update replaces it in zh/EN/RU).
README and both developer/deployment guides say 系统设置 → 一键更新.
2026-10-07 22:52:56 +08:00
Sycun 27c1ff6573 feat: give the update source a page, and the adopt flow its preview
The console page grows an update-source section: what is in effect and where it
comes from (config.yaml or the tree's own tracking), an edit form for the three
fields, and - for a directory that is not a git installation - the adopt entry.
Adopt is preview-first: the plan lists what would be replaced and what would be
kept, the confirm dialog carries the counts, and the restart tick is the same one
an update uses. A refused save shows the server's own sentence (a remote name and
an address together, an ext:: address) instead of a generic failure, and the typed
values survive the failed save and the polling redraws.

zh/EN/RU dictionaries carry the 27 new keys; the console page's contract tests
grow to 29 (source rendering and save body, the refusal path, adopt gating by
installation kind, preview-then-confirm); docs/README describe choosing a source
and connecting an unpacked installation.
2026-10-07 12:49:15 +08:00
Sycun cb8bc6b824 feat: update this installation's own source in one action
An operator running a fork has no honest way to upgrade: upgrade.sh downloads the
Release tarball of one hard-coded third-party repository and rsyncs it over the
tree, so "upgrade" means "overwrite yourself with somebody else's code", and the
safe alternative is to pull by hand and remember the build command.

internal/update drives the remote the directory already tracks: fetch, fast-forward,
go build into .update-staging, atomic rename of the binary (the previous one kept as
cyberstrike-ai.prev), and a .update-state.json so a rollback has a target that is
not guessed at. Refusals are the point - local source edits and a diverged branch
stop with the file names and commit counts in the error rather than being reset to
match, and operator-owned content (roles/skills/tools/agents/data/config.yaml) is put
aside before the merge and restored over it, with what was kept listed in keptContent
instead of quietly dropped.

Consumers: GET/POST /api/system/update* behind update:read / update:apply (mutations
are process-global, so they need a global-scope session); a console page at
#system-update with an apply button that names why it is blocked, a job polled from
the server and a rollback control; the same three actions as -check-update / -update
/ -update-rollback on the binary; OpenAPI entries for all five endpoints. Permission
gating no longer re-enables a control a page disabled for a reason of its own
(data-state-disabled), which every state-disabled, permission-gated button in the
console was subject to. upgrade.sh becomes a thin shell over the same implementation
and only falls back to the tarball path for installs that are not git work trees.

Docs and the zh/EN/RU dictionaries are updated. The package runs 13 tests against
real temporary git repositories; the HTTP layer, RBAC and the console page each
carry their own contract tests.
2026-10-07 12:07:26 +08:00
Ed1s0nZ d2084a9481 test: verify workflow activity delivery and record bug audit results 2026-10-06 03:44:22 +08:00
Ed1s0nZ e081858df3 fix: close expired offline commands and serialize TCP dispatch 2026-10-06 03:41:37 +08:00
Ed1s0nZ 338dcdbc17 fix: authenticate individual HTTP sessions for tasks and files 2026-10-06 03:37:39 +08:00
Ed1s0nZ d9a111ff50 fix: verify listener ownership before accepting task file uploads 2026-10-06 03:29:20 +08:00
Ed1s0nZ 062fd30cd7 fix: respect limited scan goals and retain asset completion instructions 2026-10-06 03:26:31 +08:00
Ed1s0nZ 1b0d5ea49e fix: enforce configured workflow tool execution timeouts 2026-10-06 03:24:14 +08:00
Ed1s0nZ abbf7a19a8 fix: align conversation headings and truncate project badges 2026-10-06 03:19:55 +08:00
Ed1s0nZ 41365d4a4c fix: keep workflow labels inside node boundaries 2026-10-06 03:18:28 +08:00
Ed1s0nZ 38508e79a8 fix: keep list badges within table columns 2026-10-06 03:16:34 +08:00
Ed1s0nZ 9090e75a67 fix: retain cancellation labels after approval interruptions 2026-10-06 03:11:11 +08:00
Ed1s0nZ 054a77cdab fix: preserve task cancellation through final events 2026-10-06 03:09:04 +08:00
Ed1s0nZ 07066f9219 fix: show failed outcomes in finished batch queues 2026-10-06 03:05:25 +08:00
Ed1s0nZ 91c53ab451 fix: preserve nmap script arguments when selecting scan options 2026-10-06 03:03:45 +08:00
Ed1s0nZ 5dc9cb1541 fix: retain knowledge indexing errors and explain failure causes 2026-10-06 03:02:14 +08:00
Ed1s0nZ bb96a084e0 fix: keep related fact views in place and clarify import outcomes 2026-10-06 02:58:56 +08:00
Ed1s0nZ fa4e5ef4cb fix: validate callback hosts before generating payloads 2026-10-06 02:57:09 +08:00
Ed1s0nZ 7d6d3e77dc fix: restore listener edit actions and validate required fields 2026-10-06 02:54:27 +08:00
Ed1s0nZ ae395f5bf7 fix: localize asset exports and preserve import compatibility 2026-10-06 02:51:15 +08:00
Ed1s0nZ 05d7d9ec65 fix: explain password validation errors and support login preview 2026-10-06 02:49:17 +08:00
Ed1s0nZ 8550325dfe fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
Ed1s0nZ bdefa535b0 fix: validate form edits and enforce task result ownership 2026-10-06 02:20:28 +08:00
Ed1s0nZ ab17ffda87 fix: preserve shell output and clarify fact relationships 2026-10-06 02:12:28 +08:00
Ed1s0nZ 76da98944c fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
Ed1s0nZ 4a5b177947 fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
Ed1s0nZ 079ba0d2b3 fix: validate login and role inputs and protect task access 2026-10-06 01:36:31 +08:00
Ed1s0nZ 17498368f6 docs: record open-source bug sheet repair scope 2026-10-06 01:29:51 +08:00
Sycun 470eb5ead1
feat: add runtime storage cleanup with per-category retention (#310) (#313)
Runtime artifacts (agent workspaces, tool-output spill, C2 payloads, chat
uploads, workflow checkpoints, diagnostic logs) previously accumulated
without bound: most were only removed when a conversation or project was
deleted, and tmp/c2 plus workflow checkpoints were never removed at all.

Add a storage cleaner with named per-category tasks (Gitea-style), a
settings page tab, and a background sweep that is off by default so
upgrading never deletes existing data.

Safety properties, since mis-deleting live task data costs far more than
the disk saved:
- dry-run is the default; a real cleanup requires dry_run=false together
  with confirm=true at the API layer, not just a frontend dialog
- sessions active within active_grace_hours are always skipped, and a
  failed activity lookup skips conservatively (fail closed)
- directories whose conversation/project no longer exists are reclaimed
  as orphans after orphan_grace_days
- scanners never follow symlinks and every candidate path is confined to
  its category root; deletion renames to a .tmp-for-deletion marker first
  so a crash leaves recoverable residue instead of a half-deleted dir
- storage:* permissions are admin-only; without the grantSystemRolePermissions
  skip the default branch would have given operators an irreversible
  file-deletion right

Also fix two confirmed leaks: DeleteConversation left chat_uploads files
on disk (their rows already vanished via ON DELETE CASCADE), and workflow
checkpoints had no deletion path at all.

Co-authored-by: Parallels <parallels@kali-linux-2025-2.localdomain>
2026-09-25 14:46:23 +08:00
Ed1s0nZ 38b96ec67a feat: add TypeSafe Jev as HITL audit backend
Let audit_agent approve or reject with one System One call instead of chat JSON, while keeping the OpenAI-compatible backend as an option.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 21:15:53 +08:00
Ed1s0nZ 3aa9274675 fix: make Eino exit and transfer work on AgenticMessage state
Official ExitTool still writes classic Message react state, which breaks supervisor delivery on the Agentic path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 10:44:34 +08:00
Ed1s0nZ f7882be546 feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
Ed1s0nZ 94cdf760af feat: persist diagnostic logs with daily rotation and retention 2026-09-08 14:41:46 +08:00
Ed1s0nZ 6ad9ea2d13 feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
temp c70da22de7 Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
公明 1f66b93866
Add files via upload 2026-08-18 20:41:19 +08:00
RuoJi6 910d07ea0a
docs(hitl): remove stale asm_list_resources references (#259) 2026-08-17 17:19:16 +08:00
RuoJi6 f30a9de01d
feat(hitl): expand safe read-only tool allowlist (#258) 2026-08-17 15:50:32 +08:00
公明 c477c5507a
Add files via upload 2026-08-15 01:28:58 +08:00
公明 5c643a1606
Add files via upload 2026-07-31 21:06:22 +08:00
公明 59dc7cf858
Add files via upload 2026-07-28 18:17:47 +08:00
公明 7b6f56e476
Add files via upload 2026-07-24 16:43:01 +08:00
公明 f5d580bbf0
Add files via upload 2026-07-23 20:17:17 +08:00
公明 f285d47404
Add files via upload 2026-07-23 19:14:09 +08:00
公明 6892156b7c
Add files via upload 2026-07-22 13:36:39 +08:00
公明 25ceeb2535
Add files via upload 2026-07-21 23:48:53 +08:00
公明 c4a56c1ada
Add files via upload 2026-07-21 21:04:53 +08:00
公明 ef2c3474fe
Add files via upload 2026-07-20 16:54:50 +08:00
公明 c915abf310
Add files via upload 2026-07-17 17:17:10 +08:00
公明 4349742b12
Add files via upload 2026-07-16 21:37:30 +08:00
公明 2147623543
Add files via upload 2026-07-16 19:28:39 +08:00
公明 d0609bcc49
Delete docs/superpowers directory 2026-07-15 10:43:30 +08:00
公明 a1925f2e03
Add files via upload 2026-07-14 15:14:09 +08:00
公明 95909ce999
Add files via upload 2026-07-14 11:49:40 +08:00
chenchen acfacfe1b3
feat(工作流):支持本地图编排策略包导入导出 (#195)
* docs: define local workflow package mvp

* docs: fix workflow package api contract

* feat: add local workflow package mvp

* feat(workflow): add package API client

* feat(workflow): add package import interface

* feat(workflow): connect package import flow

* fix(workflow): map package validation errors

* fix(workflow): handle import key generation errors

* feat(workflow): localize package import states

* fix(workflow): reset package import modal on open

---------

Co-authored-by: ruanmingchen <“ruanm@chenchen”>
2026-07-14 11:28:37 +08:00
公明 a64c18df6d
Add files via upload 2026-07-13 17:12:48 +08:00
公明 23ec222b77
Add files via upload 2026-07-13 16:53:08 +08:00
公明 1cf10981ef
Add files via upload 2026-07-11 11:30:50 +08:00
公明 c33e5f2026
Add files via upload 2026-07-10 21:35:49 +08:00
公明 a59084b8ae
Add files via upload 2026-07-08 14:21:10 +08:00
公明 00802a275c
Add files via upload 2026-07-07 14:04:18 +08:00
公明 3dfcde7c88
Delete docs directory 2026-07-07 14:02:14 +08:00
公明 60ba6b8eb3
Add files via upload 2026-07-07 11:48:53 +08:00
公明 c107c77619
Add files via upload 2026-07-06 16:27:34 +08:00
公明 ecc75ee326
Add files via upload 2026-07-06 13:55:51 +08:00
公明 0aa402f89c
Add files via upload 2026-07-06 11:47:09 +08:00
公明 a3739210e4
Add files via upload 2026-07-03 17:10:03 +08:00
公明 926491b746
Add files via upload 2026-07-02 12:08:14 +08:00
公明 679a8192ae
Add files via upload 2026-06-04 13:34:26 +08:00
公明 9a3f5e54b0
Add files via upload 2026-06-04 10:54:16 +08:00
公明 3a401ade68
Add files via upload 2026-06-03 17:08:59 +08:00
公明 7db0294d5c
Add files via upload 2026-06-02 13:38:16 +08:00
公明 e664aaccfe
Add files via upload 2026-04-22 13:50:50 +08:00
公明 c801a97add
Add files via upload 2026-04-21 01:24:01 +08:00
公明 1f570892d8
Add files via upload 2026-04-19 03:28:06 +08:00
公明 0329a0bed2
Add files via upload 2026-03-23 22:35:15 +08:00
公明 cd5190362f
Add files via upload 2026-03-16 23:48:12 +08:00
公明 7b1487383f
Add files via upload 2026-03-09 02:06:39 +08:00
公明 7c01641de9
Add files via upload 2026-03-08 04:01:33 +08:00
公明 74738ee555
Add files via upload 2026-03-01 13:35:11 +08:00
公明 ad96be3c64
Add files via upload 2026-02-28 23:31:17 +08:00
公明 3534a956b2
Add files via upload 2026-02-28 23:03:09 +08:00
公明 3e61b77b9c
Add files via upload 2026-02-28 00:30:53 +08:00
公明 426b0e282e
Add files via upload 2026-02-28 00:27:09 +08:00