@hongymagic/q 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/q.js +38 -27
- package/package.json +18 -18
package/dist/q.js
CHANGED
|
@@ -14522,7 +14522,7 @@ import { parseArgs } from "node:util";
|
|
|
14522
14522
|
// package.json
|
|
14523
14523
|
var package_default = {
|
|
14524
14524
|
name: "@hongymagic/q",
|
|
14525
|
-
version: "0.6.
|
|
14525
|
+
version: "0.6.1",
|
|
14526
14526
|
description: "Quick AI answers from the command line",
|
|
14527
14527
|
main: "dist/q.js",
|
|
14528
14528
|
type: "module",
|
|
@@ -14569,25 +14569,25 @@ var package_default = {
|
|
|
14569
14569
|
"build:windows-x64": "bun build --compile --minify --target=bun-windows-x64 ./src/cli.ts --outfile dist/q-windows-x64.exe"
|
|
14570
14570
|
},
|
|
14571
14571
|
dependencies: {
|
|
14572
|
-
"@ai-sdk/amazon-bedrock": "
|
|
14573
|
-
"@ai-sdk/anthropic": "
|
|
14574
|
-
"@ai-sdk/azure": "
|
|
14575
|
-
"@ai-sdk/google": "
|
|
14576
|
-
"@ai-sdk/groq": "
|
|
14577
|
-
"@ai-sdk/openai": "
|
|
14578
|
-
"@ai-sdk/openai-compatible": "
|
|
14579
|
-
"@t3-oss/env-core": "
|
|
14580
|
-
ai: "
|
|
14581
|
-
clipboardy: "
|
|
14582
|
-
"ollama-ai-provider-v2": "
|
|
14583
|
-
zod: "
|
|
14572
|
+
"@ai-sdk/amazon-bedrock": "4.0.64",
|
|
14573
|
+
"@ai-sdk/anthropic": "3.0.47",
|
|
14574
|
+
"@ai-sdk/azure": "3.0.34",
|
|
14575
|
+
"@ai-sdk/google": "3.0.31",
|
|
14576
|
+
"@ai-sdk/groq": "3.0.24",
|
|
14577
|
+
"@ai-sdk/openai": "3.0.33",
|
|
14578
|
+
"@ai-sdk/openai-compatible": "2.0.30",
|
|
14579
|
+
"@t3-oss/env-core": "0.13.10",
|
|
14580
|
+
ai: "6.0.99",
|
|
14581
|
+
clipboardy: "5.3.0",
|
|
14582
|
+
"ollama-ai-provider-v2": "3.3.1",
|
|
14583
|
+
zod: "4.3.6"
|
|
14584
14584
|
},
|
|
14585
14585
|
devDependencies: {
|
|
14586
|
-
"@biomejs/biome": "
|
|
14587
|
-
"@types/bun": "
|
|
14588
|
-
lefthook: "
|
|
14589
|
-
typescript: "
|
|
14590
|
-
vitest: "
|
|
14586
|
+
"@biomejs/biome": "2.4.4",
|
|
14587
|
+
"@types/bun": "1.3.9",
|
|
14588
|
+
lefthook: "2.1.1",
|
|
14589
|
+
typescript: "5.9.3",
|
|
14590
|
+
vitest: "4.0.18"
|
|
14591
14591
|
}
|
|
14592
14592
|
};
|
|
14593
14593
|
|
|
@@ -35336,7 +35336,7 @@ async function* executeTool({
|
|
|
35336
35336
|
}
|
|
35337
35337
|
|
|
35338
35338
|
// node_modules/@ai-sdk/anthropic/dist/index.mjs
|
|
35339
|
-
var VERSION3 = "3.0.
|
|
35339
|
+
var VERSION3 = "3.0.47";
|
|
35340
35340
|
var anthropicErrorDataSchema = lazySchema(() => zodSchema(exports_external.object({
|
|
35341
35341
|
type: exports_external.literal("error"),
|
|
35342
35342
|
error: exports_external.object({
|
|
@@ -37623,6 +37623,9 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
37623
37623
|
...(anthropicOptions == null ? undefined : anthropicOptions.speed) && {
|
|
37624
37624
|
speed: anthropicOptions.speed
|
|
37625
37625
|
},
|
|
37626
|
+
...(anthropicOptions == null ? undefined : anthropicOptions.cacheControl) && {
|
|
37627
|
+
cache_control: anthropicOptions.cacheControl
|
|
37628
|
+
},
|
|
37626
37629
|
...useStructuredOutput && (responseFormat == null ? undefined : responseFormat.type) === "json" && responseFormat.schema != null && {
|
|
37627
37630
|
output_format: {
|
|
37628
37631
|
type: "json_schema",
|
|
@@ -39347,7 +39350,7 @@ function createAnthropic(options = {}) {
|
|
|
39347
39350
|
}
|
|
39348
39351
|
var anthropic = createAnthropic();
|
|
39349
39352
|
|
|
39350
|
-
// node_modules/@ai-sdk/
|
|
39353
|
+
// node_modules/@ai-sdk/openai/dist/internal/index.mjs
|
|
39351
39354
|
var openaiErrorDataSchema = exports_external.object({
|
|
39352
39355
|
error: exports_external.object({
|
|
39353
39356
|
message: exports_external.string(),
|
|
@@ -44615,7 +44618,7 @@ function createAzureProvider(config2, providerName) {
|
|
|
44615
44618
|
});
|
|
44616
44619
|
}
|
|
44617
44620
|
|
|
44618
|
-
// node_modules/@ai-sdk/
|
|
44621
|
+
// node_modules/@ai-sdk/anthropic/dist/internal/index.mjs
|
|
44619
44622
|
var anthropicErrorDataSchema2 = lazySchema(() => zodSchema(exports_external.object({
|
|
44620
44623
|
type: exports_external.literal("error"),
|
|
44621
44624
|
error: exports_external.object({
|
|
@@ -54339,7 +54342,8 @@ var modelMaxImagesPerCall3 = {
|
|
|
54339
54342
|
"dall-e-2": 10,
|
|
54340
54343
|
"gpt-image-1": 10,
|
|
54341
54344
|
"gpt-image-1-mini": 10,
|
|
54342
|
-
"gpt-image-1.5": 10
|
|
54345
|
+
"gpt-image-1.5": 10,
|
|
54346
|
+
"chatgpt-image-latest": 10
|
|
54343
54347
|
};
|
|
54344
54348
|
var defaultResponseFormatPrefixes2 = [
|
|
54345
54349
|
"gpt-image-1-mini",
|
|
@@ -56052,7 +56056,9 @@ var openaiResponsesReasoningModelIds2 = [
|
|
|
56052
56056
|
"gpt-5.1-codex-max",
|
|
56053
56057
|
"gpt-5.2",
|
|
56054
56058
|
"gpt-5.2-chat-latest",
|
|
56055
|
-
"gpt-5.2-pro"
|
|
56059
|
+
"gpt-5.2-pro",
|
|
56060
|
+
"gpt-5.2-codex",
|
|
56061
|
+
"gpt-5.3-codex"
|
|
56056
56062
|
];
|
|
56057
56063
|
var openaiResponsesModelIds2 = [
|
|
56058
56064
|
"gpt-4.1",
|
|
@@ -58085,7 +58091,7 @@ var OpenAITranscriptionModel2 = class {
|
|
|
58085
58091
|
};
|
|
58086
58092
|
}
|
|
58087
58093
|
};
|
|
58088
|
-
var VERSION8 = "3.0.
|
|
58094
|
+
var VERSION8 = "3.0.33";
|
|
58089
58095
|
function createOpenAI(options = {}) {
|
|
58090
58096
|
var _a16, _b16;
|
|
58091
58097
|
const baseURL = (_a16 = withoutTrailingSlash(loadOptionalSetting({
|
|
@@ -60912,7 +60918,7 @@ async function getVercelRequestId() {
|
|
|
60912
60918
|
var _a92;
|
|
60913
60919
|
return (_a92 = import_oidc.getContext().headers) == null ? undefined : _a92["x-vercel-id"];
|
|
60914
60920
|
}
|
|
60915
|
-
var VERSION10 = "3.0.
|
|
60921
|
+
var VERSION10 = "3.0.55";
|
|
60916
60922
|
var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|
|
60917
60923
|
function createGatewayProvider(options = {}) {
|
|
60918
60924
|
var _a92, _b92;
|
|
@@ -60952,13 +60958,18 @@ function createGatewayProvider(options = {}) {
|
|
|
60952
60958
|
settingValue: undefined,
|
|
60953
60959
|
environmentVariableName: "VERCEL_REGION"
|
|
60954
60960
|
});
|
|
60961
|
+
const projectId = loadOptionalSetting({
|
|
60962
|
+
settingValue: undefined,
|
|
60963
|
+
environmentVariableName: "VERCEL_PROJECT_ID"
|
|
60964
|
+
});
|
|
60955
60965
|
return async () => {
|
|
60956
60966
|
const requestId = await getVercelRequestId();
|
|
60957
60967
|
return {
|
|
60958
60968
|
...deploymentId && { "ai-o11y-deployment-id": deploymentId },
|
|
60959
60969
|
...environment && { "ai-o11y-environment": environment },
|
|
60960
60970
|
...region && { "ai-o11y-region": region },
|
|
60961
|
-
...requestId && { "ai-o11y-request-id": requestId }
|
|
60971
|
+
...requestId && { "ai-o11y-request-id": requestId },
|
|
60972
|
+
...projectId && { "ai-o11y-project-id": projectId }
|
|
60962
60973
|
};
|
|
60963
60974
|
};
|
|
60964
60975
|
};
|
|
@@ -61643,7 +61654,7 @@ function detectMediaType({
|
|
|
61643
61654
|
}
|
|
61644
61655
|
return;
|
|
61645
61656
|
}
|
|
61646
|
-
var VERSION11 = "6.0.
|
|
61657
|
+
var VERSION11 = "6.0.99";
|
|
61647
61658
|
var download = async ({
|
|
61648
61659
|
url: url2,
|
|
61649
61660
|
maxBytes,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hongymagic/q",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Quick AI answers from the command line",
|
|
5
5
|
"main": "dist/q.js",
|
|
6
6
|
"type": "module",
|
|
@@ -47,24 +47,24 @@
|
|
|
47
47
|
"build:windows-x64": "bun build --compile --minify --target=bun-windows-x64 ./src/cli.ts --outfile dist/q-windows-x64.exe"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@ai-sdk/amazon-bedrock": "
|
|
51
|
-
"@ai-sdk/anthropic": "
|
|
52
|
-
"@ai-sdk/azure": "
|
|
53
|
-
"@ai-sdk/google": "
|
|
54
|
-
"@ai-sdk/groq": "
|
|
55
|
-
"@ai-sdk/openai": "
|
|
56
|
-
"@ai-sdk/openai-compatible": "
|
|
57
|
-
"@t3-oss/env-core": "
|
|
58
|
-
"ai": "
|
|
59
|
-
"clipboardy": "
|
|
60
|
-
"ollama-ai-provider-v2": "
|
|
61
|
-
"zod": "
|
|
50
|
+
"@ai-sdk/amazon-bedrock": "4.0.64",
|
|
51
|
+
"@ai-sdk/anthropic": "3.0.47",
|
|
52
|
+
"@ai-sdk/azure": "3.0.34",
|
|
53
|
+
"@ai-sdk/google": "3.0.31",
|
|
54
|
+
"@ai-sdk/groq": "3.0.24",
|
|
55
|
+
"@ai-sdk/openai": "3.0.33",
|
|
56
|
+
"@ai-sdk/openai-compatible": "2.0.30",
|
|
57
|
+
"@t3-oss/env-core": "0.13.10",
|
|
58
|
+
"ai": "6.0.99",
|
|
59
|
+
"clipboardy": "5.3.0",
|
|
60
|
+
"ollama-ai-provider-v2": "3.3.1",
|
|
61
|
+
"zod": "4.3.6"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@biomejs/biome": "
|
|
65
|
-
"@types/bun": "
|
|
66
|
-
"lefthook": "
|
|
67
|
-
"typescript": "
|
|
68
|
-
"vitest": "
|
|
64
|
+
"@biomejs/biome": "2.4.4",
|
|
65
|
+
"@types/bun": "1.3.9",
|
|
66
|
+
"lefthook": "2.1.1",
|
|
67
|
+
"typescript": "5.9.3",
|
|
68
|
+
"vitest": "4.0.18"
|
|
69
69
|
}
|
|
70
70
|
}
|