Implements Phases 1-8 of the TFTSR implementation plan. Rust backend (Tauri 2.x, src-tauri/): - Multi-provider AI: OpenAI-compatible, Anthropic, Gemini, Mistral, Ollama - PII detection engine: 11 regex patterns with overlap resolution - SQLCipher AES-256 encrypted database with 10 versioned migrations - 28 Tauri IPC commands for triage, analysis, document, and system ops - Ollama: hardware probe, model recommendations, pull/delete with events - RCA and blameless post-mortem Markdown document generators - PDF export via printpdf - Audit log: SHA-256 hash of every external data send - Integration stubs for Confluence, ServiceNow, Azure DevOps (v0.2) Frontend (React 18 + TypeScript + Vite, src/): - 9 pages: full triage workflow NewIssue→LogUpload→Triage→Resolution→RCA→Postmortem→History+Settings - 7 components: ChatWindow, TriageProgress, PiiDiffViewer, DocEditor, HardwareReport, ModelSelector, UI primitives - 3 Zustand stores: session, settings (persisted), history - Type-safe tauriCommands.ts matching Rust backend types exactly - 8 IT domain system prompts (Linux, Windows, Network, K8s, DB, Virt, HW, Obs) DevOps: - .woodpecker/test.yml: rustfmt, clippy, cargo test, tsc, vitest on every push - .woodpecker/release.yml: linux/amd64 + linux/arm64 builds, Gogs release upload Verified: - cargo check: zero errors - tsc --noEmit: zero errors - vitest run: 13/13 unit tests passing Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
90 lines
2.6 KiB
JSON
90 lines
2.6 KiB
JSON
{
|
|
"name": "magicast",
|
|
"version": "0.3.5",
|
|
"description": "Modify a JS/TS file and write back magically just like JSON!",
|
|
"repository": "unjs/magicast",
|
|
"license": "MIT",
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.mjs",
|
|
"require": "./dist/index.cjs"
|
|
},
|
|
"./helpers": {
|
|
"import": "./dist/helpers.mjs",
|
|
"require": "./dist/helpers.cjs"
|
|
}
|
|
},
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"*.d.ts"
|
|
],
|
|
"scripts": {
|
|
"build": "unbuild",
|
|
"prepare": "esno ./scripts/vendor.ts",
|
|
"dev": "vitest dev",
|
|
"dev:ui": "vitest dev --ui",
|
|
"lint": "eslint --cache . && prettier -c .",
|
|
"lint:fix": "eslint --cache . --fix && prettier -c . -w",
|
|
"prepack": "pnpm run build",
|
|
"typecheck": "tsc --noEmit",
|
|
"release": "pnpm run test run && changelogen --release && npm publish && git push --follow-tags",
|
|
"test": "vitest",
|
|
"test:build": "TEST_BUILD=true vitest",
|
|
"test:full": "pnpm run test --run && pnpm run build && pnpm run test:build --run"
|
|
},
|
|
"dependencies": {
|
|
"@babel/parser": "^7.25.4",
|
|
"@babel/types": "^7.25.4",
|
|
"source-map-js": "^1.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.16.1",
|
|
"@vitest/coverage-v8": "^1.6.0",
|
|
"@vitest/ui": "^1.6.0",
|
|
"ast-types": "^0.16.1",
|
|
"changelogen": "^0.5.5",
|
|
"eslint": "^9.9.1",
|
|
"eslint-config-unjs": "^0.3.2",
|
|
"esno": "^4.7.0",
|
|
"giget": "^1.2.3",
|
|
"lint-staged": "^15.2.9",
|
|
"magicast": "workspace:*",
|
|
"prettier": "^3.3.3",
|
|
"recast": "^0.23.9",
|
|
"simple-git-hooks": "^2.11.1",
|
|
"source-map": "npm:source-map-js@latest",
|
|
"typescript": "^5.5.4",
|
|
"unbuild": "^2.0.0",
|
|
"vitest": "^1.6.0"
|
|
},
|
|
"resolutions": {
|
|
"source-map": "npm:source-map-js@latest"
|
|
},
|
|
"simple-git-hooks": {
|
|
"pre-commit": "pnpm lint-staged"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,js,mjs,cjs}": [
|
|
"eslint --fix",
|
|
"prettier -w"
|
|
]
|
|
},
|
|
"packageManager": "pnpm@8.15.9",
|
|
"pnpm": {
|
|
"overrides": {
|
|
"array-includes": "npm:@nolyfill/array-includes@latest",
|
|
"array.prototype.findlastindex": "npm:@nolyfill/array.prototype.findlastindex@latest",
|
|
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
|
|
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
|
|
"hasown": "npm:@nolyfill/hasown@latest",
|
|
"object.fromentries": "npm:@nolyfill/object.fromentries@latest",
|
|
"object.groupby": "npm:@nolyfill/object.groupby@latest",
|
|
"object.values": "npm:@nolyfill/object.values@latest"
|
|
}
|
|
}
|
|
} |