openmates 0.18.0-alpha.46 → 0.18.0-alpha.47

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.
@@ -612,7 +612,7 @@ var DEFAULT_STANDALONE_PREFIX = "TASK";
612
612
  var PRIORITY_LEVELS = ["none", "low", "medium", "high", "urgent"];
613
613
  var LABEL_INDEX_INFO = "openmates-task-label-index-v1";
614
614
  var EXTERNAL_CHAT_INDEX_INFO = "openmates-task-external-chat-index-v1";
615
- var EXTERNAL_CHAT_PROVIDERS = ["codex", "opencode"];
615
+ var EXTERNAL_CHAT_PROVIDERS = ["codex"];
616
616
  var BLOCKED_REASON_CODES = [
617
617
  "needs_user_input",
618
618
  "waiting_for_approval",
@@ -645,7 +645,7 @@ function parseExternalChatRef(value) {
645
645
  const provider = value.slice(0, separator2).trim().toLowerCase();
646
646
  const id = value.slice(separator2 + 1).trim();
647
647
  if (separator2 <= 0 || !id) throw new Error("--external-chat requires provider:id.");
648
- if (!EXTERNAL_CHAT_PROVIDERS.includes(provider)) throw new Error(`Unsupported external chat provider '${provider}'. Use codex; opencode is retained for legacy records.`);
648
+ if (!EXTERNAL_CHAT_PROVIDERS.includes(provider)) throw new Error(`Unsupported external chat provider '${provider}'. Use codex.`);
649
649
  return { provider, id };
650
650
  }
651
651
  function externalChatLookupHash(masterKey, context) {
@@ -669,7 +669,6 @@ function parseAssignee(value) {
669
669
  if (!normalized || normalized === "user") return { assigneeType: "user", assigneeIdentity: null, assigneeHash: null };
670
670
  if (normalized === "openmates") return { assigneeType: "openmates", assigneeIdentity: "openmates", assigneeHash: null };
671
671
  if (normalized === "external_ai" || normalized === "codex") return { assigneeType: "external_ai", assigneeIdentity: "codex", assigneeHash: null };
672
- if (normalized === "opencode") return { assigneeType: "external_ai", assigneeIdentity: "opencode", assigneeHash: null };
673
672
  if (normalized === "unassigned") return { assigneeType: "unassigned", assigneeIdentity: null, assigneeHash: null };
674
673
  return { assigneeType: "user", assigneeIdentity: null, assigneeHash: value };
675
674
  }
@@ -1077,7 +1076,7 @@ function renderTaskActivityList(entries) {
1077
1076
  }
1078
1077
  function taskIdentityDisplayName(identity) {
1079
1078
  if (identity === "openmates") return "OpenMates";
1080
- if (identity === "opencode") return "OpenCode";
1079
+ if (identity === "codex") return "Codex";
1081
1080
  return null;
1082
1081
  }
1083
1082
  function renderTaskBoard(tasks, width = process.stdout.columns || 100) {
@@ -2251,7 +2250,7 @@ var CONNECTION_TIMEOUT_MS = 1e4;
2251
2250
  var MAX_RESPONSE_BYTES = 4 * 1024 * 1024;
2252
2251
  var THREAD_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
2253
2252
  function codexResumeArguments(context) {
2254
- if (context.provider !== "codex") throw new Error("Legacy OpenCode links are read-only. Connect this Task to a Codex thread explicitly.");
2253
+ if (context.provider !== "codex") throw new Error("Codex connection requires the codex provider.");
2255
2254
  if (!THREAD_ID.test(context.id)) throw new Error("Codex connection requires a valid thread UUID.");
2256
2255
  return ["resume", context.id];
2257
2256
  }
@@ -2338,7 +2337,7 @@ async function resumeCodexTask(context) {
2338
2337
  }
2339
2338
  function taskOwnerConflict(owner) {
2340
2339
  const title = JSON.stringify(owner.title || "Untitled chat");
2341
- const location = owner.provider === "openmates" ? `OpenMates chat ID: ${owner.id}. View: openmates chats show ${owner.id}` : `${owner.provider === "codex" ? "Codex" : "OpenCode"} chat ID: ${owner.id}`;
2340
+ const location = owner.provider === "openmates" ? `OpenMates chat ID: ${owner.id}. View: openmates chats show ${owner.id}` : `Codex chat ID: ${owner.id}`;
2342
2341
  return `Task is already linked to ${title}. ${location}. Release that link before claiming the task in another chat.`;
2343
2342
  }
2344
2343
  function assertCodexClaimCaller(threadId, currentThread = process.env.CODEX_THREAD_ID) {
@@ -29163,8 +29162,7 @@ var INTEGRATION_ENV_KEYS = /* @__PURE__ */ new Set([
29163
29162
  "PREVIEW_ALLOWED_REFERERS",
29164
29163
  "REPORT_ISSUE_EMAIL",
29165
29164
  "ADMIN_NOTIFY_EMAIL",
29166
- "DAILY_MEETING_NOTIFY_EMAIL",
29167
- "OPENCODE_WEB_BASE_URL"
29165
+ "DAILY_MEETING_NOTIFY_EMAIL"
29168
29166
  ]);
29169
29167
  function envKeyCategory(key) {
29170
29168
  if (OBSERVABILITY_ENV_PREFIXES.some((prefix) => key.startsWith(prefix))) return "observability";
@@ -30731,7 +30729,7 @@ function beginEngineeringRuntimeOperation(installPath, operationType, services)
30731
30729
  const manager = join11(installPath, "scripts", "engineering_control_plane.py");
30732
30730
  const sharedConfig = join11(homedir6(), ".config", "openmates", "engineering-control-plane.env");
30733
30731
  if (!existsSync11(manager) || !existsSync11(sharedConfig)) return null;
30734
- const requestedBy = process.env.OPENCODE_SESSION_ID || `openmates-cli:${process.pid}`;
30732
+ const requestedBy = process.env.CODEX_THREAD_ID || `openmates-cli:${process.pid}`;
30735
30733
  const args = [
30736
30734
  manager,
30737
30735
  "operation",
@@ -77590,32 +77588,32 @@ var TRUST_GUARD_EXEMPT_COMMANDS = /* @__PURE__ */ new Set([
77590
77588
  "upgrade"
77591
77589
  ]);
77592
77590
  var TRUST_GUARD_BLOCKED_COMMANDS = /* @__PURE__ */ new Set(["signup", "e2e"]);
77593
- var TRUST_GUARD_PROFILE = "opencode-personal";
77591
+ var TRUST_GUARD_PROFILE = "codex-personal";
77594
77592
  var TRUST_GUARD_API_URL = "https://api.dev.openmates.org";
77595
77593
  function shouldRequireTrustedAccountGuard(command) {
77596
77594
  return !command || !TRUST_GUARD_EXEMPT_COMMANDS.has(command);
77597
77595
  }
77598
77596
  function assertTrustedAccountCommandAllowed(command) {
77599
77597
  if (command && TRUST_GUARD_BLOCKED_COMMANDS.has(command)) {
77600
- throw new Error(`The '${command}' command is disabled for the trusted OpenCode CLI profile.`);
77598
+ throw new Error(`The '${command}' command is disabled for the trusted Codex CLI profile.`);
77601
77599
  }
77602
77600
  }
77603
77601
  function assertTrustedAccountGuardEnvironment(flags, environment = process.env) {
77604
77602
  if (flags.profile !== void 0 && flags.profile !== TRUST_GUARD_PROFILE) {
77605
- throw new Error(`Trusted OpenCode CLI commands cannot override profile ${TRUST_GUARD_PROFILE}.`);
77603
+ throw new Error(`Trusted Codex CLI commands cannot override profile ${TRUST_GUARD_PROFILE}.`);
77606
77604
  }
77607
77605
  if (environment.OPENMATES_PROFILE !== TRUST_GUARD_PROFILE) {
77608
- throw new Error(`Trusted OpenCode CLI commands require OPENMATES_PROFILE=${TRUST_GUARD_PROFILE}.`);
77606
+ throw new Error(`Trusted Codex CLI commands require OPENMATES_PROFILE=${TRUST_GUARD_PROFILE}.`);
77609
77607
  }
77610
77608
  if (environment.OPENMATES_STATE_DIR) {
77611
- throw new Error("Trusted OpenCode CLI commands cannot override OPENMATES_STATE_DIR.");
77609
+ throw new Error("Trusted Codex CLI commands cannot override OPENMATES_STATE_DIR.");
77612
77610
  }
77613
77611
  if (environment.OPENMATES_API_URL?.replace(/\/$/, "") !== TRUST_GUARD_API_URL) {
77614
- throw new Error(`Trusted OpenCode CLI commands require ${TRUST_GUARD_API_URL}.`);
77612
+ throw new Error(`Trusted Codex CLI commands require ${TRUST_GUARD_API_URL}.`);
77615
77613
  }
77616
77614
  const requestedApiUrl = flags["api-url"];
77617
77615
  if (typeof requestedApiUrl === "string" && requestedApiUrl.replace(/\/$/, "") !== TRUST_GUARD_API_URL) {
77618
- throw new Error("Trusted OpenCode CLI commands cannot override the configured dev API URL.");
77616
+ throw new Error("Trusted Codex CLI commands cannot override the configured dev API URL.");
77619
77617
  }
77620
77618
  }
77621
77619
  function accountIdFromWhoAmI(user) {
@@ -88710,7 +88708,7 @@ function printPlansHelp() {
88710
88708
  openmates plans dependencies list <plan-id|short-id> [--json]
88711
88709
  openmates plans dependencies add|remove <plan-id|short-id> --target plan:<id>|task:<id> [--recovery-root <external-root>] [--json]
88712
88710
  openmates plans assumptions list <plan-id|short-id> [--json]
88713
- openmates plans assumptions create|update <plan-id|short-id> [--assumption <id>] [--text <text>] [--sub-chat opencode:<session>] [--proof-embed <id>|--proof-file <path[:start[:end]]>|--proof-url <https-url>] [--json]
88711
+ openmates plans assumptions create|update <plan-id|short-id> [--assumption <id>] [--text <text>] [--sub-chat <chat-id>] [--proof-embed <id>|--proof-file <path[:start[:end]]>|--proof-url <https-url>] [--json]
88714
88712
  openmates plans revisions list|submit-for-review|status|diff <plan-id|short-id> [--json]
88715
88713
  openmates plans success-criteria add|edit|remove <plan-id|short-id> --criterion <id> --text <criterion> [--type <type>] [--required] [--json]
88716
88714
  openmates plans criteria add|edit|remove <plan-id|short-id> --criterion <id> --text <criterion> [--type <type>] [--required] [--json]
@@ -561,7 +561,7 @@ interface TaskUpdateOptions {
561
561
  slug?: string;
562
562
  }
563
563
  interface ExternalChatRef {
564
- provider: "codex" | "opencode";
564
+ provider: "codex";
565
565
  id: string;
566
566
  }
567
567
  interface ExternalChatContext extends ExternalChatRef {
@@ -875,7 +875,7 @@ interface WorkflowNodeRun {
875
875
  }
876
876
  type UserTaskStatus = "backlog" | "todo" | "in_progress" | "blocked" | "done";
877
877
  type UserTaskAssigneeType = "user" | "openmates" | "external_ai" | "unassigned";
878
- type UserTaskAssigneeIdentity = "openmates" | "codex" | "opencode";
878
+ type UserTaskAssigneeIdentity = "openmates" | "codex";
879
879
  type ProjectSourceType = "local_folder" | "local_git_repository" | "remote_folder" | "remote_git_repository";
880
880
  type ProjectSourceCapability = "read" | "search" | "import" | "write_request";
881
881
  type ProjectSourceStatus = "connected" | "offline" | "permission_required" | "revoked";
@@ -1008,7 +1008,7 @@ interface UserTaskRecord {
1008
1008
  assignee_identity?: UserTaskAssigneeIdentity | null;
1009
1009
  assignee_hash?: string | null;
1010
1010
  primary_chat_id?: string | null;
1011
- external_chat_provider?: "codex" | "opencode" | null;
1011
+ external_chat_provider?: "codex" | null;
1012
1012
  external_chat_lookup_hash?: string | null;
1013
1013
  encrypted_external_chat_id?: string | null;
1014
1014
  encrypted_external_chat_title?: string | null;
@@ -2555,7 +2555,7 @@ declare class OpenMatesClient {
2555
2555
  chatId?: string;
2556
2556
  projectId?: string;
2557
2557
  labelHashes?: string[];
2558
- externalChatProvider?: "codex" | "opencode";
2558
+ externalChatProvider?: "codex";
2559
2559
  externalChatLookupHash?: string;
2560
2560
  priority?: number;
2561
2561
  limit?: number;
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { ae as ImagesAiDetectionClassification, af as ImagesAiDetectionSummary, aD as assertTrustedAccountCommandAllowed, aE as assertTrustedAccountGuardEnvironment, av as buildImagesAiDetectionSummary, aF as buildTravelConnectionsRequest, aw as classifyImagesAiDetection, ay as formatImagesAiDetectionLabel, az as getExtForLang, aG as printWhoAmI, aH as requireExactConfirmation, aI as resolveProjectContext, aC as serializeToYaml, aJ as shouldRequireTrustedAccountGuard, aK as waitForWorkflowRun } from './cli-R8wBnwBN.js';
2
+ export { ae as ImagesAiDetectionClassification, af as ImagesAiDetectionSummary, aD as assertTrustedAccountCommandAllowed, aE as assertTrustedAccountGuardEnvironment, av as buildImagesAiDetectionSummary, aF as buildTravelConnectionsRequest, aw as classifyImagesAiDetection, ay as formatImagesAiDetectionLabel, az as getExtForLang, aG as printWhoAmI, aH as requireExactConfirmation, aI as resolveProjectContext, aC as serializeToYaml, aJ as shouldRequireTrustedAccountGuard, aK as waitForWorkflowRun } from './cli-BP60bZtx.js';
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  serializeToYaml,
14
14
  shouldRequireTrustedAccountGuard,
15
15
  waitForWorkflowRun
16
- } from "./chunk-WQNH4XI6.js";
16
+ } from "./chunk-WS4JQQON.js";
17
17
  import "./chunk-IWKP55ZB.js";
18
18
  import "./chunk-BBKJZ23O.js";
19
19
  export {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UserPlanStatus, a as UserPlanRecord, b as UserPlanVerificationStatus, c as UserPlanLearningType, d as UserPlanLearningTargetKind, e as UserPlanLearningStatus, f as UserPlanLearningLevel, g as UserPlanLearningRecord, h as UserPlanCriterionRecord, i as UserPlanVerificationRecord, j as UserPlanCreateInput, k as UserPlanUpdateInput, P as ProjectItemRecord, T as TaskCreateOptions, l as TaskUpdateOptions, m as UserPlanLearningCreateTasksInput, n as UserPlanLearningCreateTasksResult, o as UserTaskStatus, E as ExternalChatContext, p as TaskPriorityLevel, D as DecryptedUserTask, q as DecryptedTaskActivityEntry, r as TaskActivityCreateOptions, 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 WorkflowNode, F as WorkflowRunCancellationResult, G as WorkflowTemplateProjectionUpsertParams, H as WorkflowTemplateProjectionResult, I as PublicWorkflowTemplateProjection, J as WorkflowTemplateProjectionRevocationResult, K as WorkflowTemplateBindingCompletionParams, L as WorkflowTemplateBindingCompletionResult, M as WorkflowTemplateShortUrlParams, N as WorkflowTemplateShortUrlResult, S as ShortUrlRevokeResult, O as WorkflowTemplateImportPayload, Q as ImportedWorkflowTemplate } from './cli-R8wBnwBN.js';
2
- export { R as AuthMethodsStatus, V as AuthoritativeChatReconciliation, X as BackupCodesResult, Y as BankTransferOrderDetails, Z as BankTransferStatus, _ as CachedChat, $ as CachedNewChatSuggestion, a0 as ChatListPage, a1 as CliSignupResult, a2 as DecryptedDraft, a3 as DecryptedEmbed, a4 as DecryptedMemoryEntry, a5 as DecryptedMessage, a6 as DecryptedNewChatSuggestion, a7 as DocsFile, a8 as DocsFolder, a9 as DocsSearchResult, aa as DocsTree, ab as EncryptedDraft, ac as GiftCardBankTransferStatus, ad as INTEREST_TAG_IDS, ae as ImagesAiDetectionClassification, af as ImagesAiDetectionSummary, ag as InterestTagId, ah as MATE_NAMES, ai as MEMORY_TYPE_REGISTRY, aj as MemoryFieldDef, ak as MemoryTypeDef, al as OpenMatesClient, am as OpenMatesClientOptions, an as OpenMatesSession, ao as SyncCache, ap as TopicPreferencesPayload, aq as TotpSetupStartResult, ar as WorkflowEdge, as as WorkflowNodeRun, at as WorkflowNodeType, au as WorkflowRunContentStorage, av as buildImagesAiDetectionSummary, aw as classifyImagesAiDetection, ax as deriveAppUrl, ay as formatImagesAiDetectionLabel, az as getExtForLang, aA as normalizeInterestTagIds, aB as reconcileAuthoritativeChats, aC as serializeToYaml } from './cli-R8wBnwBN.js';
1
+ import { U as UserPlanStatus, a as UserPlanRecord, b as UserPlanVerificationStatus, c as UserPlanLearningType, d as UserPlanLearningTargetKind, e as UserPlanLearningStatus, f as UserPlanLearningLevel, g as UserPlanLearningRecord, h as UserPlanCriterionRecord, i as UserPlanVerificationRecord, j as UserPlanCreateInput, k as UserPlanUpdateInput, P as ProjectItemRecord, T as TaskCreateOptions, l as TaskUpdateOptions, m as UserPlanLearningCreateTasksInput, n as UserPlanLearningCreateTasksResult, o as UserTaskStatus, E as ExternalChatContext, p as TaskPriorityLevel, D as DecryptedUserTask, q as DecryptedTaskActivityEntry, r as TaskActivityCreateOptions, 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 WorkflowNode, F as WorkflowRunCancellationResult, G as WorkflowTemplateProjectionUpsertParams, H as WorkflowTemplateProjectionResult, I as PublicWorkflowTemplateProjection, J as WorkflowTemplateProjectionRevocationResult, K as WorkflowTemplateBindingCompletionParams, L as WorkflowTemplateBindingCompletionResult, M as WorkflowTemplateShortUrlParams, N as WorkflowTemplateShortUrlResult, S as ShortUrlRevokeResult, O as WorkflowTemplateImportPayload, Q as ImportedWorkflowTemplate } from './cli-BP60bZtx.js';
2
+ export { R as AuthMethodsStatus, V as AuthoritativeChatReconciliation, X as BackupCodesResult, Y as BankTransferOrderDetails, Z as BankTransferStatus, _ as CachedChat, $ as CachedNewChatSuggestion, a0 as ChatListPage, a1 as CliSignupResult, a2 as DecryptedDraft, a3 as DecryptedEmbed, a4 as DecryptedMemoryEntry, a5 as DecryptedMessage, a6 as DecryptedNewChatSuggestion, a7 as DocsFile, a8 as DocsFolder, a9 as DocsSearchResult, aa as DocsTree, ab as EncryptedDraft, ac as GiftCardBankTransferStatus, ad as INTEREST_TAG_IDS, ae as ImagesAiDetectionClassification, af as ImagesAiDetectionSummary, ag as InterestTagId, ah as MATE_NAMES, ai as MEMORY_TYPE_REGISTRY, aj as MemoryFieldDef, ak as MemoryTypeDef, al as OpenMatesClient, am as OpenMatesClientOptions, an as OpenMatesSession, ao as SyncCache, ap as TopicPreferencesPayload, aq as TotpSetupStartResult, ar as WorkflowEdge, as as WorkflowNodeRun, at as WorkflowNodeType, au as WorkflowRunContentStorage, av as buildImagesAiDetectionSummary, aw as classifyImagesAiDetection, ax as deriveAppUrl, ay as formatImagesAiDetectionLabel, az as getExtForLang, aA as normalizeInterestTagIds, aB as reconcileAuthoritativeChats, aC as serializeToYaml } from './cli-BP60bZtx.js';
3
3
 
4
4
  interface ProjectedAssistantSpeechSegment {
5
5
  sequence: number;
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ import {
42
42
  selectAssistantMessagesForSpeech,
43
43
  serializeToYaml,
44
44
  summarizeAssistantSpeech
45
- } from "./chunk-WQNH4XI6.js";
45
+ } from "./chunk-WS4JQQON.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.46",
3
+ "version": "0.18.0-alpha.47",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",