zcode-app-cli 3.7.5-11 → 3.7.7-12
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/README.md +16 -1
- package/bin/zcode.js +1 -0
- package/config.example.json +3 -0
- package/package.json +2 -2
- package/vendor/extraction.json +5 -5
- package/vendor/node_modules/@zcode/tui/dist/index.js +6 -4
- package/vendor/packages/browser-use-plugin/dist/mcp/server.js +167 -238
- package/vendor/packages/document-skills-plugin/skills/pptx/SKILL.md +8 -6
- package/vendor/packages/document-skills-plugin/skills/pptx/tests/test_pptx_reference.py +3 -1
- package/vendor/zcode.cjs +737 -720
- package/zcode-runtime.lock.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pptx
|
|
3
|
-
description: Inspect and narrowly update PowerPoint PPTX elements selected in ZCode Preview Pane using fingerprint-checked OOXML references. Use when a prompt contains a `# Presentation elements:` block or the user asks to edit a referenced slide shape or table cell.
|
|
3
|
+
description: Inspect and narrowly update PowerPoint PPTX elements selected in ZCode Preview Pane using fingerprint-checked OOXML references. Use when a prompt contains a `# Presentation element comments:` or legacy `# Presentation elements:` block, or the user asks to edit a referenced slide shape or table cell.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# PPTX referenced-element editing
|
|
@@ -11,12 +11,14 @@ containers may be inspected, but must not be generically rewritten.
|
|
|
11
11
|
|
|
12
12
|
## Required workflow
|
|
13
13
|
|
|
14
|
-
1. Read the `# Presentation
|
|
14
|
+
1. Read the `# Presentation element comments:` JSON block, or a legacy `# Presentation elements:` block, from the prompt. Keep `sourceFingerprint`, `slidePart`,
|
|
15
15
|
`nodeId`, and table `rowIndex`/`cellIndex` exactly as supplied.
|
|
16
16
|
2. Run `inspect` before proposing or performing an update.
|
|
17
|
-
3.
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
3. Treat optional `selectedText` as the user's intended text focus and every non-empty `comment` as the user's
|
|
18
|
+
requested change to that specific element. They are model context only. Process all comments without applying
|
|
19
|
+
one reference's comment to another. Use the full element text returned by `inspect`
|
|
20
|
+
to construct the complete replacement passed to `update-text`; never pass the selected substring or instruction
|
|
21
|
+
alone unless the intended complete element text is exactly that value.
|
|
20
22
|
4. If inspect reports a fingerprint, missing-node, ambiguous-node, type, name, text, or cell-coordinate conflict,
|
|
21
23
|
stop. Ask the user to reopen the PPTX preview and select the element again. Never guess by similar text/name.
|
|
22
24
|
5. For shape text or table-cell text, run `update-text` to a user-requested output path. Prefer a new `.pptx`
|
|
@@ -70,7 +72,7 @@ Exit code `2` means the structured reference is stale or ambiguous and no output
|
|
|
70
72
|
- Never treat the Preview Pane bounds, node name, or visible text as the authoritative locator. They are only
|
|
71
73
|
diagnostics after `sourceFingerprint + slidePart + nodeId (+ cell coordinates)` resolves uniquely.
|
|
72
74
|
- `textFingerprint` always guards the complete shape or table-cell text. Never recompute it from `selectedText`
|
|
73
|
-
or use
|
|
75
|
+
or `comment`, and never use either context field as a conflict-check target.
|
|
74
76
|
- Do not modify the source through ad-hoc ZIP extraction. The provided script writes and validates a temporary
|
|
75
77
|
archive before an atomic output replace.
|
|
76
78
|
- PPTX OOXML text replacement can change line wrapping. It does not provide PowerPoint layout reflow,
|
|
@@ -155,11 +155,12 @@ class PptxReferenceTest(unittest.TestCase):
|
|
|
155
155
|
self.assertIn(b">FY 2027 review<", slide)
|
|
156
156
|
self.assertIn(b">84<", slide)
|
|
157
157
|
|
|
158
|
-
def
|
|
158
|
+
def test_user_context_does_not_change_full_text_fingerprint_guards(self):
|
|
159
159
|
output = self.root / "selected-text-updated.pptx"
|
|
160
160
|
shape_reference = reference(
|
|
161
161
|
self.source,
|
|
162
162
|
selectedText="Quarterly",
|
|
163
|
+
comment="Replace review with summary",
|
|
163
164
|
textFingerprint=text_fingerprint("Quarterly review"),
|
|
164
165
|
)
|
|
165
166
|
table_reference = reference(
|
|
@@ -171,6 +172,7 @@ class PptxReferenceTest(unittest.TestCase):
|
|
|
171
172
|
cellIndex=1,
|
|
172
173
|
text="42",
|
|
173
174
|
selectedText="4",
|
|
175
|
+
comment="Double this value",
|
|
174
176
|
textFingerprint=text_fingerprint("42"),
|
|
175
177
|
)
|
|
176
178
|
|