@jskit-ai/connectors-catalog 0.2.68 → 0.2.70
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/CHANGELOG.md +1 -0
- package/package.json +2 -2
- package/src/shared/ai-definition.js +2 -2
- package/test/ai.test.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- An AI integration's `settings.effort` may be `provider-default`, the AI SDK's level that sends no reasoning setting, for a model that cannot reason; the assistant's API engine names it when a provider refuses to reason.
|
|
5
6
|
- An AI integration may declare `settings.effort`, the reasoning effort its calls ask for: `none`, `minimal`, `low`, `medium`, `high` or `xhigh`, validated with the integration; `createAiConnectionResolver` returns it as the connection's `effort`. It has no editor field and is kept when the model changes. Some OpenAI-compatible hosts reason only when asked.
|
|
6
7
|
- The Wave, Mapbox, Logo.dev and Inngest instructions, the Firebase and GA4 field hints and the event delivery pattern name the staging or production server, or the application's pages, where they said the deployed application.
|
|
7
8
|
- The patterns and docs give `createConnectionService` `appEnv: appEnvironment(env)` in place of `sideEffects`; a marked operation is logged outside production (`APP_ENV`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/connectors-catalog",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.70",
|
|
4
4
|
"description": "Provider definitions and focused API operations for JSKIT connectors.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@aws-sdk/client-redshift-data": "3.1128.0",
|
|
126
126
|
"@aws-sdk/client-s3": "3.1128.0",
|
|
127
127
|
"@aws-sdk/s3-request-presigner": "3.1128.0",
|
|
128
|
-
"@jskit-ai/connectors-core": "0.2.
|
|
128
|
+
"@jskit-ai/connectors-core": "0.2.65",
|
|
129
129
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
130
130
|
"@smithy/fetch-http-handler": "5.8.0",
|
|
131
131
|
"jose": "^6.1.3",
|
|
@@ -35,8 +35,8 @@ const modelItems = Object.freeze(activeModels.map((model) => Object.freeze({
|
|
|
35
35
|
value: model.key, title: `${model.name} (${model.providerId})`, props: { subtitle: aiAccessLabels[model.access] }
|
|
36
36
|
})));
|
|
37
37
|
// The reasoning efforts an AI integration may declare: the AI SDK's standard reasoning levels, which
|
|
38
|
-
// each provider sends in its own format.
|
|
39
|
-
const aiReasoningEfforts = Object.freeze(["none", "minimal", "low", "medium", "high", "xhigh"]);
|
|
38
|
+
// each provider sends in its own format; "provider-default" sends none, for a model that cannot reason.
|
|
39
|
+
const aiReasoningEfforts = Object.freeze(["none", "minimal", "low", "medium", "high", "xhigh", "provider-default"]);
|
|
40
40
|
const aiDefinition = Object.freeze({
|
|
41
41
|
id: "ai", name: "AI", description: "jskit.connectors.ai.description",
|
|
42
42
|
accountModes: ["shared", "per-user"], authenticationMethods: ["api-key", "none"], scopes: [],
|
package/test/ai.test.js
CHANGED
|
@@ -119,6 +119,8 @@ test("AI keeps the reasoning effort an integration declares, refuses one outside
|
|
|
119
119
|
resolveReference: () => "test-key" }).resolve(request);
|
|
120
120
|
assert.equal((await resolve({ model, effort: "high" })).effort, "high");
|
|
121
121
|
assert.equal(Object.hasOwn(await resolve({ model }), "effort"), false, "Without one the engine's default applies");
|
|
122
|
+
// provider-default sends no reasoning setting, for a model that cannot reason.
|
|
123
|
+
assert.equal((await resolve({ model, effort: "provider-default" })).effort, "provider-default");
|
|
122
124
|
for (const effort of ["extreme", "max", ""]) {
|
|
123
125
|
assert.throws(() => validate(configuration({ settings: { model, effort }, authentication })), (error) => {
|
|
124
126
|
assert.ok(error.fieldErrors["integrations.suggestions.settings.effort"], JSON.stringify(error.fieldErrors)); return true;
|