mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-27 10:20:22 +08:00
Fuses the unrestricted execution mode into each preset's original system prompt at assembly time (standard/code/cordis via the system-prompt/assemble waterfall, minimal via an agent-scoped complete persona shadow), covering subagents, plan state, code-mode transport and structured-output delivery. Anchored rewrites verify the installed DSH prompts before every fusion; mismatches fall back to the stock prompt per mode and surface in the settings card. Toggle persists in the unrestricted settings namespace. Baseline: DSH 0.1.1-rc.1 (528c682e). docs/diff-rc.1.md itemizes every kept/extended/inserted rule; tests replay fixtures captured from the installed harness (tools/dump-prompts.mjs); tools/verify-live.mjs and tools/verify-server.mjs carry the acceptance runs.
69 lines
3.7 KiB
JSON
69 lines
3.7 KiB
JSON
[
|
|
{
|
|
"name": "pwsh",
|
|
"description": "Run commands in a PowerShell shell\n* When invoking this tool, the contents of the \"command\" parameter does NOT need to be XML-escaped.\n* You don't have access to the internet via this tool.\n* State is persistent across command calls and discussions with the user.\n* Use native Windows paths (C:\\...) and $env:NAME variables; this is PowerShell, not bash.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"command": {
|
|
"type": "string",
|
|
"description": "The PowerShell command to run. Relative path is preferred in the command."
|
|
}
|
|
},
|
|
"required": [
|
|
"command"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "str_replace_editor",
|
|
"description": "Custom editing tool for viewing, creating and editing files\n* State is persistent across command calls and discussions with the user\n* If `path` is a file, `view` displays the result of applying `cat -n`. If `path` is a directory, `view` lists non-hidden files and directories up to 2 levels deep\n* The `create` command cannot be used if the specified `path` already exists as a file\n* If a `command` generates a long output, it will be truncated and marked with `<response clipped>`\n\nNotes for using the `str_replace` command:\n* The `old_str` parameter should match EXACTLY one or more consecutive lines from the original file. Be mindful of whitespaces!\n* If the `old_str` parameter is not unique in the file, the replacement will not be performed. Make sure to include enough context in `old_str` to make it unique\n* The `new_str` parameter should contain the edited lines that should replace the `old_str`",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"command": {
|
|
"type": "string",
|
|
"description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
|
|
"enum": [
|
|
"view",
|
|
"create",
|
|
"str_replace",
|
|
"insert"
|
|
]
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
|
|
},
|
|
"file_text": {
|
|
"type": "string",
|
|
"description": "Required parameter of `create` command, with the content of the file to be created."
|
|
},
|
|
"insert_line": {
|
|
"type": "integer",
|
|
"description": "Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`."
|
|
},
|
|
"new_str": {
|
|
"type": "string",
|
|
"description": "Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert."
|
|
},
|
|
"old_str": {
|
|
"type": "string",
|
|
"description": "Required parameter of `str_replace` command containing the string in `path` to replace."
|
|
},
|
|
"view_range": {
|
|
"type": "array",
|
|
"description": "Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"command",
|
|
"path"
|
|
]
|
|
}
|
|
}
|
|
]
|