@zeulewan/glueclaw-provider 1.0.1 → 1.1.0

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.
Files changed (3) hide show
  1. package/index.ts +2 -22
  2. package/package.json +2 -1
  3. package/src/catalog.ts +28 -0
package/index.ts CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  type OpenClawPluginApi,
4
4
  } from "openclaw/plugin-sdk/plugin-entry";
5
5
  import { createClaudeCliStreamFn } from "./src/stream.js";
6
+ import { MODEL_CATALOG } from "./src/catalog.js";
6
7
 
7
8
  const PROVIDER_ID = "glueclaw";
8
9
  const PROVIDER_LABEL = "GlueClaw";
@@ -80,28 +81,7 @@ export default definePluginEntry({
80
81
  source: AUTH_SOURCE,
81
82
  mode: "api-key",
82
83
  }),
83
- augmentModelCatalog: () => [
84
- {
85
- id: "glueclaw-opus",
86
- name: "GlueClaw Opus",
87
- provider: PROVIDER_ID,
88
- contextWindow: 1_000_000,
89
- reasoning: true,
90
- },
91
- {
92
- id: "glueclaw-sonnet",
93
- name: "GlueClaw Sonnet",
94
- provider: PROVIDER_ID,
95
- contextWindow: 1_000_000,
96
- reasoning: true,
97
- },
98
- {
99
- id: "glueclaw-haiku",
100
- name: "GlueClaw Haiku",
101
- provider: PROVIDER_ID,
102
- contextWindow: 200_000,
103
- },
104
- ],
84
+ augmentModelCatalog: () => [...MODEL_CATALOG],
105
85
  });
106
86
  },
107
87
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeulewan/glueclaw-provider",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "GlueClaw - Claude CLI subprocess provider for Max subscription",
5
5
  "type": "module",
6
6
  "engines": {
@@ -9,6 +9,7 @@
9
9
  "files": [
10
10
  "index.ts",
11
11
  "src/stream.ts",
12
+ "src/catalog.ts",
12
13
  "src/openclaw.d.ts",
13
14
  "openclaw.plugin.json",
14
15
  "install.sh",
package/src/catalog.ts ADDED
@@ -0,0 +1,28 @@
1
+ const PROVIDER_ID = "glueclaw";
2
+
3
+ export const MODEL_CATALOG = [
4
+ {
5
+ id: "glueclaw-opus",
6
+ name: "GlueClaw Opus",
7
+ provider: PROVIDER_ID,
8
+ contextWindow: 1_000_000,
9
+ reasoning: true,
10
+ input: ["text"],
11
+ },
12
+ {
13
+ id: "glueclaw-sonnet",
14
+ name: "GlueClaw Sonnet",
15
+ provider: PROVIDER_ID,
16
+ contextWindow: 1_000_000,
17
+ reasoning: true,
18
+ input: ["text"],
19
+ },
20
+ {
21
+ id: "glueclaw-haiku",
22
+ name: "GlueClaw Haiku",
23
+ provider: PROVIDER_ID,
24
+ contextWindow: 200_000,
25
+ reasoning: false,
26
+ input: ["text"],
27
+ },
28
+ ] as const;