Skip to content

Conversation

@shiny
Copy link
Contributor

@shiny shiny commented Jan 29, 2026

Description

add new commands

  • shorten URL by input arguments
  • add a new setting: generate meaningful short key by AI
  • add AI tools for short link generation

upgrade API from v2 to v3

Screencast

https://focusee.imobie.com/share/02c4727c639443a598f8019266c23397?FocuSeeVideo

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: u301-url-shortener Issues related to the u301-url-shortener extension AI Extension platform: macOS OP is author The OP of the PR is the author of the extension labels Jan 29, 2026
@raycastbot
Copy link
Collaborator

Thank you for the update! 🎉

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

@shiny shiny changed the title Feat: add new commands for Ext/u301 url shortener Feat: add new commands for Ext/u301 URL Shortener Jan 29, 2026
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 29, 2026

Greptile Overview

Greptile Summary

This PR adds AI-powered features and a new parameterized command to the U301 URL shortener extension. The changes introduce a new "Shorten URL" command that accepts URL, key, and comment arguments, while the original clipboard-based functionality has been moved to shorten-url-from-clipboard.tsx.

Key additions:

  • AI tool integration (create-short-link) for generating short links through Raycast AI
  • Optional AI-powered short key generation using customizable prompts
  • New workspace ID preference for organizing shortened URLs
  • Upgraded to API v3 with improved error handling
  • Removed node-fetch dependency (using built-in fetch)
  • Proper use of @raycast/utils getFavicon utility

Issues found:

  • Two preference titles/labels not using title case (lines 121, 123 in package.json)

Confidence Score: 4.5/5

  • Safe to merge after fixing minor style issues with preference title casing
  • Well-implemented feature addition with good architectural decisions (moved clipboard logic to separate file, proper error handling, removed unnecessary dependencies). Only minor style guide violations for title case in preferences.
  • Only package.json needs attention for title case fixes on preference labels

Important Files Changed

Filename Overview
extensions/u301-url-shortener/package.json Added AI tools integration, new command with arguments, and workspace/AI preferences with minor title case issues
extensions/u301-url-shortener/src/index.tsx Refactored from clipboard-based to argument-based URL shortening with proper error handling and favicon usage
extensions/u301-url-shortener/src/util.ts Updated to use v3 API, added AI-powered slug generation, removed node-fetch import, improved error handling
extensions/u301-url-shortener/src/tools/create-short-link.ts New AI tool for creating short links with proper input schema documentation

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

4 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

shiny and others added 2 commits January 29, 2026 15:45
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension extension fix / improvement Label for PRs with extension's fix improvements extension: u301-url-shortener Issues related to the u301-url-shortener extension OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants