Skip to content

feat: add APort VS Code extension#90

Open
HamidA1998 wants to merge 1 commit into
aporthq:mainfrom
HamidA1998:feature/vscode-extension
Open

feat: add APort VS Code extension#90
HamidA1998 wants to merge 1 commit into
aporthq:mainfrom
HamidA1998:feature/vscode-extension

Conversation

@HamidA1998
Copy link
Copy Markdown

@HamidA1998 HamidA1998 commented May 11, 2026

Summary

Closes #35 by adding a VS Code extension under tools/vscode-extension for APort policy and integration development.

The extension includes:

  • APort-specific snippets for JavaScript, TypeScript, JSON/JSONC, and YAML
  • JSON schema validation for APort policy and passport fixture files
  • APort syntax highlighting for policy packs, agent IDs, capabilities, and common keys
  • Completion items for policy keys, common policy packs, and capability names
  • Example policy/passport files and a Next.js middleware example
  • Extension documentation and a small manifest/schema validation test

Validation

  • npm run compile
  • npm test
  • npm pack --dry-run
  • git diff --check

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc9a0955cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +99 to +103
fileName.endsWith(".aport.json") ||
fileName.endsWith(".aport-policy.json") ||
fileName.endsWith(".aport-passport.json") ||
fileName.endsWith("aport.policy.json") ||
fileName.endsWith("aport.passport.json")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include aport-passport.json in APort document detection

The completion provider never treats aport-passport.json as an APort file because isLikelyAPortDocument only checks for .aport-passport.json and aport.passport.json. This conflicts with the extension manifest, which explicitly maps aport-passport.json in contributes.jsonValidation (tools/vscode-extension/package.json), so users creating that supported filename from scratch won’t get APort completions until content happens to match the fallback regex.

Useful? React with 👍 / 👎.

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.

[Hacktoberfest] Create APort VS Code extension

1 participant