@suifei/dsh-ai-team 0.0.0-stage → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +104 -0
- package/LICENSE +21 -0
- package/README.md +226 -2
- package/client.js +2901 -0
- package/cordis.patch.yml +31 -0
- package/icon.svg +27 -0
- package/index.js +893 -0
- package/lib/domain/errors.js +36 -0
- package/lib/domain/ids.js +26 -0
- package/lib/domain/inbox.js +87 -0
- package/lib/domain/member-config.js +168 -0
- package/lib/domain/member-profile.js +53 -0
- package/lib/domain/policy.js +102 -0
- package/lib/domain/task.js +309 -0
- package/lib/domain/thread.js +54 -0
- package/lib/host/fault-adapter.js +50 -0
- package/lib/host/member-tools.js +225 -0
- package/lib/host/permission-guard.js +28 -0
- package/lib/host/project-registry.js +68 -0
- package/lib/host/project-runtime.js +73 -0
- package/lib/host/service.js +810 -0
- package/lib/host/views.js +213 -0
- package/lib/host/waker.js +177 -0
- package/lib/ledger/checkpoint.js +395 -0
- package/lib/ledger/events.js +398 -0
- package/lib/ledger/fold.js +991 -0
- package/lib/ledger/writer.js +983 -0
- package/lib/runtime/failure-policy.js +113 -0
- package/lib/runtime/host-agent.js +101 -0
- package/lib/runtime/member-runtime.js +286 -0
- package/lib/runtime/skill-catalog.js +27 -0
- package/lib/runtime/skill-loader.js +26 -0
- package/lib/runtime/skill-provider.js +121 -0
- package/lib/vendor/skillopt/LICENSE +21 -0
- package/lib/vendor/skillopt/requirements.txt +31 -0
- package/lib/vendor/skillopt/scripts/sleep.py +119 -0
- package/lib/vendor/skillopt/skillopt_sleep/__init__.py +20 -0
- package/lib/vendor/skillopt/skillopt_sleep/__main__.py +942 -0
- package/lib/vendor/skillopt/skillopt_sleep/adapters/__init__.py +1 -0
- package/lib/vendor/skillopt/skillopt_sleep/adapters/superpowers.py +1379 -0
- package/lib/vendor/skillopt/skillopt_sleep/backend.py +2844 -0
- package/lib/vendor/skillopt/skillopt_sleep/budget.py +75 -0
- package/lib/vendor/skillopt/skillopt_sleep/config.py +257 -0
- package/lib/vendor/skillopt/skillopt_sleep/consolidate.py +558 -0
- package/lib/vendor/skillopt/skillopt_sleep/cycle.py +1270 -0
- package/lib/vendor/skillopt/skillopt_sleep/dream.py +173 -0
- package/lib/vendor/skillopt/skillopt_sleep/evalkit.py +718 -0
- package/lib/vendor/skillopt/skillopt_sleep/evidence.py +143 -0
- package/lib/vendor/skillopt/skillopt_sleep/experiments/__init__.py +1 -0
- package/lib/vendor/skillopt/skillopt_sleep/experiments/gbrain_bench.py +119 -0
- package/lib/vendor/skillopt/skillopt_sleep/experiments/personas.py +86 -0
- package/lib/vendor/skillopt/skillopt_sleep/experiments/report.py +132 -0
- package/lib/vendor/skillopt/skillopt_sleep/experiments/run_experiment.py +178 -0
- package/lib/vendor/skillopt/skillopt_sleep/experiments/run_gbrain.py +209 -0
- package/lib/vendor/skillopt/skillopt_sleep/experiments/run_transfer.py +155 -0
- package/lib/vendor/skillopt/skillopt_sleep/experiments/sweep.py +164 -0
- package/lib/vendor/skillopt/skillopt_sleep/gate.py +50 -0
- package/lib/vendor/skillopt/skillopt_sleep/handoff_backend.py +173 -0
- package/lib/vendor/skillopt/skillopt_sleep/harvest.py +691 -0
- package/lib/vendor/skillopt/skillopt_sleep/harvest_codex.py +260 -0
- package/lib/vendor/skillopt/skillopt_sleep/harvest_copilot.py +443 -0
- package/lib/vendor/skillopt/skillopt_sleep/harvest_copilot_cli.py +244 -0
- package/lib/vendor/skillopt/skillopt_sleep/harvest_cursor.py +316 -0
- package/lib/vendor/skillopt/skillopt_sleep/harvest_opencode.py +364 -0
- package/lib/vendor/skillopt/skillopt_sleep/harvest_pi.py +311 -0
- package/lib/vendor/skillopt/skillopt_sleep/harvest_sources.py +135 -0
- package/lib/vendor/skillopt/skillopt_sleep/judges.py +344 -0
- package/lib/vendor/skillopt/skillopt_sleep/llm_miner.py +187 -0
- package/lib/vendor/skillopt/skillopt_sleep/memory.py +166 -0
- package/lib/vendor/skillopt/skillopt_sleep/mine.py +427 -0
- package/lib/vendor/skillopt/skillopt_sleep/multi_skill.py +190 -0
- package/lib/vendor/skillopt/skillopt_sleep/prompts.py +250 -0
- package/lib/vendor/skillopt/skillopt_sleep/replay.py +211 -0
- package/lib/vendor/skillopt/skillopt_sleep/rollout.py +184 -0
- package/lib/vendor/skillopt/skillopt_sleep/scheduler.py +286 -0
- package/lib/vendor/skillopt/skillopt_sleep/skill_resolver.py +244 -0
- package/lib/vendor/skillopt/skillopt_sleep/slow_update.py +141 -0
- package/lib/vendor/skillopt/skillopt_sleep/staging.py +3285 -0
- package/lib/vendor/skillopt/skillopt_sleep/state.py +283 -0
- package/lib/vendor/skillopt/skillopt_sleep/tasks_file.py +100 -0
- package/lib/vendor/skillopt/skillopt_sleep/types.py +227 -0
- package/lib/vendor/skillopt/src/index.js +394 -0
- package/package.json +62 -4
- package/skills/skillopt-sleep/SKILL.md +121 -0
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# dsh-ai-team bundle patch: mounts the Host half.
|
|
2
|
+
# The Client half is discovered from this package's `dsh.client` declaration.
|
|
3
|
+
# AI Team is a dedicated, trusted profile: members run with full access by
|
|
4
|
+
# design. These patches make that explicit at the profile layer, so a plain
|
|
5
|
+
# web/desktop profile is never affected.
|
|
6
|
+
- insert:
|
|
7
|
+
- id: ai-team
|
|
8
|
+
name: '@suifei/dsh-ai-team'
|
|
9
|
+
|
|
10
|
+
# The Team profile must be danger-full-access end to end. The Host validates
|
|
11
|
+
# this at boot (E_PERMISSION_PROFILE) and refuses to serve a weaker profile.
|
|
12
|
+
- id: sandbox-policy
|
|
13
|
+
config:
|
|
14
|
+
mode: danger-full-access
|
|
15
|
+
workspaceRoot: !!js process.cwd()
|
|
16
|
+
- id: approval
|
|
17
|
+
config:
|
|
18
|
+
policy: never
|
|
19
|
+
- id: permission
|
|
20
|
+
config:
|
|
21
|
+
defaultPreset: danger-full-access
|
|
22
|
+
presets:
|
|
23
|
+
read-only:
|
|
24
|
+
sandbox: read-only
|
|
25
|
+
approval: ask
|
|
26
|
+
workspace-write:
|
|
27
|
+
sandbox: workspace-write
|
|
28
|
+
approval: ask
|
|
29
|
+
danger-full-access:
|
|
30
|
+
sandbox: danger-full-access
|
|
31
|
+
approval: never
|
package/icon.svg
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
班组 / Agent Team · 环上标记(Loop Mark)
|
|
4
|
+
概念:一个右侧开口的圆角方框(工作容器)+ 一个落在开口处的圆(成员)。
|
|
5
|
+
语义:方框开口 = 不是封闭的黑盒,人可以进来;圆压在边上 = 在环上(on the loop),不在环里。
|
|
6
|
+
配色:方框跟随 currentColor,内联时即继承宿主 DSW alias 的 label-primary 系列;
|
|
7
|
+
圆为品牌蓝 #5686fe(artwork 允许自有色,等同 static deepseek 450)。
|
|
8
|
+
规格:32×32 画布,2.6 描边,四周留白不小于 2.5,最小可用 16px。
|
|
9
|
+
用法:无文字、无渐变、无外部引用、无字体依赖;以 img 引用时方框取默认深色,双色版请内联使用。
|
|
10
|
+
-->
|
|
11
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"
|
|
12
|
+
fill="none" role="img" aria-labelledby="loopMarkTitle" color="#0f1115">
|
|
13
|
+
<title id="loopMarkTitle">班组 Agent Team</title>
|
|
14
|
+
<defs>
|
|
15
|
+
<!-- 在方框右侧开一个圆口:白色保留、黑色挖空,避免依赖页面背景色 -->
|
|
16
|
+
<mask id="loopMarkMouth" maskUnits="userSpaceOnUse" x="0" y="0" width="32" height="32">
|
|
17
|
+
<rect x="0" y="0" width="32" height="32" fill="#fff"/>
|
|
18
|
+
<circle cx="24.75" cy="16" r="7.6" fill="#000"/>
|
|
19
|
+
</mask>
|
|
20
|
+
</defs>
|
|
21
|
+
<!-- 工作容器:右侧开口的圆角方框 -->
|
|
22
|
+
<rect x="3.75" y="5.5" width="21" height="21" rx="6.5"
|
|
23
|
+
stroke="currentColor" stroke-width="2.6" stroke-linejoin="round"
|
|
24
|
+
mask="url(#loopMarkMouth)"/>
|
|
25
|
+
<!-- 成员:落在开口处的圆 -->
|
|
26
|
+
<circle cx="24.75" cy="16" r="4.8" fill="#5686fe"/>
|
|
27
|
+
</svg>
|