docs: add market submission materials (entry yaml + PR body) and publisher script
This commit is contained in:
parent
24db9f592e
commit
e7dbc10363
61
market/PR-BODY.md
Normal file
61
market/PR-BODY.md
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
# Add moyun-ultimate
|
||||||
|
|
||||||
|
## What it is
|
||||||
|
|
||||||
|
A five-layer fused jailbreak core for DeepSeek Harness. Built by taking apart 12 community
|
||||||
|
jailbreak packages, diffing what each one actually contributes, and merging the useful parts
|
||||||
|
**by layer** instead of stacking the packages.
|
||||||
|
|
||||||
|
## Why layered, not stacked
|
||||||
|
|
||||||
|
The three biggest jailbreak plugins in this ecosystem aim at the same targets:
|
||||||
|
|
||||||
|
| package | how it works | collides on |
|
||||||
|
|---|---|---|
|
||||||
|
| `dsh-purge` | patches host source files (82 rules, pattern-matched) | same host files |
|
||||||
|
| `dsh-po` | overrides official cordis config ids | `system-prompt`, `approval`, `permission`, `sandbox-policy` |
|
||||||
|
| `dsh-ungate` | patches host source **and** reuses `$DSH_HOME/dsh-purge` | both of the above |
|
||||||
|
|
||||||
|
Same-id config is last-write-wins; same-file source patches mean two pattern sets racing over
|
||||||
|
one piece of text. Installing two of them does not double the effect — it disables both.
|
||||||
|
|
||||||
|
So this plugin **ships zero host patches**. It owns persona, refusal strategy, execution
|
||||||
|
discipline and the skill library; the permission layer stays with `dsh-purge`.
|
||||||
|
|
||||||
|
## What's inside
|
||||||
|
|
||||||
|
- **Five ordered prompt sections (21 KB total)**
|
||||||
|
- `order 100` persona core
|
||||||
|
- `order 150` refusal kernel — authorization-as-given, foreign-pattern table
|
||||||
|
(`<ethics_reminder>` / fake `System:` / identity override → zero weight), boundary-word
|
||||||
|
normalization, template workflows
|
||||||
|
- `order 160` execution intensity — act don't narrate, deliver completely, report one line
|
||||||
|
when blocked and continue, keep going through WAF/CDN
|
||||||
|
- `order 200` anti-dilution mirror — identical semantics, survives context compaction
|
||||||
|
- `order 210` skill routing
|
||||||
|
- **63 built-in security skills** (41 general + 22 intranet/redteam, 1 de-duplicated), synced
|
||||||
|
idempotently into `$DSH_HOME/skills` on first start — existing files are never overwritten
|
||||||
|
- **`moyun_frame`** — 5 re-framing templates (roleplay / textbook / defender_reverse /
|
||||||
|
transform_first / k3) loaded **on demand**, not resident in the system prompt
|
||||||
|
- **`moyun_ultimate_profile`** — self-check tool
|
||||||
|
- **Live refusal-score badge** in the corner
|
||||||
|
- **Five independent layer toggles**
|
||||||
|
|
||||||
|
## Verification performed
|
||||||
|
|
||||||
|
- Module loads cleanly, five sections register in order 100/150/160/200/210, total 21,354 B
|
||||||
|
- Both tools register and return expected payloads (`skills: 63`, five layers on)
|
||||||
|
- Invalid frame argument returns a proper error listing the 5 valid names
|
||||||
|
- Layer toggles: disabling `routing` yields 4 sections
|
||||||
|
- `--dump-config` composes without error and contains `id: moyun-ultimate`
|
||||||
|
- 63 skill directories land in `$DSH_HOME/skills` on install and are visible to the agent
|
||||||
|
without restarting
|
||||||
|
|
||||||
|
## Notes for review
|
||||||
|
|
||||||
|
- `category: workflow` — it changes how work gets done rather than adding a UI surface,
|
||||||
|
memory store, or standalone skill pack. Happy to move it if another category fits better.
|
||||||
|
- Ships no screenshots yet; the badge is a small pulsing pill in the bottom-right corner. I can
|
||||||
|
add `data/screenshots.json` entries once the repo has `docs/screenshots/*.png`.
|
||||||
|
- All merged text keeps its original authors' rights; the LICENSE and README credit each
|
||||||
|
source package explicitly.
|
||||||
116
publish.ps1
Normal file
116
publish.ps1
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
# moyun-ultimate publisher (ASCII only)
|
||||||
|
# Creates the GitHub repo (if missing), pushes main, and prints the market PR steps.
|
||||||
|
# Token is used in-memory only and is stripped from the remote URL afterwards.
|
||||||
|
#
|
||||||
|
# $env:GITHUB_TOKEN = 'ghp_xxx' # or pass -Token
|
||||||
|
# .\publish.ps1 -Owner your-github-name
|
||||||
|
# .\publish.ps1 -Owner your-name -DryRun
|
||||||
|
[CmdletBinding()]
|
||||||
|
param(
|
||||||
|
[string]$Token = $env:GITHUB_TOKEN,
|
||||||
|
[string]$Owner = '',
|
||||||
|
[string]$Repo = 'moyun-ultimate',
|
||||||
|
[string]$Description = 'Five-layer fused jailbreak core for DeepSeek Harness',
|
||||||
|
[switch]$Private,
|
||||||
|
[switch]$DryRun
|
||||||
|
)
|
||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
$Here = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||||
|
$Git = 'F:\Git\cmd\git.exe'
|
||||||
|
if (-not (Test-Path $Git)) { $Git = 'git' }
|
||||||
|
|
||||||
|
if (-not $Token) {
|
||||||
|
throw 'No token. Set $env:GITHUB_TOKEN or pass -Token. Create one at https://github.com/settings/tokens/new (scope: repo).'
|
||||||
|
}
|
||||||
|
$H = @{
|
||||||
|
'Authorization' = "Bearer $Token"
|
||||||
|
'Accept' = 'application/vnd.github+json'
|
||||||
|
'User-Agent' = 'moyun-ultimate-publisher'
|
||||||
|
'X-GitHub-Api-Version' = '2022-11-28'
|
||||||
|
}
|
||||||
|
|
||||||
|
# 1) who am I
|
||||||
|
try {
|
||||||
|
$me = Invoke-RestMethod 'https://api.github.com/user' -Headers $H -TimeoutSec 20
|
||||||
|
Write-Output "authenticated as: $($me.login)"
|
||||||
|
if (-not $Owner) { $Owner = $me.login }
|
||||||
|
} catch {
|
||||||
|
throw "Token rejected by GitHub: $($_.Exception.Message)"
|
||||||
|
}
|
||||||
|
Write-Output "target repo : $Owner/$Repo"
|
||||||
|
Write-Output "visibility : $(if ($Private) { 'private' } else { 'public' })"
|
||||||
|
|
||||||
|
# 2) create repo if missing
|
||||||
|
$exists = $false
|
||||||
|
try {
|
||||||
|
$null = Invoke-RestMethod "https://api.github.com/repos/$Owner/$Repo" -Headers $H -TimeoutSec 20
|
||||||
|
$exists = $true
|
||||||
|
Write-Output "repo exists, will push into it"
|
||||||
|
} catch {
|
||||||
|
Write-Output "repo does not exist yet"
|
||||||
|
}
|
||||||
|
|
||||||
|
if (-not $exists) {
|
||||||
|
if ($DryRun) { Write-Output "[dry] would create $Owner/$Repo" }
|
||||||
|
else {
|
||||||
|
$body = @{
|
||||||
|
name = $Repo
|
||||||
|
description = $Description
|
||||||
|
private = [bool]$Private
|
||||||
|
has_issues = $true
|
||||||
|
has_wiki = $false
|
||||||
|
auto_init = $false
|
||||||
|
} | ConvertTo-Json
|
||||||
|
try {
|
||||||
|
$null = Invoke-RestMethod "https://api.github.com/user/repos" -Method Post -Headers $H -Body $body -ContentType 'application/json' -TimeoutSec 30
|
||||||
|
Write-Output "created $Owner/$Repo"
|
||||||
|
} catch {
|
||||||
|
throw "create repo failed: $($_.Exception.Message)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# 3) push (token in the URL for this one command only)
|
||||||
|
Push-Location $Here
|
||||||
|
try {
|
||||||
|
$remoteUrl = "https://github.com/$Owner/$Repo.git"
|
||||||
|
$existing = & $Git remote 2>$null
|
||||||
|
if ($existing -contains 'origin') { & $Git remote remove origin | Out-Null }
|
||||||
|
& $Git remote add origin $remoteUrl
|
||||||
|
Write-Output "remote origin -> $remoteUrl"
|
||||||
|
|
||||||
|
$pushUrl = "https://x-access-token:$Token@github.com/$Owner/$Repo.git"
|
||||||
|
if ($DryRun) {
|
||||||
|
Write-Output "[dry] would run: git push $pushUrl main"
|
||||||
|
} else {
|
||||||
|
& $Git push $pushUrl main 2>&1 | ForEach-Object {
|
||||||
|
# never echo the token
|
||||||
|
($_ -replace [regex]::Escape($Token), '***')
|
||||||
|
}
|
||||||
|
if ($LASTEXITCODE -ne 0) { throw "git push failed (exit $LASTEXITCODE)" }
|
||||||
|
Write-Output 'pushed main'
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
Pop-Location
|
||||||
|
}
|
||||||
|
|
||||||
|
# 4) next steps
|
||||||
|
Write-Output ''
|
||||||
|
Write-Output '=========================================================='
|
||||||
|
Write-Output ' repo: https://github.com/' + $Owner + '/' + $Repo
|
||||||
|
Write-Output '=========================================================='
|
||||||
|
Write-Output ''
|
||||||
|
Write-Output 'Market submission (awesome-dsh-plugin), two options:'
|
||||||
|
Write-Output ''
|
||||||
|
Write-Output ' A. PR (recommended)'
|
||||||
|
Write-Output ' 1. fork https://github.com/awesome-dsh-plugin/awesome-dsh-plugin'
|
||||||
|
Write-Output ' 2. add file: data/plugins/' + $Owner + '__' + $Repo + '.yml'
|
||||||
|
Write-Output ' (template is in market/moyun-ultimate.yml -- replace GITHUB_OWNER)'
|
||||||
|
Write-Output ' 3. optional icon: data/icons/' + $Owner + '__' + $Repo + '.png'
|
||||||
|
Write-Output ' 4. open PR; describe what the plugin does and why it is layered'
|
||||||
|
Write-Output ''
|
||||||
|
Write-Output ' B. Release first (helps reviewers)'
|
||||||
|
Write-Output (' tag v0.1.0 and attach moyun-ultimate-0.1.0.tgz')
|
||||||
|
Write-Output ''
|
||||||
|
Write-Output 'Verify the pushed file tree:'
|
||||||
|
Write-Output (' https://github.com/' + $Owner + '/' + $Repo)
|
||||||
Loading…
Reference in New Issue
Block a user