2026-04-04 21:28:01 +00:00
|
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
|
import { readFileSync } from "node:fs";
|
|
|
|
|
import path from "node:path";
|
|
|
|
|
|
2026-04-05 02:34:15 +00:00
|
|
|
const autoTagWorkflowPath = path.resolve(
|
2026-04-04 21:28:01 +00:00
|
|
|
process.cwd(),
|
feat: full copy from apollo_nxt-trcaa with complete sanitization
Complete backport of all features from apollo_nxt-trcaa repository:
- Three-tier shell execution safety system (Tier 1: auto, Tier 2: approve, Tier 3: deny)
- Ollama function calling with tool use support
- AI provider tool calling auto-detection
- kubectl binary bundling and management
- kubeconfig upload and context management
- Shell approval modal with real-time UI
- MCP protocol HTTP transport with custom headers
- Enhanced security audit logging
- Comprehensive test coverage (275+ tests)
- Updated CI/CD workflows for Gitea Actions
- Complete documentation (ADRs, wiki, release notes)
Sanitization applied to all files:
- Removed all MSI, Motorola, VNXT, Vesta references
- Replaced internal infrastructure references with TFTSR equivalents
- Updated all URLs and API endpoints
- Sanitized commit history references in documentation
Technical changes:
- New modules: shell/classifier, shell/executor, shell/kubectl, shell/kubeconfig
- Enhanced AI providers: ollama.rs, openai.rs with function calling
- New Tauri commands: shell execution, kubeconfig management, tool calling detection
- Database migrations: shell_execution_audit table
- Frontend: ShellApprovalModal, ShellExecution, KubeconfigManager pages
- CI/CD: kubectl bundling, multi-platform builds, Gitea Actions integration
Version: 1.0.8
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-06-05 19:11:00 +00:00
|
|
|
".github/workflows/release.yml",
|
2026-04-04 21:28:01 +00:00
|
|
|
);
|
|
|
|
|
|
2026-04-05 02:34:15 +00:00
|
|
|
describe("auto-tag release macOS bundle path", () => {
|
2026-04-04 21:28:01 +00:00
|
|
|
it("does not reference the legacy TFTSR.app bundle name", () => {
|
2026-04-05 02:34:15 +00:00
|
|
|
const workflow = readFileSync(autoTagWorkflowPath, "utf-8");
|
2026-04-04 21:28:01 +00:00
|
|
|
|
|
|
|
|
expect(workflow).not.toContain("/bundle/macos/TFTSR.app");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it("resolves the macOS .app bundle dynamically", () => {
|
2026-04-05 02:34:15 +00:00
|
|
|
const workflow = readFileSync(autoTagWorkflowPath, "utf-8");
|
2026-04-04 21:28:01 +00:00
|
|
|
|
|
|
|
|
expect(workflow).toContain("APP=$(find");
|
|
|
|
|
expect(workflow).toContain("-name \"*.app\"");
|
|
|
|
|
});
|
|
|
|
|
});
|