Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/windows-terminal-addon.md

This file was deleted.

6 changes: 6 additions & 0 deletions apps/desktop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
68 changes: 68 additions & 0 deletions packages/product/src/session-rating/node/engine.d.ts
Original file line number Diff line number Diff line change
@@ -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<Record<string, ResumedAgentSeed>>;
}
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;
Loading