Commit Graph
45 Commits
Author SHA1 Message Date
gitea 4bee160086 Remove Homebrew integration and tap promotion 2026-10-12 13:16:51 +08:00
gitea 45011c8333 Add built-in read-only Langfuse trace domain 2026-10-10 09:57:20 +08:00
gitea 8155c1ebb7 Drive linter exposure from a manifest and drop the cwd linter dir
- checker implementations move to linter/checkers/, eliminating the builtin/strict/hlab + index + types files sitting flat in linter/
- manifest.ts is the single source of truth for which official linters exist and which are plaintext-exposed (plaintext flag)
- plaintext.generated.ts replaces the hand-maintained official-templates.ts (580 lines): generated from checkers/ by scripts/generate-linter-plaintext.mjs, refreshed by bump-version, guarded in CI by verify:linter-plaintext
- loader is manifest-driven (list, resolve, aliases); cwd linter loading is removed - custom linters resolve only from ~/.config/seal-use/linters/
2026-09-30 17:05:43 +08:00
gitea 54895e5095 Remove the local HTTP adapter, service daemon, and OpenAPI contract 2026-09-30 15:24:19 +08:00
gitea 28b4ac1412 Remove the MCP bundle from the plugin; ship skills only
The plugin's MCP surface (dist/mcp/server.js, ~9.8MB) was never turned on
(the enable_mcp default was false, README says most users do not need it) and
its only consumer was .zcode-plugin's .mcp.json. Meanwhile every source change
had to rebuild and re-commit a fresh 9.8MB minified version — 129 versions,
~556MB of blob history — for a tool nobody used.

What goes away:
- .mcp.json, dist/mcp/server.js, scripts/build-plugin.mjs, the `build:plugin`
  script, and the CI "Build MCP Plugin & Verify" step (and its bundle gate).
- plugin.json drops `mcpServers` and the `enable_mcp` userConfig: the plugin
  now ships skills only.
- bump-version and the PR template stop rebuilding/reminding about the bundle.

What stays:
- The local MCP: `seal-use mcp` runs the stdio server from source/the binary,
  and `seal-use mcp-config` still prints the snippet for Cursor/Claude
  Desktop/Codex. src/server.ts keeps its in-process tests (6/6) — only the
  "boot the packaged bundle" test is dropped, since there is no artifact.
- The embedded skill images in the compiled binary: build:binary still runs
  generate-embedded-skill, so `seal-use skill install` writes all 6 real PNGs
  (verified: 22 files, valid PNG signatures).

Docs updated (README, AGENTS, issue-pr rule, PR template, SKILL.md) so no
reference to dist/mcp or build:plugin remains outside historical proposals
and CHANGELOG.
2026-09-29 23:08:48 +08:00
gitea 7ceb200aac Adopt oxlint with a zero-warning CI gate
The repo had no linter: style and hygiene were convention-only, and the
dead-symbol cleanup needed for noUnusedLocals was invisible until tsc was
reconfigured. Pin oxlint 1.86.0 as a devDependency, add `bun run lint`, and
run it in CI right after the type check. The codebase is at zero warnings,
and AGENTS.md documents the new gate.
2026-09-29 22:05:39 +08:00
yunyingk f8e083f3b2 Fix security scan findings: confirm gate, exit codes, redaction, CI tag env (#180)
- Gate rules push behind --yes at CLI and domain layers (fail-closed on
  dryRun=false without confirm)
- Raise webhook replay partial failure as CliError so exit 1 survives
  cli.ts exitCode overwrite; route webhook stdout through printJson for
  exit-12 protection and --output-file support
- Narrow MCP read-only allowlist: drop config mode/lint (write forms are
  indistinguishable under token-prefix matching; config get covers reads)
- Extract redactSensitiveText to core, extend credential patterns, apply
  to HTTP sendError/500 and domain error messages
- Pass release TAG_NAME via env instead of inline ${{ }} interpolation
  to close script injection through crafted tag names
- Track .zcodeignore so enterprise credential exclusions travel with the
  repo
- Add .agents/rules/security-posture.md documenting usability-first
  accepted risks (loopback adapter auth, update verification, mutation
  command gates, skill dump stdout); register skill dump as a documented
  stdout Markdown exception in AGENTS.md and cli-protocol.md
- Rebuild dist/mcp/server.js
2026-09-24 22:02:24 +08:00
gitea 51fe71b17b Refine release promotion infrastructure 2026-09-23 09:43:52 +08:00
gitea b52618a642 Handle missing Gitea releases 2026-09-21 18:40:12 +08:00
gitea 303ecd0fbf Harden release mirror workflow 2026-09-21 18:37:00 +08:00
gitea 0bfad43bc3 Add release automation script and Homebrew-aware update dispatch 2026-09-20 16:54:16 +08:00
yunyingk 68a858b4b9 ci: decouple update-brew-tap from slow gitea full mirror (#151)
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Has been cancelled
2026-09-20 15:51:13 +08:00
gitea 7bbddd7aba ci: add automated homebrew-tap update on release and docs in skill 2026-09-19 10:40:29 +08:00
gitea ad40bdabb3 Remove the Dependabot config 2026-09-16 09:40:25 +08:00
gitea 6b2e0f7463 Guard releases on the tag being merged to main 2026-09-15 17:40:46 +08:00
gitea 6509a1c535 Drop the master branch trigger now that the branch is gone
ci.yml triggered on push/pull_request for both main and master. master does
not exist on the remote (GitHub's default is main, and the stale remote branch
was deleted), so that filter could never match.

Left alone deliberately: AGENTS.md and bump-version.ts referring to
codex/release-vX.Y.Z, which describe the naming pattern for future release
branches rather than a specific existing one.
2026-09-15 16:45:57 +08:00
gitea d0acb02e4b Pin bun-version and gate dist/mcp/server.js freshness
The committed MCP bundle is the only thing that ships, but nothing checked
that it matched src/. The gate could not be added while CI ran
'bun-version: latest': that resolved to 1.4.2, and the minifier allocates
identifiers differently across Bun releases, so the runner rebuilt the
macOS/1.3.14-built bundle into different bytes — identical code, renamed
variables (N/S, A/I, q/p). Measured on #116.

Pin bun-version to 1.3.14 in both workflows, matching the local toolchain and
the @types/bun/bun-types already declared in package.json, then add the diff
gate alongside the existing boot check.

The boot check stays: a bundle that cannot start is invisible to a byte diff
when it is in sync with its broken source, which is exactly how #114 shipped.
2026-09-15 16:21:01 +08:00
gitea 8a032f02d1 Drop the byte-diff gate; keep booting the freshly built bundle
CI disproved the freshness gate on the first run: an ubuntu rebuild of the
macOS-built committed dist/mcp/server.js differs, and the diff is entirely
minified identifier renaming (N->S, A->I, q->p) with identical code. The
minifier does not allocate names reproducibly across platforms and Bun
versions, so a byte-for-byte gate cannot work here without pinning the
toolchain and matching runners.

Keep the check that does hold: boot the freshly built bundle and complete an
MCP handshake. Booting is what #114 actually needed — the byte diff would not
have caught that bug either, since the broken bundle was in sync with its
broken source.
2026-09-15 16:07:41 +08:00
gitea b0bad7e33d Add CI gate for dist/mcp/server.js freshness
The committed bundle is the only thing that ships, but CI only checked that
it compiled — never that it matched src/, and never that it could start.

- Fail when a fresh build differs from the committed dist/mcp/server.js,
  mirroring the existing dist/openapi.json gate, with the same actionable
  error. This is viable now: the bundle is byte-reproducible with the current
  toolchain (a rebuild of the committed file is byte-identical). Before the
  #114 rebuild it was not, which is why this was previously left out.
- Keep booting the freshly built bundle through a handshake, since a bundle
  that cannot start is invisible to source-level tests.
2026-09-15 16:04:56 +08:00
gitea 758c26354a Split the MCP passthrough into read-only and write tools
seal_cli could reach every CLI command, so its tool annotations had to be
all-or-nothing: destructiveHint true on a tool that mostly reads, which meant
clients could not auto-approve anything, and there was no way to gate the
mutating minority. Split it in two:

- seal_cli      read-only, readOnlyHint true / destructiveHint false.
- seal_cli_write mutations, publishing, credential minting, self-update and
                server commands; destructiveHint true.

The boundary is enforced rather than advertised. seal_cli runs only commands
on an explicit allow-list (84 entries, src/cli/read-only.ts) and fails closed
on anything unclassified, including commands added to the CLI later. Matching
reuses the CLI's own parseArgs and compares whole tokens, so a read prefix
cannot smuggle a mutation (corps listing is refused) and a bare allow-listed
command does not cover its subcommands. Refusals name seal_cli_write.

Deliberately excluded from the read-only set even though they look harmless:
anything writing local config (corps switch, config test-dir), minting or
printing credentials (auth keys, corps extract-keys), self-updating (update),
or standing up a long-running server (http, mcp, service run). seal-use
tool <name> is excluded too, since the 98-entry internal tool registry is not
itself classified.

A test asserts every allow-listed command still exists in the help registry,
so the list cannot silently rot.

Also, per the note that MCP is an optional, default-off path, the skill now
says so explicitly: the CLI is primary, a missing seal_cli* tool is the normal
default rather than a fault, and enabling it is the user's choice in the plugin
settings. Corrected skill docs that presented internal tool-registry names
(seal_webhook_get, seal_webhook_update, ...) as if they were MCP tools; the MCP
server exposes only the two seal_cli* tools.

CI: the MCP build step now boots the freshly built bundle and completes a
handshake, instead of only checking that it compiles. A bundle that cannot
start is invisible to source-level tests, which is how the previous unbootable
entry point shipped. No byte-for-byte dist diff gate here: the committed
bundle is not byte-reproducible with the current toolchain (~186 lines of drift
rebuilding the unmodified release commit), and such a gate would not have
caught that bug anyway, since the broken bundle was in sync with its source.
2026-09-15 16:02:03 +08:00
gitea f5772c6053 Increase Gitea sync timeout to 60 minutes for high payload uploads 2026-09-15 11:10:58 +08:00
gitea f027d65856 Fix release workflow quota resilience and add bump-version workspace guardrails 2026-09-15 11:07:56 +08:00
gitea bc6209749b Fix Gitea release fallback when artifact quota is full 2026-09-11 10:42:56 +08:00
gitea e3e49d729e ci(release): update GITEA_REPO to gitea/seal-use 2026-09-02 16:40:25 +08:00
gitea 8e9141953d Release v0.10.1: standardize main branch, rename repo to seal-use, and optimize release pipeline 2026-09-02 16:18:54 +08:00
gitea e2f99218e0 refactor(release): decouple gitea sync into independent job with supreme priority for darwin-arm64 archive 2026-09-02 16:10:08 +08:00
gitea b617b769ea refactor(release): tier gitea uploads with archive priority, serial stability, and non-blocking error handling 2026-09-02 16:05:49 +08:00
gitea 70367cc058 fix(release): correct gitea and github repository paths in update and release workflows 2026-09-02 15:46:08 +08:00
gitea 068637c667 feat: rebrand seal-home to seal-use with self-healing upgrade and backward compatibility (v0.10.0) (#15) 2026-09-02 15:42:25 +08:00
gitea 2a14849bfc Avoid Gitea asset download checks 2026-09-01 15:24:49 +08:00
gitea a72a9de08f Fix Gitea release asset deletion path 2026-09-01 15:16:41 +08:00
gitea 524a0b57dd Harden release publishing workflow 2026-09-01 15:08:49 +08:00
gitea 26e3bc631d ci: ensure build:plugin step verifies build execution without cross-platform whitespace drift
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Has been cancelled
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-27 16:16:00 +08:00
gitea 7bc98389eb Release v0.9.5: Optimize CI/CD pipelines, enable parallel builds, and add SHA-256 checksums
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Has been cancelled
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-27 16:10:50 +08:00
gitea 191e67957d Optimize release upload and ensure bump script syncs global skill directory
🧪 CI / 🧪 Test & Type-Check (push) Has been cancelled
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-26 16:27:39 +08:00
gitea d5eae55a40 Refactor CI and Release workflows into dedicated distinct pipelines
🧪 CI / 🧪 Test & Type-Check (push) Has been cancelled
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-26 16:12:44 +08:00
gitea 771ecf7236 Fix Gitea multipart asset upload header in CI workflow
Binaries / Build & Release Binaries (push) Has been cancelled
2026-08-25 16:28:39 +08:00
gitea 887d7f0a74 Fix syntax in binaries.yml GitHub release step
Binaries / Build & Release Binaries (push) Has been cancelled
2026-08-25 16:26:11 +08:00
gitea d29f9413c9 Add automatic Gitea release and asset publishing step to GitHub Actions
Binaries / Build & Release Binaries (push) Has been cancelled
2026-08-25 16:22:16 +08:00
gitea d3fe4c1d84 Add CHANGELOG.md and enhance GitHub Actions to extract tag annotations and auto-generate release notes
Binaries / Build & Release Binaries (push) Has been cancelled
2026-08-25 15:51:48 +08:00
gitea a7b09e8d9b Optimize release workflow to single-job Bun cross-compilation
Binaries / Build & Release Binaries (push) Has been cancelled
2026-08-25 14:27:01 +08:00
gitea ce06d8f600 Add GitHub Release self-update support for standalone binary 2026-08-25 13:54:29 +08:00
gitea eeba2a4ea4 Fix release asset upload repo context
Binaries / Verify (push) Has been cancelled
Binaries / Build linux-x64 (push) Has been cancelled
Binaries / Build macos-arm64 (push) Has been cancelled
Binaries / Build windows-x64 (push) Has been cancelled
Binaries / Publish release assets (push) Has been cancelled
2026-06-13 17:47:17 +08:00
gitea 1d242c14e6 Release seal-home 0.3.3
Binaries / Build linux-x64 (push) Has been cancelled
Binaries / Build macos-arm64 (push) Has been cancelled
Binaries / Build windows-x64 (push) Has been cancelled
Binaries / Publish release assets (push) Has been cancelled
Binaries / Verify (push) Has been cancelled
2026-06-13 17:43:23 +08:00
gitea 2e1d9b33c1 Add binary build workflow
Binaries / Verify (push) Has been cancelled
Binaries / Build linux-x64 (push) Has been cancelled
Binaries / Build macos-arm64 (push) Has been cancelled
Binaries / Build windows-x64 (push) Has been cancelled
Binaries / Publish release assets (push) Has been cancelled
2026-06-13 17:27:39 +08:00