dshbase

插件目录 / Developer / kurenai

kurenai

未验证 kurenai-studio

✓ 持续维护 基于 3 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

2Stars
2Forks
0未关闭 issue
语言
2026-08-17最近推送
跨平台平台

功能简介

DSH-native Cocos vibe coding studio with headless preview and runtime inspector

我们的评价
未验证 — 尚未实测

DSH-native Cocos vibe coding studio with headless preview and runtime inspector 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

Kurenai Studio

DSH-native Cocos vibe coding: chat beside a live Headless Cocos preview, inspect
the runtime scene tree, click a node, and use that selection as precise agent
context.

Status: working MVP. Kurenai directly uses each DSH session's workspace
directory as its Cocos project root.

Product loop

Click a node in the preview
  → Kurenai Inspector resolves node/path/components
  → selection becomes DSH chat context
  → agent edits the Cocos project on disk
  → Headless Cocos compiles and HMR refreshes the iframe

Kurenai intentionally edits source files rather than mutating only the browser
runtime, so changes survive reload and remain reviewable.

Workspace workflow

Kurenai does not maintain an independent project registry.

  • New project — create/open an empty DSH Workspace, then choose the
    base-ai 2D template or base-ai-3d template from the supplied
    headless-cocos checkout.
  • Existing project — open the Cocos project directory as a DSH Workspace;
    Kurenai detects it from package.json and starts the preview.
  • Continue work — reopen the existing DSH Workspace/session. DSH remains
    the source of truth for project paths, recent workspaces and conversations.

Repository surfaces

  • src/index.ts — DSH host plugin and preview lifecycle tools.
  • src/preview/controller.ts — starts/stops an external Headless Cocos checkout.
  • src/project/ — current-DSH-workspace detection, initialization and local
    preview control API.
  • src/client/ — DSH shell overlay that splits chat on the left from the
    preview/Inspector workspace on the right.
  • src/inspector-runtime/ — browser runtime for scene tree, selection and
    initial 2D UI hit testing.
  • src/shared/protocol.ts — versioned postMessage contract between iframe and
    DSH.

Current DSH tools

  • kurenai_project_initialize
  • kurenai_project_current
  • kurenai_preview_start
  • kurenai_preview_status
  • kurenai_preview_stop

Development

npm install
npm run check

Install a development build into a DSH profile after building:

dsh plugin --profile <profile> add <absolute-path-to-this-repo>

Configure the generated Cordis row with the Cocos project and a local
headless-cocos checkout:

- id: kurenai
  name: "@kurenai-studio/dsh-plugin-kurenai"
  config:
    port: 7460
    controlPort: 7459

Point to the Headless Cocos stack through KURENAI_HEADLESS_ROOT. The project
path is always read from the active DSH session cwd.

The runtime kit and Cocos engine binaries are deliberately not distributed by
this repository. Follow the Headless Cocos runtime-kit instructions and Cocos
licensing requirements.

MVP limitations

  • DSH does not expose a native center-split slot. Kurenai mounts through the
    additive shell.overlay slot and temporarily reserves right-side frame
    padding while open, preserving the original conversation and composer.
  • Selecting a node can copy a structured context block. Direct insertion into
    the active DSH composer still needs a supported conversation API adapter.
  • Initial canvas picking targets 2D UITransform bounds. Camera-aware 3D
    raycasting and complex multi-camera scenes are not implemented.

License

Kurenai source code is MIT licensed. Cocos Creator engine snapshots, packer
binaries and other vendor assets are not part of this repository and remain
under their respective licenses.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 kurenai」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:kurenai-studio/kurenai

Headless(CLI)profile:

dsh plugin --profile headless add github:kurenai-studio/kurenai

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7789 个插件 →