@openclaw/celeris 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/07f1d7477a0c3bc447d351506ad3b47e64003690a501b6bca3375b6dbe6602e2.json +1 -0
- package/dist/decision-provider.runtime.js +14 -0
- package/dist/index.js +38 -0
- package/openclaw.plugin.json +112 -0
- package/package.json +49 -4
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Celeris 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/celeris
|
|
11
|
+
pnpm openclaw models auth login --provider celeris --method api-key
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Enter the API key in the protected prompt, or provide `CELERIS_API_KEY` to the
|
|
15
|
+
Gateway process. Connecting credentials does not change model selection. Select
|
|
16
|
+
`celeris/celeris-1.1-decision` 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 [Celeris setup and API contract guide](https://docs.openclaw.ai/providers/celeris)
|
|
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/celeris/decision-provider.runtime.ts"},{"output":"index.js","source":"extensions/celeris/index.ts"}],"chunks":[{"output":"decision-provider.runtime.js","sha256":"e3ad7a8bc356b04149249b11c6f89e102540361c74be159e36a5c1f4e0f32537","facadeSource":"extensions/celeris/decision-provider.runtime.ts","sources":["extensions/celeris/decision-provider.runtime.ts"]},{"output":"index.js","sha256":"870d9e9828a8a1efa0389b89c1696498667dce9e5abb1d668a0928f9d3e6f3be","facadeSource":"extensions/celeris/index.ts","sources":["extensions/celeris/index.ts"]}],"unrenderedSources":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { evaluateOpenAICompatibleDecision } from "openclaw/plugin-sdk/decisions-openai-runtime";
|
|
2
|
+
// extensions/celeris/decision-provider.runtime.ts
|
|
3
|
+
async function evaluateCelerisDecision(batch, context) {
|
|
4
|
+
context.signal.throwIfAborted();
|
|
5
|
+
if (context.model.provider !== "celeris" || context.model.id !== "celeris-1.1-decision" || context.model.api !== void 0 || batch.state.type !== "text" && batch.state.type !== "json" || Object.values(batch.questions).some((question) => question.type === "score" && question.criteria.length > 64)) return {
|
|
6
|
+
status: "unavailable",
|
|
7
|
+
reason: "unsupported-input"
|
|
8
|
+
};
|
|
9
|
+
return evaluateOpenAICompatibleDecision(batch, context, {
|
|
10
|
+
provider: "celeris",
|
|
11
|
+
baseUrl: context.model.baseUrl ?? "https://inference.celeris.ai/celeris-1-decision/v1"
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export { evaluateCelerisDecision };
|
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/celeris/index.ts
|
|
5
|
+
const loadRuntime = createLazyRuntimeModule(() => import("./decision-provider.runtime.js"));
|
|
6
|
+
var celeris_default = definePluginEntry({
|
|
7
|
+
id: "celeris",
|
|
8
|
+
name: "Celeris Decision Provider",
|
|
9
|
+
description: "Native typed decisions through Celeris's Decisions API.",
|
|
10
|
+
register(api) {
|
|
11
|
+
api.registerProvider({
|
|
12
|
+
id: "celeris",
|
|
13
|
+
label: "Celeris",
|
|
14
|
+
docsPath: "/providers/celeris",
|
|
15
|
+
envVars: ["CELERIS_API_KEY"],
|
|
16
|
+
auth: [createProviderApiKeyAuthMethod({
|
|
17
|
+
providerId: "celeris",
|
|
18
|
+
methodId: "api-key",
|
|
19
|
+
label: "Celeris API key",
|
|
20
|
+
optionKey: "celerisApiKey",
|
|
21
|
+
flagName: "--celeris-api-key",
|
|
22
|
+
envVar: "CELERIS_API_KEY",
|
|
23
|
+
promptMessage: "Enter your Celeris API key"
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
api.registerDecisionProvider({
|
|
27
|
+
id: "celeris",
|
|
28
|
+
contractVersion: 2,
|
|
29
|
+
async evaluate(batch, context) {
|
|
30
|
+
context.signal.throwIfAborted();
|
|
31
|
+
const { evaluateCelerisDecision } = await loadRuntime();
|
|
32
|
+
context.signal.throwIfAborted();
|
|
33
|
+
return evaluateCelerisDecision(batch, context);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export { celeris_default as default };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "celeris",
|
|
3
|
+
"name": "Celeris",
|
|
4
|
+
"categories": [
|
|
5
|
+
"models"
|
|
6
|
+
],
|
|
7
|
+
"activation": {
|
|
8
|
+
"onStartup": false
|
|
9
|
+
},
|
|
10
|
+
"enabledByDefault": true,
|
|
11
|
+
"providers": [
|
|
12
|
+
"celeris"
|
|
13
|
+
],
|
|
14
|
+
"providerEndpoints": [
|
|
15
|
+
{
|
|
16
|
+
"endpointClass": "celeris-native",
|
|
17
|
+
"hosts": [
|
|
18
|
+
"inference.celeris.ai"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"setup": {
|
|
23
|
+
"providers": [
|
|
24
|
+
{
|
|
25
|
+
"id": "celeris",
|
|
26
|
+
"envVars": [
|
|
27
|
+
"CELERIS_API_KEY"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"providerAuthChoices": [
|
|
33
|
+
{
|
|
34
|
+
"provider": "celeris",
|
|
35
|
+
"method": "api-key",
|
|
36
|
+
"choiceId": "celeris-api-key",
|
|
37
|
+
"appGuidedSecret": true,
|
|
38
|
+
"credentialOnly": true,
|
|
39
|
+
"choiceLabel": "Celeris API key",
|
|
40
|
+
"groupId": "celeris",
|
|
41
|
+
"groupLabel": "Celeris",
|
|
42
|
+
"groupHint": "Native Decision models",
|
|
43
|
+
"optionKey": "celerisApiKey",
|
|
44
|
+
"cliFlag": "--celeris-api-key",
|
|
45
|
+
"cliOption": "--celeris-api-key <key>",
|
|
46
|
+
"cliDescription": "Celeris API key"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"contracts": {
|
|
50
|
+
"decisionProviders": [
|
|
51
|
+
"celeris"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"modelCatalog": {
|
|
55
|
+
"providers": {
|
|
56
|
+
"celeris": {
|
|
57
|
+
"baseUrl": "https://inference.celeris.ai/celeris-1-decision/v1",
|
|
58
|
+
"models": [
|
|
59
|
+
{
|
|
60
|
+
"id": "celeris-1.1-decision",
|
|
61
|
+
"name": "Celeris-1.1 Decision",
|
|
62
|
+
"input": [
|
|
63
|
+
"text"
|
|
64
|
+
],
|
|
65
|
+
"inference": {
|
|
66
|
+
"chat": false,
|
|
67
|
+
"decision": {
|
|
68
|
+
"protocol": "openai-decisions",
|
|
69
|
+
"input": [
|
|
70
|
+
"text"
|
|
71
|
+
],
|
|
72
|
+
"questions": {
|
|
73
|
+
"boolean": {
|
|
74
|
+
"probabilities": "boolean",
|
|
75
|
+
"abstention": false
|
|
76
|
+
},
|
|
77
|
+
"choice": {
|
|
78
|
+
"probabilities": "categorical",
|
|
79
|
+
"abstention": false,
|
|
80
|
+
"minOptions": 2,
|
|
81
|
+
"maxOptions": 255
|
|
82
|
+
},
|
|
83
|
+
"score": {
|
|
84
|
+
"probabilities": "categorical",
|
|
85
|
+
"abstention": false,
|
|
86
|
+
"minOptions": 2,
|
|
87
|
+
"maxOptions": 64
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"confidence": "provider-specific",
|
|
91
|
+
"reasoning": {
|
|
92
|
+
"modes": [
|
|
93
|
+
"auto"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"limits": {
|
|
97
|
+
"maxQuestions": 400,
|
|
98
|
+
"maxRequestTokens": 131072
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"configSchema": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"properties": {}
|
|
111
|
+
}
|
|
112
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/celeris",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2026.11.10-beta.1",
|
|
4
|
+
"description": "OpenClaw Celeris native Decision provider.",
|
|
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/celeris",
|
|
16
|
+
"npmSpec": "@openclaw/celeris",
|
|
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
|
+
}
|