muck: accept URLs and Google Drive refs as sources (v1.1.0)#83
Draft
muck: accept URLs and Google Drive refs as sources (v1.1.0)#83
Conversation
/muck:voice --learn, /muck:voice --feedback, and a new /muck:clean --voice flag now take URLs and gdrive:// refs alongside local file paths. The new scripts/resolve-sources.py resolves any mix of sources to local files: stdlib urllib + SSRF guard for HTTP(S), `gws drive files export/get` for Google-native and raw Drive files, `gws drive files list` for folders. --voice <src> on /muck:clean is an ephemeral reference voice: resolved, analyzed inline, applied to the reconstruct pass, never persisted to voice-profile.yaml. It takes precedence over --preset and the on-disk profile. Closes: muck-remote-sources handoff (01KR726ZDBAF1AT9DNN6ZV4CAG). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Follow-up to the v1.1.0 script addition: wire the skill bodies through the new resolve-sources.py step so /muck:voice --learn, --feedback, and /muck:clean --voice have documented usage for URL and Drive sources. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/muck:voice --learnand/muck:voice --feedbacknow accept any mix of local paths, HTTP(S) URLs,gdrive://<id>refs, and Drive folder refs./muck:cleangrows a new--voice <src>flag — an ephemeral reference voice applied to the reconstruct pass without touchingvoice-profile.yaml.plugins/muck/scripts/resolve-sources.pydoes the resolution: stdlib urllib + SSRF guard for HTTP(S),gws drive files export/getfor Google-native and raw Drive files,gws drive files listfor folders.Closes:
muck-remote-sourceshandoff (pod01KR726ZDBAF1AT9DNN6ZV4CAG).Verification
ruff checkclean on the new script.analyze-voice.pyend-to-end.127.0.0.1,192.168.1.1,file://schemes with clear errors and exit 2.<article>content preserved.Design notes
html.parserwith an<article>→<main>→ body-minus-chrome fallback. No new non-stdlib deps; muck still only requires PyYAML.gwsCLI (subprocess-friendly) rather than MCP, so the resolver can run from a plain Python script. Requiresgwson PATH and prior auth — fails fast with gws's own error message otherwise.detect.pyis unchanged. The ephemeral voice feeds into the LLM-driven reconstruct pass (pass 2), not the pattern-detection pass (pass 1), so no new flag was needed on the detector.Follow-ups (not in this PR)