-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/backlog priority fixes #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4c61697
feat(log): add DevCtlLog OSLog facade with test recorder
quantizor b7cdc9c
feat(config): warn when host or url uses bare loopback
quantizor d493fc6
feat(agent): add DiscoveryStanza for CLAUDE.md paste tip
quantizor 2a3c2d7
feat(deeplink): parse, serialize, and run devctl:// URLs
quantizor 4dcc4c6
fix(daemon): restore config servers on boot and install upgrade
quantizor 89e5111
feat(spotlight): use project · head titles and .text items
quantizor 5556b2a
feat(app): wire deep links, notification actions, and CLI link/x-url
quantizor 58dd27b
docs: cover deeplink, recovery, QoS check, and naming guidance
quantizor 39b40ed
chore(changeset): skip maintainer self-thanks in changelog
quantizor 151c089
fix: address PR review on Spotlight JSON, head hint, qos script
quantizor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "devctl": patch | ||
| --- | ||
|
|
||
| Warn in `config check` when a host or url uses bare `localhost` / `127.0.0.1` instead of a `<slug>.localhost` origin. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| /** Wraps `@changesets/changelog-github`, omitting self-thanks for the | ||
| maintainer login while still thanking other contributors. */ | ||
| const github = require("@changesets/changelog-github"); | ||
|
|
||
| const NO_THANKS = new Set(["quantizor"]); | ||
|
|
||
| /** @param {string} line */ | ||
| function stripMaintainerThanks(line) { | ||
| return line.replace( | ||
| / Thanks ((?:\[@[^\]]+\]\([^)]+\))(?:, (?:\[@[^\]]+\]\([^)]+\)))*)!/g, | ||
| (_, users) => { | ||
| const kept = users | ||
| .split(/,\s*/) | ||
| .filter((user) => { | ||
| const match = user.match(/^\[@([^\]]+)\]/); | ||
| return match ? !NO_THANKS.has(match[1].toLowerCase()) : true; | ||
| }); | ||
| if (kept.length === 0) return ""; | ||
| return ` Thanks ${kept.join(", ")}!`; | ||
| }, | ||
| ); | ||
| } | ||
|
|
||
| module.exports = { | ||
| getDependencyReleaseLine: github.getDependencyReleaseLine, | ||
| getReleaseLine: async (changeset, type, options) => { | ||
| const line = await github.getReleaseLine(changeset, type, options); | ||
| return stripMaintainerThanks(line); | ||
| }, | ||
| }; |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "devctl": minor | ||
| --- | ||
|
|
||
| Open servers and run lifecycle verbs via `devctl://` URLs (menu bar app + `devctl link` / `devctl x-url`), with unified logging under subsystem `dev.quantizor.devctl`. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "devctl": patch | ||
| --- | ||
|
|
||
| After `hook install`, print a one-bullet CLAUDE.md / AGENTS.md discovery tip for the project (paste-only; never auto-edits those files). |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "devctl": patch | ||
| --- | ||
|
|
||
| Restore config-defined servers after reboot and `daemon install` upgrades (merged config+registry recover; install re-ensures like restart). |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "devctl": patch | ||
| --- | ||
|
|
||
| Spotlight entries use `<project> · <head>` titles with a `devctl · <url>` subtitle for clearer discovery. |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| import AppKit | ||
| import DevCtlKit | ||
| import Foundation | ||
| import UserNotifications | ||
|
|
||
| /** AppKit / UserNotifications side effects for `DeepLinkRunner`. */ | ||
| struct AppDeepLinkEffects: DeepLinkEffects { | ||
| func copyToPasteboard(_ text: String) async { | ||
| await MainActor.run { | ||
| NSPasteboard.general.clearContents() | ||
| NSPasteboard.general.setString(text, forType: .string) | ||
| } | ||
| } | ||
|
|
||
| func notify(title: String, body: String) async { | ||
| let content = UNMutableNotificationContent() | ||
| content.title = title | ||
| content.body = body | ||
| content.sound = .default | ||
| let request = UNNotificationRequest( | ||
| identifier: "devctl-deeplink-\(UUID().uuidString)", content: content, trigger: nil) | ||
| try? await UNUserNotificationCenter.current().add(request) | ||
| } | ||
|
|
||
| func openBrowser(_ url: URL) async { | ||
| await MainActor.run { NSWorkspace.shared.open(url) } | ||
| } | ||
| } | ||
|
|
||
| /** Shared deep-link dispatch used by URL opens and notification actions. */ | ||
| enum AppDeepLinkDispatch { | ||
| static let serverAlertCategory = "dev.quantizor.devctl.server-alert" | ||
| static let userInfoProject = "project" | ||
| static let userInfoServer = "server" | ||
| static let userInfoHead = "head" | ||
|
|
||
| static func run(_ url: URL) { | ||
| switch DeepLink.parse(url: url) { | ||
| case .failure(let error): | ||
| DevCtlLog.deeplink.error("reject \(error.message)") | ||
| Task { | ||
| await AppDeepLinkEffects().notify(title: "devctl link failed", body: error.message) | ||
| } | ||
| case .success(let link): | ||
| Task { await execute(link) } | ||
| } | ||
| } | ||
|
|
||
| static func run(_ link: DeepLink) { | ||
| Task { await execute(link) } | ||
| } | ||
|
|
||
| private static func execute(_ link: DeepLink) async { | ||
| let client = DaemonClient(socketPath: DevCtlPaths().socketPath) | ||
| do { | ||
| try await client.connect() | ||
| let result = try await DeepLinkRunner(client: client, effects: AppDeepLinkEffects()).run(link) | ||
| DevCtlLog.app.info( | ||
| "deeplink \(result.verb.rawValue) \(result.projectPath) \(result.detail ?? "")") | ||
| } catch let error as WireError { | ||
| DevCtlLog.deeplink.error("\(error.message)") | ||
| await AppDeepLinkEffects().notify(title: "devctl link failed", body: error.message) | ||
| } catch { | ||
| DevCtlLog.deeplink.error("\(error)") | ||
| await AppDeepLinkEffects().notify(title: "devctl link failed", body: String(describing: error)) | ||
| } | ||
| } | ||
|
|
||
| /** Register Open / Why actions once at launch. */ | ||
| static func registerNotificationCategories() { | ||
| let open = UNNotificationAction( | ||
| identifier: DeepLinkNotificationAction.open.rawValue, title: "Open") | ||
| let why = UNNotificationAction( | ||
| identifier: DeepLinkNotificationAction.why.rawValue, title: "Why") | ||
| let category = UNNotificationCategory( | ||
| identifier: serverAlertCategory, actions: [open, why], intentIdentifiers: []) | ||
| UNUserNotificationCenter.current().setNotificationCategories([category]) | ||
| } | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.