Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 26, 2025

  • Analyze sing-box profile structure and relationships between modules
  • Create computed properties in profileEditor to extract outbound tags, inbound tags, and DNS server tags
  • Pass profile context (outboundTags, inboundTags, dnsServerTags) to RouteEditor, DnsEditor, OutboundsEditor as props
  • Add intellisense in RouteEditor for outbound, inbound, final, server, download_detour fields
  • Add intellisense in DnsEditor for server, inbound, final, detour fields
  • Add intellisense in OutboundsEditor for outbounds, default, detour fields (for selector/urltest)
  • Fix type errors to pass pnpm run build:
    • Changed editor components to use local schema types instead of @black-duty/sing-box-schema
    • Fixed pre-existing type error in profile store
  • All tests pass
Original prompt

Learn relations between inbounds, outbounds, route, dns of sing-box profile from sing-box official document and so implement intellisense/autocomplete in corresponding editor of each module configuration.

Note:

  • This project aims to allow user managing multiple profiles that will be distributed to different devices easily.
  • These devices uses each other from inbounds and outbounds. (eg. A configs a vmess inbound and so B can config it as its outbound, and so enables B use A as a proxy)
  • Every profile has a unique id (uuid) and will be used across outbound/inbound config, R2 key.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: xiaoland <37663413+xiaoland@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 26, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
a-cup d5f0075 Commit Preview URL

Branch Preview URL
Nov 29 2025, 06:57 AM

…ur field

Co-authored-by: xiaoland <37663413+xiaoland@users.noreply.github.com>
Copilot AI changed the title [WIP] Add intellisense for sing-box profile configuration Add intellisense for sing-box profile module relationships Nov 26, 2025
Copilot AI requested a review from xiaoland November 26, 2025 16:25
Copy link
Owner

@xiaoland xiaoland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Make sure you pass pnpm run build, I see type errors and so Cloudflare Worker failed to deploy it.

Co-authored-by: xiaoland <37663413+xiaoland@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 28, 2025

@copilot Make sure you pass pnpm run build, I see type errors and so Cloudflare Worker failed to deploy it.

Fixed type errors in commit fa9c920. The issue was type mismatch between local schema types and @black-duty/sing-box-schema types. Changed editor components to use local schema types (Dns, SingBoxOutbound, Inbound from ~/schemas/*) instead of the external package types. Also fixed a pre-existing type error in src/stores/profile.ts where name property was being used but doesn't exist in CreateProfile type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants