@shapeshift-labs/frontier-swarm 0.5.25 → 0.5.27

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 CHANGED
@@ -97,6 +97,7 @@ The published Frontier package family is generated from one shared package catal
97
97
  - [`@shapeshift-labs/frontier-migrations`](https://www.npmjs.com/package/@shapeshift-labs/frontier-migrations): Boundary-first data migrations, import normalization, plugin/API version mapping, versioned envelopes, graph diagnostics, patch path rewrites, dry-run reports, and current-shape rehydration.
98
98
  - [`@shapeshift-labs/frontier-event-log`](https://www.npmjs.com/package/@shapeshift-labs/frontier-event-log): Bounded event logs, replay cursors, consumer acknowledgements, keyed compaction, checkpoints, and Frontier patch event records.
99
99
  - [`@shapeshift-labs/frontier-run`](https://www.npmjs.com/package/@shapeshift-labs/frontier-run): Append-only distributed run graphs, causal event DAGs, evidence nodes, lanes, leases, refs, segments, dashboard projections, and admission decision records for Frontier agent work.
100
+ - [`@shapeshift-labs/frontier-lease`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lease): Runtime-neutral semantic, file, package, and repository lease claims with fencing tokens, expiry, conflict checks, apply validation, and replayable evidence for Frontier collaboration.
100
101
  - [`@shapeshift-labs/frontier-inspect`](https://www.npmjs.com/package/@shapeshift-labs/frontier-inspect): Cross-package inspection/evidence bundles, registry graph snapshots, feature/resource impact reports, timeline/event normalization, redaction, JSONL import/export, and AI-readable app feature maps.
101
102
  - [`@shapeshift-labs/frontier-scheduler`](https://www.npmjs.com/package/@shapeshift-labs/frontier-scheduler): Deterministic work scheduling, lanes, cancellation, backpressure, frame policies, replay snapshots, and work graphs.
102
103
  - [`@shapeshift-labs/frontier-logging`](https://www.npmjs.com/package/@shapeshift-labs/frontier-logging): Opt-in structured logging, browser telemetry, scheduled sinks, file sinks, exporters, benchmark traces, and Frontier patch/update summaries.
@@ -111,7 +112,9 @@ The published Frontier package family is generated from one shared package catal
111
112
  - [`@shapeshift-labs/frontier-workflow`](https://www.npmjs.com/package/@shapeshift-labs/frontier-workflow): Serializable durable workflow/process manifests for Frontier apps, including steps, waits, approvals, timers, retries, expected patches, compensation, records, timelines, and registry graph output.
112
113
  - [`@shapeshift-labs/frontier-worker`](https://www.npmjs.com/package/@shapeshift-labs/frontier-worker): Serializable worker and edge task descriptors for Frontier apps, including queues, idempotency keys, retry and timeout policy, declared reads/writes/effects, snapshots, patch outputs, produced assets, execution records, logs, trace links, proof hashes, dedupe indexes, and registry graph output.
113
114
  - [`@shapeshift-labs/frontier-queue`](https://www.npmjs.com/package/@shapeshift-labs/frontier-queue): Serializable durable queue state, leases, retries, dedupe keys, patch-carrying jobs, dead-letter records, replay evidence, and queue inspection for Frontier apps.
115
+ - [`@shapeshift-labs/frontier-swarm-git`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm-git): Node Git, workspace, patch, changed-path, write-fence, package-link repair, patch check, HEAD read, blob hash, and apply-ledger adapter for Frontier swarm runners.
114
116
  - [`@shapeshift-labs/frontier-swarm-codex`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm-codex): Node Codex CLI adapter for Frontier swarm plans, including prompt rendering, worktree and snapshot workspaces, Codex argument compatibility, browser resource allocation, JSONL capture, verification commands, pid-backed stop, collect/apply workflows, merge indexes, queue overlays, merge bundles, normalized job evidence, coordinator query artifacts, and result artifacts.
117
+ - [`@shapeshift-labs/frontier-loom-ui`](https://www.npmjs.com/package/@shapeshift-labs/frontier-loom-ui): Read-only Loom and Frontier operator dashboard for workspace-lifetime progress, active agents, queue state, evidence/admission status, run events, semantic leases, gate executions, git apply/workspace evidence, and coordinator steering intent files.
115
118
  - [`@shapeshift-labs/frontier-lang-kernel`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-kernel): Runtime-neutral semantic source graph, type/lattice/extern declarations, patch bundles, replay, hashing, evidence records, and merge-admission kernel for Frontier Lang.
116
119
  - [`@shapeshift-labs/frontier-lang-parser`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-parser): Dependency-light Frontier Lang parser for modules, entities, state, actions, effects, types, externs, targets, and lattice declarations.
117
120
  - [`@shapeshift-labs/frontier-lang-checker`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-checker): Checker and diagnostics for Frontier Lang semantic documents, including type symbols, effects, regions, lattice laws, CRDT metadata, and patch evidence.
@@ -191,6 +194,7 @@ Package source repositories:
191
194
  - [`siliconjungle/-shapeshift-labs-frontier-migrations`](https://github.com/siliconjungle/-shapeshift-labs-frontier-migrations)
192
195
  - [`siliconjungle/-shapeshift-labs-frontier-event-log`](https://github.com/siliconjungle/-shapeshift-labs-frontier-event-log)
193
196
  - [`siliconjungle/-shapeshift-labs-frontier-run`](https://github.com/siliconjungle/-shapeshift-labs-frontier-run)
197
+ - [`siliconjungle/-shapeshift-labs-frontier-lease`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lease)
194
198
  - [`siliconjungle/-shapeshift-labs-frontier-inspect`](https://github.com/siliconjungle/-shapeshift-labs-frontier-inspect)
195
199
  - [`siliconjungle/-shapeshift-labs-frontier-scheduler`](https://github.com/siliconjungle/-shapeshift-labs-frontier-scheduler)
196
200
  - [`siliconjungle/-shapeshift-labs-frontier-logging`](https://github.com/siliconjungle/-shapeshift-labs-frontier-logging)
@@ -206,7 +210,9 @@ Package source repositories:
206
210
  - [`siliconjungle/-shapeshift-labs-frontier-worker`](https://github.com/siliconjungle/-shapeshift-labs-frontier-worker)
207
211
  - [`siliconjungle/-shapeshift-labs-frontier-queue`](https://github.com/siliconjungle/-shapeshift-labs-frontier-queue)
208
212
  - [`siliconjungle/-shapeshift-labs-frontier-swarm`](https://github.com/siliconjungle/-shapeshift-labs-frontier-swarm)
213
+ - [`siliconjungle/-shapeshift-labs-frontier-swarm-git`](https://github.com/siliconjungle/-shapeshift-labs-frontier-swarm-git)
209
214
  - [`siliconjungle/-shapeshift-labs-frontier-swarm-codex`](https://github.com/siliconjungle/-shapeshift-labs-frontier-swarm-codex)
215
+ - [`siliconjungle/frontier-loom-ui`](https://github.com/siliconjungle/frontier-loom-ui)
210
216
  - [`siliconjungle/-shapeshift-labs-frontier-lang-kernel`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-kernel)
211
217
  - [`siliconjungle/-shapeshift-labs-frontier-lang-parser`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-parser)
212
218
  - [`siliconjungle/-shapeshift-labs-frontier-lang-checker`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-checker)
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { JsonObject, JsonValue } from '@shapeshift-labs/frontier';
2
2
  import { type FrontierRunActorId, type FrontierRunDashboardSnapshot, type FrontierRunEvent, type FrontierRunEventId, type FrontierRunProjection } from '@shapeshift-labs/frontier-run';
3
- import { validateSemanticLeaseFence, type FrontierSemanticLeaseMutation, type FrontierSemanticLeaseRecord, type FrontierSemanticLeaseScope, type FrontierSemanticLeaseState } from '@shapeshift-labs/frontier-lease';
3
+ import { validateSemanticLeaseFence, type FrontierSemanticLeaseFenceTicket, type FrontierSemanticLeaseMutation, type FrontierSemanticLeaseRecord, type FrontierSemanticLeaseScope, type FrontierSemanticLeaseState } from '@shapeshift-labs/frontier-lease';
4
4
  export declare const FRONTIER_SWARM_MANIFEST_KIND = "frontier.swarm.manifest";
5
5
  export declare const FRONTIER_SWARM_MANIFEST_VERSION = 1;
6
6
  export declare const FRONTIER_SWARM_TASK_KIND = "frontier.swarm.task";
@@ -4007,6 +4007,74 @@ export interface FrontierSwarmCoordinatorSemanticLeaseFenceInput {
4007
4007
  now?: number;
4008
4008
  requiredSemanticLeaseScopes?: readonly FrontierSemanticLeaseScope[];
4009
4009
  }
4010
+ export interface FrontierSwarmCoordinatorQueueItemClaimInput {
4011
+ queue: FrontierSwarmHierarchicalMergeQueue;
4012
+ assignment?: FrontierSwarmMergeQueueAssignment;
4013
+ jobId?: string;
4014
+ queueItemId?: string;
4015
+ coordinatorId?: string;
4016
+ now?: number;
4017
+ metadata?: unknown;
4018
+ }
4019
+ export interface FrontierSwarmCoordinatorQueueItemClaim {
4020
+ id: string;
4021
+ queueId: string;
4022
+ mergeIndexId: string;
4023
+ generatedAt: number;
4024
+ coordinatorId: string;
4025
+ claimed: boolean;
4026
+ jobId?: string;
4027
+ taskId?: string;
4028
+ lane?: string;
4029
+ queueItemIds: string[];
4030
+ queueIdForAssignment?: string;
4031
+ assignedAction?: FrontierSwarmMergeQueueAssignmentAction;
4032
+ requiredLeaseScopeIds: string[];
4033
+ requiredLeaseKeys: string[];
4034
+ requiredSemanticLeaseScopes: FrontierSemanticLeaseScope[];
4035
+ reasons: string[];
4036
+ assignment?: FrontierSwarmMergeQueueAssignment;
4037
+ metadata?: JsonObject;
4038
+ }
4039
+ export interface FrontierSwarmCoordinatorQueueLeaseClaimInput extends Omit<FrontierSwarmCoordinatorSemanticLeaseAcquireInput, 'queue' | 'assignment'> {
4040
+ queue: FrontierSwarmHierarchicalMergeQueue;
4041
+ claim: FrontierSwarmCoordinatorQueueItemClaim;
4042
+ state?: FrontierSemanticLeaseState;
4043
+ }
4044
+ export interface FrontierSwarmCoordinatorQueueLeaseClaim {
4045
+ id: string;
4046
+ queueId: string;
4047
+ claimId: string;
4048
+ generatedAt: number;
4049
+ granted: boolean;
4050
+ state: FrontierSemanticLeaseState;
4051
+ mutation: FrontierSemanticLeaseMutation;
4052
+ scopes: FrontierSemanticLeaseScope[];
4053
+ requiredLeaseScopeIds: string[];
4054
+ requiredLeaseKeys: string[];
4055
+ lease?: FrontierSemanticLeaseRecord;
4056
+ fence?: FrontierSemanticLeaseFenceTicket;
4057
+ reasons: string[];
4058
+ }
4059
+ export interface FrontierSwarmCoordinatorClaimDecisionInput {
4060
+ claim: FrontierSwarmCoordinatorQueueItemClaim;
4061
+ leaseClaim?: FrontierSwarmCoordinatorQueueLeaseClaim;
4062
+ decision?: FrontierSwarmCoordinatorAgentDrainDecision | string;
4063
+ outcome?: FrontierSwarmQueueOutcome;
4064
+ category?: FrontierSwarmQueueOutcomeCategory;
4065
+ terminal?: boolean;
4066
+ status?: string;
4067
+ reasons?: readonly string[];
4068
+ conflictingJobIds?: readonly string[];
4069
+ generatedAt?: number;
4070
+ metadata?: unknown;
4071
+ }
4072
+ export interface FrontierSwarmCoordinatorClaimDecision {
4073
+ claim: FrontierSwarmCoordinatorQueueItemClaim;
4074
+ leaseClaim?: FrontierSwarmCoordinatorQueueLeaseClaim;
4075
+ decision: FrontierSwarmQueueOutcomeDecision;
4076
+ runEvents: FrontierRunEvent[];
4077
+ }
4010
4078
  export interface FrontierSwarmCoordinatorAgentPromotedWork {
4011
4079
  id: string;
4012
4080
  jobId: string;
@@ -4326,6 +4394,10 @@ export declare function createSwarmSemanticLeaseStateForMergeQueue(queue: Fronti
4326
4394
  }): FrontierSemanticLeaseState;
4327
4395
  export declare function acquireSwarmCoordinatorSemanticLease(input: FrontierSwarmCoordinatorSemanticLeaseAcquireInput): FrontierSwarmCoordinatorSemanticLeaseAcquireResult;
4328
4396
  export declare function validateSwarmCoordinatorSemanticLeaseFence(input: FrontierSwarmCoordinatorSemanticLeaseFenceInput): ReturnType<typeof validateSemanticLeaseFence>;
4397
+ export declare function claimSwarmCoordinatorQueueItem(input: FrontierSwarmCoordinatorQueueItemClaimInput): FrontierSwarmCoordinatorQueueItemClaim;
4398
+ export declare function claimSwarmCoordinatorQueueLease(input: FrontierSwarmCoordinatorQueueLeaseClaimInput): FrontierSwarmCoordinatorQueueLeaseClaim;
4399
+ export declare function decideSwarmCoordinatorClaim(input: FrontierSwarmCoordinatorClaimDecisionInput): FrontierSwarmCoordinatorClaimDecision;
4400
+ export declare function createRunEventsFromCoordinatorClaimDecision(decision: FrontierSwarmQueueOutcomeDecision | FrontierSwarmQueueOutcomeDecisionInput, options?: FrontierSwarmRunEventAdapterOptions): FrontierRunEvent[];
4329
4401
  export declare function summarizeSwarmCoordinatorAgentDrainWork(work: Pick<FrontierSwarmCoordinatorAgentDrainWork, 'leases' | 'assignments' | 'terminalDecisions' | 'promotedWork'>): FrontierSwarmCoordinatorAgentDrainWorkConsumerSummary;
4330
4402
  export declare function createSwarmContinuousPoolState(input?: FrontierSwarmContinuousPoolStateInput): FrontierSwarmContinuousPoolState;
4331
4403
  export declare function classifySwarmQueueOutcome(input: FrontierSwarmQueueOutcomeDecisionInput): FrontierSwarmQueueOutcomeClassification;