openmates 0.12.0 → 0.12.1
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.
- package/README.md +3 -1
- package/dist/{chunk-UGEZLQKN.js → chunk-PHFCP5AM.js} +2073 -79
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +44 -0
- package/dist/index.js +1 -1
- package/fixtures/brandenburger-tor.png +0 -0
- package/fixtures/brandenburger-tor.svg +25 -0
- package/package.json +5 -3
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -249,6 +249,18 @@ interface ConnectedAccountTurnTokenRef {
|
|
|
249
249
|
action_scope?: Record<string, unknown>;
|
|
250
250
|
expires_at: number;
|
|
251
251
|
}
|
|
252
|
+
type LearningModeAgeGroup = "under_10" | "10_12" | "13_15" | "16_18" | "adult";
|
|
253
|
+
interface LearningModeStatus {
|
|
254
|
+
enabled: boolean;
|
|
255
|
+
age_group: LearningModeAgeGroup | null;
|
|
256
|
+
failed_attempts: number;
|
|
257
|
+
deactivation_blocked_until: number | null;
|
|
258
|
+
}
|
|
259
|
+
interface LearningModeContext {
|
|
260
|
+
enabled: boolean;
|
|
261
|
+
ageGroup?: LearningModeAgeGroup | null;
|
|
262
|
+
source?: "anonymous_session";
|
|
263
|
+
}
|
|
252
264
|
/** A single field definition within a memory type schema. */
|
|
253
265
|
interface MemoryFieldDef {
|
|
254
266
|
type: string;
|
|
@@ -298,6 +310,23 @@ interface ChatListPage {
|
|
|
298
310
|
limit: number;
|
|
299
311
|
hasMore: boolean;
|
|
300
312
|
}
|
|
313
|
+
interface BenchmarkMetadata {
|
|
314
|
+
source: "benchmark";
|
|
315
|
+
benchmark_run_id: string;
|
|
316
|
+
benchmark_suite: string;
|
|
317
|
+
benchmark_case: string;
|
|
318
|
+
benchmark_target_model: string;
|
|
319
|
+
benchmark_judge_model?: string;
|
|
320
|
+
}
|
|
321
|
+
interface BenchmarkHistoryMessage {
|
|
322
|
+
message_id: string;
|
|
323
|
+
role: "user" | "assistant" | "system";
|
|
324
|
+
sender_name: string;
|
|
325
|
+
content: string;
|
|
326
|
+
created_at: number;
|
|
327
|
+
chat_id?: string;
|
|
328
|
+
category?: string | null;
|
|
329
|
+
}
|
|
301
330
|
/** Decrypted message for display */
|
|
302
331
|
interface DecryptedMessage {
|
|
303
332
|
id: string;
|
|
@@ -505,6 +534,7 @@ declare class OpenMatesClient {
|
|
|
505
534
|
getAnonymousFreeUsageStatus(): Promise<AnonymousFreeUsageStatus>;
|
|
506
535
|
sendAnonymousMessage(params: {
|
|
507
536
|
message: string;
|
|
537
|
+
learningMode?: LearningModeContext;
|
|
508
538
|
}): Promise<{
|
|
509
539
|
status: "completed";
|
|
510
540
|
chatId: string;
|
|
@@ -540,6 +570,12 @@ declare class OpenMatesClient {
|
|
|
540
570
|
}): Promise<Record<string, unknown>>;
|
|
541
571
|
loginWithPairAuth(): Promise<void>;
|
|
542
572
|
whoAmI(): Promise<Record<string, unknown>>;
|
|
573
|
+
getLearningModeStatus(): Promise<LearningModeStatus>;
|
|
574
|
+
activateLearningMode(params: {
|
|
575
|
+
ageGroup: LearningModeAgeGroup;
|
|
576
|
+
passcode: string;
|
|
577
|
+
}): Promise<LearningModeStatus>;
|
|
578
|
+
deactivateLearningMode(passcode: string): Promise<LearningModeStatus>;
|
|
543
579
|
logout(): Promise<void>;
|
|
544
580
|
requestSignupEmailCode(params: {
|
|
545
581
|
email: string;
|
|
@@ -688,6 +724,14 @@ declare class OpenMatesClient {
|
|
|
688
724
|
connectedAccountDirectory?: ConnectedAccountDirectoryEntry[];
|
|
689
725
|
/** Refresh-token envelopes to convert into short-lived token refs before send. */
|
|
690
726
|
connectedAccountTokenRefInputs?: ConnectedAccountTurnTokenRefInput[];
|
|
727
|
+
/** Non-sensitive CLI benchmark labels for usage-source grouping. */
|
|
728
|
+
benchmarkMetadata?: BenchmarkMetadata;
|
|
729
|
+
/** Full plaintext history for incognito benchmark turns. */
|
|
730
|
+
messageHistory?: BenchmarkHistoryMessage[];
|
|
731
|
+
/** Account-wide Learning Mode context when already known by the caller. */
|
|
732
|
+
learningMode?: LearningModeContext;
|
|
733
|
+
/** Start collecting before send for latency-sensitive benchmark turns. */
|
|
734
|
+
precollectResponse?: boolean;
|
|
691
735
|
}): Promise<{
|
|
692
736
|
status: "completed" | "waiting_for_user";
|
|
693
737
|
chatId: string;
|
package/dist/index.js
CHANGED
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="800" viewBox="0 0 1200 800">
|
|
3
|
+
<rect width="1200" height="800" fill="#d8ecff"/>
|
|
4
|
+
<rect y="560" width="1200" height="240" fill="#d7c39a"/>
|
|
5
|
+
<text x="600" y="88" text-anchor="middle" font-family="Arial, sans-serif" font-size="44" font-weight="700" fill="#23344d">Brandenburger Tor, Berlin</text>
|
|
6
|
+
<g transform="translate(160 170)" fill="#c9aa6a" stroke="#5d4522" stroke-width="8">
|
|
7
|
+
<rect x="80" y="160" width="800" height="58"/>
|
|
8
|
+
<rect x="120" y="218" width="720" height="48"/>
|
|
9
|
+
<rect x="150" y="266" width="660" height="42"/>
|
|
10
|
+
<g fill="#d9bd7d">
|
|
11
|
+
<rect x="170" y="308" width="54" height="250"/>
|
|
12
|
+
<rect x="285" y="308" width="54" height="250"/>
|
|
13
|
+
<rect x="400" y="308" width="54" height="250"/>
|
|
14
|
+
<rect x="515" y="308" width="54" height="250"/>
|
|
15
|
+
<rect x="630" y="308" width="54" height="250"/>
|
|
16
|
+
<rect x="745" y="308" width="54" height="250"/>
|
|
17
|
+
</g>
|
|
18
|
+
<rect x="130" y="558" width="700" height="50"/>
|
|
19
|
+
<path d="M480 30 C530 72 620 88 682 48 L720 84 C652 142 530 124 456 78 Z" fill="#3e6f5f"/>
|
|
20
|
+
<circle cx="510" cy="92" r="22" fill="#3e6f5f"/>
|
|
21
|
+
<circle cx="625" cy="92" r="22" fill="#3e6f5f"/>
|
|
22
|
+
<path d="M565 38 l26 78 h-52 z" fill="#3e6f5f"/>
|
|
23
|
+
</g>
|
|
24
|
+
<text x="600" y="740" text-anchor="middle" font-family="Arial, sans-serif" font-size="32" fill="#23344d">Neoclassical gate with Quadriga on top</text>
|
|
25
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openmates",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "OpenMates CLI and SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"openmates": "dist/cli.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
-
"dist"
|
|
12
|
+
"dist",
|
|
13
|
+
"fixtures"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"build": "tsup src/index.ts src/cli.ts --format esm --dts --clean",
|
|
@@ -28,7 +29,8 @@
|
|
|
28
29
|
"test:unit:billing": "node --test tests/billing.test.ts",
|
|
29
30
|
"test:unit:account-delete": "node --test tests/account-delete.test.ts",
|
|
30
31
|
"test:unit:cli": "node --test tests/cli.test.ts",
|
|
31
|
-
"test": "node --test --experimental-strip-types --loader ./tests/loader.mjs
|
|
32
|
+
"test:unit:benchmark": "node --test --experimental-strip-types --loader ./tests/loader.mjs src/__tests__/benchmark.test.ts",
|
|
33
|
+
"test": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/crypto.test.ts tests/storage.test.ts tests/keychain.test.ts tests/mentions.test.ts tests/outputRedactor.test.ts tests/fileEmbed.test.ts tests/embedCreator.test.ts tests/shareEncryption.test.ts tests/server.test.ts tests/ws.test.ts tests/urlEmbed.test.ts src/__tests__/benchmark.test.ts && node --test --experimental-strip-types tests/embedRenderers.test.ts && node --test tests/cli.test.ts tests/billing.test.ts tests/account-delete.test.ts tests/signup.test.ts tests/security-setup.test.ts tests/e2e-provisioning.test.ts"
|
|
32
34
|
},
|
|
33
35
|
"keywords": [
|
|
34
36
|
"openmates",
|