openmates 0.18.0-alpha.2 → 0.18.0-alpha.21

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.
@@ -762,7 +762,7 @@ interface WorkflowNodeRun {
762
762
  }
763
763
  type UserTaskStatus = "backlog" | "todo" | "in_progress" | "blocked" | "done";
764
764
  type UserTaskAssigneeType = "user" | "openmates" | "external_ai" | "unassigned";
765
- type UserTaskAssigneeIdentity = "openmates" | "opencode";
765
+ type UserTaskAssigneeIdentity = "openmates" | "codex" | "opencode";
766
766
  type ProjectSourceType = "local_folder" | "local_git_repository" | "remote_folder" | "remote_git_repository";
767
767
  type ProjectSourceCapability = "read" | "search" | "import" | "write_request";
768
768
  type ProjectSourceStatus = "connected" | "offline" | "permission_required" | "revoked";
@@ -895,7 +895,7 @@ interface UserTaskRecord {
895
895
  assignee_identity?: UserTaskAssigneeIdentity | null;
896
896
  assignee_hash?: string | null;
897
897
  primary_chat_id?: string | null;
898
- external_chat_provider?: "opencode" | null;
898
+ external_chat_provider?: "codex" | "opencode" | null;
899
899
  external_chat_lookup_hash?: string | null;
900
900
  encrypted_external_chat_id?: string | null;
901
901
  encrypted_external_chat_title?: string | null;
@@ -1734,6 +1734,7 @@ declare class OpenMatesClient {
1734
1734
  readonly apiUrl: string;
1735
1735
  private session;
1736
1736
  private readonly http;
1737
+ private readonly explicitSession;
1737
1738
  constructor(options?: OpenMatesClientOptions);
1738
1739
  static load(options?: OpenMatesClientOptions): OpenMatesClient;
1739
1740
  hasSession(): boolean;
@@ -2425,14 +2426,16 @@ declare class OpenMatesClient {
2425
2426
  chatId?: string;
2426
2427
  projectId?: string;
2427
2428
  labelHashes?: string[];
2428
- externalChatProvider?: "opencode";
2429
+ externalChatProvider?: "codex" | "opencode";
2429
2430
  externalChatLookupHash?: string;
2430
2431
  priority?: number;
2431
2432
  limit?: number;
2432
2433
  teamId?: string | null;
2433
2434
  personal?: boolean;
2434
2435
  }): Promise<UserTaskRecord[]>;
2435
- createUserTask(input: UserTaskCreateInput): Promise<UserTaskRecord>;
2436
+ createUserTask(input: UserTaskCreateInput, context?: {
2437
+ creator?: "codex";
2438
+ }): Promise<UserTaskRecord>;
2436
2439
  askUserTasks(input: {
2437
2440
  instruction: string;
2438
2441
  encryptedCreate?: UserTaskCreateInput;
@@ -2463,6 +2466,7 @@ declare class OpenMatesClient {
2463
2466
  listUserTaskActivity(taskId: string, context?: TeamContextOptions & {
2464
2467
  cursor?: string;
2465
2468
  limit?: number;
2469
+ newestFirst?: boolean;
2466
2470
  }): Promise<UserTaskActivityPage>;
2467
2471
  createUserTaskActivity(taskId: string, input: UserTaskActivityCreateInput, context?: TeamContextOptions & {
2468
2472
  actorMode?: "user" | "assignee";
@@ -2741,6 +2745,8 @@ declare class OpenMatesClient {
2741
2745
  private downloadPaymentPdf;
2742
2746
  private ensureEmailEncryptionKey;
2743
2747
  private hydrateEmailEncryptionKey;
2748
+ private withFreshStoredSession;
2749
+ private loginRecoveryCommand;
2744
2750
  private requireSession;
2745
2751
  getMasterKeyBytes(): Uint8Array;
2746
2752
  private decryptTopicPreferences;
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { aa as ImagesAiDetectionClassification, ab as ImagesAiDetectionSummary, aA as assertTrustedAccountCommandAllowed, aB as assertTrustedAccountGuardEnvironment, as as buildImagesAiDetectionSummary, aC as buildTravelConnectionsRequest, at as classifyImagesAiDetection, av as formatImagesAiDetectionLabel, aw as getExtForLang, aD as requireExactConfirmation, aE as resolveProjectContext, az as serializeToYaml, aF as shouldRequireTrustedAccountGuard } from './cli-BMrmfKIF.js';
2
+ export { aa as ImagesAiDetectionClassification, ab as ImagesAiDetectionSummary, aA as assertTrustedAccountCommandAllowed, aB as assertTrustedAccountGuardEnvironment, as as buildImagesAiDetectionSummary, aC as buildTravelConnectionsRequest, at as classifyImagesAiDetection, av as formatImagesAiDetectionLabel, aw as getExtForLang, aD as requireExactConfirmation, aE as resolveProjectContext, az as serializeToYaml, aF as shouldRequireTrustedAccountGuard } from './cli-DcPaR7zQ.js';
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  resolveProjectContext,
12
12
  serializeToYaml,
13
13
  shouldRequireTrustedAccountGuard
14
- } from "./chunk-XKIFO4JO.js";
14
+ } from "./chunk-5KADUAVD.js";
15
15
  import "./chunk-IWKP55ZB.js";
16
16
  import "./chunk-BBKJZ23O.js";
17
17
  export {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UserTaskStatus, a as UserTaskAssigneeType, b as UserTaskAssigneeIdentity, c as UserTaskRecord, d as UserTaskActivityRecord, e as UserPlanStatus, f as UserPlanRecord, g as UserPlanVerificationStatus, h as UserPlanLearningType, i as UserPlanLearningTargetKind, j as UserPlanLearningStatus, k as UserPlanLearningLevel, l as UserPlanLearningRecord, m as UserPlanCriterionRecord, n as UserPlanVerificationRecord, o as UserPlanCreateInput, p as UserPlanUpdateInput, P as ProjectItemRecord, q as UserPlanLearningCreateTasksInput, r as UserPlanLearningCreateTasksResult, s as UserTaskReorderInput, W as WorkflowSummary, t as WorkflowCapability, u as WorkflowDetail, v as WorkflowInputStartParams, w as WorkflowInputSessionResult, x as WorkflowInputSessionDetail, y as WorkflowInputEvent, z as WorkflowGraph, A as WorkflowRunContentRetention, B as WorkflowRunDetail, C as WorkflowRunCancellationResult, D as WorkflowTemplateProjectionUpsertParams, E as WorkflowTemplateProjectionResult, F as PublicWorkflowTemplateProjection, G as WorkflowTemplateProjectionRevocationResult, H as WorkflowTemplateBindingCompletionParams, I as WorkflowTemplateBindingCompletionResult, J as WorkflowTemplateShortUrlParams, K as WorkflowTemplateShortUrlResult, S as ShortUrlRevokeResult, L as WorkflowTemplateImportPayload, M as ImportedWorkflowTemplate } from './cli-BMrmfKIF.js';
2
- export { N as AuthMethodsStatus, O as AuthoritativeChatReconciliation, Q as BackupCodesResult, R as BankTransferOrderDetails, T as BankTransferStatus, V as CachedChat, X as CachedNewChatSuggestion, Y as ChatListPage, Z as CliSignupResult, _ as DecryptedDraft, $ as DecryptedEmbed, a0 as DecryptedMemoryEntry, a1 as DecryptedMessage, a2 as DecryptedNewChatSuggestion, a3 as DocsFile, a4 as DocsFolder, a5 as DocsSearchResult, a6 as DocsTree, a7 as EncryptedDraft, a8 as GiftCardBankTransferStatus, a9 as INTEREST_TAG_IDS, aa as ImagesAiDetectionClassification, ab as ImagesAiDetectionSummary, ac as InterestTagId, ad as MATE_NAMES, ae as MEMORY_TYPE_REGISTRY, af as MemoryFieldDef, ag as MemoryTypeDef, ah as OpenMatesClient, ai as OpenMatesClientOptions, aj as OpenMatesSession, ak as SyncCache, al as TopicPreferencesPayload, am as TotpSetupStartResult, an as WorkflowEdge, ao as WorkflowNode, ap as WorkflowNodeRun, aq as WorkflowNodeType, ar as WorkflowRunContentStorage, as as buildImagesAiDetectionSummary, at as classifyImagesAiDetection, au as deriveAppUrl, av as formatImagesAiDetectionLabel, aw as getExtForLang, ax as normalizeInterestTagIds, ay as reconcileAuthoritativeChats, az as serializeToYaml } from './cli-BMrmfKIF.js';
1
+ import { U as UserTaskStatus, a as UserTaskAssigneeType, b as UserTaskAssigneeIdentity, c as UserTaskRecord, d as UserTaskActivityRecord, e as UserPlanStatus, f as UserPlanRecord, g as UserPlanVerificationStatus, h as UserPlanLearningType, i as UserPlanLearningTargetKind, j as UserPlanLearningStatus, k as UserPlanLearningLevel, l as UserPlanLearningRecord, m as UserPlanCriterionRecord, n as UserPlanVerificationRecord, o as UserPlanCreateInput, p as UserPlanUpdateInput, P as ProjectItemRecord, q as UserPlanLearningCreateTasksInput, r as UserPlanLearningCreateTasksResult, s as UserTaskReorderInput, W as WorkflowSummary, t as WorkflowCapability, u as WorkflowDetail, v as WorkflowInputStartParams, w as WorkflowInputSessionResult, x as WorkflowInputSessionDetail, y as WorkflowInputEvent, z as WorkflowGraph, A as WorkflowRunContentRetention, B as WorkflowRunDetail, C as WorkflowRunCancellationResult, D as WorkflowTemplateProjectionUpsertParams, E as WorkflowTemplateProjectionResult, F as PublicWorkflowTemplateProjection, G as WorkflowTemplateProjectionRevocationResult, H as WorkflowTemplateBindingCompletionParams, I as WorkflowTemplateBindingCompletionResult, J as WorkflowTemplateShortUrlParams, K as WorkflowTemplateShortUrlResult, S as ShortUrlRevokeResult, L as WorkflowTemplateImportPayload, M as ImportedWorkflowTemplate } from './cli-DcPaR7zQ.js';
2
+ export { N as AuthMethodsStatus, O as AuthoritativeChatReconciliation, Q as BackupCodesResult, R as BankTransferOrderDetails, T as BankTransferStatus, V as CachedChat, X as CachedNewChatSuggestion, Y as ChatListPage, Z as CliSignupResult, _ as DecryptedDraft, $ as DecryptedEmbed, a0 as DecryptedMemoryEntry, a1 as DecryptedMessage, a2 as DecryptedNewChatSuggestion, a3 as DocsFile, a4 as DocsFolder, a5 as DocsSearchResult, a6 as DocsTree, a7 as EncryptedDraft, a8 as GiftCardBankTransferStatus, a9 as INTEREST_TAG_IDS, aa as ImagesAiDetectionClassification, ab as ImagesAiDetectionSummary, ac as InterestTagId, ad as MATE_NAMES, ae as MEMORY_TYPE_REGISTRY, af as MemoryFieldDef, ag as MemoryTypeDef, ah as OpenMatesClient, ai as OpenMatesClientOptions, aj as OpenMatesSession, ak as SyncCache, al as TopicPreferencesPayload, am as TotpSetupStartResult, an as WorkflowEdge, ao as WorkflowNode, ap as WorkflowNodeRun, aq as WorkflowNodeType, ar as WorkflowRunContentStorage, as as buildImagesAiDetectionSummary, at as classifyImagesAiDetection, au as deriveAppUrl, av as formatImagesAiDetectionLabel, aw as getExtForLang, ax as normalizeInterestTagIds, ay as reconcileAuthoritativeChats, az as serializeToYaml } from './cli-DcPaR7zQ.js';
3
3
 
4
4
  interface ProjectedAssistantSpeechSegment {
5
5
  sequence: number;
@@ -4006,7 +4006,7 @@ interface TaskUpdateOptions {
4006
4006
  slug?: string;
4007
4007
  }
4008
4008
  interface ExternalChatRef {
4009
- provider: "opencode";
4009
+ provider: "codex" | "opencode";
4010
4010
  id: string;
4011
4011
  }
4012
4012
  interface ExternalChatContext extends ExternalChatRef {
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ import {
42
42
  selectAssistantMessagesForSpeech,
43
43
  serializeToYaml,
44
44
  summarizeAssistantSpeech
45
- } from "./chunk-XKIFO4JO.js";
45
+ } from "./chunk-5KADUAVD.js";
46
46
  import "./chunk-IWKP55ZB.js";
47
47
  import "./chunk-BBKJZ23O.js";
48
48
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.18.0-alpha.2",
3
+ "version": "0.18.0-alpha.21",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -49,7 +49,8 @@
49
49
  "test:unit:tui": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/tui.test.ts tests/tuiExampleContinuation.test.ts tests/tuiWorkflowInteraction.test.ts",
50
50
  "test:unit:connected-account-import": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/connectedAccountImport.test.ts",
51
51
  "test:unit:benchmark": "node --test --experimental-strip-types --loader ./tests/loader.mjs src/__tests__/benchmark.test.ts",
52
- "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/serverQuickTest.test.ts tests/ws.test.ts tests/urlEmbed.test.ts tests/tui.test.ts tests/tuiExampleContinuation.test.ts tests/tuiWorkflowInteraction.test.ts tests/workflows.test.ts tests/sdk-workflows.test.ts tests/draft-sync.test.ts tests/sdk-draft-sync.test.ts tests/ideabucket.test.ts tests/teams-permissions.test.ts src/__tests__/benchmark.test.ts && node --test --experimental-strip-types --loader ./tests/loader.mjs tests/embedRenderers.test.ts tests/connectedAccountImport.test.ts && node --test tests/cli.test.ts tests/imagesDetectAi.test.ts tests/uploadService.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"
52
+ "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/serverQuickTest.test.ts tests/ws.test.ts tests/urlEmbed.test.ts tests/tui.test.ts tests/tuiExampleContinuation.test.ts tests/tuiWorkflowInteraction.test.ts tests/workflows.test.ts tests/sdk-workflows.test.ts tests/draft-sync.test.ts tests/sdk-draft-sync.test.ts tests/ideabucket.test.ts tests/teams-permissions.test.ts src/__tests__/benchmark.test.ts && node --test --experimental-strip-types --loader ./tests/loader.mjs tests/embedRenderers.test.ts tests/connectedAccountImport.test.ts && node --test tests/cli.test.ts tests/imagesDetectAi.test.ts tests/uploadService.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 && npm run test:unit:session",
53
+ "test:unit:session": "node --test --experimental-strip-types --loader ./tests/loader.mjs --test-name-pattern \"serializes refreshes|session refresh|rotated|gateway\" tests/client.test.ts"
53
54
  },
54
55
  "keywords": [
55
56
  "openmates",
@@ -73,6 +74,7 @@
73
74
  "@toon-format/toon": "2.3.1",
74
75
  "ahocorasick": "1.0.2",
75
76
  "jszip": "^3.10.1",
77
+ "proper-lockfile": "^4.1.2",
76
78
  "qrcode-terminal": "^0.12.0",
77
79
  "tweetnacl": "^1.0.3",
78
80
  "ws": "8.21.0",
@@ -81,6 +83,7 @@
81
83
  "devDependencies": {
82
84
  "@repo/eslint-config": "workspace:*",
83
85
  "@types/node": "^24.5.0",
86
+ "@types/proper-lockfile": "^4.1.4",
84
87
  "@types/qrcode-terminal": "^0.12.2",
85
88
  "@types/ws": "^8.18.1",
86
89
  "eslint": "^9.35.0",