@r_masseater/ops-harbor 0.1.3 → 0.1.5
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/dist/cli.js +655 -58
- package/dist/client/assets/index-88j-xN9l.js +51 -0
- package/dist/client/assets/index-B3bQ__ol.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/control-plane.js +397 -210
- package/dist/mcp-server.js +26 -27
- package/package.json +2 -1
- package/dist/client/assets/index-CaPJEHrU.js +0 -51
- package/dist/client/assets/index-avyH3PkH.css +0 -1
package/dist/mcp-server.js
CHANGED
|
@@ -9929,7 +9929,7 @@ function initializeContext(params) {
|
|
|
9929
9929
|
external: params?.external ?? undefined
|
|
9930
9930
|
};
|
|
9931
9931
|
}
|
|
9932
|
-
function
|
|
9932
|
+
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
9933
9933
|
var _a2;
|
|
9934
9934
|
const def = schema._zod.def;
|
|
9935
9935
|
const seen = ctx.seen.get(schema);
|
|
@@ -9966,7 +9966,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
9966
9966
|
if (parent) {
|
|
9967
9967
|
if (!result.ref)
|
|
9968
9968
|
result.ref = parent;
|
|
9969
|
-
|
|
9969
|
+
process(parent, ctx, params);
|
|
9970
9970
|
ctx.seen.get(parent).isParent = true;
|
|
9971
9971
|
}
|
|
9972
9972
|
}
|
|
@@ -10242,14 +10242,14 @@ function isTransforming(_schema, _ctx) {
|
|
|
10242
10242
|
}
|
|
10243
10243
|
var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
10244
10244
|
const ctx = initializeContext({ ...params, processors });
|
|
10245
|
-
|
|
10245
|
+
process(schema, ctx);
|
|
10246
10246
|
extractDefs(ctx, schema);
|
|
10247
10247
|
return finalize(ctx, schema);
|
|
10248
10248
|
};
|
|
10249
10249
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
10250
10250
|
const { libraryOptions, target } = params ?? {};
|
|
10251
10251
|
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
10252
|
-
|
|
10252
|
+
process(schema, ctx);
|
|
10253
10253
|
extractDefs(ctx, schema);
|
|
10254
10254
|
return finalize(ctx, schema);
|
|
10255
10255
|
};
|
|
@@ -10419,7 +10419,7 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
10419
10419
|
if (typeof maximum === "number")
|
|
10420
10420
|
json.maxItems = maximum;
|
|
10421
10421
|
json.type = "array";
|
|
10422
|
-
json.items =
|
|
10422
|
+
json.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
10423
10423
|
};
|
|
10424
10424
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
10425
10425
|
const json = _json;
|
|
@@ -10428,7 +10428,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10428
10428
|
json.properties = {};
|
|
10429
10429
|
const shape = def.shape;
|
|
10430
10430
|
for (const key in shape) {
|
|
10431
|
-
json.properties[key] =
|
|
10431
|
+
json.properties[key] = process(shape[key], ctx, {
|
|
10432
10432
|
...params,
|
|
10433
10433
|
path: [...params.path, "properties", key]
|
|
10434
10434
|
});
|
|
@@ -10451,7 +10451,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10451
10451
|
if (ctx.io === "output")
|
|
10452
10452
|
json.additionalProperties = false;
|
|
10453
10453
|
} else if (def.catchall) {
|
|
10454
|
-
json.additionalProperties =
|
|
10454
|
+
json.additionalProperties = process(def.catchall, ctx, {
|
|
10455
10455
|
...params,
|
|
10456
10456
|
path: [...params.path, "additionalProperties"]
|
|
10457
10457
|
});
|
|
@@ -10460,7 +10460,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10460
10460
|
var unionProcessor = (schema, ctx, json, params) => {
|
|
10461
10461
|
const def = schema._zod.def;
|
|
10462
10462
|
const isExclusive = def.inclusive === false;
|
|
10463
|
-
const options = def.options.map((x, i) =>
|
|
10463
|
+
const options = def.options.map((x, i) => process(x, ctx, {
|
|
10464
10464
|
...params,
|
|
10465
10465
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
10466
10466
|
}));
|
|
@@ -10472,11 +10472,11 @@ var unionProcessor = (schema, ctx, json, params) => {
|
|
|
10472
10472
|
};
|
|
10473
10473
|
var intersectionProcessor = (schema, ctx, json, params) => {
|
|
10474
10474
|
const def = schema._zod.def;
|
|
10475
|
-
const a =
|
|
10475
|
+
const a = process(def.left, ctx, {
|
|
10476
10476
|
...params,
|
|
10477
10477
|
path: [...params.path, "allOf", 0]
|
|
10478
10478
|
});
|
|
10479
|
-
const b =
|
|
10479
|
+
const b = process(def.right, ctx, {
|
|
10480
10480
|
...params,
|
|
10481
10481
|
path: [...params.path, "allOf", 1]
|
|
10482
10482
|
});
|
|
@@ -10495,7 +10495,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10495
10495
|
const keyBag = keyType._zod.bag;
|
|
10496
10496
|
const patterns = keyBag?.patterns;
|
|
10497
10497
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
10498
|
-
const valueSchema =
|
|
10498
|
+
const valueSchema = process(def.valueType, ctx, {
|
|
10499
10499
|
...params,
|
|
10500
10500
|
path: [...params.path, "patternProperties", "*"]
|
|
10501
10501
|
});
|
|
@@ -10505,12 +10505,12 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10505
10505
|
}
|
|
10506
10506
|
} else {
|
|
10507
10507
|
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
10508
|
-
json.propertyNames =
|
|
10508
|
+
json.propertyNames = process(def.keyType, ctx, {
|
|
10509
10509
|
...params,
|
|
10510
10510
|
path: [...params.path, "propertyNames"]
|
|
10511
10511
|
});
|
|
10512
10512
|
}
|
|
10513
|
-
json.additionalProperties =
|
|
10513
|
+
json.additionalProperties = process(def.valueType, ctx, {
|
|
10514
10514
|
...params,
|
|
10515
10515
|
path: [...params.path, "additionalProperties"]
|
|
10516
10516
|
});
|
|
@@ -10525,7 +10525,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10525
10525
|
};
|
|
10526
10526
|
var nullableProcessor = (schema, ctx, json, params) => {
|
|
10527
10527
|
const def = schema._zod.def;
|
|
10528
|
-
const inner =
|
|
10528
|
+
const inner = process(def.innerType, ctx, params);
|
|
10529
10529
|
const seen = ctx.seen.get(schema);
|
|
10530
10530
|
if (ctx.target === "openapi-3.0") {
|
|
10531
10531
|
seen.ref = def.innerType;
|
|
@@ -10536,20 +10536,20 @@ var nullableProcessor = (schema, ctx, json, params) => {
|
|
|
10536
10536
|
};
|
|
10537
10537
|
var nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
10538
10538
|
const def = schema._zod.def;
|
|
10539
|
-
|
|
10539
|
+
process(def.innerType, ctx, params);
|
|
10540
10540
|
const seen = ctx.seen.get(schema);
|
|
10541
10541
|
seen.ref = def.innerType;
|
|
10542
10542
|
};
|
|
10543
10543
|
var defaultProcessor = (schema, ctx, json, params) => {
|
|
10544
10544
|
const def = schema._zod.def;
|
|
10545
|
-
|
|
10545
|
+
process(def.innerType, ctx, params);
|
|
10546
10546
|
const seen = ctx.seen.get(schema);
|
|
10547
10547
|
seen.ref = def.innerType;
|
|
10548
10548
|
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
10549
10549
|
};
|
|
10550
10550
|
var prefaultProcessor = (schema, ctx, json, params) => {
|
|
10551
10551
|
const def = schema._zod.def;
|
|
10552
|
-
|
|
10552
|
+
process(def.innerType, ctx, params);
|
|
10553
10553
|
const seen = ctx.seen.get(schema);
|
|
10554
10554
|
seen.ref = def.innerType;
|
|
10555
10555
|
if (ctx.io === "input")
|
|
@@ -10557,7 +10557,7 @@ var prefaultProcessor = (schema, ctx, json, params) => {
|
|
|
10557
10557
|
};
|
|
10558
10558
|
var catchProcessor = (schema, ctx, json, params) => {
|
|
10559
10559
|
const def = schema._zod.def;
|
|
10560
|
-
|
|
10560
|
+
process(def.innerType, ctx, params);
|
|
10561
10561
|
const seen = ctx.seen.get(schema);
|
|
10562
10562
|
seen.ref = def.innerType;
|
|
10563
10563
|
let catchValue;
|
|
@@ -10571,20 +10571,20 @@ var catchProcessor = (schema, ctx, json, params) => {
|
|
|
10571
10571
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
10572
10572
|
const def = schema._zod.def;
|
|
10573
10573
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
10574
|
-
|
|
10574
|
+
process(innerType, ctx, params);
|
|
10575
10575
|
const seen = ctx.seen.get(schema);
|
|
10576
10576
|
seen.ref = innerType;
|
|
10577
10577
|
};
|
|
10578
10578
|
var readonlyProcessor = (schema, ctx, json, params) => {
|
|
10579
10579
|
const def = schema._zod.def;
|
|
10580
|
-
|
|
10580
|
+
process(def.innerType, ctx, params);
|
|
10581
10581
|
const seen = ctx.seen.get(schema);
|
|
10582
10582
|
seen.ref = def.innerType;
|
|
10583
10583
|
json.readOnly = true;
|
|
10584
10584
|
};
|
|
10585
10585
|
var optionalProcessor = (schema, ctx, _json, params) => {
|
|
10586
10586
|
const def = schema._zod.def;
|
|
10587
|
-
|
|
10587
|
+
process(def.innerType, ctx, params);
|
|
10588
10588
|
const seen = ctx.seen.get(schema);
|
|
10589
10589
|
seen.ref = def.innerType;
|
|
10590
10590
|
};
|
|
@@ -13575,7 +13575,7 @@ class Server extends Protocol {
|
|
|
13575
13575
|
}
|
|
13576
13576
|
|
|
13577
13577
|
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
13578
|
-
import
|
|
13578
|
+
import process2 from "process";
|
|
13579
13579
|
|
|
13580
13580
|
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
13581
13581
|
class ReadBuffer {
|
|
@@ -13609,7 +13609,7 @@ function serializeMessage(message) {
|
|
|
13609
13609
|
|
|
13610
13610
|
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
13611
13611
|
class StdioServerTransport {
|
|
13612
|
-
constructor(_stdin =
|
|
13612
|
+
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
13613
13613
|
this._stdin = _stdin;
|
|
13614
13614
|
this._stdout = _stdout;
|
|
13615
13615
|
this._readBuffer = new ReadBuffer;
|
|
@@ -13734,11 +13734,10 @@ function parseWorkItemFilterFromQuery(getParam) {
|
|
|
13734
13734
|
}
|
|
13735
13735
|
// ../../packages/ops-harbor-core/src/sqlite.ts
|
|
13736
13736
|
import { createRequire } from "module";
|
|
13737
|
-
|
|
13738
|
-
var requireFromModule = createRequire(import.meta.url);
|
|
13739
|
-
var requireFromWorkingDirectory = createRequire(resolve(process.cwd(), "package.json"));
|
|
13737
|
+
var overriddenCtor;
|
|
13740
13738
|
function openSqliteDatabase(filename) {
|
|
13741
|
-
const
|
|
13739
|
+
const Ctor = overriddenCtor ?? createRequire(import.meta.url)("bun:sqlite").Database;
|
|
13740
|
+
const db = new Ctor(filename);
|
|
13742
13741
|
db.exec("PRAGMA journal_mode = WAL");
|
|
13743
13742
|
return db;
|
|
13744
13743
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r_masseater/ops-harbor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Ops Harbor local dashboard, daemon, and read-only MCP bridge",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"build:client": "vite build",
|
|
35
35
|
"build:server": "bun build src/cli.ts --outdir dist --target bun && bun build src/mcp-server.ts --outdir dist --target bun && bun build ../ops-harbor-control-plane/src/cli.ts --outfile dist/control-plane.js --target bun --external localtunnel",
|
|
36
36
|
"check": "oxlint",
|
|
37
|
+
"check:fsd": "steiger src/client",
|
|
37
38
|
"check:fix": "oxlint --fix",
|
|
38
39
|
"typecheck": "tsgo --noEmit",
|
|
39
40
|
"release": "bun run build && npm publish",
|