@dsh-stack/provider-ollama 0.0.0-stage → 0.1.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,3 @@
1
- # Temporary Holding Version
1
+ # provider-ollama
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
+ Registers the `ollama` provider route (base URL, dialect, credential slots, advisory model fallback, and — where the provider publishes one — a live model-catalog endpoint) into the `providers` registry abstraction (`@dsh-stack/providers`), the same way `agent-preset-coding` registers a preset resource into `agents`.
package/lib/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The `ollama` provider route: a concrete provider extension plugging into
3
+ * the `providers` registry abstraction (`@dsh-stack/providers`).
4
+ * @module provider-ollama
5
+ */
6
+ import type { Context } from "@deepseek-ai/cordis";
7
+ import type { ProviderRoute } from "@dsh-stack/providers";
8
+ /** The `ollama` provider route. */
9
+ export declare const route: ProviderRoute;
10
+ export declare const name = "provider-ollama";
11
+ export declare const inject: string[];
12
+ /** apply implementation. */
13
+ export declare function apply(ctx: Context): void;
package/lib/index.js ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The `ollama` provider route: a concrete provider extension plugging into
3
+ * the `providers` registry abstraction (`@dsh-stack/providers`).
4
+ * @module provider-ollama
5
+ */
6
+ /** The `ollama` provider route. */
7
+ export const route = {
8
+ id: "ollama",
9
+ displayName: "Ollama (Local)",
10
+ kind: "local",
11
+ authKind: "none",
12
+ dialect: "openai",
13
+ baseURL: "http://127.0.0.1:11434/v1",
14
+ authSlots: [],
15
+ catalog: { url: "http://127.0.0.1:11434/v1/models" },
16
+ probe: { url: "http://127.0.0.1:11434/api/tags" },
17
+ models: [{ id: "qwen3.8:27b", name: "Qwen 3.8 27B", contextWindow: 131_072, maxTokens: 16_384 }],
18
+ defaultMaxTokens: 16_384,
19
+ defaultContextWindow: 131_072,
20
+ };
21
+ export const name = "provider-ollama";
22
+ export const inject = ["providers"];
23
+ /** apply implementation. */
24
+ export function apply(ctx) {
25
+ ctx.providers.register(route);
26
+ }
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@dsh-stack/provider-ollama",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "ollama provider-route extension for the Stack `providers` registry.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "lib/index.js",
8
+ "types": "lib/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./lib/index.d.ts",
12
+ "default": "./lib/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "lib",
17
+ "README.md",
18
+ "package.json",
19
+ "stack.json"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "stack": {
25
+ "kind": "plugin",
26
+ "id": "stack.ai.provider.ollama"
27
+ },
28
+ "scripts": {
29
+ "build": "tsc -p tsconfig.json",
30
+ "typecheck": "tsc -p tsconfig.json --noEmit",
31
+ "verify": "node verify.mjs"
32
+ },
33
+ "dependencies": {
34
+ "@dsh-stack/providers": "0.1.1"
35
+ },
36
+ "devDependencies": {
37
+ "typescript": "^6.0.3",
38
+ "@dsh-stack/dialects": "0.1.1"
39
+ },
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "https://github.com/marius-patrik/dsh-stack.git",
43
+ "directory": "plugins/provider-ollama"
44
+ }
45
+ }
package/stack.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "id": "stack.ai.provider.ollama",
3
+ "name": "@dsh-stack/provider-ollama",
4
+ "version": "0.1.1",
5
+ "kind": "plugin",
6
+ "description": "ollama provider-route extension for the Stack `providers` registry.",
7
+ "files": ["lib", "README.md", "package.json", "stack.json"],
8
+ "dependencies": ["stack.ai.providers"],
9
+ "optionalDependencies": []
10
+ }