arkaik-mcp 0.8.0 → 0.9.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.
- package/dist/index.js +33 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15223,7 +15223,7 @@ function missingProvenanceNodeIds(snapshotNodeIds, events) {
|
|
|
15223
15223
|
var envelope = {
|
|
15224
15224
|
id: external_exports.string().meta({ description: "ULID \u2014 sortable, collision-free without coordination." }),
|
|
15225
15225
|
ts: external_exports.string().meta({ description: "ISO 8601 timestamp." }),
|
|
15226
|
-
actor: external_exports.string().optional().meta({ description: 'Who/what wrote it (e.g. "claude-code", "ci").' }),
|
|
15226
|
+
actor: external_exports.string().optional().meta({ description: 'Who/what wrote it (e.g. "claude-code", "arkaik-ci").' }),
|
|
15227
15227
|
v: external_exports.number().int().optional().meta({ description: "Reserved per-event payload version; absent today." })
|
|
15228
15228
|
};
|
|
15229
15229
|
var JournalEventSchema = external_exports.object({
|
|
@@ -15250,7 +15250,8 @@ var NodeStatusChangedEventSchema = external_exports.object({
|
|
|
15250
15250
|
// their legacy status ids, so strict per-type validation must accept them.
|
|
15251
15251
|
from: AnyStatusSchema,
|
|
15252
15252
|
to: AnyStatusSchema,
|
|
15253
|
-
platform: PlatformSchema.optional()
|
|
15253
|
+
platform: PlatformSchema.optional(),
|
|
15254
|
+
detail: external_exports.string().optional()
|
|
15254
15255
|
}).catchall(external_exports.unknown());
|
|
15255
15256
|
var DecisionStatusChangedEventSchema = external_exports.object({
|
|
15256
15257
|
...envelope,
|
|
@@ -20605,11 +20606,38 @@ function createRemoteStore(options) {
|
|
|
20605
20606
|
}
|
|
20606
20607
|
return body;
|
|
20607
20608
|
}
|
|
20609
|
+
const lastRead = /* @__PURE__ */ new Map();
|
|
20610
|
+
async function read(path) {
|
|
20611
|
+
const cached2 = lastRead.get(path);
|
|
20612
|
+
const res = await doFetch(`${projectPath}${path}`, {
|
|
20613
|
+
headers: {
|
|
20614
|
+
authorization: `Bearer ${options.token}`,
|
|
20615
|
+
...cached2 ? { "if-none-match": cached2.etag } : {}
|
|
20616
|
+
}
|
|
20617
|
+
});
|
|
20618
|
+
if (res.status === 304 && cached2) return JSON.parse(cached2.text);
|
|
20619
|
+
const text = await res.text();
|
|
20620
|
+
let body = null;
|
|
20621
|
+
try {
|
|
20622
|
+
body = JSON.parse(text);
|
|
20623
|
+
} catch {
|
|
20624
|
+
}
|
|
20625
|
+
if (!res.ok) {
|
|
20626
|
+
const err = new Error(describeFailure(res.status, body));
|
|
20627
|
+
err.status = res.status;
|
|
20628
|
+
err.body = body;
|
|
20629
|
+
throw err;
|
|
20630
|
+
}
|
|
20631
|
+
const etag = res.headers.get("etag");
|
|
20632
|
+
if (etag) lastRead.set(path, { etag, text });
|
|
20633
|
+
else lastRead.delete(path);
|
|
20634
|
+
return body;
|
|
20635
|
+
}
|
|
20608
20636
|
return {
|
|
20609
20637
|
async load() {
|
|
20610
20638
|
const [{ bundle }, { journal }] = await Promise.all([
|
|
20611
|
-
|
|
20612
|
-
|
|
20639
|
+
read(""),
|
|
20640
|
+
read("/journal")
|
|
20613
20641
|
]);
|
|
20614
20642
|
const nodes = bundle.nodes ?? [];
|
|
20615
20643
|
const edges = bundle.edges ?? [];
|
|
@@ -20771,7 +20799,7 @@ function resolveRemoteConfig(argv2, env, cwd) {
|
|
|
20771
20799
|
}
|
|
20772
20800
|
|
|
20773
20801
|
// src/index.ts
|
|
20774
|
-
var VERSION = "0.
|
|
20802
|
+
var VERSION = "0.9.0";
|
|
20775
20803
|
var argv = process.argv.slice(2);
|
|
20776
20804
|
if (argv.includes("--help") || argv.includes("-h")) {
|
|
20777
20805
|
process.stdout.write(
|
package/package.json
CHANGED