openmates 0.14.3 → 0.14.5-alpha.0

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.
@@ -9534,6 +9534,20 @@ import { createInterface as createPromptInterface } from "readline/promises";
9534
9534
  import { homedir as homedir5 } from "os";
9535
9535
  import { dirname, join as join3, resolve as resolve3 } from "path";
9536
9536
 
9537
+ // src/support.ts
9538
+ var SUPPORT_URL = "https://openmates.org/#settings/support";
9539
+ var SUPPORT_TITLE = "Support OpenMates development";
9540
+ var SUPPORT_MESSAGE = "Financial support is voluntary and helps keep OpenMates maintained.";
9541
+ function renderSupportInfo() {
9542
+ return `${SUPPORT_TITLE}:
9543
+ ${SUPPORT_URL}
9544
+
9545
+ ${SUPPORT_MESSAGE}`;
9546
+ }
9547
+ function renderSupportStartReminder() {
9548
+ return `Friendly reminder: you can financially support OpenMates development at ${SUPPORT_URL}`;
9549
+ }
9550
+
9537
9551
  // src/serverPlanning.ts
9538
9552
  var CORE_WORKER_SERVICES = [
9539
9553
  "task-worker",
@@ -10760,6 +10774,7 @@ async function serverStart(flags) {
10760
10774
  console.log("Directus CMS: http://localhost:8055");
10761
10775
  console.log("Grafana: http://localhost:3000");
10762
10776
  }
10777
+ console.log(renderSupportStartReminder());
10763
10778
  }
10764
10779
  }
10765
10780
  async function serverStop(flags) {
@@ -47901,6 +47916,10 @@ async function main() {
47901
47916
  await handleDocs(client, subcommand, rest, parsed.flags);
47902
47917
  return;
47903
47918
  }
47919
+ if (command === "support") {
47920
+ handleSupport(parsed.flags);
47921
+ return;
47922
+ }
47904
47923
  if (command === "update" || command === "upgrade") {
47905
47924
  handleSelfUpdate(command, parsed.flags);
47906
47925
  return;
@@ -47986,6 +48005,17 @@ async function main() {
47986
48005
  }
47987
48006
  throw new Error(`Unknown command '${command}'. Run 'openmates help'.`);
47988
48007
  }
48008
+ function handleSupport(flags) {
48009
+ if (flags.json === true) {
48010
+ printJson2({
48011
+ url: SUPPORT_URL,
48012
+ voluntary: true,
48013
+ message: SUPPORT_MESSAGE
48014
+ });
48015
+ return;
48016
+ }
48017
+ console.log(renderSupportInfo());
48018
+ }
47989
48019
  function handleSelfUpdate(command, flags) {
47990
48020
  const plan = buildSelfUpdatePlan(flags);
47991
48021
  if (flags.json === true) {
@@ -52909,6 +52939,7 @@ Commands:
52909
52939
  openmates feedback [--help] Assistant response feedback helpers
52910
52940
  openmates benchmark [--help] Run real model benchmarks with usage tagged as benchmark spend
52911
52941
  openmates remote-access [--help] Attach and search local Project sources
52942
+ openmates support Show voluntary financial support options
52912
52943
  openmates update Update the installed OpenMates CLI package
52913
52944
  openmates upgrade Alias for openmates update
52914
52945
  openmates server [--help] Server management (install, start, stop, ...)
@@ -53457,6 +53488,8 @@ export {
53457
53488
  MATE_NAMES,
53458
53489
  deriveAppUrl,
53459
53490
  OpenMatesClient,
53491
+ SUPPORT_URL,
53492
+ renderSupportInfo,
53460
53493
  defaultCloneBranchForVersion,
53461
53494
  ASSISTANT_FEEDBACK_THANKS,
53462
53495
  ASSISTANT_FEEDBACK_REPORT_TITLE,
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getExtForLang,
4
4
  serializeToYaml
5
- } from "./chunk-CTMZND4H.js";
5
+ } from "./chunk-YNYJMWKY.js";
6
6
  import "./chunk-AXNRPVLE.js";
7
7
  export {
8
8
  getExtForLang,
package/dist/index.d.ts CHANGED
@@ -1428,6 +1428,9 @@ interface DocsSearchResult {
1428
1428
 
1429
1429
  declare function defaultCloneBranchForVersion(version: string): string | null;
1430
1430
 
1431
+ declare const SUPPORT_URL = "https://openmates.org/#settings/support";
1432
+ declare function renderSupportInfo(): string;
1433
+
1431
1434
  type AppSkillRunner = <T = unknown>(appId: string, skillId: string, input: unknown) => Promise<T>;
1432
1435
  type SkillInput = Record<string, unknown>;
1433
1436
  declare const APP_SKILL_METADATA: readonly [{
@@ -4499,4 +4502,4 @@ type AssistantFeedbackDecision = {
4499
4502
  };
4500
4503
  declare function buildAssistantFeedbackDecision(rating: number): AssistantFeedbackDecision;
4501
4504
 
4502
- export { APP_SKILL_METADATA, ASSISTANT_FEEDBACK_REPORT_TITLE, ASSISTANT_FEEDBACK_THANKS, type AssistantFeedbackDecision, type AuthMethodsStatus, type BackupCodesResult, type BankTransferOrderDetails, type BankTransferStatus, type CachedChat, type CachedNewChatSuggestion, type ChatCreateOptions, type ChatListOptions, type ChatListPage, type ChatResponse, type CliSignupResult, type DecryptedEmbed, type DecryptedMemoryEntry, type DecryptedMessage, type DecryptedNewChatSuggestion, type DocsFile, type DocsFolder, type DocsSearchResult, type DocsTree, type EncryptedChatMetadata, type FocusModeSelection, type GiftCardBankTransferStatus, INTEREST_TAG_IDS, type InterestTagId, MATE_NAMES, MEMORY_TYPE_REGISTRY, type MemoryFieldDef, type MemoryTypeDef, OpenMates, OpenMatesApiError, OpenMatesClient, type OpenMatesClientOptions, OpenMatesConfigError, type OpenMatesOptions, type OpenMatesSession, type ProjectSourceCapability, type ProjectSourceCreateInput, type ProjectSourceRecord, type ProjectSourceStatus, type ProjectSourceType, type SyncCache, type TopicPreferencesPayload, type TotpSetupStartResult, type WorkflowCapability, type WorkflowDetail, type WorkflowEdge, type WorkflowGraph, type WorkflowNode, type WorkflowNodeRun, type WorkflowNodeType, type WorkflowRunContentRetention, type WorkflowRunContentStorage, type WorkflowRunDetail, type WorkflowSummary, buildAssistantFeedbackDecision, defaultCloneBranchForVersion, deriveAppUrl, normalizeInterestTagIds };
4505
+ export { APP_SKILL_METADATA, ASSISTANT_FEEDBACK_REPORT_TITLE, ASSISTANT_FEEDBACK_THANKS, type AssistantFeedbackDecision, type AuthMethodsStatus, type BackupCodesResult, type BankTransferOrderDetails, type BankTransferStatus, type CachedChat, type CachedNewChatSuggestion, type ChatCreateOptions, type ChatListOptions, type ChatListPage, type ChatResponse, type CliSignupResult, type DecryptedEmbed, type DecryptedMemoryEntry, type DecryptedMessage, type DecryptedNewChatSuggestion, type DocsFile, type DocsFolder, type DocsSearchResult, type DocsTree, type EncryptedChatMetadata, type FocusModeSelection, type GiftCardBankTransferStatus, INTEREST_TAG_IDS, type InterestTagId, MATE_NAMES, MEMORY_TYPE_REGISTRY, type MemoryFieldDef, type MemoryTypeDef, OpenMates, OpenMatesApiError, OpenMatesClient, type OpenMatesClientOptions, OpenMatesConfigError, type OpenMatesOptions, type OpenMatesSession, type ProjectSourceCapability, type ProjectSourceCreateInput, type ProjectSourceRecord, type ProjectSourceStatus, type ProjectSourceType, SUPPORT_URL, type SyncCache, type TopicPreferencesPayload, type TotpSetupStartResult, type WorkflowCapability, type WorkflowDetail, type WorkflowEdge, type WorkflowGraph, type WorkflowNode, type WorkflowNodeRun, type WorkflowNodeType, type WorkflowRunContentRetention, type WorkflowRunContentStorage, type WorkflowRunDetail, type WorkflowSummary, buildAssistantFeedbackDecision, defaultCloneBranchForVersion, deriveAppUrl, normalizeInterestTagIds, renderSupportInfo };
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  MATE_NAMES,
6
6
  MEMORY_TYPE_REGISTRY,
7
7
  OpenMatesClient,
8
+ SUPPORT_URL,
8
9
  buildAssistantFeedbackDecision,
9
10
  buildChatShareUrl,
10
11
  buildEmbedShareUrl,
@@ -21,9 +22,10 @@ import {
21
22
  getExtForLang,
22
23
  hashItemKey,
23
24
  normalizeInterestTagIds,
25
+ renderSupportInfo,
24
26
  serializeToYaml,
25
27
  unwrapApiKeyMasterKey
26
- } from "./chunk-CTMZND4H.js";
28
+ } from "./chunk-YNYJMWKY.js";
27
29
  import "./chunk-AXNRPVLE.js";
28
30
 
29
31
  // src/generated/appSkills.ts
@@ -4610,10 +4612,12 @@ export {
4610
4612
  OpenMatesApiError,
4611
4613
  OpenMatesClient,
4612
4614
  OpenMatesConfigError,
4615
+ SUPPORT_URL,
4613
4616
  buildAssistantFeedbackDecision,
4614
4617
  defaultCloneBranchForVersion,
4615
4618
  deriveAppUrl,
4616
4619
  getExtForLang,
4617
4620
  normalizeInterestTagIds,
4621
+ renderSupportInfo,
4618
4622
  serializeToYaml
4619
4623
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.14.3",
3
+ "version": "0.14.5-alpha.0",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",