@owlmeans/viable-sdk 0.1.18-rc.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 +128 -0
- package/build/api/index.d.ts +2 -0
- package/build/api/index.d.ts.map +1 -0
- package/build/api/index.js +2 -0
- package/build/api/index.js.map +1 -0
- package/build/api/remote.d.ts +14 -0
- package/build/api/remote.d.ts.map +1 -0
- package/build/api/remote.js +123 -0
- package/build/api/remote.js.map +1 -0
- package/build/consts.d.ts +47 -0
- package/build/consts.d.ts.map +1 -0
- package/build/consts.js +47 -0
- package/build/consts.js.map +1 -0
- package/build/context/index.d.ts +22 -0
- package/build/context/index.d.ts.map +1 -0
- package/build/context/index.js +92 -0
- package/build/context/index.js.map +1 -0
- package/build/errors.d.ts +21 -0
- package/build/errors.d.ts.map +1 -0
- package/build/errors.js +36 -0
- package/build/errors.js.map +1 -0
- package/build/executor/boot-check.d.ts +73 -0
- package/build/executor/boot-check.d.ts.map +1 -0
- package/build/executor/boot-check.js +155 -0
- package/build/executor/boot-check.js.map +1 -0
- package/build/executor/env.d.ts +25 -0
- package/build/executor/env.d.ts.map +1 -0
- package/build/executor/env.js +77 -0
- package/build/executor/env.js.map +1 -0
- package/build/executor/errors.d.ts +69 -0
- package/build/executor/errors.d.ts.map +1 -0
- package/build/executor/errors.js +80 -0
- package/build/executor/errors.js.map +1 -0
- package/build/executor/files.d.ts +124 -0
- package/build/executor/files.d.ts.map +1 -0
- package/build/executor/files.js +529 -0
- package/build/executor/files.js.map +1 -0
- package/build/executor/git.d.ts +52 -0
- package/build/executor/git.d.ts.map +1 -0
- package/build/executor/git.js +353 -0
- package/build/executor/git.js.map +1 -0
- package/build/executor/health.d.ts +92 -0
- package/build/executor/health.d.ts.map +1 -0
- package/build/executor/health.js +98 -0
- package/build/executor/health.js.map +1 -0
- package/build/executor/index.d.ts +39 -0
- package/build/executor/index.d.ts.map +1 -0
- package/build/executor/index.js +173 -0
- package/build/executor/index.js.map +1 -0
- package/build/executor/integrity.d.ts +17 -0
- package/build/executor/integrity.d.ts.map +1 -0
- package/build/executor/integrity.js +59 -0
- package/build/executor/integrity.js.map +1 -0
- package/build/executor/layout.d.ts +61 -0
- package/build/executor/layout.d.ts.map +1 -0
- package/build/executor/layout.js +98 -0
- package/build/executor/layout.js.map +1 -0
- package/build/executor/shell.d.ts +89 -0
- package/build/executor/shell.d.ts.map +1 -0
- package/build/executor/shell.js +280 -0
- package/build/executor/shell.js.map +1 -0
- package/build/executor/spawn.d.ts +111 -0
- package/build/executor/spawn.d.ts.map +1 -0
- package/build/executor/spawn.js +314 -0
- package/build/executor/spawn.js.map +1 -0
- package/build/harness/index.d.ts +28 -0
- package/build/harness/index.d.ts.map +1 -0
- package/build/harness/index.js +83 -0
- package/build/harness/index.js.map +1 -0
- package/build/harness/templates.d.ts +30 -0
- package/build/harness/templates.d.ts.map +1 -0
- package/build/harness/templates.js +162 -0
- package/build/harness/templates.js.map +1 -0
- package/build/index.d.ts +13 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +12 -0
- package/build/index.js.map +1 -0
- package/build/project/env.d.ts +108 -0
- package/build/project/env.d.ts.map +1 -0
- package/build/project/env.js +233 -0
- package/build/project/env.js.map +1 -0
- package/build/project/marker.d.ts +34 -0
- package/build/project/marker.d.ts.map +1 -0
- package/build/project/marker.js +54 -0
- package/build/project/marker.js.map +1 -0
- package/build/project/setup.d.ts +62 -0
- package/build/project/setup.d.ts.map +1 -0
- package/build/project/setup.js +190 -0
- package/build/project/setup.js.map +1 -0
- package/build/run/index.d.ts +75 -0
- package/build/run/index.d.ts.map +1 -0
- package/build/run/index.js +150 -0
- package/build/run/index.js.map +1 -0
- package/build/run/serve.d.ts +18 -0
- package/build/run/serve.d.ts.map +1 -0
- package/build/run/serve.js +148 -0
- package/build/run/serve.js.map +1 -0
- package/build/run/state.d.ts +75 -0
- package/build/run/state.d.ts.map +1 -0
- package/build/run/state.js +136 -0
- package/build/run/state.js.map +1 -0
- package/build/session/index.d.ts +17 -0
- package/build/session/index.d.ts.map +1 -0
- package/build/session/index.js +226 -0
- package/build/session/index.js.map +1 -0
- package/build/session/questions.d.ts +16 -0
- package/build/session/questions.d.ts.map +1 -0
- package/build/session/questions.js +17 -0
- package/build/session/questions.js.map +1 -0
- package/build/session/queue.d.ts +54 -0
- package/build/session/queue.d.ts.map +1 -0
- package/build/session/queue.js +102 -0
- package/build/session/queue.js.map +1 -0
- package/build/session/tasks.d.ts +15 -0
- package/build/session/tasks.d.ts.map +1 -0
- package/build/session/tasks.js +16 -0
- package/build/session/tasks.js.map +1 -0
- package/build/task/driver.d.ts +30 -0
- package/build/task/driver.d.ts.map +1 -0
- package/build/task/driver.js +120 -0
- package/build/task/driver.js.map +1 -0
- package/build/task/envelope.d.ts +35 -0
- package/build/task/envelope.d.ts.map +1 -0
- package/build/task/envelope.js +230 -0
- package/build/task/envelope.js.map +1 -0
- package/build/task/index.d.ts +4 -0
- package/build/task/index.d.ts.map +1 -0
- package/build/task/index.js +4 -0
- package/build/task/index.js.map +1 -0
- package/build/task/inquiry.d.ts +53 -0
- package/build/task/inquiry.d.ts.map +1 -0
- package/build/task/inquiry.js +232 -0
- package/build/task/inquiry.js.map +1 -0
- package/build/tools/catalogue.d.ts +17 -0
- package/build/tools/catalogue.d.ts.map +1 -0
- package/build/tools/catalogue.js +1169 -0
- package/build/tools/catalogue.js.map +1 -0
- package/build/tools/index.d.ts +7 -0
- package/build/tools/index.d.ts.map +1 -0
- package/build/tools/index.js +7 -0
- package/build/tools/index.js.map +1 -0
- package/build/tools/jobs.d.ts +12 -0
- package/build/tools/jobs.d.ts.map +1 -0
- package/build/tools/jobs.js +60 -0
- package/build/tools/jobs.js.map +1 -0
- package/build/tools/mcp.d.ts +43 -0
- package/build/tools/mcp.d.ts.map +1 -0
- package/build/tools/mcp.js +131 -0
- package/build/tools/mcp.js.map +1 -0
- package/build/tools/platform.d.ts +77 -0
- package/build/tools/platform.d.ts.map +1 -0
- package/build/tools/platform.js +316 -0
- package/build/tools/platform.js.map +1 -0
- package/build/tools/refusal.d.ts +66 -0
- package/build/tools/refusal.d.ts.map +1 -0
- package/build/tools/refusal.js +377 -0
- package/build/tools/refusal.js.map +1 -0
- package/build/tools/types.d.ts +83 -0
- package/build/tools/types.d.ts.map +1 -0
- package/build/tools/types.js +38 -0
- package/build/tools/types.js.map +1 -0
- package/build/types.d.ts +174 -0
- package/build/types.d.ts.map +1 -0
- package/build/types.js +2 -0
- package/build/types.js.map +1 -0
- package/package.json +105 -0
package/build/types.d.ts
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { ConnectCapabilities, ConnectCapabilitiesView, ConnectConvertCreateBody, ConnectHarness, ConnectJob, ConnectLlm, ConnectMarker, ConnectOp, ConnectOpResult, ConnectOpSubmission, ConnectPipelineState, ConnectProjectStatus, ConnectSessionView, ConnectStoryDeletion, ConnectStoryItem, ConnectStoryList, ConnectStoryMutation, ConnectTarget, ConversionDecision, ConversionStatusView, ConvertCheck, InquiryAnswerPayload, InquiryPayload, ModelTask, ModelTaskResult, SlotCommandPayload } from '@owlmeans/viable-common';
|
|
2
|
+
export interface SdkOptions {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
/** The access token. The connector authenticates with nothing else. */
|
|
5
|
+
token: string;
|
|
6
|
+
target: ConnectTarget;
|
|
7
|
+
llm: ConnectLlm;
|
|
8
|
+
harness: ConnectHarness;
|
|
9
|
+
/** The directory a local target lives in. Required when `target` is local. */
|
|
10
|
+
projectDir?: string;
|
|
11
|
+
clientVersion?: string;
|
|
12
|
+
/** Where the connector's own diagnostics go. NEVER stdout for a stdio MCP server. */
|
|
13
|
+
log?: (line: string) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Everything the connector can ask the platform for.
|
|
17
|
+
*
|
|
18
|
+
* An interface rather than a class because there are two implementations that must stay
|
|
19
|
+
* interchangeable: one that calls the API over HTTP (what the npx server does) and one that calls
|
|
20
|
+
* the manager's own handlers in process (what the URL-configured MCP host does). Every tool is
|
|
21
|
+
* written against this, so a tool cannot accidentally work in only one of the two.
|
|
22
|
+
*/
|
|
23
|
+
export interface ConnectorApi {
|
|
24
|
+
capabilities: () => Promise<ConnectCapabilitiesView>;
|
|
25
|
+
openSession: (args: OpenSessionArgs) => Promise<ConnectSessionView>;
|
|
26
|
+
closeSession: (sessionId: string) => Promise<void>;
|
|
27
|
+
heartbeat: (sessionId: string) => Promise<ConnectSessionView>;
|
|
28
|
+
pullOps: (sessionId: string, waitSec: number) => Promise<ConnectOp[]>;
|
|
29
|
+
submitOp: (sessionId: string, result: ConnectOpResult) => Promise<ConnectOpSubmission>;
|
|
30
|
+
project: {
|
|
31
|
+
create: (prompt: string, target?: ConnectTarget) => Promise<ConnectJob>;
|
|
32
|
+
confirm: (projectId: string, edits: ProjectEdits) => Promise<ConnectJob>;
|
|
33
|
+
list: () => Promise<Array<{
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
alias: string;
|
|
37
|
+
}>>;
|
|
38
|
+
status: (projectId: string) => Promise<ConnectProjectStatus>;
|
|
39
|
+
attach: (args: {
|
|
40
|
+
projectId?: string;
|
|
41
|
+
slug?: string;
|
|
42
|
+
}) => Promise<ConnectProjectStatus>;
|
|
43
|
+
reinit: (projectId: string) => Promise<ConnectJob>;
|
|
44
|
+
modify: (projectId: string, prompt: string) => Promise<ConnectJob>;
|
|
45
|
+
job: (projectId: string, jobId: string, waitSec?: number) => Promise<ConnectJob>;
|
|
46
|
+
};
|
|
47
|
+
story: {
|
|
48
|
+
list: (projectId: string, query?: StoryQuery) => Promise<ConnectStoryList>;
|
|
49
|
+
get: (projectId: string, storyId: string) => Promise<ConnectStoryItem>;
|
|
50
|
+
create: (projectId: string, story: string) => Promise<ConnectStoryMutation>;
|
|
51
|
+
update: (projectId: string, storyId: string, story: string) => Promise<ConnectStoryMutation>;
|
|
52
|
+
remove: (projectId: string, storyId: string) => Promise<ConnectStoryDeletion>;
|
|
53
|
+
develop: (projectId: string, storyId: string) => Promise<ConnectJob>;
|
|
54
|
+
};
|
|
55
|
+
files: {
|
|
56
|
+
list: (projectId: string) => Promise<string[]>;
|
|
57
|
+
};
|
|
58
|
+
pipeline: {
|
|
59
|
+
state: (projectId: string, runId: string) => Promise<ConnectPipelineState>;
|
|
60
|
+
resume: (projectId: string, runId: string, args?: {
|
|
61
|
+
from?: string;
|
|
62
|
+
force?: boolean;
|
|
63
|
+
}) => Promise<ConnectJob>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Bringing an application the platform did not generate onto its rails.
|
|
67
|
+
*
|
|
68
|
+
* Every state-changing verb answers with a JOB, exactly as the project ones do: a conversion
|
|
69
|
+
* stage reads a whole repository and takes minutes, and a call that blocked for one would be
|
|
70
|
+
* reported to the user as a broken server. `check` and `status` are the two reads — the first
|
|
71
|
+
* answered from a census before anything is provisioned or charged, the second the whole
|
|
72
|
+
* conversion in one view.
|
|
73
|
+
*/
|
|
74
|
+
convert: {
|
|
75
|
+
create: (args: ConnectConvertCreateBody) => Promise<ConnectJob>;
|
|
76
|
+
check: (projectId: string) => Promise<ConvertCheck>;
|
|
77
|
+
start: (projectId: string) => Promise<ConnectJob>;
|
|
78
|
+
proceed: (projectId: string, decision: ConversionDecision, note?: string) => Promise<ConnectJob>;
|
|
79
|
+
cancel: (projectId: string) => Promise<ConnectJob>;
|
|
80
|
+
status: (projectId: string) => Promise<ConversionStatusView>;
|
|
81
|
+
purge: (projectId: string) => Promise<ConnectJob>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Answering a question by its own id.
|
|
85
|
+
*
|
|
86
|
+
* The fallback path, and never the first one: while a connector holds the question it answers
|
|
87
|
+
* the OPERATION it arrived on, which is what the platform is actually waiting for. This is for a
|
|
88
|
+
* run that parked while nobody was attached — its operation has timed out, and the question is
|
|
89
|
+
* then reachable only through the project it belongs to.
|
|
90
|
+
*/
|
|
91
|
+
inquiry: {
|
|
92
|
+
answer: (projectId: string, inquiryId: string, answer: InquiryAnswerPayload) => Promise<unknown>;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export interface OpenSessionArgs {
|
|
96
|
+
projectId?: string;
|
|
97
|
+
projectDir?: string;
|
|
98
|
+
target: ConnectTarget;
|
|
99
|
+
llm: ConnectLlm;
|
|
100
|
+
harness: ConnectHarness;
|
|
101
|
+
clientVersion: string;
|
|
102
|
+
capabilities: ConnectCapabilities;
|
|
103
|
+
}
|
|
104
|
+
export interface ProjectEdits {
|
|
105
|
+
name?: string;
|
|
106
|
+
description?: string;
|
|
107
|
+
specification?: string;
|
|
108
|
+
vision?: string;
|
|
109
|
+
target?: ConnectTarget;
|
|
110
|
+
}
|
|
111
|
+
export interface StoryQuery {
|
|
112
|
+
page?: number;
|
|
113
|
+
size?: number;
|
|
114
|
+
status?: string;
|
|
115
|
+
area?: string;
|
|
116
|
+
q?: string;
|
|
117
|
+
}
|
|
118
|
+
/** What a connector executes locally. Absent for a cloud target — the platform's pod does it. */
|
|
119
|
+
export interface LocalExecutor {
|
|
120
|
+
execute: (payload: SlotCommandPayload) => Promise<unknown>;
|
|
121
|
+
dir: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* One attached session, running.
|
|
125
|
+
*
|
|
126
|
+
* It owns the loop: operations arrive, the executor answers them, model tasks queue up for the
|
|
127
|
+
* parent agent to drain. Everything a tool needs to know about "what is happening right now" is
|
|
128
|
+
* on `stats`, which is also what a test uses to tell a working run from a stalled one.
|
|
129
|
+
*/
|
|
130
|
+
export interface SessionRuntime {
|
|
131
|
+
session: ConnectSessionView;
|
|
132
|
+
stats: SessionStats;
|
|
133
|
+
/** The next model task for the parent agent, or null if none arrives within the wait. */
|
|
134
|
+
nextTask: (waitMs: number) => Promise<ModelTask | null>;
|
|
135
|
+
/** A task already handed out and not yet answered — what an answer is checked against. */
|
|
136
|
+
taskById: (taskId: string) => ModelTask | null;
|
|
137
|
+
/** Handed to the parent and still unanswered, oldest first. */
|
|
138
|
+
outstandingTasks: () => ModelTask[];
|
|
139
|
+
/** Hand back what the parent agent's subagent produced. */
|
|
140
|
+
submitTask: (result: ModelTaskResult) => Promise<void>;
|
|
141
|
+
/** How many tasks are waiting right now. */
|
|
142
|
+
pendingTasks: () => number;
|
|
143
|
+
/**
|
|
144
|
+
* The next question for the person the parent agent is working for, or null within the wait.
|
|
145
|
+
*
|
|
146
|
+
* A separate queue from the tasks and drained by a separate tool, because the two are answered
|
|
147
|
+
* by different parties on entirely different timescales — and a question that reached a
|
|
148
|
+
* subagent would be answered by a model, which is the one outcome asking exists to avoid.
|
|
149
|
+
*/
|
|
150
|
+
nextQuestion: (waitMs: number) => Promise<InquiryPayload | null>;
|
|
151
|
+
/** A question already put to the parent and not yet answered — what an answer is checked against. */
|
|
152
|
+
questionById: (inquiryId: string) => InquiryPayload | null;
|
|
153
|
+
/** Put to the parent and still unanswered, oldest first. */
|
|
154
|
+
outstandingQuestions: () => InquiryPayload[];
|
|
155
|
+
/** Hand back what the person decided. */
|
|
156
|
+
answerQuestion: (answer: InquiryAnswerPayload) => Promise<void>;
|
|
157
|
+
/** How many questions are waiting right now. */
|
|
158
|
+
pendingQuestions: () => number;
|
|
159
|
+
close: () => Promise<void>;
|
|
160
|
+
}
|
|
161
|
+
export interface SessionStats {
|
|
162
|
+
opsDone: number;
|
|
163
|
+
opsFailed: number;
|
|
164
|
+
tasksDelivered: number;
|
|
165
|
+
tasksSubmitted: number;
|
|
166
|
+
questionsDelivered: number;
|
|
167
|
+
questionsAnswered: number;
|
|
168
|
+
lastActivityAt: number;
|
|
169
|
+
/** How the connector is currently receiving operations. */
|
|
170
|
+
transport: 'socket' | 'pull' | 'none';
|
|
171
|
+
}
|
|
172
|
+
export interface SdkMarker extends ConnectMarker {
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../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E,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,2DAA2D;IAC3D,SAAS,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;CACtC;AAED,MAAM,WAAW,SAAU,SAAQ,aAAa;CAAG"}
|
package/build/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@owlmeans/viable-sdk",
|
|
3
|
+
"version": "0.1.18-rc.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Drive the OwlMeans Viable platform from outside it — the connector session, the local slot executor, the tool catalogue and the model-task protocol an external coding agent answers.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc -b",
|
|
9
|
+
"dev": "sleep 2 && nodemon -e ts,tsx,json --watch src --exec \"tsc -p ./tsconfig.json\"",
|
|
10
|
+
"watch": "tsc -b -w --preserveWatchOutput --pretty",
|
|
11
|
+
"test": "bun test ./tests"
|
|
12
|
+
},
|
|
13
|
+
"main": "build/index.js",
|
|
14
|
+
"module": "build/index.js",
|
|
15
|
+
"types": "build/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./build/index.js",
|
|
19
|
+
"require": "./build/index.js",
|
|
20
|
+
"default": "./build/index.js",
|
|
21
|
+
"module": "./build/index.js",
|
|
22
|
+
"types": "./build/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./executor": {
|
|
25
|
+
"import": "./build/executor/index.js",
|
|
26
|
+
"require": "./build/executor/index.js",
|
|
27
|
+
"default": "./build/executor/index.js",
|
|
28
|
+
"module": "./build/executor/index.js",
|
|
29
|
+
"types": "./build/executor/index.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./tools": {
|
|
32
|
+
"import": "./build/tools/index.js",
|
|
33
|
+
"require": "./build/tools/index.js",
|
|
34
|
+
"default": "./build/tools/index.js",
|
|
35
|
+
"module": "./build/tools/index.js",
|
|
36
|
+
"types": "./build/tools/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./task": {
|
|
39
|
+
"import": "./build/task/index.js",
|
|
40
|
+
"require": "./build/task/index.js",
|
|
41
|
+
"default": "./build/task/index.js",
|
|
42
|
+
"module": "./build/task/index.js",
|
|
43
|
+
"types": "./build/task/index.d.ts"
|
|
44
|
+
},
|
|
45
|
+
"./harness": {
|
|
46
|
+
"import": "./build/harness/index.js",
|
|
47
|
+
"require": "./build/harness/index.js",
|
|
48
|
+
"default": "./build/harness/index.js",
|
|
49
|
+
"module": "./build/harness/index.js",
|
|
50
|
+
"types": "./build/harness/index.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./run": {
|
|
53
|
+
"import": "./build/run/index.js",
|
|
54
|
+
"require": "./build/run/index.js",
|
|
55
|
+
"default": "./build/run/index.js",
|
|
56
|
+
"module": "./build/run/index.js",
|
|
57
|
+
"types": "./build/run/index.d.ts"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"build",
|
|
62
|
+
"harness"
|
|
63
|
+
],
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@owlmeans/api": "^0.1.18-rc.14",
|
|
66
|
+
"@owlmeans/auth": "^0.1.18-rc.10",
|
|
67
|
+
"@owlmeans/auth-common": "^0.1.18-rc.14",
|
|
68
|
+
"@owlmeans/auth-token": "^0.1.18-rc.1",
|
|
69
|
+
"@owlmeans/basic-ids": "^0.1.18-rc.10",
|
|
70
|
+
"@owlmeans/client-config": "^0.1.18-rc.13",
|
|
71
|
+
"@owlmeans/client-context": "^0.1.18-rc.14",
|
|
72
|
+
"@owlmeans/client-entrypoint": "^0.1.18-rc.14",
|
|
73
|
+
"@owlmeans/config": "^0.1.18-rc.13",
|
|
74
|
+
"@owlmeans/context": "^0.1.18-rc.9",
|
|
75
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.12",
|
|
76
|
+
"@owlmeans/error": "^0.1.18-rc.9",
|
|
77
|
+
"@owlmeans/route": "^0.1.18-rc.10",
|
|
78
|
+
"@owlmeans/socket": "^0.1.18-rc.10",
|
|
79
|
+
"@owlmeans/viable-common": "^0.0.4",
|
|
80
|
+
"ajv": "^8.17.1",
|
|
81
|
+
"fs-extra": "^11.3.0",
|
|
82
|
+
"globby": "^14.1.0",
|
|
83
|
+
"zod": "^4.1.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"@modelcontextprotocol/sdk": "^1.30.0"
|
|
87
|
+
},
|
|
88
|
+
"peerDependenciesMeta": {
|
|
89
|
+
"@modelcontextprotocol/sdk": {
|
|
90
|
+
"optional": true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
95
|
+
"@owlmeans/dep-config": "workspace:*",
|
|
96
|
+
"@types/bun": "^1.4.0",
|
|
97
|
+
"@types/fs-extra": "^11.0.4",
|
|
98
|
+
"@types/node": "^26.1.0",
|
|
99
|
+
"nodemon": "^3.1.14",
|
|
100
|
+
"typescript": "^7.0.2"
|
|
101
|
+
},
|
|
102
|
+
"publishConfig": {
|
|
103
|
+
"access": "public"
|
|
104
|
+
}
|
|
105
|
+
}
|