@plot-ai/darwin-arm64 0.0.5 → 0.0.6
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/bin/CHANGELOG.md +1 -1
- package/bin/package.json +1 -1
- package/bin/plot-ai +0 -0
- package/bin/tui-worker.js +28 -22
- package/package.json +1 -1
- package/web-dist/assets/index-Bw92jDU7.js +35 -0
- package/web-dist/index.html +1 -1
- package/web-dist/assets/index-pqfrb_rb.js +0 -35
package/bin/CHANGELOG.md
CHANGED
package/bin/package.json
CHANGED
package/bin/plot-ai
CHANGED
|
Binary file
|
package/bin/tui-worker.js
CHANGED
|
@@ -181713,8 +181713,8 @@ class Issue extends exports_Schema.Class("Issue")({
|
|
|
181713
181713
|
blockedBy: exports_Schema.optional(exports_Schema.Array(BlockerRef)),
|
|
181714
181714
|
autoMerge: exports_Schema.optional(exports_Schema.Boolean),
|
|
181715
181715
|
metadata: exports_Schema.optional(exports_Schema.Record(exports_Schema.String, exports_Schema.Unknown)),
|
|
181716
|
-
createdAt: exports_Schema.NullOr(exports_Schema.
|
|
181717
|
-
updatedAt: exports_Schema.NullOr(exports_Schema.
|
|
181716
|
+
createdAt: exports_Schema.NullOr(exports_Schema.String),
|
|
181717
|
+
updatedAt: exports_Schema.NullOr(exports_Schema.String)
|
|
181718
181718
|
}) {
|
|
181719
181719
|
}
|
|
181720
181720
|
|
|
@@ -181743,7 +181743,7 @@ class TrackerRunContext extends exports_Schema.Class("TrackerRunContext")({
|
|
|
181743
181743
|
class TrackerClient extends exports_ServiceMap.Service()("TrackerClient") {
|
|
181744
181744
|
}
|
|
181745
181745
|
// packages/sdk/src/schemas/workflow.ts
|
|
181746
|
-
|
|
181746
|
+
var TrackerConfig = exports_Schema.StructWithRest(exports_Schema.Struct({
|
|
181747
181747
|
kind: exports_Schema.String,
|
|
181748
181748
|
endpoint: exports_Schema.optional(exports_Schema.String),
|
|
181749
181749
|
apiKey: exports_Schema.optional(exports_Schema.String),
|
|
@@ -181751,8 +181751,7 @@ class TrackerConfig extends exports_Schema.Class("TrackerConfig")({
|
|
|
181751
181751
|
dispatchStates: exports_Schema.optional(exports_Schema.Array(exports_Schema.String)),
|
|
181752
181752
|
parkedStates: exports_Schema.optional(exports_Schema.Array(exports_Schema.String)),
|
|
181753
181753
|
terminalStates: exports_Schema.optional(exports_Schema.Array(exports_Schema.String))
|
|
181754
|
-
})
|
|
181755
|
-
}
|
|
181754
|
+
}), [exports_Schema.Record(exports_Schema.String, exports_Schema.Unknown)]);
|
|
181756
181755
|
|
|
181757
181756
|
class PollingConfig extends exports_Schema.Class("PollingConfig")({
|
|
181758
181757
|
intervalMs: exports_Schema.optional(exports_Schema.Number)
|
|
@@ -185289,8 +185288,8 @@ var renderPrompt = (template, issue2, attempt, context3) => exports_Effect.try({
|
|
|
185289
185288
|
url: issue2.url,
|
|
185290
185289
|
labels: issue2.labels,
|
|
185291
185290
|
blocked_by: issue2.blockedBy,
|
|
185292
|
-
created_at: issue2.createdAt
|
|
185293
|
-
updated_at: issue2.updatedAt
|
|
185291
|
+
created_at: issue2.createdAt ?? null,
|
|
185292
|
+
updated_at: issue2.updatedAt ?? null
|
|
185294
185293
|
},
|
|
185295
185294
|
attempt,
|
|
185296
185295
|
context: context3
|
|
@@ -185558,8 +185557,8 @@ var sortCandidates = (issues) => [...issues].sort((a, b) => {
|
|
|
185558
185557
|
const pb = b.priority ?? 999;
|
|
185559
185558
|
if (pa !== pb)
|
|
185560
185559
|
return pa - pb;
|
|
185561
|
-
const ca = a.createdAt ?
|
|
185562
|
-
const cb = b.createdAt ?
|
|
185560
|
+
const ca = a.createdAt ? Date.parse(a.createdAt) || Infinity : Infinity;
|
|
185561
|
+
const cb = b.createdAt ? Date.parse(b.createdAt) || Infinity : Infinity;
|
|
185563
185562
|
if (ca !== cb)
|
|
185564
185563
|
return ca - cb;
|
|
185565
185564
|
return a.identifier.localeCompare(b.identifier);
|
|
@@ -185715,11 +185714,17 @@ var clearEventLog = (state2, issueId) => {
|
|
|
185715
185714
|
|
|
185716
185715
|
// packages/plot/src/core/application/tracker-fallback.ts
|
|
185717
185716
|
var isFatal = (error) => error instanceof TrackerAuthError || error instanceof TrackerValidationError || error instanceof TrackerNotFoundError;
|
|
185718
|
-
var withTrackerFallback = (effect3, operation, fallback) => effect3.pipe(exports_Effect.
|
|
185717
|
+
var withTrackerFallback = (effect3, operation, fallback) => effect3.pipe(exports_Effect.catchCause((cause) => {
|
|
185718
|
+
const error = exports_Cause.squash(cause);
|
|
185719
185719
|
if (isFatal(error)) {
|
|
185720
185720
|
return exports_Effect.logError("tracker_fatal_error").pipe(exports_Effect.annotateLogs({ operation, error: String(error) }), exports_Effect.flatMap(() => exports_Effect.die(error)));
|
|
185721
185721
|
}
|
|
185722
|
-
|
|
185722
|
+
const isDefect = exports_Cause.hasDies(cause);
|
|
185723
|
+
return exports_Effect.logWarning(isDefect ? "tracker_defect" : "tracker_fetch_failed").pipe(exports_Effect.annotateLogs({
|
|
185724
|
+
operation,
|
|
185725
|
+
error: String(error),
|
|
185726
|
+
defect: String(isDefect)
|
|
185727
|
+
}), exports_Effect.as(fallback));
|
|
185723
185728
|
}));
|
|
185724
185729
|
|
|
185725
185730
|
// packages/plot/src/core/application/dispatch.ts
|
|
@@ -186242,9 +186247,10 @@ class Orchestrator extends exports_ServiceMap.Service()("Orchestrator", {
|
|
|
186242
186247
|
if (cmd.coalesced) {
|
|
186243
186248
|
yield* exports_Ref.set(pendingPollTickRef, false);
|
|
186244
186249
|
}
|
|
186245
|
-
yield* tickRuntime.runTick.pipe(exports_Effect.
|
|
186250
|
+
yield* tickRuntime.runTick.pipe(exports_Effect.catchCause((cause) => exports_Effect.logError("tick_failed").pipe(exports_Effect.annotateLogs({
|
|
186246
186251
|
reason: cmd.reason,
|
|
186247
|
-
error: String(
|
|
186252
|
+
error: String(exports_Cause.squash(cause)),
|
|
186253
|
+
defect: String(exports_Cause.hasDies(cause))
|
|
186248
186254
|
}))));
|
|
186249
186255
|
})), exports_Match.discriminator("_tag")("runtime_event", (cmd) => consumeEvent(cmd.event)), exports_Match.discriminator("_tag")("retry_due", (cmd) => tickRuntime.handleRetryDue(cmd)), exports_Match.discriminator("_tag")("worker_exit", (cmd) => dispatchRuntime.handleWorkerExit(cmd).pipe(exports_Effect.catch((e) => exports_Effect.logError("worker_exit_failed").pipe(exports_Effect.annotateLogs({
|
|
186250
186256
|
issue_id: cmd.issueId,
|
|
@@ -186339,6 +186345,9 @@ class Orchestrator extends exports_ServiceMap.Service()("Orchestrator", {
|
|
|
186339
186345
|
}) {
|
|
186340
186346
|
static layer = exports_Layer.effect(this, this.make);
|
|
186341
186347
|
}
|
|
186348
|
+
// packages/plot/src/runtime-builder.ts
|
|
186349
|
+
import { resolve as resolvePath5 } from "path";
|
|
186350
|
+
|
|
186342
186351
|
// node_modules/.bun/@effect+platform-node-shared@4.0.0-beta.34+a3beb9cffb0732f9/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
186343
186352
|
import * as NodeChildProcess from "child_process";
|
|
186344
186353
|
|
|
@@ -283714,11 +283723,6 @@ function mapPluginError(error4, operation) {
|
|
|
283714
283723
|
const message = error4 instanceof Error ? error4.message : String(error4);
|
|
283715
283724
|
return new TrackerNetworkError({ message: `${operation}: ${message}` });
|
|
283716
283725
|
}
|
|
283717
|
-
function toDateTime(value7) {
|
|
283718
|
-
if (value7 == null)
|
|
283719
|
-
return null;
|
|
283720
|
-
return exports_DateTime.fromDateUnsafe(new Date(value7));
|
|
283721
|
-
}
|
|
283722
283726
|
function normalizeIssue(plain) {
|
|
283723
283727
|
return new Issue({
|
|
283724
283728
|
id: plain.id,
|
|
@@ -283737,8 +283741,8 @@ function normalizeIssue(plain) {
|
|
|
283737
283741
|
})),
|
|
283738
283742
|
metadata: plain.metadata,
|
|
283739
283743
|
autoMerge: plain.autoMerge,
|
|
283740
|
-
createdAt:
|
|
283741
|
-
updatedAt:
|
|
283744
|
+
createdAt: plain.createdAt,
|
|
283745
|
+
updatedAt: plain.updatedAt
|
|
283742
283746
|
});
|
|
283743
283747
|
}
|
|
283744
283748
|
function normalizeIssueStateEntry(plain) {
|
|
@@ -283818,8 +283822,9 @@ function resolvePlugin(resolved) {
|
|
|
283818
283822
|
}
|
|
283819
283823
|
return exports_Effect.gen(function* () {
|
|
283820
283824
|
const kind = resolved.trackerKind;
|
|
283825
|
+
const resolvedPath = kind.startsWith(".") ? resolvePath5(process.cwd(), kind) : kind;
|
|
283821
283826
|
const mod = yield* exports_Effect.tryPromise({
|
|
283822
|
-
try: () => import(
|
|
283827
|
+
try: () => import(resolvedPath),
|
|
283823
283828
|
catch: (cause) => new Error(`Failed to load tracker plugin "${kind}": ${cause instanceof Error ? cause.message : String(cause)}`)
|
|
283824
283829
|
}).pipe(exports_Effect.orDie);
|
|
283825
283830
|
const definition = mod.default;
|
|
@@ -283827,7 +283832,8 @@ function resolvePlugin(resolved) {
|
|
|
283827
283832
|
return yield* exports_Effect.die(new Error(`Tracker plugin "${kind}" does not export a valid default tracker plugin definition`));
|
|
283828
283833
|
}
|
|
283829
283834
|
const config = yield* resolveDefinitionConfig(definition, rawConfig);
|
|
283830
|
-
|
|
283835
|
+
const result6 = yield* makeResolvedPlugin(definition, config);
|
|
283836
|
+
return result6;
|
|
283831
283837
|
});
|
|
283832
283838
|
}
|
|
283833
283839
|
function makeAppLayer(resolvedPlugin) {
|