otterly 0.3.0 → 0.3.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.
@@ -5,7 +5,7 @@ import { AgentError } from "../errors.js";
5
5
  import { apiSessions } from "./session-store.js";
6
6
  import { errorToHttpStatus } from "./openai-compat.js";
7
7
  import { logError } from "./logger.js";
8
- const PKG_VERSION = "0.3.0";
8
+ const PKG_VERSION = "0.3.1";
9
9
  /**
10
10
  * GET /api/status — health check with queue and circuit breaker stats
11
11
  */
@@ -77,6 +77,57 @@ export declare const openApiSpec: {
77
77
  };
78
78
  };
79
79
  };
80
+ "/": {
81
+ get: {
82
+ summary: string;
83
+ operationId: string;
84
+ responses: {
85
+ "200": {
86
+ description: string;
87
+ content: {
88
+ "application/json": {
89
+ schema: {
90
+ type: string;
91
+ properties: {
92
+ name: {
93
+ type: string;
94
+ example: string;
95
+ };
96
+ version: {
97
+ type: string;
98
+ example: string;
99
+ };
100
+ playground: {
101
+ type: string;
102
+ example: string;
103
+ };
104
+ };
105
+ required: string[];
106
+ };
107
+ };
108
+ };
109
+ };
110
+ };
111
+ };
112
+ };
113
+ "/playground": {
114
+ get: {
115
+ summary: string;
116
+ operationId: string;
117
+ responses: {
118
+ "200": {
119
+ description: string;
120
+ content: {
121
+ "text/html": {
122
+ schema: {
123
+ type: string;
124
+ };
125
+ };
126
+ };
127
+ };
128
+ };
129
+ };
130
+ };
80
131
  "/v1/chat/completions": {
81
132
  post: {
82
133
  summary: string;
@@ -3,7 +3,7 @@ export const openApiSpec = {
3
3
  openapi: "3.0.3",
4
4
  info: {
5
5
  title: "Otterly API",
6
- version: "0.3.0",
6
+ version: "0.3.1",
7
7
  description: "Local inference server with OpenAI-compatible and native endpoints. " +
8
8
  "WebSocket available at ws://localhost:{port}/ws for interactive sessions.",
9
9
  },
@@ -21,7 +21,7 @@ export const openApiSpec = {
21
21
  type: "object",
22
22
  properties: {
23
23
  status: { type: "string", example: "ok" },
24
- version: { type: "string", example: "0.3.0" },
24
+ version: { type: "string", example: "0.3.1" },
25
25
  activeSessions: { type: "integer" },
26
26
  queue: {
27
27
  type: "object",
@@ -54,6 +54,42 @@ export const openApiSpec = {
54
54
  },
55
55
  },
56
56
  },
57
+ "/": {
58
+ get: {
59
+ summary: "Server info",
60
+ operationId: "getRoot",
61
+ responses: {
62
+ "200": {
63
+ description: "Server name, version, and playground link",
64
+ content: {
65
+ "application/json": {
66
+ schema: {
67
+ type: "object",
68
+ properties: {
69
+ name: { type: "string", example: "otterly" },
70
+ version: { type: "string", example: "0.3.1" },
71
+ playground: { type: "string", example: "/playground" },
72
+ },
73
+ required: ["name", "version", "playground"],
74
+ },
75
+ },
76
+ },
77
+ },
78
+ },
79
+ },
80
+ },
81
+ "/playground": {
82
+ get: {
83
+ summary: "Interactive API playground",
84
+ operationId: "getPlayground",
85
+ responses: {
86
+ "200": {
87
+ description: "HTML page with interactive API explorer",
88
+ content: { "text/html": { schema: { type: "string" } } },
89
+ },
90
+ },
91
+ },
92
+ },
57
93
  "/v1/chat/completions": {
58
94
  post: {
59
95
  summary: "OpenAI-compatible chat completions",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otterly",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Local AI inference for your apps. Use Claude Code instead of paying for API tokens.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",