rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:oday0311/open-dsh-market
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
cctor-dsh-marketplace is an installable DeepSeek Harness (DSH) bundle. It uses https://api.cctor.com as its dynamic catalog and ships both a native marketplace UI and model-facing Agent tools. The UI and tools share one Host service, one persistent cache, one installed-state reader, and one installation coordinator.
The current version is 0.1.0. v1 covers discovery, details, installed-state display, and installation that always requires an explicit user confirmation. It does not update, disable, or remove plugins, and it does not install into another profile.
| Tool | Purpose | Key constraints |
|---|---|---|
cctor_search_plugins |
Search the catalog and return plugin summaries, pagination, and cache freshness | Default 10 results, at most 20 per call; returns an opaque next_cursor; never returns README or install_command; never installs |
cctor_get_plugin_details |
Read public details, verification state, and current-profile installed state by stable ID or exact slug | Slug resolution must be unique; no match returns not_found, multiple matches return ambiguous_plugin; a stable ID goes directly to the detail endpoint |
cctor_request_plugin_install |
Prepare a single-use installation confirmation for the current profile | Returns only awaiting_confirmation, confirmation ID, expiry, target profile, route, and safe spec; the tool cannot approve or execute its own request |
Tool outputs have per-field caps and a 64 KiB total budget. Cache internals, stacks, paths, and request headers never enter model context.
Agent tools ─┐
├─ CctorMarketplaceService ── CCTor API (list / meta / detail)
Web Client ──┘ │
(via same-origin API) ├─ Storage Domain (plugin-owned persistent cache)
└─ Plugin Manager (installs only into the current profile)
/api/cctor-marketplace/rpc route registered with connection; Agent tools and the retained Typert Remote share the same Host service.storageDomain, pluginManager, profileContext, typert, and tools services as required injections. If the runtime module cannot be imported or Host composition fails, the guarded entry logs one bounded compatibility diagnostic and stays inert rather than breaking the whole plugin tree.Requirements: Node.js >= 22; DSH >= 0.2.1-rc.5 < 0.3.0 (see engines in package.json; peer dependencies are supplied by the DSH runtime).
dsh plugin --profile <name> add cctor-dsh-marketplace
Replace <name> with the target profile, then restart DSH when prompted.
dsh plugin --profile <name> list cctor-dsh-marketplace --depth 0
The output should list cctor-dsh-marketplace and its installed version.
dsh plugin --profile <name> update cctor-dsh-marketplace --latest
Restart DSH after the upgrade.
dsh plugin --profile <name> remove cctor-dsh-marketplace
Restart DSH after removal.
These management commands operate on the marketplace bundle itself; the UI's v1 limitation applies to plugins discovered inside the marketplace.
pnpm install
pnpm build
dsh plugin --profile <name> add /absolute/path/to/cctor-dsh-marketplace
The Plugin Manager validates the bundle metadata and compatibility and records the path as a link: dependency. Use an absolute path. Version 0.1.0 is published to the public npm registry. Post-publication validation installed the exact registry version, installed it into an owned cctor-release-validation profile through the DeepSeek Harness 0.2.2-rc.1 bundled CLI, composed its configuration, and moved that profile to Trash. Three existing profiles' direct manifest fingerprints stayed unchanged; this does not establish whole-profile filesystem equality.
The bundle's config is defined with Schemastery and passed through DSH's plugin configuration. The fields are equivalent to:
{
"apiBaseUrl": "https://api.cctor.com",
"requestTimeoutMs": 15000
}
| Field | Default | Meaning |
|---|---|---|
apiBaseUrl |
https://api.cctor.com |
Must be a root origin. Production requires HTTPS; HTTP is allowed only for the literal hosts localhost and 127.0.0.1, for local development. URL userinfo, paths, query strings, and fragments are rejected. |
requestTimeoutMs |
15000 |
Per-request catalog timeout, as a positive integer number of milliseconds. |
The toolbar's "Reset cache" control clears only this plugin's private cache domain. It does not touch other Storage Domains or installed state.
stale but still rendered immediately while a background refresh runs.possiblyOutdated, is never presented as live, and is eventually evicted by the LRU.offline / timeout error with Retry.Install anyway (仍要安装 in Chinese). No extra checkbox or second confirmation step is required.github:owner/repo. For github+npm records, npm is preferred. Blank or missing package_name / version is treated exactly like null.install_command is display data only and is never executed. Runtime source under src/ imports no child_process, builds no shell command, and never treats the API-provided command as executable input.install_busy.pluginManager.installBundle. It spawns no dsh process, writes no other profile, offers no profile picker, and has no defaultProfile setting. The route is always plugin-manager.See design §15.1. The packaged Desktop runtime and the dsh on PATH can be different DSH generations. ProfileContext.packageManager exists precisely because packaged applications supply a bundled runtime instead of relying on a PATH executable. The current profile is also the only profile whose facts the Host can observe and whose mutation the Plugin Manager can validate end to end. The cross-profile CLI route, profile picker, and desktop exception path are deferred to v1.1.
Observed against the production catalog on 2026-11-04 (7,567 public records; sample of 200):
verified was false for every sampled record, and featured was also always false. Unverified is the normal path, so the unverified warning is routine, not exceptional.readme; detail responses are frequently empty too.package_name and version appear only on github+npm records (58 of 200); github records carry neither.github:owner/repo and repo:owner/name. Both are accepted, and neither is re-derived from repository.The UI therefore renders explicit empty states: a missing README shows the localized "This plugin provides no README." instead of an empty block, and a missing version or license shows "Unknown". These are expected catalog states, not load failures. API-supplied plugin names, descriptions, READMEs, and repository metadata remain unchanged.
The bundle depends on the existing GET /market/plugins and GET /market/plugins/meta endpoints, plus the deployed exact-detail endpoint:
GET /market/plugins/detail?id=github%3Aowner%2Frepository
The endpoint was verified live on 2026-11-04 (200 with readme, verified, and featured; 400 for an empty id; 404 for an unknown id; CORS and Cache-Control: public, max-age=60, s-maxage=300 on the response). The separate read-only pnpm verify:live-api check passed again on 2026-11-06 for list, metadata, stable-ID detail, and an unknown ID; it does not recheck every historical HTTP/CORS/cache-header assertion above. The detail API implementation plan belongs to the external API repository; this repository validates only the deployed read-only contract.
Contract summary:
id query parameter is accepted. Stable IDs can contain /, so the value must be URL-encoded.readme, verified, and featured fields. It must not return moderation, synchronization, credential, or internal provenance fields.400 {"error":"invalid_plugin_id"}404 {"error":"plugin_not_found"} (unknown or inactive)405 {"error":"method_not_allowed"}502 {"error":"database_error"} (without leaking database details)/market/plugins/<segment> route.The Host maps network, timeout, invalid-response, not-found, slug ambiguity, install-busy, confirmation-expired, source-changed, invalid-profile, incompatible, and install-failed failures to stable public codes with a recovery action where one exists.
Latest full automated gate results in this repository (2026-11-06):
| Check | Result |
|---|---|
pnpm typecheck |
Passed (Host and Client tsconfigs) |
pnpm build |
Passed; produced lib/index.js, lib/plugin.js, lib/client.js, declarations, and sourcemaps |
pnpm test |
348 Node tests passed, 0 failed, 0 skipped |
pnpm test:e2e |
16 tests passed (15 desktop + 1 @narrow), covering 1440×900, 1024×768, and 390×844; zero pixel differences across nine baselines |
pnpm verify:package |
npm dry-run preview passed: 48 entries, both READMEs, the MIT license, the changelog, and required runtime artifacts; no tarball generated or published |
pnpm verify:release |
Deterministic aggregate of type checks, build, Node tests, Playwright, and package preview passed |
pnpm verify:live-api |
Separate networked read-only check passed: 1 list result, 7,567 total records, detail github:morluto/rea, unknown ID not_found |
| Forbidden-pattern scan | No runtime execution of catalog commands; matches are only README safety text and the npm-preview script's child_process import |
The 348 Node tests cover Client HTTP transport/store/locale/UI, Host routes and services, cache/install/catalog/profile behavior, entry/build contracts, real DSH Loader composition, package contents, the live verifier, and owned validation-profile lifecycle protections. They cover HTTP request validation, error envelopes, cache TTL/LRU/schema version/atomic replacement, slug resolution, install-spec allowlisting, confirmation expiry and source changes, revision refresh after loading more pages, tool output bounds, and the Client HTTP route contract.
What these results prove, and what they do not:
compatibleVersions, and backup semantics are out of scope.lib/client.js artifact, workflows, and layout with a fake shell and fake Host HTTP route. It does not prove the packaged shell's live seats, real module table, style variables, or the production Connection carrier round trip.pnpm build must run before pnpm test: test/integration/loader.test.ts has an mtime-based freshness guard that fails fast when artifacts are missing or older than the newest src/ file.--update-snapshots; that is a platform baseline change, not a UI change.open -na ... --args --profile cctor-release-validation returned 0 but started no validation Host; only the existing desktop Host remained. Read-only inspection found a fixed profiles/desktop path and a single-instance lock. Native automation returned no UI state, and no UI interaction occurred. The linked-peer warning remains unvalidated in the real Desktop runtime.0.1.0: the 2026-11-05 Typert mount issue was addressed by using the same-origin Connection HTTP route and passes automated tests. Real Desktop list, search, details, bilingual copy, confirmation, cancellation, and route diagnostics remain unexecuted. This is an accepted first-release risk and no longer blocks 0.1.0, but it does not establish that the real Desktop UI passed acceptance. See the acceptance record.cctor-dsh-marketplace@0.1.0 was published and passed npm and bundled-CLI installation checks; no catalog plugin was installed and no API was deployed.The nine screenshots below come from the Task 9 Playwright harness and were each inspected with the image reader. The harness bar is hidden, Date.now is frozen at 2026-11-04T12:05:00Z, and the data is a deterministic fixture rather than the production catalog. Dates, counts, and plugin names in these images demonstrate layout only.
| List | Detail | Confirmation |
|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
What I actually confirmed in these images:
web, route "Plugin Manager", package @cctor-lab/alpha-tool@1.2.3, command preview, the expiry date/time (12:10 on 2026-11-04), and Cancel / "Install anyway" actions. The command preview wraps to two lines.These are pixel baselines (maxDiffPixels: 0, threshold: 0) that guard against layout regressions. They are not acceptance screenshots of the real DSH desktop shell.
pnpm install
pnpm verify:release # type checks, build, 348 Node tests, 16 Playwright tests, package preview
pnpm verify:live-api # explicit networked read-only check, outside the deterministic gate
Re-run Playwright after changing the Client; re-run pnpm build after changing src/. Playwright's webServer builds the harness assets itself and listens on 127.0.0.1:4517; it requires lib/client.js to exist.
defaultProfile.install_command; no shell or dsh subprocess.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。