@astrosheep/square 0.3.93 → 0.3.95
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 +3 -5
- package/dist/activity-feed.js +16 -14
- package/dist/artifact.js +3 -3
- package/dist/attention.d.ts +19 -0
- package/dist/attention.js +30 -0
- package/dist/boundary-presentation.d.ts +2 -2
- package/dist/boundary-presentation.js +33 -40
- package/dist/catch-decisions.d.ts +5 -8
- package/dist/catch-decisions.js +45 -25
- package/dist/claude-delivery-status.js +10 -4
- package/dist/claude-delivery.js +19 -11
- package/dist/claude-mod.js +24 -53
- package/dist/cli/context.d.ts +9 -4
- package/dist/cli/context.js +30 -27
- package/dist/cli/express-presentation.d.ts +3 -1
- package/dist/cli/express-presentation.js +28 -16
- package/dist/cli/json.d.ts +3 -0
- package/dist/cli/json.js +14 -0
- package/dist/cli/mcp-server-command.js +2 -2
- package/dist/cli/observation-commands.d.ts +1 -3
- package/dist/cli/observation-commands.js +43 -56
- package/dist/cli/program.js +3 -3
- package/dist/cli/registry.js +7 -6
- package/dist/cli/square-commands.d.ts +0 -2
- package/dist/cli/square-commands.js +30 -44
- package/dist/codex-hook.d.ts +3 -2
- package/dist/codex-hook.js +13 -4
- package/dist/codex-queue.js +4 -4
- package/dist/decisions.d.ts +5 -16
- package/dist/decisions.js +9 -33
- package/dist/delivery-attempts.d.ts +52 -0
- package/dist/delivery-attempts.js +73 -0
- package/dist/delivery-deferral.js +2 -2
- package/dist/delivery-effects.d.ts +139 -0
- package/dist/delivery-effects.js +163 -0
- package/dist/delivery-health.d.ts +0 -1
- package/dist/delivery-health.js +1 -3
- package/dist/delivery-operations.d.ts +2 -2
- package/dist/delivery-operations.js +76 -101
- package/dist/delivery-primitives.d.ts +5 -0
- package/dist/delivery-primitives.js +3 -0
- package/dist/delivery.d.ts +1 -1
- package/dist/delivery.js +7 -6
- package/dist/help.js +14 -14
- package/dist/http-delivery.d.ts +16 -0
- package/dist/http-delivery.js +101 -0
- package/dist/inbox.d.ts +9 -22
- package/dist/inbox.js +23 -27
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -1
- package/dist/mcp.d.ts +3 -0
- package/dist/mcp.js +23 -24
- package/dist/model.d.ts +12 -21
- package/dist/model.js +5 -8
- package/dist/notifications.d.ts +1 -1
- package/dist/notifications.js +8 -5
- package/dist/operation-presentation.d.ts +6 -6
- package/dist/operation-presentation.js +55 -58
- package/dist/owner.d.ts +11 -0
- package/dist/owner.js +32 -0
- package/dist/paseo-delivery.d.ts +4 -1
- package/dist/paseo-delivery.js +7 -12
- package/dist/paseo-state.d.ts +2 -2
- package/dist/paseo-state.js +6 -4
- package/dist/plugins/opencode/delivery.js +27 -15
- package/dist/ports.d.ts +18 -47
- package/dist/presentation-operations.d.ts +14 -19
- package/dist/presentation-operations.js +51 -61
- package/dist/presentation.d.ts +7 -17
- package/dist/presentation.js +46 -91
- package/dist/receive.d.ts +66 -0
- package/dist/receive.js +54 -0
- package/dist/runtime.d.ts +1 -8
- package/dist/runtime.js +2 -17
- package/dist/seats.d.ts +2 -3
- package/dist/seats.js +7 -15
- package/dist/session-lifecycle.d.ts +6 -2
- package/dist/session-lifecycle.js +39 -11
- package/dist/sqlite-square.d.ts +36 -23
- package/dist/sqlite-square.js +162 -211
- package/dist/square-api.d.ts +16 -11
- package/dist/square-api.js +27 -23
- package/dist/square-core.d.ts +0 -14
- package/dist/square-core.js +0 -9
- package/dist/square-domain.d.ts +4 -2
- package/dist/square-domain.js +65 -52
- package/dist/square-facade.d.ts +47 -105
- package/dist/square-index.d.ts +5 -13
- package/dist/square-index.js +13 -38
- package/dist/square-legacy-framing.d.ts +2 -0
- package/dist/square-legacy-framing.js +8 -0
- package/dist/square-location.d.ts +1 -14
- package/dist/square-location.js +4 -70
- package/dist/square-migration-host-ledger.d.ts +2 -2
- package/dist/square-migration-host-ledger.js +6 -5
- package/dist/square-migration.d.ts +4 -1
- package/dist/square-migration.js +93 -38
- package/dist/square-receive.d.ts +6 -0
- package/dist/square-receive.js +18 -0
- package/dist/square-sqlite.d.ts +9 -3
- package/dist/square-sqlite.js +139 -114
- package/dist/square-tools.d.ts +7 -10
- package/dist/square-tools.js +21 -61
- package/dist/stream.js +4 -5
- package/dist/views.d.ts +23 -13
- package/dist/views.js +47 -53
- package/dist/wakes.d.ts +1 -5
- package/dist/wakes.js +4 -6
- package/examples/symmetric-domains.mjs +250 -0
- package/guides/application-facade-delivery-evidence.md +6 -6
- package/guides/attention-primitive.md +32 -0
- package/guides/change-waits.md +2 -2
- package/guides/claude-native.md +18 -9
- package/guides/codex-delivery.md +17 -6
- package/guides/delivery-primitives.md +180 -0
- package/guides/mcp-connection-lifetime.md +1 -1
- package/guides/mcp.md +3 -3
- package/guides/migration.md +148 -151
- package/guides/operation-cancellation.md +1 -1
- package/guides/participant-ownership.md +78 -47
- package/guides/pi-tools.md +34 -5
- package/guides/primitive-catch-consolidation.md +5 -5
- package/guides/primitive-history-consolidation.md +2 -2
- package/guides/primitive-status-consolidation.md +3 -3
- package/guides/primitive-storage-consolidation.md +1 -1
- package/guides/receive-primitive.md +90 -0
- package/guides/row-runtime-delivery-evidence.md +1 -1
- package/guides/row-storage-design.md +22 -28
- package/guides/square-api.md +314 -91
- package/guides/symmetric-domains.md +92 -0
- package/package.json +14 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/skills/square/SKILL.md +2 -6
- package/plugins/codex/.codex-plugin/plugin.json +1 -1
- package/plugins/opencode/delivery.ts +27 -17
- package/plugins/paseo/client/palette.ts +18 -18
- package/plugins/paseo/client/square-message.tsx +17 -23
- package/plugins/pi/square-pi.js +17 -17
- package/skills/square/SKILL.md +2 -6
- package/dist/square-backend.d.ts +0 -13
- package/dist/square-backend.js +0 -1
- package/dist/square-stdio.d.ts +0 -22
- package/dist/square-stdio.js +0 -235
- package/dist/stdio-server.d.ts +0 -3
- package/dist/stdio-server.js +0 -212
- package/guides/backends.md +0 -193
package/dist/sqlite-square.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type {
|
|
1
|
+
import { type Owner } from './model.js';
|
|
2
|
+
import type { HistoryQuery, HistoryResult, JoinOptions, JoinResult, LifecycleResult, ObservationOptions, OperationControl, Participant, SquareAtInput, SquareBuildInput, SquareLocation, StatusOptions, StatusResult, ParticipantsResult, RecoveryResult, DiscoveryOptions, InboxOptions, InboxResult, StreamOptions, StreamRecord, Activity, PerceivedActivity } from './square-facade.js';
|
|
3
3
|
export type * from './square-facade.js';
|
|
4
4
|
export { createSquareResourceOwner } from './artifact.js';
|
|
5
5
|
export { formatActivityId, parseActivityId, MAX_IDENTITY_SET_SIZE } from './square-core.js';
|
|
6
6
|
export { CATCH_DEFAULT_LIMIT, CATCH_MAX_LIMIT } from './catch-decisions.js';
|
|
7
|
-
export { HELD_WAIT_BUDGET_MS } from './runtime.js';
|
|
8
7
|
export { HISTORY_DEFAULT_LIMIT, HISTORY_MAX_LIMIT } from './views.js';
|
|
9
8
|
export { DEFAULT_LIST_DEPTH, MAX_LIST_DEPTH, DEFAULT_LIST_LIMIT, MAX_LIST_LIMIT } from './list.js';
|
|
10
9
|
export declare function squareClock(env: NodeJS.ProcessEnv, clock?: () => number): () => number;
|
|
@@ -13,41 +12,55 @@ export declare class SqliteSquare {
|
|
|
13
12
|
readonly location: string;
|
|
14
13
|
private readonly artifact;
|
|
15
14
|
private readonly clock;
|
|
16
|
-
private readonly body?;
|
|
17
|
-
private readonly wakeAddress?;
|
|
18
15
|
private readonly wakeTransport?;
|
|
19
16
|
private readonly indexPath?;
|
|
20
|
-
private readonly
|
|
21
|
-
private readonly
|
|
22
|
-
private readonly defaultParticipant?;
|
|
17
|
+
private readonly closesArtifact;
|
|
18
|
+
private readonly deliveryLocation;
|
|
23
19
|
private constructor();
|
|
24
|
-
static at(input: SquareAtInput, control?: OperationControl
|
|
25
|
-
static build(input: SquareBuildInput, control?: OperationControl
|
|
20
|
+
static at(input: SquareAtInput, control?: OperationControl): Promise<SqliteSquare>;
|
|
21
|
+
static build(input: SquareBuildInput, control?: OperationControl): Promise<SqliteSquare>;
|
|
26
22
|
static inMemory(input: Omit<SquareBuildInput, 'path' | 'resources'>): SqliteSquare;
|
|
27
|
-
/** Discovery is best effort and never grants write authority.
|
|
28
|
-
private
|
|
23
|
+
/** Discovery is best effort and never grants write authority. */
|
|
24
|
+
private publishSeat;
|
|
29
25
|
private observation;
|
|
30
26
|
private contextObservation;
|
|
31
27
|
private handle;
|
|
32
28
|
private static readonly ParticipantHandle;
|
|
33
|
-
participant(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}>;
|
|
29
|
+
participant(name: string, { owner }: {
|
|
30
|
+
readonly owner: Owner;
|
|
31
|
+
}): Promise<Participant>;
|
|
32
|
+
join(requested: string, options: JoinOptions, control?: OperationControl): Promise<JoinResult>;
|
|
33
|
+
/** Restore only a standing seat; a concurrent departure or takeover cannot be revived. */
|
|
34
|
+
reattach(name: string, { owner, wakeAddress }: Pick<JoinOptions, 'owner' | 'wakeAddress'>, control?: OperationControl): Promise<Participant | null>;
|
|
39
35
|
snapshot(control?: OperationControl): Promise<import("./square-facade.js").SquareSnapshot>;
|
|
40
36
|
history(query?: HistoryQuery, control?: OperationControl): Promise<HistoryResult>;
|
|
41
37
|
status(options?: StatusOptions, control?: OperationControl): Promise<StatusResult>;
|
|
42
38
|
participants(options?: ObservationOptions, control?: OperationControl): Promise<ParticipantsResult>;
|
|
43
39
|
recovery(requested?: string, control?: OperationControl): Promise<RecoveryResult>;
|
|
44
|
-
stream(options: StreamOptions
|
|
45
|
-
|
|
40
|
+
stream(options: StreamOptions & {
|
|
41
|
+
readonly recipient: string;
|
|
42
|
+
}, control?: OperationControl): AsyncIterable<PerceivedActivity>;
|
|
43
|
+
stream(options: StreamOptions & {
|
|
44
|
+
readonly recipient?: undefined;
|
|
45
|
+
}, control?: OperationControl): AsyncIterable<Activity>;
|
|
46
|
+
stream(options: StreamOptions, control?: OperationControl): AsyncIterable<StreamRecord>;
|
|
47
|
+
seatsOf(owner: Owner): Promise<readonly import('./square-facade.js').HeldSeat[]>;
|
|
46
48
|
close(): Promise<void>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
private heldSeat;
|
|
50
|
+
cancelDeliveries(name: string, identity: {
|
|
51
|
+
readonly owner: Owner;
|
|
52
|
+
readonly generation: import('./square-core.js').ActivityId;
|
|
53
|
+
}): Promise<boolean>;
|
|
54
|
+
detach(name: string, identity: {
|
|
55
|
+
readonly owner: Owner;
|
|
56
|
+
readonly generation: import('./square-core.js').ActivityId;
|
|
57
|
+
}): Promise<true | null>;
|
|
58
|
+
endHeld(name: string, identity: {
|
|
59
|
+
readonly owner: Owner;
|
|
60
|
+
readonly generation: import('./square-core.js').ActivityId;
|
|
61
|
+
}): Promise<LifecycleResult | null>;
|
|
49
62
|
}
|
|
50
63
|
export declare function diagnoseSquare(input: SquareLocation, control?: OperationControl): Promise<import("./artifact.js").DiagnoseResult>;
|
|
51
64
|
export declare function migrateSquare(input: SquareLocation, control?: OperationControl): Promise<import("./square-migration.js").MigrationOutcome>;
|
|
52
65
|
export declare function discover(input: SquareAtInput, options?: DiscoveryOptions, control?: OperationControl): Promise<import("./square-facade.js").DiscoveryResult>;
|
|
53
|
-
export declare function inbox(input: SquareAtInput,
|
|
66
|
+
export declare function inbox(input: SquareAtInput, owner: Owner, options?: InboxOptions, control?: OperationControl): Promise<InboxResult>;
|