file · Referensi perintah
qzx auditWorkspace
Apa fungsinya
Membuat rencana deterministik dengan fingerprint konten untuk meninjau kemungkinan pembersihan tanpa mengubah workspace.
Kematangan perintah: Alpha
Tersedia untuk penggunaan nyata dan umpan balik sementara antarmuka serta perilakunya masih dapat berkembang. Ini adalah evaluasi saat ini untuk checkout pengembangan. Setiap tag rilis immutable di masa mendatang akan mempertahankan evaluasi persis yang disertakan dalam versi tersebut. Tersedia di PyPI 0.2.2.0.9. Dokumentasi ini sesuai dengan checkout alpha 0.2.2.0.9.
Perilaku dan perlindungan bawaan
Mode nyata menerapkan perubahan yang Anda minta
Eksekusi langsung untuk operasi ini
Berfungsi tanpa memanggil program native
Berfungsi tanpa menggunakan jaringan
Dirancang untuk bekerja tanpa elevasi hak akses
Audit tidak pernah mengubah isi workspace. Secara default sepenuhnya hanya-baca; plan_file dapat secara eksplisit membuat satu rencana JSON beralamat konten dan tidak pernah menimpa file yang ada. Artefak, log, cadangan, pola nama, link, entri khusus, dan saran reorganisasi hanya untuk ditinjau.
Klasifikasi keamanan ini ditinjau oleh OpenAI GPT-5.6 Sol terhadap digest implementasi sha256:c9c12a87a4e34c402974dda6d9cdbe06600092b5fa10f36ff9936a05e4aca237 pada 2026-09-05.
Sintaks persis
qzx auditWorkspace [path] [categories] [max_files] [plan_file] --jsonParameter
Geser atau gunakan bilah horizontal untuk melihat semua kolom.
| Nama | Tipe | Wajib | Default | Deskripsi |
|---|---|---|---|---|
| path | str | Tidak | "." | Direktori workspace yang akan diaudit |
| categories | str | Tidak | "build,temp,artifacts,duplicates,reorganizations" | Kategori dipisahkan koma: build, temp, artifacts, duplicates, dan reorganizations |
| max_files | int | Tidak | 15000 | Jumlah maksimum entri non-direktori yang akan diperiksa |
| plan_file | str | Tidak | Tidak dideklarasikan | File JSON baru opsional tempat rencana disimpan; file yang ada tidak pernah ditimpa |
Contoh input
qzx auditWorkspace .Periksa workspace saat ini tanpa menulis file apa pun
qzx auditWorkspace . --categories build,temp,duplicates --plan-file qzx-repair-plan.jsonSimpan rencana build, sementara, dan duplikat agar dapat divalidasi repairWorkspace kemudian
Untuk mendapatkan payload terstruktur lengkap, tambahkan --json: qzx auditWorkspace [path] [categories] [max_files] [plan_file] --json
Contoh output yang diamati
Ditangkap dengan QZX 0.2.2.0.9 di Windows 11; kode keluar 0. Nilai yang bergantung pada host dan durasi dapat bervariasi.
Perintah contoh: qzx auditWorkspace ../artifacts/qzx-evidence/repair-workspace/workspace --plan-file ../artifacts/qzx-evidence/repair-workspace/plan.json --json
{
"success": true,
"status": "complete",
"message": "Workspace audit complete: 1 executable cleanup action(s) and 0 review-only finding(s), totaling 28 recoverable byte(s). Plan saved to 'C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\repair-workspace\\plan.json'.",
"details": {
"path": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\repair-workspace\\workspace",
"workspace_unchanged": true,
"plan_file": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\repair-workspace\\plan.json",
"plan": {
"schema_version": 1,
"root": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\repair-workspace\\workspace",
"categories": [
"build",
"temp",
"artifacts",
"duplicates",
"reorganizations"
],
"max_files": 15000,
"scan_complete": true,
"scanned_files": 1,
"scanned_directories": 0,
"ignored_paths": [],
"scan_errors": [],
"actions": [
{
"category": "temp",
"kind": "delete_file",
"path": "debug.tmp",
"reason": "Temporary editor or tool output selected for explicit cleanup.",
"executable": true,
"size_bytes": 28,
"fingerprint": {
"type": "file",
"size_bytes": 28,
"sha256": "a4be5b5eeff332365000a7d71223443e63df5d51a58fdb60aa682b8b01d22266"
},
"id": "act-76685ad35f1fd085e962"
}
],
"summary": {
"total_actions": 1,
"executable_actions": 1,
"review_only_actions": 0,
"recoverable_bytes": 28,
"category_counts": {
"build": 0,
"temp": 1,
"artifacts": 0,
"duplicates": 0,
"reorganizations": 0
}
},
"plan_id": "plan-70b0f1e9ef689794bc9423b4e17812fad340a3316bb5ddf912c29483aa6d05b5"
}
},
"meta": {
"command": "auditWorkspace",
"command_maturity": {
"stage": "alpha",
"label": "Alpha",
"sequence": 2,
"public_executable": true,
"stability": "interface_may_change",
"summary": "Available for real use and feedback while its interface and behavior can still evolve.",
"promotion_review_required": false,
"assessment_scope": "development_checkout"
},
"duration_ms": 31.418,
"schema_version": 1
}
}Lihat kontrak hasil JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"success",
"message",
"meta"
],
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"meta": {
"type": "object",
"required": [
"command",
"command_maturity",
"duration_ms",
"schema_version"
],
"properties": {
"command": {
"type": "string"
},
"command_maturity": {
"type": "object",
"required": [
"stage",
"label",
"sequence",
"public_executable",
"stability",
"summary",
"promotion_review_required",
"assessment_scope"
],
"properties": {
"stage": {
"type": "string"
},
"label": {
"type": "string"
},
"sequence": {
"type": "integer"
},
"public_executable": {
"type": "boolean"
},
"stability": {
"type": "string"
},
"summary": {
"type": "string"
},
"promotion_review_required": {
"type": "boolean"
},
"assessment_scope": {
"type": "string"
},
"note": {
"type": "string"
},
"review": {
"type": "object",
"required": [
"reviewed_on",
"rationale",
"evidence"
],
"properties": {
"reviewed_on": {
"type": "string",
"format": "date"
},
"rationale": {
"type": "string"
},
"evidence": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"replacement": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": true
},
"duration_ms": {
"type": "number"
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
"details": {
"oneOf": [
{
"type": "object",
"properties": {
"path": [],
"workspace_unchanged": {
"type": "boolean"
},
"plan_file": [],
"plan": []
},
"additionalProperties": true
},
{
"type": "object",
"properties": {
"path": []
},
"additionalProperties": true
},
{
"type": "object",
"properties": {
"path": [],
"plan": [],
"plan_file": []
},
"additionalProperties": true
}
]
},
"error": [],
"error_code": {
"type": "string"
},
"status": {
"type": "string"
}
},
"additionalProperties": true
}Kesalahan dan batasan
Kontrak publik mensyaratkan success=false dan message yang deskriptif saat gagal. Katalog ini belum mendeklarasikan taksonomi kesalahan khusus untuk setiap perintah; periksa hasil dan jangan menyimpulkan kode yang tidak ada.
QZX masih dalam tahap alpha. Dependency opsional, izin, dan kemampuan host dapat mengubah hasil.
Alur bukti: ditangkap dan divalidasi dengan digest.
Bukti dan asal-usul
- Implementasi
- src/qzx/commands/file/audit_workspace.py
- Pengujian
- Tidak ditemukan file pengujian khusus dengan nama modul yang sama; ini tidak membuktikan bahwa cakupan pengujian sama sekali tidak ada.
- Kanal dokumentasi
- Dokumentasi pengembangan 0.2.2.0.9 · main · sha256:cfba936e39931c286ca23add0ae546693db17d8b316e7cbc3891d26642d9b7e8
- Ketersediaan
- 0.2.2.0.9 atau lebih lama
Lanjut jelajahi
Perintah terkait
Perintah ini juga termasuk kategori file. Bandingkan untuk memilih operasi yang paling sesuai bagi tugas Anda.
qzx touchFileMembuat file kosong atau memperbarui timestamp file yang sudah ada.qzx calculateFileHashMenghitung hash kriptografis MD5, SHA-1, dan SHA-256 dari sebuah file.qzx repairWorkspaceMemvalidasi rencana tersimpan dari auditWorkspace dan hanya menerapkan tindakan pembersihan terpilih yang belum berubah.qzx changePermissionsMengubah izin file atau direktori.