@langspan/client 0.18.2 → 0.20.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/commands/policy.d.ts +3 -1
- package/dist/protocol.d.ts +1 -1
- package/dist/protocol.js +1 -0
- package/dist/values.d.ts +7 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ObservedFile, PathRegions, Policy, PolicyCase, RefusalKind, WaitResult } from "../values.ts";
|
|
1
|
+
import type { HeldRename, ObservedFile, PathRegions, Policy, PolicyCase, RefusalKind, WaitResult } from "../values.ts";
|
|
2
2
|
import type { TokenCounts } from "../records.ts";
|
|
3
3
|
/** A refusal the hook decided itself, such as a held commit. */
|
|
4
4
|
export interface RecordRefusalCommand {
|
|
@@ -7,6 +7,8 @@ export interface RecordRefusalCommand {
|
|
|
7
7
|
kind: RefusalKind;
|
|
8
8
|
paths: string[];
|
|
9
9
|
peer_session_id?: string;
|
|
10
|
+
/** The names a `rename_held` refusal held; absent for other kinds. */
|
|
11
|
+
renamed?: HeldRename[];
|
|
10
12
|
}
|
|
11
13
|
/** Read-only: the policy table in effect for a workspace. */
|
|
12
14
|
export interface PolicyCommand {
|
package/dist/protocol.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const MAX_FRAME_BYTES = 65536;
|
|
|
14
14
|
* knows. Pinned to `src/protocol.rs` and `fixtures/capabilities/answer.json`
|
|
15
15
|
* by the tests.
|
|
16
16
|
*/
|
|
17
|
-
export declare const CAPABILITIES: readonly ["anchored_notes", "briefing_memory", "briefing_outcomes", "build_errors", "collisions", "composition_table", "confirmed_briefings", "git_trouble", "inflight_partial", "intent_contracts", "intent_frames", "intent_overlaps", "interface_notices", "landing_held", "landing_rewrites", "message_paths", "notice_recipients", "opaque_events", "outline_reads", "place_told", "push_messages", "recap_since", "refusal_outcomes", "refused_roots", "remote_messages", "rename_holds", "renames", "reservations", "same_task", "sender_source", "session_limits", "standing_decisions", "subscriptions", "symbol_findings", "tolerant_responses", "trails", "unreadable_waits", "usage", "versioned_keys", "withheld_events", "worked_examples"];
|
|
17
|
+
export declare const CAPABILITIES: readonly ["anchored_notes", "briefing_memory", "briefing_outcomes", "build_errors", "collisions", "composition_table", "confirmed_briefings", "git_trouble", "inflight_partial", "intent_contracts", "intent_frames", "intent_overlaps", "interface_notices", "landing_held", "landing_rewrites", "message_paths", "notice_recipients", "opaque_events", "outline_reads", "place_told", "push_messages", "recap_since", "refusal_outcomes", "refused_roots", "remote_messages", "rename_held", "rename_holds", "renames", "reservations", "same_task", "sender_source", "session_limits", "standing_decisions", "subscriptions", "symbol_findings", "tolerant_responses", "trails", "unreadable_waits", "usage", "versioned_keys", "withheld_events", "worked_examples"];
|
|
18
18
|
/**
|
|
19
19
|
* What the coordinator serves and this client does not speak yet (ADR 0043,
|
|
20
20
|
* "Transport"). The client names the `subscriptions` capability, which
|
package/dist/protocol.js
CHANGED
package/dist/values.d.ts
CHANGED
|
@@ -301,7 +301,13 @@ export type SinceFrom = {
|
|
|
301
301
|
kind: "away";
|
|
302
302
|
after_ms: number;
|
|
303
303
|
};
|
|
304
|
-
export type RefusalKind = "conflict" | "stale_base" | "unread_lines" | "commit_held" | "landing_held";
|
|
304
|
+
export type RefusalKind = "conflict" | "stale_base" | "unread_lines" | "commit_held" | "landing_held" | "rename_held";
|
|
305
|
+
/** A name a held write renamed (to `to`) or removed, in `path`. Repository text. */
|
|
306
|
+
export interface HeldRename {
|
|
307
|
+
path: string;
|
|
308
|
+
name: string;
|
|
309
|
+
to?: string;
|
|
310
|
+
}
|
|
305
311
|
export type PolicyCase = "advisory" | "conflict" | "stale_base" | "unread_lines" | "commit_held" | "landing_not_ready";
|
|
306
312
|
export type Policy = "advisory" | "wait" | "refuse";
|
|
307
313
|
export type WaitResult = "admitted" | "refused_conflict" | "refused_stale" | "refused_unread" | "refused_unreadable";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langspan/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "A TypeScript client for the LangSpan coordination protocol",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/Langspan/LangSpan.dev/tree/main/clients/typescript",
|