@astrosheep/square 0.3.70 → 0.3.72
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/activity-feed.d.ts +4 -5
- package/dist/activity-feed.js +14 -10
- package/dist/artifact.d.ts +26 -33
- package/dist/artifact.js +346 -317
- package/dist/attention-presentation.js +2 -9
- package/dist/automatic-session.js +6 -6
- package/dist/boundary-presentation.js +3 -3
- package/dist/catch-decisions.d.ts +19 -12
- package/dist/catch-decisions.js +32 -68
- package/dist/claude-delivery.js +7 -7
- package/dist/claude-mod.js +18 -7
- package/dist/cli/catch-presentation.d.ts +7 -0
- package/dist/cli/catch-presentation.js +55 -0
- package/dist/cli/context.d.ts +1 -1
- package/dist/cli/context.js +5 -23
- package/dist/cli/express-presentation.d.ts +10 -0
- package/dist/cli/express-presentation.js +196 -0
- package/dist/cli/maintenance-commands.d.ts +4 -0
- package/dist/cli/maintenance-commands.js +29 -6
- package/dist/cli/observation-commands.d.ts +7 -5
- package/dist/cli/observation-commands.js +275 -262
- package/dist/cli/program.d.ts +1 -1
- package/dist/cli/program.js +43 -56
- package/dist/cli/registry.js +2 -1
- package/dist/cli/square-commands.d.ts +3 -9
- package/dist/cli/square-commands.js +134 -255
- package/dist/codex-queue.js +4 -1
- package/dist/decisions.d.ts +26 -74
- package/dist/decisions.js +190 -335
- package/dist/delivery-health.js +13 -22
- package/dist/delivery-operations.d.ts +0 -11
- package/dist/delivery-operations.js +44 -33
- package/dist/delivery.d.ts +33 -32
- package/dist/delivery.js +70 -81
- package/dist/help.js +6 -1
- package/dist/inbox.d.ts +27 -0
- package/dist/inbox.js +55 -18
- package/dist/index.d.ts +2 -4
- package/dist/index.js +1 -1
- package/dist/list.d.ts +7 -1
- package/dist/list.js +49 -122
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +7 -37
- package/dist/model.d.ts +4 -44
- package/dist/model.js +1 -3
- package/dist/notifications.d.ts +1 -1
- package/dist/notifications.js +13 -7
- package/dist/open-square.d.ts +16 -2
- package/dist/open-square.js +40 -1
- package/dist/packages/agent-delivery/src/claude.d.ts +2 -11
- package/dist/packages/agent-delivery/src/index.d.ts +2 -42
- package/dist/packages/agent-delivery/src/opencode.d.ts +2 -11
- package/dist/packages/agent-delivery/src/paseo.d.ts +2 -13
- package/dist/packages/agent-delivery/src/pi-client.d.ts +2 -9
- package/dist/packages/agent-delivery/src/types.d.ts +42 -0
- package/dist/participant-host.d.ts +6 -3
- package/dist/participant-host.js +44 -38
- package/dist/perception-projection.d.ts +6 -15
- package/dist/perception-projection.js +6 -26
- package/dist/plugins/opencode/delivery.js +9 -9
- package/dist/plugins/opencode/index.js +3 -3
- package/dist/ports.d.ts +156 -11
- package/dist/presentation-operations.d.ts +1 -1
- package/dist/presentation-operations.js +35 -44
- package/dist/presentation.d.ts +12 -19
- package/dist/presentation.js +33 -54
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +1 -1
- package/dist/routes.d.ts +7 -14
- package/dist/routes.js +34 -72
- package/dist/runtime.d.ts +12 -39
- package/dist/runtime.js +33 -164
- package/dist/square-actions.d.ts +11 -21
- package/dist/square-actions.js +171 -275
- package/dist/square-application.d.ts +31 -55
- package/dist/square-application.js +625 -141
- package/dist/square-core.d.ts +3 -94
- package/dist/square-core.js +8 -353
- package/dist/square-domain.d.ts +24 -0
- package/dist/square-domain.js +77 -0
- package/dist/square-facade.d.ts +360 -9
- package/dist/square-migration.d.ts +24 -0
- package/dist/square-migration.js +211 -0
- package/dist/square-projections.d.ts +2 -42
- package/dist/square-projections.js +1 -37
- package/dist/square-sqlite.d.ts +59 -0
- package/dist/square-sqlite.js +702 -0
- package/dist/stream.d.ts +3 -10
- package/dist/stream.js +81 -52
- package/dist/views.d.ts +27 -95
- package/dist/views.js +217 -87
- package/dist/wake-eligibility.d.ts +15 -5
- package/dist/wake-eligibility.js +32 -16
- package/dist/wakes.d.ts +3 -3
- package/dist/wakes.js +31 -27
- package/guides/application-facade-delivery-evidence.md +200 -0
- package/guides/application-facade-design.md +95 -0
- package/guides/change-waits.md +4 -4
- package/guides/migration.md +77 -0
- package/guides/postcommit-simplification-performance.md +36 -0
- package/guides/primitive-catch-consolidation.md +85 -0
- package/guides/primitive-history-consolidation.md +76 -0
- package/guides/primitive-status-consolidation.md +87 -0
- package/guides/primitive-storage-consolidation.md +128 -0
- package/guides/row-runtime-delivery-evidence.md +160 -0
- package/guides/row-storage-design.md +567 -0
- package/package.json +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/codex/.codex-plugin/plugin.json +1 -1
- package/plugins/opencode/delivery.ts +11 -11
- package/plugins/opencode/index.ts +3 -3
- package/plugins/paseo/client/square-message.tsx +77 -64
- package/plugins/paseo/shared/message.ts +16 -0
- package/plugins/pi/square-pi.js +5 -1
- package/dist/activity.d.ts +0 -14
- package/dist/activity.js +0 -248
- package/dist/square-file-adapter.d.ts +0 -26
- package/dist/square-file-adapter.js +0 -85
- package/dist/square-state.d.ts +0 -6
- package/dist/square-state.js +0 -138
- package/dist/square-storage.d.ts +0 -14
- package/dist/square-storage.js +0 -188
- package/dist/square-wiring.d.ts +0 -33
- package/dist/square-wiring.js +0 -109
- package/dist/watch.d.ts +0 -8
- package/dist/watch.js +0 -252
package/dist/activity-feed.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function directedPeerSays(squareState: SquareState, delta: StoredAct[], name: string, delivery?: import("./delivery.js").DeliveryModel): Extract<StoredAct, {
|
|
1
|
+
import type { SquareRead } from './ports.js';
|
|
2
|
+
import type { StoredAct } from './model.js';
|
|
3
|
+
/** Directed suffix includes seen rows beyond an earlier hole, unlike notification pending. */
|
|
4
|
+
export declare function directedSuffix(facts: SquareRead, name: string): Extract<StoredAct, {
|
|
6
5
|
kind: 'say';
|
|
7
6
|
}>[];
|
package/dist/activity-feed.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { readCursor } from './runtime.js';
|
|
2
|
+
/** Directed suffix includes seen rows beyond an earlier hole, unlike notification pending. */
|
|
3
|
+
export function directedSuffix(facts, name) {
|
|
4
|
+
const result = [];
|
|
5
|
+
let afterIndex = readCursor(facts, name);
|
|
6
|
+
while (true) {
|
|
7
|
+
const page = facts.directed(name, { afterIndex }, { edge: 'oldest', limit: 100 });
|
|
8
|
+
for (const act of facts.activities(page.items.map((head) => head.index)))
|
|
9
|
+
if (act.kind === 'say')
|
|
10
|
+
result.push(act);
|
|
11
|
+
if (!page.hasMore)
|
|
12
|
+
return result;
|
|
13
|
+
afterIndex = page.items.at(-1).index;
|
|
14
|
+
}
|
|
11
15
|
}
|
package/dist/artifact.d.ts
CHANGED
|
@@ -1,45 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DatabaseSync } from 'node:sqlite';
|
|
2
|
+
import { type BuildOptions } from './model.js';
|
|
3
|
+
import type { SquareArtifactPort } from './ports.js';
|
|
4
|
+
import { type SquareState } from './square-sqlite.js';
|
|
5
|
+
/** All build paths share configuration validation and lazy guide preparation. */
|
|
6
|
+
export declare function prepareSquareBuild(options: Omit<BuildOptions, 'force'>, snippet: string): SquareState;
|
|
7
|
+
/** File build owns publication and CLI conflict semantics, not host resources. */
|
|
8
|
+
export declare function createSquare(location: string, options: BuildOptions, snippet: string, signal?: AbortSignal): Promise<Pick<SquareState, 'hardCap' | 'throttlePerMinute'>>;
|
|
3
9
|
export interface DoctorProblem {
|
|
4
10
|
kind: string;
|
|
5
11
|
message: string;
|
|
6
12
|
}
|
|
7
13
|
export interface DiagnoseResult {
|
|
8
14
|
unfixable?: string;
|
|
15
|
+
migrationRequired?: string;
|
|
9
16
|
problems: DoctorProblem[];
|
|
10
|
-
|
|
17
|
+
standingCount?: number;
|
|
11
18
|
}
|
|
12
19
|
export interface SquareSnapshot {
|
|
13
20
|
readonly state: SquareState;
|
|
14
21
|
readonly revision: number;
|
|
15
22
|
}
|
|
16
|
-
/**
|
|
17
|
-
export declare function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
export declare function
|
|
23
|
-
/**
|
|
24
|
-
export declare function
|
|
25
|
-
/**
|
|
26
|
-
export declare function
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* Executes one synchronous SquareState transition under SQLite's write lock.
|
|
33
|
-
* A busy COMMIT retries on this same transaction, so fn is never replayed.
|
|
34
|
-
*/
|
|
35
|
-
export declare function transactSquareSnapshot<R>(squarePath: string, fn: SquareTransition<R>, signal?: AbortSignal, forceCommit?: boolean): Promise<{
|
|
36
|
-
result: R;
|
|
37
|
-
revision: number;
|
|
38
|
-
changed: boolean;
|
|
39
|
-
}>;
|
|
40
|
-
/** Replaces an existing validated snapshot in place and always advances its revision. */
|
|
41
|
-
export declare function replaceSquareSnapshot(squarePath: string, state: SquareState): Promise<SquareSnapshot>;
|
|
42
|
-
export declare function writeSquareFile(squarePath: string, squareState: SquareState): Promise<void>;
|
|
43
|
-
export declare function loadSquare(squarePath: string): Promise<SquareState>;
|
|
44
|
-
export declare function probeSquare(squarePath: string): Promise<SquareState | undefined>;
|
|
45
|
-
export declare function diagnoseSquareFile(squarePath: string): Promise<DiagnoseResult>;
|
|
23
|
+
/** Private artifact-boundary connection shared with explicit migration. Never creates a path. */
|
|
24
|
+
export declare function openExistingSquareDatabase(location: string): DatabaseSync;
|
|
25
|
+
export declare function retrySqliteBusy<T>(operation: () => T, signal?: AbortSignal): Promise<T>;
|
|
26
|
+
/** Acquisition may retry; after change starts, only COMMIT retries, retaining its result. */
|
|
27
|
+
export declare function inSqliteTransaction<T>(db: DatabaseSync, write: boolean, validate: () => void, change: () => T, signal?: AbortSignal): Promise<T>;
|
|
28
|
+
/** One connection, ordered operations, guarded synchronous transaction capabilities. */
|
|
29
|
+
export declare function createArtifactPort(location: string, initial?: SquareState, externalSignal?: AbortSignal): SquareArtifactPort;
|
|
30
|
+
/** New-format creation; initial authority is accepted only at this explicit boundary. */
|
|
31
|
+
export declare function createSquareFile(location: string, state: SquareState, signal?: AbortSignal): Promise<boolean>;
|
|
32
|
+
/** Explicit build --force / fixture import, never a runtime state-replacement callback. */
|
|
33
|
+
export declare function writeSquareFile(location: string, state: SquareState, signal?: AbortSignal): Promise<void>;
|
|
34
|
+
/** Explicit test/export projection. Hot callers must use the typed port. */
|
|
35
|
+
export declare function readSquareSnapshot(location: string, signal?: AbortSignal): Promise<SquareSnapshot>;
|
|
36
|
+
export declare function readSquareRevision(location: string, signal?: AbortSignal): Promise<number>;
|
|
37
|
+
export declare function observeSquareRevision(location: string): Promise<import('./file-changes.js').VersionObserver<number | null>>;
|
|
38
|
+
export declare function diagnoseSquareFile(location: string): Promise<DiagnoseResult>;
|