cordis-plugin-sofagent-daemon
7×24 巡检 + 健康监测 + webhook 推送(seam: non-seam:host-process)——桥接 @sofagent/daemon startCron——DSH(DeepSeek Harness)cordis plugin。sofagent 约束层在 DeepSeek Harness 生态的插件形态。
Install
npx skills add https://github.com/KongFangXun/sofagent/tree/main/engine/dsh-plugins/cordis-plugin-sofagent-daemon
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install kongfangxun-sofagent@llmmart
git clone https://github.com/KongFangXun/sofagent.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole kongfangxun/sofagent collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
cordis-plugin-sofagent-daemon
7×24 巡检 + 健康监测 + webhook 推送(seam: non-seam:host-process)——桥接 @sofagent/daemon startCron
用途
装上之后:在宿主之外起独立进程做 7×24 巡检 + 健康监测 + webhook 推送。什么时候用:需要「没人盯着也在跑」的持续巡检与告警。
接入点(seam: non-seam:host-process):桥接 @sofagent/daemon,缺依赖时该能力静默跳过;接入形态(声明 / 实现)见 SEAMS.md。
本插件随 sofagent 主线版本发布(SkillHub 通道:skillhub install cordis-plugin-sofagent-daemon 安装与检索;npm 通道未开通)。版本号与 sofagent 主线对齐。
相关链接
- sofagent 主仓:https://github.com/KongFangXun/sofagent
- 开发日志:docs/changelog/v1.4/v1.4.0.md(DSH 插件家族)
Files (sofagent)
-
src
-
index.test.ts 991 B
// ============================================================ // cordis-plugin-daemon · 插件单测(v1.4.0 交付五) // ============================================================ import { describe, it, expect } from 'vitest'; import { pluginMeta, capability, invoke } from './index'; describe('cordis-plugin-sofagent-daemon', () => { it('插件元数据完整(id/version/description/seam)', () => { expect(pluginMeta.id).toBe('cordis-plugin-sofagent-daemon'); expect(pluginMeta.version).toBe(require('../package.json').version); // SSOT 对齐:版本跟随主版本(读 package.json) expect(pluginMeta.description.length).toBeGreaterThan(10); expect(pluginMeta.seam.length).toBeGreaterThan(0); }); it('能力说明非空', () => { expect(capability.length).toBeGreaterThan(0); }); it('invoke 可调用(成功或降级,不挂死)', async () => { const r = await invoke().catch((e) => e); expect(r).toBeDefined(); }); }); -
index.ts 1.5 KB
// cordis-plugin-sofagent-daemon · DSH 反向插件(v1.5.2:98 行样板收敛到 @sofagent/dsh-plugin-kit) // seam 挂载:non-seam:host-process # 语义:非宿主事件接入(独立调度进程)——7×24 巡检不走宿主事件循环 // 清单生成源 = engine/dsh-plugins/plugins.json(生成 package.json 的 description/sofagent/dsh 段与 cordis.patch.yml);本文件的 seam 字面量由生成器 --check 与之对账。 import { createSofagentPlugin } from '@sofagent/dsh-plugin-kit'; /** 插件声明(本文件唯一手写处;适配层红线由 kit 承担:ctx 鸭子类型 + 宿主 API 缺席降级不抛) */ const kit = createSofagentPlugin( { id: 'cordis-plugin-sofagent-daemon', seam: 'non-seam:host-process', seamSemantics: '非宿主事件接入(独立调度进程)——7×24 巡检不走宿主事件循环', capability: '养护(7×24 巡检 + 健康监测)', bridgePkg: '@sofagent/daemon', bridgeApi: 'startCron', description: '7×24 巡检 + 健康监测 + webhook 推送', }, require('../package.json') as { version?: string }, ); export const pluginMeta = kit.pluginMeta; // 插件元数据(DSH profile/注册表消费) export const capability = kit.capability; // 依赖的 sofagent 能力说明(DSH skill 引导链展示) export const invoke = kit.invoke; // 桥接 @sofagent/* 公共 API(懒加载 + 降级不抛) export default kit.plugin; // DSH Cordis 插件契约(apply 三段式由 kit 提供)
-
-
cordis.patch.yml 516 B
# sofagent cordis-plugin-sofagent-daemon bundle patch v1.5.2——注册为 DSH profile layer - insert: - id: sofagent-daemon name: 'cordis-plugin-sofagent-daemon' inject: [settings, dynamicCordisRunner] config: seam: "non-seam:host-process" # 语义:非宿主事件接入(独立调度进程)——7×24 巡检不走宿主事件循环 description: "给宿主加上 7×24 巡检——独立进程做健康监测与 webhook 推送——桥接 @sofagent/daemon startCron" -
package.json 1.5 KB
{ "name": "cordis-plugin-sofagent-daemon", "version": "1.5.2", "engines": { "node": ">=18" }, "description": "给宿主加上 7×24 巡检——独立进程做健康监测与 webhook 推送(seam: non-seam:host-process)——桥接 @sofagent/daemon startCron", "license": "MIT", "author": "KongFangXun", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "tsc", "test": "vitest run src/index.test.ts" }, "keywords": [ "sofagent", "dsh", "cordis-plugin" ], "sofagent": { "type": "dsh-plugin", "family": "cordis", "seam": "non-seam:host-process", "seamSemantics": "非宿主事件接入(独立调度进程)——7×24 巡检不走宿主事件循环" }, "//optionalDependencies": "v1.4.5 T6 (R4):src/index.ts 惰性 await import(懒加载 + 缺依赖降级不抛;v1.4.8 起该样板由 @sofagent/dsh-plugin-kit 统一封装;v1.4.9 P2 起厚插件多包 bridges 按序解析、部分可用即部分成功),此前未声明任何依赖——对齐 root package.json F-18 optionalDependencies 先例。", "optionalDependencies": { "@sofagent/daemon": "1.5.2" }, "devDependencies": { "typescript": "^7.0.2", "vitest": "^5.0.0" }, "dsh": { "bundle": { "patch": "./cordis.patch.yml" } }, "files": [ "dist/", "cordis.patch.yml", "SKILL.md", "!dist/**/*.js.map", "!dist/**/*.d.ts.map", "!dist/**/*.test.*" ], "dependencies": { "@sofagent/dsh-plugin-kit": "1.5.2" } } -
SKILL.md 1.2 KB
--- name: cordis-plugin-sofagent-daemon slug: cordis-plugin-sofagent-daemon version: 1.5.2 displayName: cordis-plugin-sofagent-daemon description: > 7×24 巡检 + 健康监测 + webhook 推送(seam: non-seam:host-process)——桥接 @sofagent/daemon startCron——DSH(DeepSeek Harness)cordis plugin。sofagent 约束层在 DeepSeek Harness 生态的插件形态。 --- # cordis-plugin-sofagent-daemon 7×24 巡检 + 健康监测 + webhook 推送(seam: non-seam:host-process)——桥接 @sofagent/daemon startCron ## 用途 **装上之后**:在宿主之外起独立进程做 7×24 巡检 + 健康监测 + webhook 推送。**什么时候用**:需要「没人盯着也在跑」的持续巡检与告警。 **接入点**(seam: non-seam:host-process):桥接 `@sofagent/daemon`,缺依赖时该能力静默跳过;接入形态(声明 / 实现)见 [SEAMS.md](../SEAMS.md)。 本插件随 sofagent 主线版本发布(SkillHub 通道:`skillhub install cordis-plugin-sofagent-daemon` 安装与检索;npm 通道未开通)。版本号与 sofagent 主线对齐。 ## 相关链接 - sofagent 主仓:https://github.com/KongFangXun/sofagent - 开发日志:docs/changelog/v1.4/v1.4.0.md(DSH 插件家族) -
tsconfig.json 185 B
{ "extends": "../tsconfig.base.json", "compilerOptions": { "rootDir": "src", "outDir": "dist" }, "include": [ "src" ], "exclude": [ "src/**/*.test.ts" ] }
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.