Skip to content

Commit ef90371

Browse files
ci: release packages (#410)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @pymodel/pythinker-desktop@2.0.1 ### Patch Changes - [#409](#409) [`b5c2241`](b5c2241) Thanks [@elkaix](https://github.com/elkaix)! - Fix the Windows desktop package so the terminal addon is included. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b5c2241 commit ef90371

4 files changed

Lines changed: 75 additions & 6 deletions

File tree

‎.changeset/windows-terminal-addon.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎apps/desktop/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @pymodel/pythinker-desktop
22

3+
## 2.0.1
4+
5+
### Patch Changes
6+
7+
- [#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.
8+
39
## 2.0.0
410

511
### Major Changes

‎apps/desktop/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pymodel/pythinker-desktop",
33
"description": "Pythinker desktop application with tray-owned Host lifecycle",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"private": true,
66
"type": "module",
77
"main": "dist/main.js",
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import type { PromptOrigin } from '@pymodel/agent-core-v2';
2+
import { type SurveyTurnRecovery } from './survey-turns';
3+
import type { RatingCooldownStore } from './cooldown-store';
4+
import { SessionRatingLedger, type RatingTracker } from './ledger';
5+
import type { RatingOffer } from '../common/types';
6+
import { type SurveyPopupPayload } from '../common/survey-popup-config';
7+
export type SessionFact = {
8+
readonly kind: 'turn-started';
9+
readonly origin: PromptOrigin | undefined;
10+
} | {
11+
readonly kind: 'turn-ended';
12+
readonly traceId?: string;
13+
} | {
14+
readonly kind: 'tool-call-started';
15+
readonly toolCallId: string;
16+
readonly toolName: string;
17+
} | {
18+
readonly kind: 'tool-call-ended';
19+
readonly toolCallId: string;
20+
} | {
21+
readonly kind: 'subagent-spawned';
22+
readonly parentToolCallId?: string;
23+
readonly dynamicWorkflowIndex?: number;
24+
readonly model?: string;
25+
} | {
26+
readonly kind: 'compaction-completed';
27+
};
28+
export interface ResumedAgentSeed {
29+
readonly type: string;
30+
readonly profileName?: string;
31+
readonly dynamicWorkflowItem?: string;
32+
readonly sessionInit?: string;
33+
}
34+
export interface RatingEnvironment {
35+
readonly sessionId: string;
36+
readonly currentModel: string;
37+
readonly cumulativeTokens: number;
38+
readonly contextTokens: number;
39+
readonly permissionMode: string;
40+
readonly thinkingEffort: string;
41+
readonly busy: boolean;
42+
readonly telemetryDisabled: boolean;
43+
readonly ratingDisabled: boolean;
44+
readonly historyUserTurnCount?: number;
45+
readonly resumedAgents?: Readonly<Record<string, ResumedAgentSeed>>;
46+
}
47+
export interface RatingConfigFeed {
48+
readyForEvaluation(): boolean;
49+
payload(): SurveyPopupPayload;
50+
}
51+
export interface SessionRatingDeps {
52+
readonly environment: () => RatingEnvironment;
53+
readonly config: RatingConfigFeed;
54+
readonly cooldown: RatingCooldownStore;
55+
readonly ledger: SessionRatingLedger;
56+
readonly track: RatingTracker;
57+
readonly now?: () => number;
58+
readonly wallNow?: () => number;
59+
readonly random?: () => number;
60+
readonly appearanceId?: () => string;
61+
}
62+
export interface SessionRatingMount {
63+
observe(fact: SessionFact): void;
64+
recover(recovery: SurveyTurnRecovery): void;
65+
evaluate(): RatingOffer | undefined;
66+
end(): void;
67+
}
68+
export declare function mountSessionRating(deps: SessionRatingDeps): SessionRatingMount;

0 commit comments

Comments
 (0)