@openclaw/nace 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 CHANGED
@@ -1,3 +1,24 @@
1
- # Temporary Holding Version
1
+ # Nace Drex for OpenClaw
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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/nace
11
+ pnpm openclaw models auth login --provider nace --method api-key
12
+ ```
13
+
14
+ Enter the API key in the protected prompt, or provide `NACE_API_KEY` to the
15
+ Gateway process. Connecting credentials does not change model selection. Select
16
+ `nace/drex-max-v1.1` 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 [Nace Drex setup and API contract guide](https://docs.openclaw.ai/providers/nace)
23
+ and [Decision model documentation](https://docs.openclaw.ai/concepts/decision-models)
24
+ for installation, limits, credential handling, and result semantics.
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
2
+ <path d="m12 3 5 5-5 5-5-5 5-5Zm0 10v4M5 21v-4h14v4" />
3
+ </svg>
Binary file
@@ -0,0 +1 @@
1
+ {"version":3,"entries":[{"output":"decision-provider.runtime.js","source":"extensions/nace/decision-provider.runtime.ts"},{"output":"index.js","source":"extensions/nace/index.ts"}],"chunks":[{"output":"decision-provider.runtime.js","sha256":"f4de2af551c4467c8418ddc466685d1446f5dc83a2de754873e789a80112684f","facadeSource":"extensions/nace/decision-provider.runtime.ts","sources":["extensions/nace/decision-provider.runtime.ts"]},{"output":"index.js","sha256":"9d38fa7200623ee27a80dad8c4a0c7921119bc8d0bfb323472721d397a18157f","facadeSource":"extensions/nace/index.ts","sources":["extensions/nace/index.ts"]}],"unrenderedSources":[]}
@@ -0,0 +1,14 @@
1
+ import { evaluateOpenAICompatibleDecision } from "openclaw/plugin-sdk/decisions-openai-runtime";
2
+ // extensions/nace/decision-provider.runtime.ts
3
+ async function evaluateNaceDecision(batch, context) {
4
+ context.signal.throwIfAborted();
5
+ if (context.model.provider !== "nace" || context.model.id !== "drex-max-v1.1" || 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 > 255)) return {
6
+ status: "unavailable",
7
+ reason: "unsupported-input"
8
+ };
9
+ return evaluateOpenAICompatibleDecision(batch, context, {
10
+ provider: "nace",
11
+ baseUrl: context.model.baseUrl ?? "https://console.nace.ai/v1"
12
+ });
13
+ }
14
+ export { evaluateNaceDecision };
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/nace/index.ts
5
+ const loadRuntime = createLazyRuntimeModule(() => import("./decision-provider.runtime.js"));
6
+ var nace_default = definePluginEntry({
7
+ id: "nace",
8
+ name: "Nace Decision Provider",
9
+ description: "Native typed decisions through Nace's Decisions API.",
10
+ register(api) {
11
+ api.registerProvider({
12
+ id: "nace",
13
+ label: "Nace",
14
+ docsPath: "/providers/nace",
15
+ envVars: ["NACE_API_KEY"],
16
+ auth: [createProviderApiKeyAuthMethod({
17
+ providerId: "nace",
18
+ methodId: "api-key",
19
+ label: "Nace API key",
20
+ optionKey: "naceApiKey",
21
+ flagName: "--nace-api-key",
22
+ envVar: "NACE_API_KEY",
23
+ promptMessage: "Enter your Nace API key"
24
+ })]
25
+ });
26
+ api.registerDecisionProvider({
27
+ id: "nace",
28
+ contractVersion: 2,
29
+ async evaluate(batch, context) {
30
+ context.signal.throwIfAborted();
31
+ const { evaluateNaceDecision } = await loadRuntime();
32
+ context.signal.throwIfAborted();
33
+ return evaluateNaceDecision(batch, context);
34
+ }
35
+ });
36
+ }
37
+ });
38
+ export { nace_default as default };
@@ -0,0 +1,112 @@
1
+ {
2
+ "id": "nace",
3
+ "name": "Nace",
4
+ "categories": [
5
+ "models"
6
+ ],
7
+ "activation": {
8
+ "onStartup": false
9
+ },
10
+ "enabledByDefault": true,
11
+ "providers": [
12
+ "nace"
13
+ ],
14
+ "providerEndpoints": [
15
+ {
16
+ "endpointClass": "nace-native",
17
+ "hosts": [
18
+ "console.nace.ai"
19
+ ]
20
+ }
21
+ ],
22
+ "setup": {
23
+ "providers": [
24
+ {
25
+ "id": "nace",
26
+ "envVars": [
27
+ "NACE_API_KEY"
28
+ ]
29
+ }
30
+ ]
31
+ },
32
+ "providerAuthChoices": [
33
+ {
34
+ "provider": "nace",
35
+ "method": "api-key",
36
+ "choiceId": "nace-api-key",
37
+ "appGuidedSecret": true,
38
+ "credentialOnly": true,
39
+ "choiceLabel": "Nace API key",
40
+ "groupId": "nace",
41
+ "groupLabel": "Nace",
42
+ "groupHint": "Native Decision models",
43
+ "optionKey": "naceApiKey",
44
+ "cliFlag": "--nace-api-key",
45
+ "cliOption": "--nace-api-key <key>",
46
+ "cliDescription": "Nace API key"
47
+ }
48
+ ],
49
+ "contracts": {
50
+ "decisionProviders": [
51
+ "nace"
52
+ ]
53
+ },
54
+ "modelCatalog": {
55
+ "providers": {
56
+ "nace": {
57
+ "baseUrl": "https://console.nace.ai/v1",
58
+ "models": [
59
+ {
60
+ "id": "drex-max-v1.1",
61
+ "name": "Drex Max v1.1",
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": 255
88
+ }
89
+ },
90
+ "confidence": "provider-specific",
91
+ "reasoning": {
92
+ "modes": [
93
+ "auto"
94
+ ]
95
+ },
96
+ "limits": {
97
+ "maxQuestions": 400,
98
+ "maxRequestTokens": 262144
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/nace",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2026.11.10-beta.1",
4
+ "description": "OpenClaw Nace 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/nace",
16
+ "npmSpec": "@openclaw/nace",
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
+ }