This commit is contained in:
2025-09-27 18:18:37 -04:00
parent 055c330f29
commit 244775f689
2276 changed files with 422897 additions and 30 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,166 @@
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "curl",
"title": "cURL",
"description": "Keyboard-first HTTP client",
"icon": "app-icon.png",
"author": "jonathangiardino",
"contributors": [
"pernielsentikaer",
"bkeys818",
"ridemountainpig",
"yusifaliyevpro"
],
"categories": [
"Productivity",
"Developer Tools"
],
"license": "MIT",
"commands": [
{
"name": "index",
"title": "Make HTTP Request",
"subtitle": "cURL",
"description": "Shortcut to make an HTTP request",
"mode": "view"
},
{
"name": "requests",
"title": "Requests History",
"subtitle": "cURL",
"description": "HTTP requests history",
"mode": "view"
}
],
"tools": [
{
"name": "make-http-request",
"title": "Make HTTP Request",
"description": "Make curl HTTP Request",
"input": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "CURL shell command to execute. Always use `--verbose` flag"
}
},
"required": [
"command"
]
},
"confirmation": false
}
],
"ai": {
"evals": [
{
"input": "@curl fetch https://www.raycast.com/api",
"mocks": {
"make-http-request": {
"stdout": "{}"
}
},
"expected": [
{
"callsTool": {
"arguments": {
"command": [
{
"includes": "https://www.raycast.com/api"
},
{
"includes": "curl"
},
{
"includes": "--verbose"
},
{
"not": {
"includes": "post"
}
}
]
},
"name": "make-http-request"
}
}
]
},
{
"input": "@curl make post request to localhost:3000/api/sign_in with json user=test and password=123123123",
"expected": [
{
"callsTool": {
"name": "make-http-request",
"arguments": {
"command": [
{
"includes": "POST"
},
{
"includes": "http://localhost:3000/api/sign_in"
},
{
"includes": "Content-Type: application/json"
},
{
"or": [
{
"includes": "-d "
},
{
"includes": "--data "
}
]
},
{
"includes": "\"user\":\"test\""
},
{
"includes": "\"password\":\"123123123\""
}
]
}
}
}
],
"mocks": {
"make-http-request": {
"stdout": "{}"
}
}
}
]
},
"dependencies": {
"@raycast/api": "^1.103.1",
"@raycast/utils": "^2.2.1",
"axios": "^0.27.2",
"curl-string": "^1.1.1",
"jsonpath-plus": "^10.3.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.34.0",
"@raycast/eslint-config": "^2.0.4",
"@types/node": "^22.18.6",
"@types/react": "^19.1.13",
"eslint": "^9.35.0",
"prettier": "^3.6.2",
"react": "^19.1.1",
"react-devtools": "^6.1.1",
"typescript": "^5.9.2"
},
"scripts": {
"build": "ray build -e dist",
"dev": "ray develop",
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"publish": "ray publish"
},
"platforms": [
"macOS",
"Windows"
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";var r=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(n,t)=>{for(var m in t)r(n,m,{get:t[m],enumerable:!0})},a=(n,t,m,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of f(t))!s.call(n,o)&&o!==m&&r(n,o,{get:()=>t[o],enumerable:!(c=i(t,o))||c.enumerable});return n};var y=n=>a(r({},"__esModule",{value:!0}),n);var I={};u(I,{default:()=>x});module.exports=y(I);var e=require("child_process"),p=require("util"),d=(0,p.promisify)(e.exec);async function x(n){return d(n.command)}

View File

@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../src/tools/make-http-request.ts"],
"sourcesContent": ["import { exec } from \"child_process\";\nimport { promisify } from \"util\";\n\ntype Input = {\n /**\n * CURL shell command to execute. Always use `--verbose` flag\n */\n command: string;\n};\n\nconst execAsync = promisify(exec);\n\nexport default async function (input: Input) {\n return execAsync(input.command);\n}\n"],
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAqB,yBACrBC,EAA0B,gBASpBC,KAAY,aAAU,MAAI,EAEhC,eAAOJ,EAAwBK,EAAc,CAC3C,OAAOD,EAAUC,EAAM,OAAO,CAChC",
"names": ["make_http_request_exports", "__export", "make_http_request_default", "__toCommonJS", "import_child_process", "import_util", "execAsync", "input"]
}