@openclaw/particle-provider 0.0.0-stage → 2026.10.33
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 +4 -2
- package/assets/activity.svg +5 -0
- package/assets/icon.png +0 -0
- package/dist/.setup/onboard-CjoABAqk.mjs +115 -0
- package/dist/index.js +22 -0
- package/dist/onboard.js +2 -0
- package/openclaw.plugin.json +123 -0
- package/package.json +49 -4
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# OpenClaw Particle Provider
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Official OpenClaw provider plugin for Particle-1. Configure `PARTICLE_API_KEY`
|
|
4
|
+
and select `particle/particle-ai/particle-1`. See https://docs.openclaw.ai/providers/particle
|
|
5
|
+
for setup and supported capabilities.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<ellipse cx="16" cy="16" rx="12" ry="5" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
3
|
+
<ellipse cx="16" cy="16" rx="5" ry="12" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
4
|
+
<circle cx="16" cy="16" r="2" fill="currentColor"/>
|
|
5
|
+
</svg>
|
package/assets/icon.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { buildManifestModelProviderConfig, readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
|
+
import { createProviderConnectionPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
|
+
//#region extensions/particle/openclaw.plugin.json
|
|
4
|
+
var openclaw_plugin_default = {
|
|
5
|
+
id: "particle",
|
|
6
|
+
categories: ["models"],
|
|
7
|
+
activation: { "onStartup": false },
|
|
8
|
+
enabledByDefault: true,
|
|
9
|
+
providers: ["particle"],
|
|
10
|
+
providerEndpoints: [{
|
|
11
|
+
"endpointClass": "particle-native",
|
|
12
|
+
"hosts": ["api.particle.ai"]
|
|
13
|
+
}],
|
|
14
|
+
setup: { "providers": [{
|
|
15
|
+
"id": "particle",
|
|
16
|
+
"envVars": ["PARTICLE_API_KEY"]
|
|
17
|
+
}] },
|
|
18
|
+
providerAuthChoices: [{
|
|
19
|
+
"provider": "particle",
|
|
20
|
+
"method": "api-key",
|
|
21
|
+
"choiceId": "particle-api-key",
|
|
22
|
+
"appGuidedSecret": true,
|
|
23
|
+
"choiceLabel": "Particle API key",
|
|
24
|
+
"groupId": "particle",
|
|
25
|
+
"groupLabel": "Particle",
|
|
26
|
+
"groupHint": "API key",
|
|
27
|
+
"optionKey": "particleApiKey",
|
|
28
|
+
"cliFlag": "--particle-api-key",
|
|
29
|
+
"cliOption": "--particle-api-key <key>",
|
|
30
|
+
"cliDescription": "Particle API key"
|
|
31
|
+
}],
|
|
32
|
+
modelCatalog: {
|
|
33
|
+
"discovery": { "particle": "refreshable" },
|
|
34
|
+
"providers": { "particle": {
|
|
35
|
+
"baseUrl": "https://api.particle.ai/v1",
|
|
36
|
+
"api": "openai-completions",
|
|
37
|
+
"defaultModel": "particle-ai/particle-1",
|
|
38
|
+
"models": [{
|
|
39
|
+
"id": "particle-ai/particle-1",
|
|
40
|
+
"name": "Particle-1",
|
|
41
|
+
"reasoning": true,
|
|
42
|
+
"thinkingLevelMap": {
|
|
43
|
+
"xhigh": "high",
|
|
44
|
+
"max": "max"
|
|
45
|
+
},
|
|
46
|
+
"input": ["text", "image"],
|
|
47
|
+
"contextWindow": 1048576,
|
|
48
|
+
"maxTokens": 131072,
|
|
49
|
+
"cost": {
|
|
50
|
+
"input": .25,
|
|
51
|
+
"output": 1,
|
|
52
|
+
"cacheRead": .03,
|
|
53
|
+
"cacheWrite": 0
|
|
54
|
+
},
|
|
55
|
+
"compat": {
|
|
56
|
+
"supportsDeveloperRole": true,
|
|
57
|
+
"supportsReasoningEffort": true,
|
|
58
|
+
"supportsUsageInStreaming": true,
|
|
59
|
+
"supportsStrictMode": false,
|
|
60
|
+
"supportsPromptCacheKey": true,
|
|
61
|
+
"supportsLongCacheRetention": false,
|
|
62
|
+
"maxTokensField": "max_tokens",
|
|
63
|
+
"reasoningEffortMap": {
|
|
64
|
+
"off": "none",
|
|
65
|
+
"none": "none",
|
|
66
|
+
"minimal": "low",
|
|
67
|
+
"low": "low",
|
|
68
|
+
"medium": "high",
|
|
69
|
+
"high": "high",
|
|
70
|
+
"xhigh": "high",
|
|
71
|
+
"max": "max"
|
|
72
|
+
},
|
|
73
|
+
"supportedReasoningEfforts": [
|
|
74
|
+
"none",
|
|
75
|
+
"low",
|
|
76
|
+
"high",
|
|
77
|
+
"max"
|
|
78
|
+
],
|
|
79
|
+
"thinkingFormat": "openai",
|
|
80
|
+
"defaultThinkingLevel": "high"
|
|
81
|
+
}
|
|
82
|
+
}]
|
|
83
|
+
} }
|
|
84
|
+
},
|
|
85
|
+
modelIdNormalization: { "providers": { "particle": { "aliases": { "particle-1": "particle-ai/particle-1" } } } },
|
|
86
|
+
configSchema: {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"properties": {}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region extensions/particle/onboard.ts
|
|
94
|
+
const defaultModelRef = readManifestProviderDefaultModelRef(openclaw_plugin_default, "particle");
|
|
95
|
+
const { applyConfig: applyParticleConfig } = createProviderConnectionPresetAppliers({
|
|
96
|
+
primaryModelRef: defaultModelRef,
|
|
97
|
+
resolveParams: () => {
|
|
98
|
+
const provider = buildManifestModelProviderConfig({
|
|
99
|
+
providerId: "particle",
|
|
100
|
+
catalog: openclaw_plugin_default.modelCatalog.providers.particle
|
|
101
|
+
});
|
|
102
|
+
return {
|
|
103
|
+
providerId: "particle",
|
|
104
|
+
api: "openai-completions",
|
|
105
|
+
baseUrl: provider.baseUrl,
|
|
106
|
+
catalogModels: () => provider.models,
|
|
107
|
+
aliases: [{
|
|
108
|
+
modelRef: defaultModelRef,
|
|
109
|
+
alias: "Particle-1"
|
|
110
|
+
}]
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
//#endregion
|
|
115
|
+
export { openclaw_plugin_default as n, applyParticleConfig as t };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { n as openclaw_plugin_default, t as applyParticleConfig } from "./.setup/onboard-CjoABAqk.mjs";
|
|
2
|
+
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
3
|
+
import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
|
|
4
|
+
//#region extensions/particle/index.ts
|
|
5
|
+
var particle_default = defineSingleProviderPluginEntry({
|
|
6
|
+
id: "particle",
|
|
7
|
+
name: "Particle Provider",
|
|
8
|
+
description: "Particle model provider",
|
|
9
|
+
manifest: openclaw_plugin_default,
|
|
10
|
+
provider: {
|
|
11
|
+
label: "Particle",
|
|
12
|
+
docsPath: "/providers/particle",
|
|
13
|
+
manifestAuth: { applyConfig: applyParticleConfig },
|
|
14
|
+
catalog: {
|
|
15
|
+
liveModelDiscovery: true,
|
|
16
|
+
discoveryMode: "strict"
|
|
17
|
+
},
|
|
18
|
+
...buildProviderReplayFamilyHooks({ family: "openai-compatible" })
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { particle_default as default };
|
package/dist/onboard.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "particle",
|
|
3
|
+
"categories": [
|
|
4
|
+
"models"
|
|
5
|
+
],
|
|
6
|
+
"activation": {
|
|
7
|
+
"onStartup": false
|
|
8
|
+
},
|
|
9
|
+
"enabledByDefault": true,
|
|
10
|
+
"providers": [
|
|
11
|
+
"particle"
|
|
12
|
+
],
|
|
13
|
+
"providerEndpoints": [
|
|
14
|
+
{
|
|
15
|
+
"endpointClass": "particle-native",
|
|
16
|
+
"hosts": [
|
|
17
|
+
"api.particle.ai"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"setup": {
|
|
22
|
+
"providers": [
|
|
23
|
+
{
|
|
24
|
+
"id": "particle",
|
|
25
|
+
"envVars": [
|
|
26
|
+
"PARTICLE_API_KEY"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"providerAuthChoices": [
|
|
32
|
+
{
|
|
33
|
+
"provider": "particle",
|
|
34
|
+
"method": "api-key",
|
|
35
|
+
"choiceId": "particle-api-key",
|
|
36
|
+
"appGuidedSecret": true,
|
|
37
|
+
"choiceLabel": "Particle API key",
|
|
38
|
+
"groupId": "particle",
|
|
39
|
+
"groupLabel": "Particle",
|
|
40
|
+
"groupHint": "API key",
|
|
41
|
+
"optionKey": "particleApiKey",
|
|
42
|
+
"cliFlag": "--particle-api-key",
|
|
43
|
+
"cliOption": "--particle-api-key <key>",
|
|
44
|
+
"cliDescription": "Particle API key"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"modelCatalog": {
|
|
48
|
+
"discovery": {
|
|
49
|
+
"particle": "refreshable"
|
|
50
|
+
},
|
|
51
|
+
"providers": {
|
|
52
|
+
"particle": {
|
|
53
|
+
"baseUrl": "https://api.particle.ai/v1",
|
|
54
|
+
"api": "openai-completions",
|
|
55
|
+
"defaultModel": "particle-ai/particle-1",
|
|
56
|
+
"models": [
|
|
57
|
+
{
|
|
58
|
+
"id": "particle-ai/particle-1",
|
|
59
|
+
"name": "Particle-1",
|
|
60
|
+
"reasoning": true,
|
|
61
|
+
"thinkingLevelMap": {
|
|
62
|
+
"xhigh": "high",
|
|
63
|
+
"max": "max"
|
|
64
|
+
},
|
|
65
|
+
"input": [
|
|
66
|
+
"text",
|
|
67
|
+
"image"
|
|
68
|
+
],
|
|
69
|
+
"contextWindow": 1048576,
|
|
70
|
+
"maxTokens": 131072,
|
|
71
|
+
"cost": {
|
|
72
|
+
"input": 0.25,
|
|
73
|
+
"output": 1,
|
|
74
|
+
"cacheRead": 0.03,
|
|
75
|
+
"cacheWrite": 0
|
|
76
|
+
},
|
|
77
|
+
"compat": {
|
|
78
|
+
"supportsDeveloperRole": true,
|
|
79
|
+
"supportsReasoningEffort": true,
|
|
80
|
+
"supportsUsageInStreaming": true,
|
|
81
|
+
"supportsStrictMode": false,
|
|
82
|
+
"supportsPromptCacheKey": true,
|
|
83
|
+
"supportsLongCacheRetention": false,
|
|
84
|
+
"maxTokensField": "max_tokens",
|
|
85
|
+
"reasoningEffortMap": {
|
|
86
|
+
"off": "none",
|
|
87
|
+
"none": "none",
|
|
88
|
+
"minimal": "low",
|
|
89
|
+
"low": "low",
|
|
90
|
+
"medium": "high",
|
|
91
|
+
"high": "high",
|
|
92
|
+
"xhigh": "high",
|
|
93
|
+
"max": "max"
|
|
94
|
+
},
|
|
95
|
+
"supportedReasoningEfforts": [
|
|
96
|
+
"none",
|
|
97
|
+
"low",
|
|
98
|
+
"high",
|
|
99
|
+
"max"
|
|
100
|
+
],
|
|
101
|
+
"thinkingFormat": "openai",
|
|
102
|
+
"defaultThinkingLevel": "high"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"modelIdNormalization": {
|
|
110
|
+
"providers": {
|
|
111
|
+
"particle": {
|
|
112
|
+
"aliases": {
|
|
113
|
+
"particle-1": "particle-ai/particle-1"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"configSchema": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"properties": {}
|
|
122
|
+
}
|
|
123
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/particle-provider",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2026.10.33",
|
|
4
|
+
"description": "OpenClaw Particle provider plugin",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"openclaw": {
|
|
7
|
+
"extensions": [
|
|
8
|
+
"./index.ts"
|
|
9
|
+
],
|
|
10
|
+
"install": {
|
|
11
|
+
"clawhubSpec": "clawhub:@openclaw/particle-provider",
|
|
12
|
+
"npmSpec": "@openclaw/particle-provider",
|
|
13
|
+
"defaultChoice": "npm",
|
|
14
|
+
"minHostVersion": ">=2026.10.8"
|
|
15
|
+
},
|
|
16
|
+
"compat": {
|
|
17
|
+
"pluginApi": ">=2026.11.4"
|
|
18
|
+
},
|
|
19
|
+
"build": {
|
|
20
|
+
"openclawVersion": "2026.10.33",
|
|
21
|
+
"bundledDist": false
|
|
22
|
+
},
|
|
23
|
+
"release": {
|
|
24
|
+
"publishToClawHub": true,
|
|
25
|
+
"publishToNpm": true
|
|
26
|
+
},
|
|
27
|
+
"runtimeExtensions": [
|
|
28
|
+
"./dist/index.js"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/openclaw/openclaw"
|
|
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.4"
|
|
44
|
+
},
|
|
45
|
+
"peerDependenciesMeta": {
|
|
46
|
+
"openclaw": {
|
|
47
|
+
"optional": true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"bundledDependencies": []
|
|
51
|
+
}
|