Remove redundant JS/shell script syncing and convert inline scripts to require() pattern#7654
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
🎉 Yo ho ho! Smoke Copilot Safe Inputs found the treasure and completed successfully! ⚓💰 |
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
📰 VERDICT: Smoke Copilot Playwright has concluded. All systems operational. This is a developing story. 🎤 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
@copilot remove actions/setup/index.js, setup.sh is the script used to copy files around |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@copilot remove sandbox MCP entry from smoke copilot agentic workflow |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
📰 DEVELOPING STORY: Smoke Copilot Playwright reports failed. Our correspondents are investigating the incident... |
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
🎉 Yo ho ho! Smoke Copilot Safe Inputs found the treasure and completed successfully! ⚓💰 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
📰 VERDICT: Smoke Copilot Playwright has concluded. All systems operational. This is a developing story. 🎤 |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
Smoke Test Results✅ File Writing: Created Status: PARTIAL PASS (2/3 tests passed)
|
Smoke Test Results: Copilot Engine (Run 20515979635)Last 2 merged PRs:
Test Results:
Overall Status: PASS cc @pelikhan
|
Smoke Test Results for Copilot (No Firewall)Last 2 Merged PRs:
Test Results:
Overall Status: PASS (4/4 required tests passed)
|
|
PRs: #7691 Remove duplicate firewall log steps in Codex workflows; #7688 Fix safe-outputs MCP server load failure by including missing dependencies in setup.sh
|
|
PRs: Remove duplicate firewall log steps in Codex workflows; Fix safe-outputs MCP server load failure by including missing dependencies in setup.sh
|
Smoke Test Results - Claude EngineLast 2 Merged PRs:
Test Results:
Overall Status: PARTIAL PASS (5/6 tests passed)
|
Smoke Test Results (Run #20515979612)❌ Playwright MCP: Timeout/installation issues Overall Status: ❌ FAIL
|
Summary
Successfully completed the removal of redundant JS/shell script syncing and converted all inline JavaScript to use the
require()pattern for loading external scripts at runtime.Changes Made
Build System
sync-shell-scriptsandsync-js-scriptsMakefile targetsbuildtarget dependency chainEmbedded Script Removal
//go:embeddirectives for 117 JavaScript files and 6 shell scriptsscripts.gofrom 402 lines to 21 linesjs.gofrom 956 lines to 649 lines (kept helper functions)GetSafeOutputsToolsJSON()to return actual JSON content for tool filteringScript Conversion to require() Pattern
require()pattern across 15+ Go filesconst { main } = require(...); await main(...)mainand remove auto-executionWriteJavaScriptToYAML()to prevent silent failuresSetup Action Consolidation
actions/setup/index.js(replaced bysetup.sh)actions/setup-safe-inputsandactions/setup-safe-outputsdirectoriesactions/setup/setup.sh:/tmp/gh-aw/actions//tmp/gh-aw/safe-inputs//tmp/gh-aw/safeoutputs/MCP Server Alignment
actions/setup/js/safe-outputs-mcp-server.cjsas unified entry pointsetup.shto copy it to/tmp/gh-aw/safeoutputs/mcp-server.cjs/tmp/gh-aw/safeoutputs/mcp-server.cjsLog Parsing Fix
GetLogParserScript()to return"EXTERNAL_SCRIPT"placeholderTest Updates
Workflow Configuration
smoke-copilot.mdworkflowArchitecture
Before: Scripts synced from
actions/setup/{js,sh}/→pkg/workflow/{js,sh}/→ embedded in Go binary via//go:embedAfter: Scripts remain in
actions/setup/{js,sh}/→ copied to/tmp/gh-aw/actions/at runtime → loaded viarequire()patternBenefits
require()pattern across all 117+ scriptsTesting
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.