dsh-ops 0.2.2 → 0.2.3
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 +7 -0
- package/PROVENANCE.md +11 -0
- package/README.en.md +4 -4
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/docs/schema-current.json +4 -4
- package/docs/schema-measurement.md +2 -2
- package/dsh-plugin.json +4 -4
- package/icon.png +0 -0
- package/lib/policy.js +2 -1
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +4 -4
- package/icon.svg +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this package are recorded here.
|
|
|
5
5
|
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
6
6
|
this package adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.3] — Strict-argument guidance and display metadata
|
|
9
|
+
|
|
10
|
+
- Add one routing-section reminder: `ops_* arguments are strict: pass only declared fields.` Keep FastCtx's portable schema subset and runtime guards unchanged.
|
|
11
|
+
- Use `dsh-ops` as the display title in both locales and align package/install descriptions with the maintainer's Windows bash, PowerShell 7, and Rust tools wording.
|
|
12
|
+
- Replace the display icon with the maintainer-provided image, resized without cropping to a 256×256 PNG (119,677 bytes), below the official host's 256 KiB limit.
|
|
13
|
+
- Reuse all three runtime payload dependencies at 0.2.1; preserve the 0.2.2 bash object-root schema fix.
|
|
14
|
+
|
|
8
15
|
## [0.2.2] — Bash parameter schema hotfix
|
|
9
16
|
|
|
10
17
|
- Fix `ops_bash` parameters to use a JSON Schema object root with `properties`, `required: ['command']`, and `additionalProperties: false`. The previous field map was forwarded unchanged by the official host and rejected by the model API before tool execution.
|
package/PROVENANCE.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
What this repository is, where its parts came from, what was verified, and what
|
|
4
4
|
was not.
|
|
5
5
|
|
|
6
|
+
## 0.2.3 Prompt and display update
|
|
7
|
+
|
|
8
|
+
Add one model-facing sentence in `lib/policy.js`: `ops_* arguments are strict:
|
|
9
|
+
pass only declared fields.` FastCtx strips `additionalProperties` from published
|
|
10
|
+
schemas for provider portability but retains its runtime unknown-field guards;
|
|
11
|
+
this prompt reminder does not change schemas or Rust behaviour. No files under
|
|
12
|
+
`vendor/fastctx` were modified. The display title and bilingual descriptions use
|
|
13
|
+
the maintainer's wording. The new icon is an operator-supplied image resized,
|
|
14
|
+
without cropping, to a 256×256 PNG under the official host's 256 KiB limit;
|
|
15
|
+
no independent authorship or licence verification of that image is claimed.
|
|
16
|
+
|
|
6
17
|
## 0.2.2 Bash schema hotfix
|
|
7
18
|
|
|
8
19
|
The maintainer reported a model API rejection after official marketplace installation:
|
package/README.en.md
CHANGED
|
@@ -41,10 +41,10 @@ dsh plugin --profile dsh-tui add dsh-ops
|
|
|
41
41
|
Update by repeating the npx install command, or official `add dsh-ops@latest`.
|
|
42
42
|
Reload/restart as the application requests; replacing loaded code may require restart.
|
|
43
43
|
|
|
44
|
-
The
|
|
45
|
-
|
|
46
|
-
dependencies remain pinned to `0.2.1`; their
|
|
47
|
-
[docs/release-0.2.1.md](docs/release-0.2.1.md).
|
|
44
|
+
The current version is `0.2.3`: it reminds the model to pass only declared `ops_*`
|
|
45
|
+
fields and updates the display title, descriptions, and icon. It retains the 0.2.2
|
|
46
|
+
bash parameter schema fix. Runtime dependencies remain pinned to `0.2.1`; their
|
|
47
|
+
original release record is in [docs/release-0.2.1.md](docs/release-0.2.1.md).
|
|
48
48
|
|
|
49
49
|
```console
|
|
50
50
|
npx --yes dsh-ops@latest status --profile desktop
|
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ dsh plugin --profile dsh-tui add dsh-ops
|
|
|
40
40
|
|
|
41
41
|
**更新**:重新运行相同的 `npx --yes dsh-ops@latest install --profile ...`,或用官方 CLI `add dsh-ops@latest`。按应用提示重载;替换已加载代码时重启应用。
|
|
42
42
|
|
|
43
|
-
当前 npm
|
|
43
|
+
当前 npm 版本为 `0.2.3`:提示词提醒 `ops_*` 只传声明字段,标题统一为 `dsh-ops`,并更新中英文介绍和图标;保留 `0.2.2` 的 bash schema 修复,三个运行包仍使用 `0.2.1`。原始载荷发布记录见 [docs/release-0.2.1.md](docs/release-0.2.1.md)。
|
|
44
44
|
|
|
45
45
|
**卸载与查看状态**:
|
|
46
46
|
|
package/README.zh.md
CHANGED
|
@@ -40,7 +40,7 @@ dsh plugin --profile dsh-tui add dsh-ops
|
|
|
40
40
|
|
|
41
41
|
**更新**:重新运行相同的 `npx --yes dsh-ops@latest install --profile ...`,或用官方 CLI `add dsh-ops@latest`。按应用提示重载;替换已加载代码时重启应用。
|
|
42
42
|
|
|
43
|
-
当前 npm
|
|
43
|
+
当前 npm 版本为 `0.2.3`:提示词提醒 `ops_*` 只传声明字段,标题统一为 `dsh-ops`,并更新中英文介绍和图标;保留 `0.2.2` 的 bash schema 修复,三个运行包仍使用 `0.2.1`。原始载荷发布记录见 [docs/release-0.2.1.md](docs/release-0.2.1.md)。
|
|
44
44
|
|
|
45
45
|
**卸载与查看状态**:
|
|
46
46
|
|
package/docs/schema-current.json
CHANGED
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"approximateTokens": 1681
|
|
59
59
|
},
|
|
60
60
|
"fileOnlyPrompt": {
|
|
61
|
-
"bytes":
|
|
62
|
-
"approximateTokens":
|
|
61
|
+
"bytes": 527,
|
|
62
|
+
"approximateTokens": 132
|
|
63
63
|
},
|
|
64
64
|
"bashSchema": {
|
|
65
65
|
"bytes": 961,
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"approximateTokens": 2675
|
|
71
71
|
},
|
|
72
72
|
"toolingPrompt": {
|
|
73
|
-
"bytes":
|
|
74
|
-
"approximateTokens":
|
|
73
|
+
"bytes": 1110,
|
|
74
|
+
"approximateTokens": 278
|
|
75
75
|
},
|
|
76
76
|
"publishedServerInstructions": {
|
|
77
77
|
"bytes": 0,
|
|
@@ -8,9 +8,9 @@ Baseline: plugin `dee3c57`, FastCtx 0.2.6, before presentation changes. Current:
|
|
|
8
8
|
| --- | ---: | ---: | ---: |
|
|
9
9
|
| Nine FastCtx schemas (full-access session) | 18,889 | 9,739 | 48.4% |
|
|
10
10
|
| Four file schemas | 12,807 | 6,724 | 47.5% |
|
|
11
|
-
| Routing section (original full ladder vs
|
|
11
|
+
| Routing section (original full ladder vs compact three-layer table with strict-argument reminder) | 3,373 | 1,110 | 67.1% |
|
|
12
12
|
|
|
13
|
-
Full-access FastCtx schema estimate: 4,723 → 2,435 tokens. The corrected object-root ops_bash schema adds 961 bytes (~241 tokens); full FastCtx+bash surface is 10,700 bytes (~2,675 tokens). Restricted file-only surface: about 1,681 tokens; its routing table is
|
|
13
|
+
Full-access FastCtx schema estimate: 4,723 → 2,435 tokens. The corrected object-root ops_bash schema adds 961 bytes (~241 tokens); full FastCtx+bash surface is 10,700 bytes (~2,675 tokens). Restricted file-only surface: about 1,681 tokens; its routing table is 527 bytes (~132 tokens). No server instructions are published (the original raw server instructions were 246 bytes); the old host-shell section is also removed. Baseline excludes ops_bash, so compare nine FastCtx tools like-for-like rather than treating restoration as a regression of those numbers. Total request savings depend on host presentation; these are not API usage/billing measurements.
|
|
14
14
|
|
|
15
15
|
`ops_grep` went from 3,766 → 2,019 bytes; `ops_inspect_local_file` from 4,375 → 1,968. `ops_replace` is retained: schema cost cannot establish invocation frequency, and no usage-frequency measurement was collected.
|
|
16
16
|
|
package/dsh-plugin.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"manifestVersion": "0.15",
|
|
4
4
|
"id": "dsh-ops.fastctx",
|
|
5
5
|
"name": "dsh-ops",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.3",
|
|
7
7
|
"license": "MIT AND Apache-2.0",
|
|
8
8
|
"facets": {
|
|
9
9
|
"host": {
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"contributes": {
|
|
40
40
|
"x-display": [
|
|
41
41
|
{
|
|
42
|
-
"icon": "./icon.
|
|
43
|
-
"title": "
|
|
44
|
-
"description": "
|
|
42
|
+
"icon": "./icon.png",
|
|
43
|
+
"title": "dsh-ops",
|
|
44
|
+
"description": "Provides bash, PowerShell 7, and a suite of high-performance tools written in Rust for Windows DSH to enhance token efficiency",
|
|
45
45
|
"locales": [
|
|
46
46
|
"locale/en.json",
|
|
47
47
|
"locale/zh.json"
|
package/icon.png
ADDED
|
Binary file
|
package/lib/policy.js
CHANGED
|
@@ -43,7 +43,8 @@ export function renderToolingPolicy({ published, enableShellTools, mounted, leve
|
|
|
43
43
|
if (names.has(publicToolName('run_background'))) {
|
|
44
44
|
lines.push(`| Background commands / owned jobs | ${SHELL_TOOLS.slice(1).map(publicToolName).join(', ')} |`)
|
|
45
45
|
}
|
|
46
|
-
lines.push('', '-
|
|
46
|
+
lines.push('', '- ops_* arguments are strict: pass only declared fields.',
|
|
47
|
+
'- Do not build shell command lines for file operations.',
|
|
47
48
|
'- On a tool error, correct the arguments and retry; do not switch to a shell workaround.')
|
|
48
49
|
if (names.has(BASH_TOOL)) lines.push('- Prefer bash for command execution. Use PowerShell only when Windows-native functionality is necessary; fix bash errors in bash, do not switch shells or mix their syntax.')
|
|
49
50
|
if (names.has(publicToolName('run_background'))) lines.push('- Only operate on job IDs you started in this session.')
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"title": "
|
|
4
|
-
"description": "
|
|
3
|
+
"title": "dsh-ops",
|
|
4
|
+
"description": "Provides bash, PowerShell 7, and a suite of high-performance tools written in Rust for Windows DSH to enhance token efficiency"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ops",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"cpu": [
|
|
19
19
|
"x64"
|
|
20
20
|
],
|
|
21
|
-
"description": "
|
|
22
|
-
"icon": "./icon.
|
|
21
|
+
"description": "Provides bash, PowerShell 7, and a suite of high-performance tools written in Rust for Windows DSH to enhance token efficiency",
|
|
22
|
+
"icon": "./icon.png",
|
|
23
23
|
"keywords": [
|
|
24
24
|
"dsh",
|
|
25
25
|
"dsh-plugin",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"bin",
|
|
55
55
|
"cordis.patch.yml",
|
|
56
56
|
"dsh-plugin.json",
|
|
57
|
-
"icon.
|
|
57
|
+
"icon.png",
|
|
58
58
|
"locale",
|
|
59
59
|
"docs",
|
|
60
60
|
"LICENSE",
|
package/icon.svg
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none">
|
|
2
|
-
<g stroke="#7C7C82" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">
|
|
3
|
-
<rect x="4.2" y="6.2" width="27.6" height="23.6" rx="4.2" />
|
|
4
|
-
<path d="M10 14.4l4 3.8-4 3.8" />
|
|
5
|
-
<path d="M17.4 22h4.4" />
|
|
6
|
-
<path d="M25.6 13v10" />
|
|
7
|
-
</g>
|
|
8
|
-
<g fill="#7C7C82">
|
|
9
|
-
<circle cx="25.6" cy="13" r="2.3" />
|
|
10
|
-
<circle cx="25.6" cy="23" r="2.3" />
|
|
11
|
-
</g>
|
|
12
|
-
</svg>
|