Repository navigation
PiSharp 1.6.0.1
PiSharp 1.6.0.1 is a C#-only patch release on the unchanged Pi v1.6.0 and Pi Durable 1.6.0 baseline (faac585884ae2c013a6b1400f3e9e77f10b34bac). It expands the package set from 29 to 31 NuGet packages (29 libraries, the PiSharp.Cli global tool, and PiSharp.Templates), graduates seven Tier-1 [Experimental] API surfaces to stable, wires Pi Durable 1.6.0 signals and image fitting end-to-end across the hosts and custom workflows, adds JsonlStorage byte-offset indexing and ChordStore SQLite group commit, resolves the four-transport retry gap, and trims the PiSharp.Cli package size.
Package publication is recorded separately in compatibility/public-release.json; these notes do not claim complete upstream, live-provider, or all-platform parity.
Source and scope
- Upstream baseline (unchanged): Pi v1.6.0, commit
faac585884ae2c013a6b1400f3e9e77f10b34bac(compatibility/target.lock.json). - Preserved history: All historical source locks, inventories, applicability tables, acceptance records, model catalogs, and
previousReleasesentries (including published1.6.0,1.5.2,1.5.0.1, and1.5.0) remain unchanged. - Included pull requests since
v1.6.0: #68, #69, #70, #71, #72, and #73.
Changes
New packages, telemetry, and Tier-1 graduation (#73)
PiSharp.Extensions.AI(new library package): bridges PiSharp transports and media embeddings withMicrosoft.Extensions.AI(Microsoft.Extensions.AI.Abstractions >= 10.11.1):PiChatClient : IChatClientadapts any PiSharpIChatTransport+ModelDescriptorwith streaming text/reasoning/tool deltas, GeminithoughtSignature/textSignature/ redacted thinking preservation, originating model identity retention across mid-conversationChatOptions.ModelIdswitches, inclusiveUsageDetails.InputTokenCountmapping, service tiers, and Anthropic threads.PiEmbeddingGenerator : IEmbeddingGenerator<string, Embedding<float>>adaptsPiSharp.AI.Mediaembedding models.ChatClientTransportAdapter : IChatTransportletsPiSharp.AgentandPiSharp.Durableconsume any externalMicrosoft.Extensions.AI.IChatClient(e.g., Ollama, Azure AI Inference, custom proxies), retaining open text/thinking buffers on error or cancellation terminals and surfacing malformed tool arguments as protocol/stream errors.- DI registration extensions
AddPiSharpChatClientandAddPiSharpEmbeddingGenerator.
PiSharp.Templates(newdotnet newtemplate package): ships three CI-tested starter templates (pisharp-agent,pisharp-extension,pisharp-workflow) targetingnet10.0.DiagnosticsTelemetry(PiSharp.Telemetry): zero-dependency opt-inITelemetryadapter mapping PiSharp spans, events, initial and late links, W3Ctraceparent/tracestatepropagation (explicitly enforcingActivityIdFormat.W3C), and counters/histograms directly toSystem.Diagnostics.ActivitySourceandSystem.Diagnostics.Metrics.Meter. Covered by all 11 conformance groups inPiSharp.Telemetry.Tests.- Tier-1
[Experimental]graduation (Decision 0017): removes[Experimental]attributes from seven stable core diagnostic IDs:PISHARP_SCHEMA001(PiSharp.Contracts.Schema)PISHARP_IDENTITY001(ClientIdentity,ClientUserAgent,ClientAttribution,ClientIdentities)PISHARP_TIERS001(ServiceTiers,ServiceTier)PISHARP_AI001(StreamingJsonParserand tool-call argument streaming helpers)PISHARP_AUTH001(AuthEventdevice-code confirmation hints)PISHARP_EXEC001(pi.execbuffer capture limits)PISHARP_TOOLSEARCH001(ToolSearchDocument.NamespaceText)- Tier-2 experimental packages (
PISHARP_DURABLE001,PISHARP_AGENTS001,PISHARP_TELEMETRY001,PISHARP_CHORD001,PISHARP_ENV001,PISHARP_MEDIA001,PISHARP_TUI001) plusPISHARP_EXTUI001,PISHARP_CODEMODE001, andPISHARP_CATALOG001remain experimental.
Durable 1.6.0 end-to-end wiring and storage performance (#72)
- Signal delivery and host wiring: exposes
POST /sessions/{id}/tasks/{taskId}/signalacrossPiSharp.Durable.Hosting,PiSharp.Durable.Server,PiSharp.Durable.Client, andPiSharp.Durable.Web, wiresSubmissionDraft.NotifyandInputOnAbort.Keep, adds opt-inFitImagessupport to the device host and Web Agent, and rendersdetails.imageUnsupportedByModelandAgentModel.YieldAnsweracross Durable TUI, Web Hub, and Web Agent. PiSharp.CustomAgentsworkflow signals: workflows can pause durably on typed signals (WaitForSignal) and resume immediately onSendSignalAsyncinstead of polling on timers.JsonlStoragebyte-offset index and bounded LRU cache: avoids full-file rescans on repeated session reads while enforcing bounded cache reclamation and propagating caller cancellation cleanly on lazy reads.ChordStoreSQLite group commit: coalesces concurrent queued SQLite commits behind an active write into a single backend transaction.
Runtime and parity fixes (#71)
- Four-transport retry classification (Decision 0016): retries transient connection failures (
SocketException,HttpRequestException,HttpIOException, premature stream EOF, timeouts) on OpenAI Completions, Anthropic Messages, Google Generative AI / Vertex, and Mistral Conversations via a non-serialized[JsonIgnore]IsRetryableTransportFailuresignal while preserving the exact sanitized user-facingerrorMessagestrings byte for byte. - Native PowerShell tool (
PiSharp.Tools): adds an opt-in native PowerShell execution tool with safe Base64 script-block encoding and separate normalized argument budgeting. FindToolanchoring parity: brings the explicit-policyFindTool/FdFindExecutorpath-pattern anchoring and filtered exit-code handling into alignment withPiFindToolfrom Pi 1.6.0.- Native C# extension overrides and
/reloaddiagnostics:omitReplacedExtensionsnow honors native C# extensions alongside Node extensions, and/reloadsurfaces re-resolution diagnostics consistently.
Packaging diet, distribution manifests, and verification (#69)
- CLI tool packaging diet: strips native
.pdbdebug symbols and non-target RID native assets fromPiSharp.Cli, enforced by an 80 MiB archive budget check inrelease.yml. - Standalone archives and package-manager manifests: adds
tools/release/build-standalone-archives.ps1andtools/release/generate-package-manifests.mjsto produce self-containedwin-x64,linux-x64, andosx-arm64archives plus Homebrew, Scoop, and Winget manifests (exercised viarelease.ymldry-runinclude_standalone=true). - Automated post-publish verification: adds
tools/release/verify-published-release.ps1and.github/workflows/verify-release.ymlto verify all 31 published NuGet packages against GitHub Release assets and run a fresh external consumer check.
CI hygiene, codebase health, and contributor ergonomics (#68, #70)
- Centralized third-party NuGet pins and security audit: consolidates third-party package versions into
Directory.Build.props, adds the weeklysecurity-audit.ymlworkflow, and keepspackages.lock.jsonbyte-stable. - Website DX: adds build-time
{{PISHARP_VERSION}}substitution (satteri-pisharp-version.mjs),/llms.txt, and expanded architecture, embedding, and telemetry documentation. - Codebase health and test reporting: extracts TUI ICU word-break tables into structured data, decomposes oversized source files, wires 20 previously unregistered
exec.*tests into CI, adds TRX test summaries, and providestools/bootstrap-sdk.ps1/tools/bootstrap-sdk.shfor pinned.NET 10.0.401local setup.
Compatibility and migration notes
- No breaking changes to stable public APIs.
- Tier-1 graduation is source-compatible: removing
[Experimental]from the seven Tier-1 IDs eliminates compiler warnings for new consumers; existing<NoWarn>entries naming those IDs in downstream.csprojfiles continue to compile cleanly without warnings. - Exact sibling pinning: all 29 library packages pin sibling
PiSharp.*dependencies at[1.6.0.1]. Update all referencedPiSharp.*packages together. PiSharp.Extensions.AIdependency ranges:Microsoft.Extensions.AI.Abstractions(>= 10.11.1) andMicrosoft.Extensions.DependencyInjection.Abstractions(>= 10.0.0) use inclusive minimums so consuming applications can installMicrosoft.Extensions.AImiddleware side-by-side without downgrade conflicts.
Validation status and limitations
- Release-candidate qualification covers hosted PR CI across Linux, Windows, and macOS plus a manual
release.ymldry run (version=1.6.0.1,include_standalone=true) exercising all four reusable validation gates (core,durable,gap-regressions,env-native), all 23 offline release suites, 31-package packing and admission validation,PiSharp.Templatessmoke tests, CLI durable payload and 80 MiB budget checks, and standalone archive/manifest generation. - Known boundaries remain unchanged from 1.6.0: live provider accounts, real SSH hosts, physical macOS key input, and Windows PTY creation (
ENOTSUP) are not qualified by offline CI. Taggingv1.6.0.1and publishing to NuGet require explicit owner approval per Decision 0006.