@datalayer/agent-runtimes 1.5.110 → 1.5.114

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.
@@ -12,6 +12,7 @@ export const ALIBABA_0_0_1 = {
12
12
  termsUrl: 'https://www.alibabacloud.com/help/en/legal/latest/alibaba-cloud-international-website-product-terms-of-service',
13
13
  privacyUrl: 'https://www.alibabacloud.com/help/en/legal/latest/privacy-policy',
14
14
  hosting: 'cloud',
15
+ via: 'ai-inference',
15
16
  };
16
17
  export const ANTHROPIC_0_0_1 = {
17
18
  id: 'anthropic',
@@ -24,6 +25,7 @@ export const ANTHROPIC_0_0_1 = {
24
25
  privacyUrl: 'https://www.anthropic.com/legal/privacy',
25
26
  dataUsageUrl: 'https://www.anthropic.com/legal/aup',
26
27
  hosting: 'cloud',
28
+ via: 'direct',
27
29
  };
28
30
  export const AZURE_OPENAI_0_0_1 = {
29
31
  id: 'azure-openai',
@@ -36,6 +38,7 @@ export const AZURE_OPENAI_0_0_1 = {
36
38
  privacyUrl: 'https://www.microsoft.com/en-us/privacy/privacystatement',
37
39
  dataUsageUrl: 'https://learn.microsoft.com/en-us/legal/cognitive-services/openai/data-privacy',
38
40
  hosting: 'cloud',
41
+ via: 'ai-inference',
39
42
  };
40
43
  export const BEDROCK_0_0_1 = {
41
44
  id: 'bedrock',
@@ -48,6 +51,7 @@ export const BEDROCK_0_0_1 = {
48
51
  privacyUrl: 'https://aws.amazon.com/privacy/',
49
52
  dataUsageUrl: 'https://docs.aws.amazon.com/bedrock/latest/userguide/data-protection.html',
50
53
  hosting: 'cloud',
54
+ via: 'ai-inference',
51
55
  };
52
56
  export const CLOUDFLARE_0_0_1 = {
53
57
  id: 'cloudflare',
@@ -60,6 +64,7 @@ export const CLOUDFLARE_0_0_1 = {
60
64
  privacyUrl: 'https://www.cloudflare.com/privacypolicy/',
61
65
  dataUsageUrl: 'https://developers.cloudflare.com/workers-ai/platform/data-usage/',
62
66
  hosting: 'cloud',
67
+ via: 'ai-inference',
63
68
  };
64
69
  export const OLLAMA_0_0_1 = {
65
70
  id: 'ollama',
@@ -71,6 +76,7 @@ export const OLLAMA_0_0_1 = {
71
76
  termsUrl: 'https://ollama.com/terms',
72
77
  privacyUrl: 'https://ollama.com/privacy',
73
78
  hosting: 'local',
79
+ via: 'direct',
74
80
  };
75
81
  export const OPENAI_0_0_1 = {
76
82
  id: 'openai',
@@ -83,6 +89,20 @@ export const OPENAI_0_0_1 = {
83
89
  privacyUrl: 'https://openai.com/policies/privacy-policy/',
84
90
  dataUsageUrl: 'https://platform.openai.com/docs/guides/your-data',
85
91
  hosting: 'cloud',
92
+ via: 'direct',
93
+ };
94
+ export const OPENROUTER_0_0_1 = {
95
+ id: 'openrouter',
96
+ version: '0.0.1',
97
+ name: 'OpenRouter',
98
+ description: "One OpenAI-compatible API in front of the models of many vendors — Anthropic, OpenAI, Google, Meta, Mistral and the open-weight houses — with one key and one bill, routed to the vendor or to a host of its weights; a model is named `openrouter:<vendor>/<model>`, as OpenRouter lists it. What a request carries goes to the vendor it is routed to, under that vendor's terms; OpenRouter's own retention is set per account.",
99
+ website: 'https://openrouter.ai',
100
+ docsUrl: 'https://openrouter.ai/docs',
101
+ termsUrl: 'https://openrouter.ai/terms',
102
+ privacyUrl: 'https://openrouter.ai/privacy',
103
+ dataUsageUrl: 'https://openrouter.ai/docs/features/privacy-and-logging',
104
+ hosting: 'cloud',
105
+ via: 'direct',
86
106
  };
87
107
  export const MODEL_PROVIDER_CATALOGUE = {
88
108
  alibaba: ALIBABA_0_0_1,
@@ -92,6 +112,7 @@ export const MODEL_PROVIDER_CATALOGUE = {
92
112
  cloudflare: CLOUDFLARE_0_0_1,
93
113
  ollama: OLLAMA_0_0_1,
94
114
  openai: OPENAI_0_0_1,
115
+ openrouter: OPENROUTER_0_0_1,
95
116
  };
96
117
  /** The provider a model spec's `provider` names, or undefined. */
97
118
  export function getModelProvider(providerId) {
@@ -47,6 +47,7 @@ export declare const AIModels: {
47
47
  readonly OPENAI_GPT_4O_MINI: "openai:gpt-4o-mini";
48
48
  readonly OPENAI_GPT_4O: "openai:gpt-4o";
49
49
  readonly OPENAI_O3_MINI: "openai:o3-mini";
50
+ readonly OPENROUTER_ANTHROPIC_CLAUDE_OPUS_5_5: "openrouter:anthropic/claude-opus-5.5";
50
51
  };
51
52
  export type AIModelId = (typeof AIModels)[keyof typeof AIModels];
52
53
  export declare const ALIBABA_QWEN_MAX_0_0_1: AIModel;
@@ -88,6 +89,7 @@ export declare const OPENAI_GPT_4_1_0_0_1: AIModel;
88
89
  export declare const OPENAI_GPT_4O_MINI_0_0_1: AIModel;
89
90
  export declare const OPENAI_GPT_4O_0_0_1: AIModel;
90
91
  export declare const OPENAI_O3_MINI_0_0_1: AIModel;
92
+ export declare const OPENROUTER_ANTHROPIC_CLAUDE_OPUS_5_5_0_0_1: AIModel;
91
93
  export declare const AI_MODEL_CATALOGUE: Record<string, AIModel>;
92
94
  /**
93
95
  * The ids a model answered to before its id moved, to the id it has now.
@@ -45,6 +45,7 @@ export const AIModels = {
45
45
  OPENAI_GPT_4O_MINI: 'openai:gpt-4o-mini',
46
46
  OPENAI_GPT_4O: 'openai:gpt-4o',
47
47
  OPENAI_O3_MINI: 'openai:o3-mini',
48
+ OPENROUTER_ANTHROPIC_CLAUDE_OPUS_5_5: 'openrouter:anthropic/claude-opus-5.5',
48
49
  };
49
50
  // ============================================================================
50
51
  // AI Model Definitions
@@ -634,6 +635,20 @@ export const OPENAI_O3_MINI_0_0_1 = {
634
635
  tokensLimit: 100000,
635
636
  pricing: { inputUsdPerMillion: 1.1, outputUsdPerMillion: 4.4 },
636
637
  };
638
+ export const OPENROUTER_ANTHROPIC_CLAUDE_OPUS_5_5_0_0_1 = {
639
+ id: 'openrouter:anthropic/claude-opus-5.5',
640
+ version: '0.0.1',
641
+ name: 'OpenRouter Claude Opus 5.5',
642
+ description: 'Claude Opus 5.5 by Anthropic, through OpenRouter - the current frontier Opus, one key for every vendor',
643
+ provider: 'openrouter',
644
+ providerUrl: 'https://openrouter.ai/anthropic/claude-opus-5.5',
645
+ default: false,
646
+ available: true,
647
+ requiredEnvVars: ['OPENROUTER_API_KEY'],
648
+ tokensLimit: 128000,
649
+ contextWindow: 1000000,
650
+ pricing: { inputUsdPerMillion: 4.0, outputUsdPerMillion: 20.0 },
651
+ };
637
652
  // ============================================================================
638
653
  // AI Model Catalog
639
654
  // ============================================================================
@@ -677,6 +692,7 @@ export const AI_MODEL_CATALOGUE = {
677
692
  'openai:gpt-4o-mini': OPENAI_GPT_4O_MINI_0_0_1,
678
693
  'openai:gpt-4o': OPENAI_GPT_4O_0_0_1,
679
694
  'openai:o3-mini': OPENAI_O3_MINI_0_0_1,
695
+ 'openrouter:anthropic/claude-opus-5.5': OPENROUTER_ANTHROPIC_CLAUDE_OPUS_5_5_0_0_1,
680
696
  };
681
697
  /**
682
698
  * The ids a model answered to before its id moved, to the id it has now.
@@ -949,6 +949,17 @@ export interface AppPapCompanySpec {
949
949
  enabled: boolean;
950
950
  /** Whether a personal agent may ask before signing in. */
951
951
  signedOut: boolean;
952
+ /**
953
+ * Whether it offers personal agents no sign-in (PAP `auth.disabled`, 0.3 as
954
+ * published): they ask only what anybody may ask, in nobody's account (D4-08).
955
+ */
956
+ signInDisabled: boolean;
957
+ /**
958
+ * Whether it publishes the application's skills to personal agents as a
959
+ * `skill_index` (PAP 0.3 §9.4): only the public, secret-free ones, which the
960
+ * platform decides at Ship (D4-06).
961
+ */
962
+ publishSkills: boolean;
952
963
  interfaces: PapInterface[];
953
964
  /** The scopes it offers, each with what it allows and its hints. */
954
965
  scopes: AppPapCompanyScopeSpec[];
@@ -98,6 +98,13 @@ export interface ModelProvider {
98
98
  dataUsageUrl?: string;
99
99
  /** Where the model runs: the provider's cloud, or the user's machine. */
100
100
  hosting: 'cloud' | 'local';
101
+ /**
102
+ * How a runtime's call reaches the provider: 'ai-inference' (through
103
+ * Datalayer's inference service, which holds the account, metered in
104
+ * credits) or 'direct' (the agent calls the provider itself with the
105
+ * person's own key, the models' `requiredEnvVars`).
106
+ */
107
+ via: 'ai-inference' | 'direct';
101
108
  }
102
109
  /**
103
110
  * Configuration for an AI model runtime (as returned by the server).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/agent-runtimes",
3
- "version": "1.5.110",
3
+ "version": "1.5.114",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  ".",
@@ -164,7 +164,7 @@
164
164
  "@datalayer/lexical-loro": "^1.0.6",
165
165
  "@datalayer/primer-addons": "^1.0.46",
166
166
  "@datalayer/primer-rjsf": "^1.0.3",
167
- "@datalayer/personal-agent-protocol": "^0.29.0",
167
+ "@datalayer/personal-agent-protocol": "^0.31.0",
168
168
  "@datalayer/reactor": "^1.3.5",
169
169
  "@datalayer/reactor-commands": "^1.0.4",
170
170
  "@datalayer/reactor-manager": "^1.0.4",
@@ -59,6 +59,8 @@ CAMEL = {
59
59
  # Personal Agent Protocol (pap.connections[], pap.company, its operations).
60
60
  "sign_in": "signIn",
61
61
  "signed_out": "signedOut",
62
+ "sign_in_disabled": "signInDisabled",
63
+ "publish_skills": "publishSkills",
62
64
  "personal_agents": "personalAgents",
63
65
  "registered_agents": "registeredAgents",
64
66
  # Its company scopes' hints and excluded tasks (PAP draft 0.3).
@@ -7,8 +7,9 @@ Generate Python and TypeScript code from YAML model-provider specifications.
7
7
 
8
8
  A model provider is who serves a model (Anthropic, Amazon Bedrock, Cloudflare,
9
9
  Ollama…): its site, its documentation, its terms of service, its privacy
10
- policy, what it says about the data a request carries, and whether it runs
11
- the model or the user's machine does. One YAML per provider under
10
+ policy, what it says about the data a request carries, whether it runs
11
+ the model or the user's machine does, and how a runtime's call reaches it
12
+ (``via``: through ai-inference, or directly from the agent). One YAML per provider under
12
13
  ``agentspecs/model-providers``; a model spec's ``provider`` names one.
13
14
 
14
15
  Usage:
@@ -105,6 +106,7 @@ def generate_python_code(specs: list[dict[str, Any]]) -> str:
105
106
  if value:
106
107
  lines.append(f" {field}={_py(str(value))},")
107
108
  lines.append(f" hosting={_py(spec.get('hosting', 'cloud'))},")
109
+ lines.append(f" via={_py(spec['via'])},")
108
110
  lines.extend([")", ""])
109
111
  lines.extend(
110
112
  [
@@ -176,6 +178,7 @@ def generate_typescript_code(specs: list[dict[str, Any]]) -> str:
176
178
  if value:
177
179
  lines.append(f" {CAMEL[field]}: {_ts(str(value))},")
178
180
  lines.append(f" hosting: {_ts(spec.get('hosting', 'cloud'))},")
181
+ lines.append(f" via: {_ts(spec['via'])},")
179
182
  lines.extend(["};", ""])
180
183
  lines.append(
181
184
  "export const MODEL_PROVIDER_CATALOGUE: Record<string, ModelProvider> = {"