@openclaw/fastino-provider 0.0.0-stage → 2026.11.10-beta.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/README.md +23 -2
- package/assets/activity.svg +3 -0
- package/assets/icon.png +0 -0
- package/dist/.source-module-urls/55a4c7ef9e89e3c103afb1d81092b45ffa33029246dd5b723aed4632c670ea9f.json +1 -0
- package/dist/decision-provider.runtime.js +57 -0
- package/dist/index.js +38 -0
- package/openclaw.plugin.json +105 -0
- package/package.json +49 -4
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Fastino GLiDE for OpenClaw
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Native Boolean, Choice, and Score decisions through the separate Decision model
|
|
4
|
+
role. This plugin is a development-checkout candidate; its metadata does not
|
|
5
|
+
claim that an npm or ClawHub package has been published.
|
|
6
|
+
|
|
7
|
+
Use a matching OpenClaw checkout with the Decision V2 contract:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm openclaw plugins install ./extensions/fastino
|
|
11
|
+
pnpm openclaw models auth login --provider fastino --method api-key
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Enter the API key in the protected prompt, or provide `FASTINO_API_KEY` to the
|
|
15
|
+
Gateway process. Connecting credentials does not change model selection. Select
|
|
16
|
+
`fastino/fastino/GLiDE` in the Decision picker.
|
|
17
|
+
|
|
18
|
+
This initial adapter accepts text and JSON evidence, not image state or chat.
|
|
19
|
+
Decision evaluations send supplied evidence to the provider and incur its normal
|
|
20
|
+
usage charges. No live-provider proof has been performed for this candidate.
|
|
21
|
+
|
|
22
|
+
See the [Fastino GLiDE setup and API contract guide](https://docs.openclaw.ai/providers/fastino)
|
|
23
|
+
and [Decision model documentation](https://docs.openclaw.ai/concepts/decision-models)
|
|
24
|
+
for installation, limits, credential handling, and result semantics.
|
package/assets/icon.png
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"entries":[{"output":"decision-provider.runtime.js","source":"extensions/fastino/decision-provider.runtime.ts"},{"output":"index.js","source":"extensions/fastino/index.ts"}],"chunks":[{"output":"decision-provider.runtime.js","sha256":"6ea19b4ea8bcabd33944dfb793bf281599b4f967ea3ad008e48e3f7956d92d0c","facadeSource":"extensions/fastino/decision-provider.runtime.ts","sources":["extensions/fastino/decision-provider.runtime.ts"]},{"output":"index.js","sha256":"f70e6f57e0297db81aaa6fbc9adc970971f13819d6292cd1e7dc4020ca5c13b0","facadeSource":"extensions/fastino/index.ts","sources":["extensions/fastino/index.ts"]}],"unrenderedSources":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { decodeSystemOneResponse, validateDecisionBatchV2, validateDecisionResultV2 } from "openclaw/plugin-sdk/decisions";
|
|
2
|
+
import { evaluateDecisionHttp } from "openclaw/plugin-sdk/decisions-http-runtime";
|
|
3
|
+
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
|
+
// extensions/fastino/decision-provider.runtime.ts
|
|
5
|
+
function text(value) {
|
|
6
|
+
return value == null ? "" : typeof value === "string" ? value : JSON.stringify(value);
|
|
7
|
+
}
|
|
8
|
+
async function evaluateFastinoDecision(batch, context) {
|
|
9
|
+
context.signal.throwIfAborted();
|
|
10
|
+
if (context.model.provider !== "fastino" || context.model.id !== "fastino/GLiDE" || context.model.api !== void 0 || !validateDecisionBatchV2(batch) || batch.state.type !== "text" && batch.state.type !== "json" || Object.keys(batch.questions).length > 256 || context.reasoning !== void 0 && context.reasoning !== "auto" || Object.values(batch.questions).some((q) => q.type === "choice" && Object.keys(q.criteria).length > 255 || q.type === "score" && q.criteria.length > 255)) return {
|
|
11
|
+
status: "unavailable",
|
|
12
|
+
reason: "unsupported-input"
|
|
13
|
+
};
|
|
14
|
+
const questions = {};
|
|
15
|
+
for (const [id, q] of Object.entries(batch.questions)) {
|
|
16
|
+
if (q.type !== "boolean" && q.type !== "choice" && q.type !== "score") return {
|
|
17
|
+
status: "unavailable",
|
|
18
|
+
reason: "unsupported-input"
|
|
19
|
+
};
|
|
20
|
+
questions[id] = {
|
|
21
|
+
type: q.type === "boolean" ? "noul" : q.type,
|
|
22
|
+
instructions: text(q.instructions) || (q.type === "boolean" ? "Evaluate the true and false criteria." : q.type === "choice" ? "Choose the option that best matches the state." : "Rate the state against the ordered rubric."),
|
|
23
|
+
...q.type === "score" ? { criteria: q.criteria.map(text) } : q.criteria ? { criteria: Object.fromEntries(Object.entries(q.criteria).map(([key, value]) => [key, text(value)])) } : {}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return evaluateDecisionHttp(context, {
|
|
27
|
+
provider: "fastino",
|
|
28
|
+
baseUrl: context.model.baseUrl ?? "https://api.fastino.ai/v1",
|
|
29
|
+
endpointPath: "systemone",
|
|
30
|
+
body: JSON.stringify({
|
|
31
|
+
model: context.model.id,
|
|
32
|
+
state: batch.state.type === "text" ? batch.state.text : JSON.stringify(batch.state.value),
|
|
33
|
+
questions,
|
|
34
|
+
store: false
|
|
35
|
+
}),
|
|
36
|
+
decode: (payload) => {
|
|
37
|
+
const invalid = {
|
|
38
|
+
status: "unavailable",
|
|
39
|
+
reason: "invalid-response"
|
|
40
|
+
};
|
|
41
|
+
if (!isRecord(payload) || !isRecord(payload.answers)) return invalid;
|
|
42
|
+
const answers = Object.fromEntries(Object.entries(payload.answers).map(([id, answer]) => [id, isRecord(answer) && answer.type === "score" ? {
|
|
43
|
+
...answer,
|
|
44
|
+
score: answer.expected_level
|
|
45
|
+
} : answer]));
|
|
46
|
+
const result = decodeSystemOneResponse(batch, {
|
|
47
|
+
...payload,
|
|
48
|
+
answers
|
|
49
|
+
});
|
|
50
|
+
return validateDecisionResultV2(batch, result) ? {
|
|
51
|
+
status: "ok",
|
|
52
|
+
result
|
|
53
|
+
} : invalid;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
export { evaluateFastinoDecision };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
|
+
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
|
+
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
4
|
+
// extensions/fastino/index.ts
|
|
5
|
+
const loadRuntime = createLazyRuntimeModule(() => import("./decision-provider.runtime.js"));
|
|
6
|
+
var fastino_default = definePluginEntry({
|
|
7
|
+
id: "fastino",
|
|
8
|
+
name: "Fastino GLiDE",
|
|
9
|
+
description: "Native typed GLiDE decisions.",
|
|
10
|
+
register(api) {
|
|
11
|
+
const provider = {
|
|
12
|
+
id: "fastino",
|
|
13
|
+
contractVersion: 2,
|
|
14
|
+
provider: {
|
|
15
|
+
label: "Fastino",
|
|
16
|
+
docsPath: "/providers/fastino",
|
|
17
|
+
envVars: ["FASTINO_API_KEY"],
|
|
18
|
+
auth: [createProviderApiKeyAuthMethod({
|
|
19
|
+
providerId: "fastino",
|
|
20
|
+
methodId: "api-key",
|
|
21
|
+
label: "Fastino API key",
|
|
22
|
+
optionKey: "fastinoApiKey",
|
|
23
|
+
flagName: "--fastino-api-key",
|
|
24
|
+
envVar: "FASTINO_API_KEY",
|
|
25
|
+
promptMessage: "Enter your Fastino API key"
|
|
26
|
+
})]
|
|
27
|
+
},
|
|
28
|
+
async evaluate(batch, context) {
|
|
29
|
+
context.signal.throwIfAborted();
|
|
30
|
+
const { evaluateFastinoDecision } = await loadRuntime();
|
|
31
|
+
context.signal.throwIfAborted();
|
|
32
|
+
return evaluateFastinoDecision(batch, context);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
api.registerDecisionProvider(provider);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export { fastino_default as default };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "fastino",
|
|
3
|
+
"name": "Fastino GLiDE",
|
|
4
|
+
"description": "Native GLiDE Boolean, Choice and Score decisions.",
|
|
5
|
+
"categories": [
|
|
6
|
+
"models"
|
|
7
|
+
],
|
|
8
|
+
"enabledByDefault": false,
|
|
9
|
+
"activation": {
|
|
10
|
+
"onStartup": true
|
|
11
|
+
},
|
|
12
|
+
"providers": [
|
|
13
|
+
"fastino"
|
|
14
|
+
],
|
|
15
|
+
"contracts": {
|
|
16
|
+
"decisionProviders": [
|
|
17
|
+
"fastino"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"setup": {
|
|
21
|
+
"providers": [
|
|
22
|
+
{
|
|
23
|
+
"id": "fastino",
|
|
24
|
+
"envVars": [
|
|
25
|
+
"FASTINO_API_KEY"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"providerAuthChoices": [
|
|
31
|
+
{
|
|
32
|
+
"provider": "fastino",
|
|
33
|
+
"method": "api-key",
|
|
34
|
+
"choiceId": "fastino-api-key",
|
|
35
|
+
"appGuidedSecret": true,
|
|
36
|
+
"choiceLabel": "Fastino API key",
|
|
37
|
+
"groupId": "fastino",
|
|
38
|
+
"groupLabel": "Fastino",
|
|
39
|
+
"optionKey": "fastinoApiKey",
|
|
40
|
+
"cliFlag": "--fastino-api-key",
|
|
41
|
+
"cliOption": "--fastino-api-key <key>",
|
|
42
|
+
"cliDescription": "Fastino API key",
|
|
43
|
+
"credentialOnly": true
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"modelCatalog": {
|
|
47
|
+
"providers": {
|
|
48
|
+
"fastino": {
|
|
49
|
+
"baseUrl": "https://api.fastino.ai/v1",
|
|
50
|
+
"models": [
|
|
51
|
+
{
|
|
52
|
+
"id": "fastino/GLiDE",
|
|
53
|
+
"name": "GLiDE (hosted)",
|
|
54
|
+
"inference": {
|
|
55
|
+
"chat": false,
|
|
56
|
+
"decision": {
|
|
57
|
+
"protocol": "fastino-systemone",
|
|
58
|
+
"input": [
|
|
59
|
+
"text"
|
|
60
|
+
],
|
|
61
|
+
"questions": {
|
|
62
|
+
"boolean": {
|
|
63
|
+
"probabilities": "boolean",
|
|
64
|
+
"abstention": false
|
|
65
|
+
},
|
|
66
|
+
"choice": {
|
|
67
|
+
"probabilities": "categorical",
|
|
68
|
+
"abstention": false,
|
|
69
|
+
"minOptions": 2,
|
|
70
|
+
"maxOptions": 255
|
|
71
|
+
},
|
|
72
|
+
"score": {
|
|
73
|
+
"probabilities": "categorical",
|
|
74
|
+
"abstention": false,
|
|
75
|
+
"minOptions": 2,
|
|
76
|
+
"maxOptions": 255
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"confidence": "provider-specific",
|
|
80
|
+
"reasoning": {
|
|
81
|
+
"modes": [
|
|
82
|
+
"auto"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"limits": {
|
|
86
|
+
"maxQuestions": 256,
|
|
87
|
+
"maxStateAndQuestionTokens": 65536
|
|
88
|
+
},
|
|
89
|
+
"billing": {
|
|
90
|
+
"unit": "tokens",
|
|
91
|
+
"source": "provider-docs"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"configSchema": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"properties": {}
|
|
104
|
+
}
|
|
105
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/fastino-provider",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2026.11.10-beta.1",
|
|
4
|
+
"description": "OpenClaw Fastino GLiDE Decision provider plugin.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/openclaw/openclaw"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"openclaw": {
|
|
11
|
+
"extensions": [
|
|
12
|
+
"./index.ts"
|
|
13
|
+
],
|
|
14
|
+
"install": {
|
|
15
|
+
"clawhubSpec": "clawhub:@openclaw/fastino-provider",
|
|
16
|
+
"npmSpec": "@openclaw/fastino-provider",
|
|
17
|
+
"defaultChoice": "npm",
|
|
18
|
+
"minHostVersion": ">=2026.11.2"
|
|
19
|
+
},
|
|
20
|
+
"compat": {
|
|
21
|
+
"pluginApi": ">=2026.11.10-beta.1"
|
|
22
|
+
},
|
|
23
|
+
"build": {
|
|
24
|
+
"openclawVersion": "2026.11.10-beta.1",
|
|
25
|
+
"bundledDist": false
|
|
26
|
+
},
|
|
27
|
+
"release": {
|
|
28
|
+
"publishToClawHub": true,
|
|
29
|
+
"publishToNpm": true
|
|
30
|
+
},
|
|
31
|
+
"runtimeExtensions": [
|
|
32
|
+
"./dist/index.js"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist/**",
|
|
37
|
+
"openclaw.plugin.json",
|
|
38
|
+
"README.md",
|
|
39
|
+
"assets/icon.png",
|
|
40
|
+
"assets/activity.svg"
|
|
41
|
+
],
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"openclaw": ">=2026.11.10-beta.1"
|
|
44
|
+
},
|
|
45
|
+
"peerDependenciesMeta": {
|
|
46
|
+
"openclaw": {
|
|
47
|
+
"optional": true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"bundledDependencies": []
|
|
51
|
+
}
|