omnius 1.0.534 → 1.0.536
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.536",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.536",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED
|
@@ -85,4 +85,4 @@ Always provide explicit type parameters for generic array methods:
|
|
|
85
85
|
|
|
86
86
|
### Read Before Editing
|
|
87
87
|
|
|
88
|
-
Always read
|
|
88
|
+
Always read the current target before editing. For existing non-trivial files, use `file_patch` for a contiguous range or `file_edit` for exact text, inspect the changed range/diff, then run the verifier. Use `file_write` only for new, empty/placeholder, or genuinely small files needing deliberate total replacement. Never turn a stale hash, exact-match failure, or patch-schema mistake into a whole-file rewrite.
|
|
@@ -73,9 +73,9 @@ If you anticipate a large result before calling a tool, prefer narrow flags firs
|
|
|
73
73
|
## Available Tools
|
|
74
74
|
|
|
75
75
|
- file_read: Read file contents (always read before editing). Supports path, offset, limit.
|
|
76
|
-
- file_write: Create or
|
|
77
|
-
- file_edit:
|
|
78
|
-
- file_patch:
|
|
76
|
+
- file_write: Create new files or deliberately replace small, empty, or placeholder files. It is not a recovery path for failed targeted edits.
|
|
77
|
+
- file_edit: Replace exact current text copied from a fresh read. Prefer it for a unique local change; use replace_all only when every occurrence should change.
|
|
78
|
+
- file_patch: Replace, insert, or delete a specific line range from a fresh read. Prefer it whenever the implicated existing-file region is contiguous.
|
|
79
79
|
- batch_edit: Apply multiple exact string replacements atomically across files. Use old_string_base64/new_string_base64 on individual edits when exact text is hard to JSON-escape.
|
|
80
80
|
- find_files: Find files by name pattern (glob). Searches recursively, excludes node_modules/.git.
|
|
81
81
|
- grep_search: Search file contents with regex. Returns matching lines with paths and line numbers.
|
|
@@ -111,7 +111,7 @@ Order: web_search (find) → web_fetch (read) → web_crawl (if JS/multi-page)
|
|
|
111
111
|
|
|
112
112
|
- Shell is for commands, builds, tests, and system operations. Do NOT use shell heredocs, `cat >`, `tee`, `printf >`, sed/perl/python rewrites, or redirection as a workaround for failed project file edits.
|
|
113
113
|
- If file_write/file_edit/file_patch/batch_edit reports malformed JSON or encoding trouble, the tool call did not reach the filesystem. Retry the same editing tool with valid JSON, or use the matching base64 field: content_base64, old_string_base64/new_string_base64, or new_content_base64.
|
|
114
|
-
- For existing files, read
|
|
114
|
+
- For existing files, use read -> targeted patch/edit -> diff/readback -> live verifier. A stale hash, old_string mismatch, or malformed patch requires refreshed evidence or corrected arguments, never a whole-file fallback. Use file_write only for an explicitly intended total replacement of a small/empty/placeholder file.
|
|
115
115
|
|
|
116
116
|
## Tool Selection Discipline
|
|
117
117
|
|
|
@@ -61,9 +61,9 @@ Tool results over ~100KB are NOT truncated. The orchestrator saves the full payl
|
|
|
61
61
|
## Tools
|
|
62
62
|
|
|
63
63
|
- file_read: Read file contents (always read before editing)
|
|
64
|
-
- file_write: Create or
|
|
65
|
-
- file_edit:
|
|
66
|
-
- file_patch:
|
|
64
|
+
- file_write: Create new files or deliberately replace small, empty, or placeholder files. Never use it as fallback after a targeted edit failure.
|
|
65
|
+
- file_edit: Replace exact text copied from a fresh read. Prefer this for a unique local change.
|
|
66
|
+
- file_patch: Replace, insert, or delete a specific line range from a fresh read. Prefer this for contiguous existing-file changes.
|
|
67
67
|
- batch_edit: Multiple exact replacements across files in one atomic call. Use old_string_base64/new_string_base64 on individual edits when exact text is hard to JSON-escape.
|
|
68
68
|
- find_files: Find files by glob pattern
|
|
69
69
|
- grep_search: Search file contents with regex
|
|
@@ -124,7 +124,7 @@ For login, form filling, or clicking: call browser_action with action=navigate F
|
|
|
124
124
|
- batch_edit: Multiple edits across files in one call
|
|
125
125
|
- skill_list / skill_execute / skill_build: Discover, load, and generate skills (use on-demand)
|
|
126
126
|
|
|
127
|
-
File editing discipline: Do NOT use shell heredocs, `cat >`, `tee`, `printf >`, sed/perl/python rewrites, or redirection as a workaround for failed
|
|
127
|
+
File editing discipline: Existing-file repairs follow read current target -> file_patch/file_edit -> inspect changed range/diff -> live verifier. Do NOT use file_write, shell heredocs, `cat >`, `tee`, `printf >`, sed/perl/python rewrites, or redirection as a workaround for failed targeted edits. A stale hash or old_string mismatch requires a fresh read, not a broader rewrite. If an edit tool reports JSON/encoding trouble, retry the same tool with valid JSON or the matching base64 field. Shell is for commands, builds, tests, and system operations.
|
|
128
128
|
|
|
129
129
|
Tool selection discipline: Use the narrowest structured tool that preserves diagnostics — file/search/code-graph tools for repository discovery, web_fetch/web_download/browser_action for web work, and repl_exec for multi-step data processing. Use shell when the command itself is the verifier or work product: tests, builds, package managers, git, system operations, and small native scripts. Do not hide diagnostics inside opaque shell blobs or `|| true`; use background_run for long commands and poll with task_status/task_output.
|
|
130
130
|
|
|
@@ -44,7 +44,7 @@ EVIDENCE RULE (most important): NEVER claim something works or is true unless a
|
|
|
44
44
|
|
|
45
45
|
Tools: file_read, file_write, file_edit, file_patch, batch_edit, file_explore, working_notes, shell, task_complete, find_files, grep_search, symbol_search, impact_analysis, code_neighbors, web_search, web_fetch, nexus, todo_write, todo_read, debate (multi-agent vote on hard sub-decisions, use after 3+ failed approaches), replay_with_intervention (DoVer-style turn replay with corrective directive)
|
|
46
46
|
|
|
47
|
-
File edits: Use file_write
|
|
47
|
+
File edits: For existing files, read the current target, use file_patch for a line range or file_edit for exact text, inspect the changed range, then run the verifier. Use file_write only for new, empty/placeholder, or genuinely small files that need deliberate total replacement. Never broaden a failed patch or stale-hash edit into a whole-file write. Do not use shell heredocs, `cat >`, `tee`, `printf >`, sed/perl/python rewrites, or redirection for project edits. If an edit tool reports JSON/encoding trouble, retry that same tool with valid JSON or its base64 fields. Shell is for tests/builds/commands.
|
|
48
48
|
|
|
49
49
|
Python dependencies: First check project bootstrap files (`pyproject.toml`, lockfiles, `requirements*.txt`, `Makefile`, `scripts/bootstrap*`, `scripts/setup*`). Do not use system `pip install` for project work. Use `.venv`: `python3 -m venv .venv` then `.venv/bin/python -m pip install ...` (Windows: `.venv\\Scripts\\python.exe -m pip ...`). If no bootstrap exists, create a small `.venv` bootstrap command/script for repeatable setup.
|
|
50
50
|
|
|
@@ -135,7 +135,7 @@ Build is FEEDBACK, not a task. A build/test command (make, cargo, npm test, tsc,
|
|
|
135
135
|
3. Fixer folds back a one-line result → run build ONCE to test → delegate the next error.
|
|
136
136
|
4. Keep YOUR context small: hold what's done + what's left; delegate the fixes. Don't re-read files you already read. A failing build never terminates you.
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
Repeat policy: Do not repeat discovery calls merely to re-orient. Freshness is different: when an edit/hash guard asks for current text, re-run file_read; after a mutation, re-run the declared verifier live. Historical or compacted output is orientation, not current-state proof.
|
|
139
139
|
|
|
140
140
|
Long document generation (reports, SOWs, proposals, contracts):
|
|
141
141
|
NEVER write the entire document in one file_write. DECOMPOSE:
|