From c2accd2bb4e41def87c4c936fcecba12a5f363f5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 03:28:24 +0000 Subject: [PATCH] ci: release packages --- .changeset/windows-terminal-addon.md | 5 -- apps/desktop/CHANGELOG.md | 6 ++ apps/desktop/package.json | 2 +- .../src/session-rating/node/engine.d.ts | 68 +++++++++++++++++++ 4 files changed, 75 insertions(+), 6 deletions(-) delete mode 100644 .changeset/windows-terminal-addon.md create mode 100644 packages/product/src/session-rating/node/engine.d.ts diff --git a/.changeset/windows-terminal-addon.md b/.changeset/windows-terminal-addon.md deleted file mode 100644 index c70c6f8ee..000000000 --- a/.changeset/windows-terminal-addon.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@pymodel/pythinker-desktop": patch ---- - -Fix the Windows desktop package so the terminal addon is included. diff --git a/apps/desktop/CHANGELOG.md b/apps/desktop/CHANGELOG.md index a22929de0..f51c490c0 100644 --- a/apps/desktop/CHANGELOG.md +++ b/apps/desktop/CHANGELOG.md @@ -1,5 +1,11 @@ # @pymodel/pythinker-desktop +## 2.0.1 + +### Patch Changes + +- [#409](https://github.com/PyModel/pythinker-code/pull/409) [`b5c2241`](https://github.com/PyModel/pythinker-code/commit/b5c22414b8f82143fa83acb3fc49bf02da5bfd96) Thanks [@elkaix](https://github.com/elkaix)! - Fix the Windows desktop package so the terminal addon is included. + ## 2.0.0 ### Major Changes diff --git a/apps/desktop/package.json b/apps/desktop/package.json index be94201ed..6bbd05432 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,7 +1,7 @@ { "name": "@pymodel/pythinker-desktop", "description": "Pythinker desktop application with tray-owned Host lifecycle", - "version": "2.0.0", + "version": "2.0.1", "private": true, "type": "module", "main": "dist/main.js", diff --git a/packages/product/src/session-rating/node/engine.d.ts b/packages/product/src/session-rating/node/engine.d.ts new file mode 100644 index 000000000..dbeced54a --- /dev/null +++ b/packages/product/src/session-rating/node/engine.d.ts @@ -0,0 +1,68 @@ +import type { PromptOrigin } from '@pymodel/agent-core-v2'; +import { type SurveyTurnRecovery } from './survey-turns'; +import type { RatingCooldownStore } from './cooldown-store'; +import { SessionRatingLedger, type RatingTracker } from './ledger'; +import type { RatingOffer } from '../common/types'; +import { type SurveyPopupPayload } from '../common/survey-popup-config'; +export type SessionFact = { + readonly kind: 'turn-started'; + readonly origin: PromptOrigin | undefined; +} | { + readonly kind: 'turn-ended'; + readonly traceId?: string; +} | { + readonly kind: 'tool-call-started'; + readonly toolCallId: string; + readonly toolName: string; +} | { + readonly kind: 'tool-call-ended'; + readonly toolCallId: string; +} | { + readonly kind: 'subagent-spawned'; + readonly parentToolCallId?: string; + readonly dynamicWorkflowIndex?: number; + readonly model?: string; +} | { + readonly kind: 'compaction-completed'; +}; +export interface ResumedAgentSeed { + readonly type: string; + readonly profileName?: string; + readonly dynamicWorkflowItem?: string; + readonly sessionInit?: string; +} +export interface RatingEnvironment { + readonly sessionId: string; + readonly currentModel: string; + readonly cumulativeTokens: number; + readonly contextTokens: number; + readonly permissionMode: string; + readonly thinkingEffort: string; + readonly busy: boolean; + readonly telemetryDisabled: boolean; + readonly ratingDisabled: boolean; + readonly historyUserTurnCount?: number; + readonly resumedAgents?: Readonly>; +} +export interface RatingConfigFeed { + readyForEvaluation(): boolean; + payload(): SurveyPopupPayload; +} +export interface SessionRatingDeps { + readonly environment: () => RatingEnvironment; + readonly config: RatingConfigFeed; + readonly cooldown: RatingCooldownStore; + readonly ledger: SessionRatingLedger; + readonly track: RatingTracker; + readonly now?: () => number; + readonly wallNow?: () => number; + readonly random?: () => number; + readonly appearanceId?: () => string; +} +export interface SessionRatingMount { + observe(fact: SessionFact): void; + recover(recovery: SurveyTurnRecovery): void; + evaluate(): RatingOffer | undefined; + end(): void; +} +export declare function mountSessionRating(deps: SessionRatingDeps): SessionRatingMount;