muse-code-msp 1.4.15__tar.gz → 1.4.20__tar.gz
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.
- {muse_code_msp-1.4.15/src/muse_code_msp.egg-info → muse_code_msp-1.4.20}/PKG-INFO +1 -1
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/pyproject.toml +1 -1
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp/__init__.py +36 -8
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp/_schema/experimental/msp.schema.json +1155 -91
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp/_schema/stable/msp.schema.json +89 -8
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp/experimental/__init__.py +337 -31
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20/src/muse_code_msp.egg-info}/PKG-INFO +1 -1
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/LICENSE +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/README.md +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/setup.cfg +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/setup.py +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp/_fingerprint.py +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp/_host_version.py +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp/py.typed +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp.egg-info/SOURCES.txt +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp.egg-info/dependency_links.txt +0 -0
- {muse_code_msp-1.4.15 → muse_code_msp-1.4.20}/src/muse_code_msp.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: muse-code-msp
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.20
|
|
4
4
|
Summary: Generated Python wire types for the Muse Session Protocol (MSP). No hand-written protocol types, ever.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/meta-models/muse-code-sdk
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "muse-code-msp"
|
|
8
|
-
version = "1.4.
|
|
8
|
+
version = "1.4.20"
|
|
9
9
|
description = "Generated Python wire types for the Muse Session Protocol (MSP). No hand-written protocol types, ever."
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.10"
|
|
@@ -59,6 +59,10 @@ ATTENTION_FLAG_KNOWN_VALUES: Final[tuple[str, ...]] = ("approvalPending", "input
|
|
|
59
59
|
BackgroundInitiator = str # open enum: unknown values stay representable
|
|
60
60
|
BACKGROUND_INITIATOR_KNOWN_VALUES: Final[tuple[str, ...]] = ("user", "timeout",)
|
|
61
61
|
|
|
62
|
+
# Whether the origin call join held at delivery.
|
|
63
|
+
BodyCompletionCorrelation = str # open enum: unknown values stay representable
|
|
64
|
+
BODY_COMPLETION_CORRELATION_KNOWN_VALUES: Final[tuple[str, ...]] = ("resolved", "unresolved",)
|
|
65
|
+
|
|
62
66
|
# A grantable capability name. Open: the experimental-only `rawLog` entry joins the stable domain as an additive open-enum extension when it graduates — closed would make that a retype.
|
|
63
67
|
CapabilityName = str # open enum: unknown values stay representable
|
|
64
68
|
CAPABILITY_NAME_KNOWN_VALUES: Final[tuple[str, ...]] = ("userShell", "sessionMcp", "sessionListStream", "feedback", "computerUseSetup", "computerUseHostSetup", "sessionRename",)
|
|
@@ -157,7 +161,7 @@ IfBusy = Literal["queue", "steer", "replace"]
|
|
|
157
161
|
|
|
158
162
|
# The eleven v1 item kinds plus post-v1 kinds. Open: a new kind is additive evolution, and clients MUST render unknown kinds generically.
|
|
159
163
|
ItemKind = str # open enum: unknown values stay representable
|
|
160
|
-
ITEM_KIND_KNOWN_VALUES: Final[tuple[str, ...]] = ("userMessage", "agentMessage", "reasoning", "toolCall", "userShell", "subagent", "workflow", "reminderChild", "compaction", "hookRun", "sideChat", "webSearch", "monitorFeed", "damagedRange", "scheduledFire", "backgroundTerminalCompletion", "overdueNotice", "earlierHistory", "peerMessage", "subagentInput", "subagentResult", "systemNotice",)
|
|
164
|
+
ITEM_KIND_KNOWN_VALUES: Final[tuple[str, ...]] = ("userMessage", "agentMessage", "reasoning", "toolCall", "userShell", "subagent", "workflow", "reminderChild", "compaction", "hookRun", "sideChat", "webSearch", "monitorFeed", "damagedRange", "scheduledFire", "backgroundTerminalCompletion", "overdueNotice", "earlierHistory", "peerMessage", "subagentInput", "subagentResult", "systemNotice", "bodyCompletion",)
|
|
161
165
|
|
|
162
166
|
# The `item/readOutput` content encoding. Closed: text media is ALWAYS `utf8` and binary media `base64`; a third value would change the client's decode contract.
|
|
163
167
|
ItemReadOutputEncoding = Literal["utf8", "base64"]
|
|
@@ -196,9 +200,9 @@ ModelCompleteRole = Literal["user", "assistant"]
|
|
|
196
200
|
ModelCompleteStopReason = str # open enum: unknown values stay representable
|
|
197
201
|
MODEL_COMPLETE_STOP_REASON_KNOWN_VALUES: Final[tuple[str, ...]] = ("end", "maxTokens",)
|
|
198
202
|
|
|
199
|
-
# `systemNotice`: the producing family, so a client routes a notice without parsing its text. Open. The v1 vocabulary is the Monitor notice and the three system-chrome producers plus the hook-run producer
|
|
203
|
+
# `systemNotice`: the producing family, so a client routes a notice without parsing its text. Open. The v1 vocabulary is the Monitor notice and the three system-chrome producers plus the hook-run producer, the paused-Workflow checkpoint producer and the continued-child tools producer; absent means the server named no origin, and a client never infers one.
|
|
200
204
|
NoticeOrigin = str # open enum: unknown values stay representable
|
|
201
|
-
NOTICE_ORIGIN_KNOWN_VALUES: Final[tuple[str, ...]] = ("monitor", "skillsStartup", "scheduledFire", "incompleteGeneration", "hook", "workflowCheckpoint",)
|
|
205
|
+
NOTICE_ORIGIN_KNOWN_VALUES: Final[tuple[str, ...]] = ("monitor", "skillsStartup", "scheduledFire", "incompleteGeneration", "hook", "workflowCheckpoint", "continuedChildTools",)
|
|
202
206
|
|
|
203
207
|
# `systemNotice`: the notice's level. Open; an unknown value is an unknown-but-present level, rendered generically.
|
|
204
208
|
NoticeSeverity = str # open enum: unknown values stay representable
|
|
@@ -388,7 +392,7 @@ TOOL_RECEIPT_OUTCOME_KNOWN_VALUES: Final[tuple[str, ...]] = ("created", "duplica
|
|
|
388
392
|
|
|
389
393
|
# Turn failure classes. Open.
|
|
390
394
|
TurnErrorKind = str # open enum: unknown values stay representable
|
|
391
|
-
TURN_ERROR_KIND_KNOWN_VALUES: Final[tuple[str, ...]] = ("stepLimit", "configError", "projectionError", "logError", "workflowLaunchError", "environmentError", "modelError", "launchError", "authRequired", "mcpLinkError",)
|
|
395
|
+
TURN_ERROR_KIND_KNOWN_VALUES: Final[tuple[str, ...]] = ("stepLimit", "configError", "projectionError", "logError", "workflowLaunchError", "environmentError", "modelError", "launchError", "authRequired", "mcpLinkError", "reasoningReplayRefused", "contextOverflow",)
|
|
392
396
|
|
|
393
397
|
# The `type` discriminator of a turn input part. Closed: an unknown part type is `invalidParams`.
|
|
394
398
|
TurnInputPartType = Literal["text", "image", "skill", "video"]
|
|
@@ -753,6 +757,19 @@ class BlockedPrompt(TypedDict):
|
|
|
753
757
|
text: str
|
|
754
758
|
|
|
755
759
|
|
|
760
|
+
class _BodyCompletionMembersBase(TypedDict):
|
|
761
|
+
correlation: BodyCompletionCorrelation
|
|
762
|
+
receipt: bool
|
|
763
|
+
resultSummary: str
|
|
764
|
+
status: str
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
class BodyCompletionMembers(_BodyCompletionMembersBase, total=False):
|
|
768
|
+
"""`bodyCompletion`: the facts one receipt row renders. The fold reads them from the inbox terminal record and the backgrounded call it names. `status`, `result_summary`, and `correlation` are required; `origin_call_id` is absent exactly when the join is unresolved."""
|
|
769
|
+
|
|
770
|
+
originCallId: str
|
|
771
|
+
|
|
772
|
+
|
|
756
773
|
class _BranchStateBase(TypedDict):
|
|
757
774
|
branch: str | None
|
|
758
775
|
workspaceRoot: str
|
|
@@ -1070,6 +1087,7 @@ class ErrorData(_ErrorDataBase, total=False):
|
|
|
1070
1087
|
selector: str
|
|
1071
1088
|
sessionId: str
|
|
1072
1089
|
settlement: UserInputSettlementSummary
|
|
1090
|
+
stopRefusal: str
|
|
1073
1091
|
uploadId: str
|
|
1074
1092
|
userInputId: str
|
|
1075
1093
|
viewCursor: str
|
|
@@ -1282,7 +1300,9 @@ class Item(_ItemBase, total=False):
|
|
|
1282
1300
|
backgroundInitiator: BackgroundInitiator
|
|
1283
1301
|
backgroundTarget: BackgroundTarget
|
|
1284
1302
|
backgroundTerminalCompletion: BackgroundTerminalCompletion
|
|
1303
|
+
bashTitle: str
|
|
1285
1304
|
blocking: bool
|
|
1305
|
+
bodyCompletion: BodyCompletionMembers
|
|
1286
1306
|
callId: str
|
|
1287
1307
|
childPromptRefs: list[OutputRef]
|
|
1288
1308
|
childSessionId: str
|
|
@@ -2080,13 +2100,17 @@ class RuntimeWorktree(_RuntimeWorktreeBase, total=False):
|
|
|
2080
2100
|
cleanupReason: RuntimeWorktreeCleanupReason
|
|
2081
2101
|
|
|
2082
2102
|
|
|
2083
|
-
class
|
|
2084
|
-
"""The `schema` pair in [`InitializeResult`]. `version` is the wire **envelope** schema version — distinct from the session-view `schemaVersion`, the raw-log `schema_version`, and the 0.x/1.0 stability posture, which is not on the wire at all."""
|
|
2085
|
-
|
|
2103
|
+
class _SchemaInfoBase(TypedDict):
|
|
2086
2104
|
fingerprint: str
|
|
2087
2105
|
version: int
|
|
2088
2106
|
|
|
2089
2107
|
|
|
2108
|
+
class SchemaInfo(_SchemaInfoBase, total=False):
|
|
2109
|
+
"""The `schema` pair in [`InitializeResult`]. `version` is the wire **envelope** schema version — distinct from the session-view `schemaVersion`, the raw-log `schema_version`, and the 0.x/1.0 stability posture, which is not on the wire at all."""
|
|
2110
|
+
|
|
2111
|
+
experimentalFingerprint: str
|
|
2112
|
+
|
|
2113
|
+
|
|
2090
2114
|
class ServerInfo(TypedDict):
|
|
2091
2115
|
"""Server identification inside [`InitializeResult`]."""
|
|
2092
2116
|
|
|
@@ -2204,6 +2228,7 @@ class SessionCompactResult(_SessionCompactResultBase, total=False):
|
|
|
2204
2228
|
class SessionConfig(TypedDict, total=False):
|
|
2205
2229
|
"""The open configuration extension object shared by `session/start` and `session/resume`. Unknown keys are ignored on the wire, never rejected: the live decoder tolerates them, and no exported bundle carries `additionalProperties: false`. The Rust typed model's `deny_unknown_fields` is internal and never exported — the closedness export applies nowhere, and the `x-msp-closed` opt-in mechanism stays inert. Recognized `mcpServers` values are typed and validated before they leave the wire boundary."""
|
|
2206
2230
|
|
|
2231
|
+
developerPrompt: str | None
|
|
2207
2232
|
mcpServers: dict[str, SessionMcpServerConfig]
|
|
2208
2233
|
|
|
2209
2234
|
|
|
@@ -2433,6 +2458,7 @@ class SessionReadResult(_SessionReadResultBase, total=False):
|
|
|
2433
2458
|
blockedPrompt: BlockedPrompt
|
|
2434
2459
|
deliveredInputs: list[DeliveredInput]
|
|
2435
2460
|
lastTurn: LastTurn
|
|
2461
|
+
modelTurnRunning: bool
|
|
2436
2462
|
prunedSubagents: list[PrunedSubagent]
|
|
2437
2463
|
queuedInputs: list[QueuedInput]
|
|
2438
2464
|
recoveryObservation: RecoveryObservation
|
|
@@ -2582,6 +2608,7 @@ class SessionStartParams(_SessionStartParamsBase, total=False):
|
|
|
2582
2608
|
"""`session/start` params."""
|
|
2583
2609
|
|
|
2584
2610
|
approvalMode: ApprovalMode | None
|
|
2611
|
+
clear: bool
|
|
2585
2612
|
config: SessionConfig
|
|
2586
2613
|
modelId: str
|
|
2587
2614
|
permissionProfile: str
|
|
@@ -2614,7 +2641,7 @@ class _SessionStatusChangedParamsBase(TypedDict):
|
|
|
2614
2641
|
|
|
2615
2642
|
|
|
2616
2643
|
class SessionStatusChangedParams(_SessionStatusChangedParamsBase, total=False):
|
|
2617
|
-
"""`session/statusChanged` params: a loaded session's projected `(status, attention)` value flipped. A command-plane broadcast — delivered to every connection regardless of its view subscription set, never gated, no `sourceRange`; the same facts live on the Session object, which is how a client seeds its table (no initial burst on connect)."""
|
|
2644
|
+
"""`session/statusChanged` params: a loaded session's projected `(status, attention, needsInputReasons)` value flipped. A command-plane broadcast — delivered to every connection regardless of its view subscription set, never gated, no `sourceRange`; the same facts live on the Session object, which is how a client seeds its table (no initial burst on connect)."""
|
|
2618
2645
|
|
|
2619
2646
|
attention: list[AttentionFlag]
|
|
2620
2647
|
|
|
@@ -2939,6 +2966,7 @@ class SubagentResult(_SubagentResultBase, total=False):
|
|
|
2939
2966
|
drained: bool
|
|
2940
2967
|
errorKind: str
|
|
2941
2968
|
structuredData: dict[str, Any]
|
|
2969
|
+
superseded: bool
|
|
2942
2970
|
text: str
|
|
2943
2971
|
|
|
2944
2972
|
|