@datalayer/agent-runtimes 1.5.115 → 1.5.121

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.
Files changed (33) hide show
  1. package/dist-embed/datalayer-app-main.js +52 -52
  2. package/lib/api/runtimes/runtimes.d.ts +5 -0
  3. package/lib/apps/apps/appspec.js +4 -0
  4. package/lib/examples/pap/PapAgentIdentityView.js +0 -1
  5. package/lib/examples/pap/PapCompanyDiscoveryView.js +5 -4
  6. package/lib/examples/pap/PapGuidedJourneyView.js +31 -17
  7. package/lib/examples/pap/PapSessionLifecycleView.js +1 -1
  8. package/lib/examples/pap/traces/account-tokens.json +54 -30
  9. package/lib/examples/pap/traces/conversation-control.json +171 -220
  10. package/lib/examples/pap/traces/conversation-streaming.json +66 -44
  11. package/lib/examples/pap/traces/mediated-sign-in.json +54 -30
  12. package/lib/examples/pap/traces/operations.json +174 -223
  13. package/lib/examples/pap/traces/two-companies.json +252 -306
  14. package/lib/examples/pap/traces/user-with-a-company.json +159 -162
  15. package/lib/hooks/useCheckpoints.d.ts +2 -0
  16. package/lib/pap/index.d.ts +8 -0
  17. package/lib/pap/index.js +3 -6
  18. package/lib/portable/direct.d.ts +9 -3
  19. package/lib/portable/direct.js +9 -4
  20. package/lib/specs/actions.js +72 -9
  21. package/lib/specs/agents/agents.js +32 -9
  22. package/lib/specs/apps.js +18 -8
  23. package/lib/specs/appspecSchema.js +13 -1
  24. package/lib/specs/battles.js +6 -6
  25. package/lib/specs/mcpServers.js +66 -31
  26. package/lib/specs/models.d.ts +8 -1
  27. package/lib/specs/models.js +40 -2
  28. package/lib/specs/protocols.js +1 -1
  29. package/lib/specs/scenes.js +1 -5
  30. package/lib/types/agentspecs.d.ts +10 -0
  31. package/package.json +2 -2
  32. package/scripts/codegen/generate_apps.py +2 -0
  33. package/scripts/codegen/generate_models.py +17 -4
@@ -259,6 +259,18 @@ export const DATALAYER_MCP_SERVER_0_0_1 = {
259
259
  odoo_accounting_list_untagged_tax_lines: 'read',
260
260
  odoo_accounting_set_tax_periodicity: 'write',
261
261
  odoo_accounting_set_tax_grids: 'write',
262
+ odoo_accounting_find_document: 'read',
263
+ odoo_accounting_import_ubl_bill: 'write',
264
+ odoo_accounting_attach_document: 'write',
265
+ odoo_accounting_list_attachments: 'read',
266
+ odoo_accounting_reset_to_draft: 'write',
267
+ odoo_accounting_delete_draft: 'delete',
268
+ odoo_accounting_book_bank_line_split: 'write',
269
+ odoo_accounting_prepare_vendor_payments: 'write',
270
+ odoo_accounting_list_vendor_payments: 'read',
271
+ odoo_accounting_vat_close_check: 'read',
272
+ odoo_accounting_intervat_xml: 'read',
273
+ odoo_accounting_record_return_submission: 'write',
262
274
  read_benchmark: 'read',
263
275
  read_benchmark_task: 'read',
264
276
  read_benchmark_task_trajectory: 'read',
@@ -821,26 +833,28 @@ export const ODOO_ACCOUNTING_MCP_SERVER_0_0_1 = {
821
833
  id: 'odoo-accounting',
822
834
  version: '0.0.1',
823
835
  name: 'Odoo Accounting',
824
- description: "An accountant's day in Odoo — invoices, bills, journal entries, reconciliations, bank lines and tax returns — through the Datalayer MCP server",
836
+ description: "An accountant's day in Odoo — invoices, bills, journal entries, reconciliations, bank lines, payments and tax returns — in one company, through the Datalayer MCP server",
825
837
  icon: '@datalayer/icons-react:odoo',
826
838
  emoji: '🧮',
827
839
  url: 'https://mcp.datalayer.run/mcp?only=odoo-accounting',
828
840
  args: [],
829
841
  headers: { Authorization: 'Bearer ${DATALAYER_API_KEY}' },
830
842
  transport: 'streamable-http',
831
- enabled: false,
843
+ enabled: true,
832
844
  isAvailable: false,
833
845
  tools: [],
834
846
  requiredEnvVars: ['DATALAYER_API_KEY:0.0.1'],
835
847
  tags: ['erp', 'accounting', 'finance', 'odoo', 'datalayer'],
836
- documentationUrl: 'https://github.com/datalayer/datalayer-mcp-server',
848
+ documentationUrl: 'https://datalayer.ai/docs/accountant',
837
849
  signupUrl: 'https://datalayer.ai/signin',
838
850
  apiKeyUrl: 'https://datalayer.ai/settings/api-keys',
839
- setup: "Datalayer's gateway with its odoo-accounting toolset, on Datalayer's own books: your Datalayer API key as the bearer, made under [Settings, API keys](https://datalayer.ai/settings/api-keys) and put in `DATALAYER_API_KEY`.",
851
+ setup: "Datalayer's gateway with its odoo-accounting toolset: your Datalayer API key as the bearer, made under [Settings, API keys](https://datalayer.ai/settings/api-keys) and put in `DATALAYER_API_KEY`; your Odoo in your Datalayer secrets (`DATALAYER_ODOO_URL`, `DATALAYER_ODOO_API_KEY`, and `DATALAYER_ODOO_DATABASE` when the host does not name it). One company per session: your default in Odoo, or the one the url names with `&odoo-company=<name or id>`.",
840
852
  actions: {
841
853
  tools: {
842
854
  odoo_accounting_list_invoices: 'read',
843
855
  odoo_accounting_get_invoice: 'read',
856
+ odoo_accounting_create_draft_invoice: 'write',
857
+ odoo_accounting_post_invoice: 'write',
844
858
  odoo_accounting_list_journal_entries: 'read',
845
859
  odoo_accounting_list_open_balances: 'read',
846
860
  odoo_accounting_list_accounts: 'read',
@@ -848,8 +862,6 @@ export const ODOO_ACCOUNTING_MCP_SERVER_0_0_1 = {
848
862
  odoo_accounting_get_journal_entry: 'read',
849
863
  odoo_accounting_trial_balance: 'read',
850
864
  odoo_accounting_general_ledger: 'read',
851
- odoo_accounting_create_draft_invoice: 'write',
852
- odoo_accounting_post_invoice: 'write',
853
865
  odoo_accounting_create_draft_journal_entry: 'write',
854
866
  odoo_accounting_post_journal_entry: 'write',
855
867
  odoo_accounting_list_partners: 'read',
@@ -866,60 +878,83 @@ export const ODOO_ACCOUNTING_MCP_SERVER_0_0_1 = {
866
878
  odoo_accounting_suggest_bank_matches: 'read',
867
879
  odoo_accounting_suggest_reconciliations: 'read',
868
880
  odoo_accounting_explain_account_balance: 'read',
869
- odoo_accounting_list_bank_feeds: 'read',
870
- odoo_accounting_list_currency_rates: 'read',
871
- odoo_accounting_get_lock_dates: 'read',
872
881
  odoo_accounting_book_bank_line: 'write',
882
+ odoo_accounting_book_bank_line_split: 'write',
873
883
  odoo_accounting_match_bank_line: 'write',
874
884
  odoo_accounting_reset_bank_line: 'write',
875
885
  odoo_accounting_remove_duplicate_bank_lines: 'delete',
886
+ odoo_accounting_list_bank_feeds: 'read',
876
887
  odoo_accounting_link_bank_feed: 'write',
877
888
  odoo_accounting_create_vendor_bill: 'write',
878
889
  odoo_accounting_create_customer_invoice: 'write',
890
+ odoo_accounting_list_currency_rates: 'read',
879
891
  odoo_accounting_set_currency_rates: 'write',
892
+ odoo_accounting_get_lock_dates: 'read',
880
893
  odoo_accounting_set_lock_date: 'write',
881
894
  odoo_accounting_create_matching_model: 'write',
895
+ odoo_accounting_find_document: 'read',
896
+ odoo_accounting_import_ubl_bill: 'write',
897
+ odoo_accounting_attach_document: 'write',
898
+ odoo_accounting_list_attachments: 'read',
899
+ odoo_accounting_reset_to_draft: 'write',
900
+ odoo_accounting_delete_draft: 'delete',
901
+ odoo_accounting_prepare_vendor_payments: 'write',
902
+ odoo_accounting_list_vendor_payments: 'read',
882
903
  odoo_accounting_get_tax_settings: 'read',
904
+ odoo_accounting_set_tax_periodicity: 'write',
883
905
  odoo_accounting_list_tax_returns: 'read',
884
906
  odoo_accounting_get_tax_return: 'read',
885
907
  odoo_accounting_tax_grids: 'read',
886
908
  odoo_accounting_list_tax_grid_lines: 'read',
887
- odoo_accounting_check_tax_period: 'read',
888
909
  odoo_accounting_list_untagged_tax_lines: 'read',
889
- odoo_accounting_set_tax_periodicity: 'write',
890
910
  odoo_accounting_set_tax_grids: 'write',
911
+ odoo_accounting_check_tax_period: 'read',
912
+ odoo_accounting_vat_close_check: 'read',
913
+ odoo_accounting_intervat_xml: 'read',
914
+ odoo_accounting_record_return_submission: 'write',
891
915
  },
892
- checked: '2026-10-05',
893
- note: "The odoo_accounting_* rows of the datalayer server, which classes every tool the gateway serves (datalayer-mcp-server's tool_policy).",
916
+ checked: '2026-11-08',
917
+ note: "Exactly the tools the gateway's odoo-accounting toolset registers, read off its code (datalayer-mcp-server's extensions/odoo, odoo.py's accounting_tools, then reports, banking, bills, payments and taxes; datalayer-mcp-server 0.0.104), each classed as the datalayer server classes it (its tool_policy). The comment over each tool is the gateway's own description of it. The odoo and odoo-accounting toolsets share no tool.",
894
918
  },
895
919
  };
896
920
  export const ODOO_MCP_SERVER_0_0_1 = {
897
921
  id: 'odoo',
898
922
  version: '0.0.1',
899
923
  name: 'Odoo',
900
- description: 'Odoo ERP operations (search, invoices, journals, reconciliations)',
924
+ description: 'Any record of your Odoo — models, fields, searches, grouped counts, creates, updates and deletes — in one company, through the Datalayer MCP server',
901
925
  icon: '@datalayer/icons-react:odoo',
902
926
  emoji: '🧾',
903
- url: '',
904
- command: 'uvx',
905
- args: ['mcp-server-odoo'],
906
- transport: 'stdio',
907
- enabled: false,
927
+ url: 'https://mcp.datalayer.run/mcp?only=odoo',
928
+ args: [],
929
+ headers: { Authorization: 'Bearer ${DATALAYER_API_KEY}' },
930
+ transport: 'streamable-http',
931
+ enabled: true,
908
932
  isAvailable: false,
909
933
  tools: [],
910
- requiredEnvVars: [],
911
- tags: ['erp', 'accounting', 'finance', 'odoo'],
912
- env: {
913
- ODOO_URL: '${ODOO_URL}',
914
- ODOO_API_KEY: '${ODOO_API_KEY}',
915
- ODOO_DB: '${ODOO_DB}',
916
- ODOO_LOCALE: '${ODOO_LOCALE}',
917
- },
918
- documentationUrl: 'https://github.com/ivnvxd/mcp-server-odoo',
919
- setup: "Runs with `uvx` against the Odoo instance its env names, with that Odoo user's API key ([mcp-server-odoo](https://github.com/ivnvxd/mcp-server-odoo)).",
934
+ requiredEnvVars: ['DATALAYER_API_KEY:0.0.1'],
935
+ tags: ['erp', 'odoo', 'datalayer'],
936
+ documentationUrl: 'https://datalayer.ai/docs/mcp-toolsets',
937
+ signupUrl: 'https://datalayer.ai/signin',
938
+ apiKeyUrl: 'https://datalayer.ai/settings/api-keys',
939
+ setup: "Datalayer's gateway with its generic odoo toolset: your Datalayer API key as the bearer, made under [Settings, API keys](https://datalayer.ai/settings/api-keys) and put in `DATALAYER_API_KEY`; your Odoo in your Datalayer secrets (`DATALAYER_ODOO_URL`, `DATALAYER_ODOO_API_KEY`, and `DATALAYER_ODOO_DATABASE` when the host does not name it). One company per session: your default in Odoo, or the one the url names with `&odoo-company=<name or id>`.",
920
940
  actions: {
921
- tools: {},
922
- note: 'Not read off the running server yet: its tools are unknown, and unknown is the most restricted. Run the server, list its tools, and class each one here.',
941
+ tools: {
942
+ odoo_get_context: 'read',
943
+ odoo_get_account: 'read',
944
+ odoo_get_settings: 'read',
945
+ odoo_list_companies: 'read',
946
+ odoo_set_company: 'write',
947
+ odoo_list_models: 'read',
948
+ odoo_get_fields: 'read',
949
+ odoo_search_records: 'read',
950
+ odoo_read_records: 'read',
951
+ odoo_group_records: 'read',
952
+ odoo_create_record: 'write',
953
+ odoo_update_records: 'write',
954
+ odoo_delete_records: 'delete',
955
+ },
956
+ checked: '2026-11-08',
957
+ note: "Exactly the tools the gateway's odoo toolset registers, read off its code (datalayer-mcp-server's extensions/odoo, odoo.py's base_tools; datalayer-mcp-server 0.0.104), each classed as the datalayer server classes it (its tool_policy). The comment over each tool is the gateway's own description of it. The odoo and odoo-accounting toolsets share no tool.",
923
958
  },
924
959
  };
925
960
  export const SALESFORCE_MCP_SERVER_0_0_1 = {
@@ -22,6 +22,8 @@ export declare const AIModels: {
22
22
  readonly AZURE_OPENAI_GPT_4_1: "azure-openai:gpt-4.1";
23
23
  readonly AZURE_OPENAI_GPT_4O_MINI: "azure-openai:gpt-4o-mini";
24
24
  readonly AZURE_OPENAI_GPT_4O: "azure-openai:gpt-4o";
25
+ readonly BEDROCK_AMAZON_TITAN_EMBED_TEXT_V1: "bedrock:amazon.titan-embed-text-v1";
26
+ readonly BEDROCK_AMAZON_TITAN_EMBED_TEXT_V2_0: "bedrock:amazon.titan-embed-text-v2:0";
25
27
  readonly BEDROCK_US_ANTHROPIC_CLAUDE_FABLE_5: "bedrock:us.anthropic.claude-fable-5";
26
28
  readonly BEDROCK_US_ANTHROPIC_CLAUDE_OPUS_4_6_V1: "bedrock:us.anthropic.claude-opus-4-6-v1";
27
29
  readonly BEDROCK_US_ANTHROPIC_CLAUDE_OPUS_4_8: "bedrock:us.anthropic.claude-opus-4-8";
@@ -64,6 +66,8 @@ export declare const AZURE_OPENAI_GPT_4_1_NANO_0_0_1: AIModel;
64
66
  export declare const AZURE_OPENAI_GPT_4_1_0_0_1: AIModel;
65
67
  export declare const AZURE_OPENAI_GPT_4O_MINI_0_0_1: AIModel;
66
68
  export declare const AZURE_OPENAI_GPT_4O_0_0_1: AIModel;
69
+ export declare const BEDROCK_AMAZON_TITAN_EMBED_TEXT_V1_0_0_1: AIModel;
70
+ export declare const BEDROCK_AMAZON_TITAN_EMBED_TEXT_V2_0_0_0_1: AIModel;
67
71
  export declare const BEDROCK_US_ANTHROPIC_CLAUDE_FABLE_5_0_0_1: AIModel;
68
72
  export declare const BEDROCK_US_ANTHROPIC_CLAUDE_OPUS_4_6_V1_0_0_1: AIModel;
69
73
  export declare const BEDROCK_US_ANTHROPIC_CLAUDE_OPUS_4_8_0_0_1: AIModel;
@@ -98,9 +102,12 @@ export declare const AI_MODEL_CATALOGUE: Record<string, AIModel>;
98
102
  export declare const AI_MODEL_ALIASES: Record<string, string>;
99
103
  /** A model by its id, or by an id it had before; undefined when the catalogue has neither. */
100
104
  export declare function getModel(modelId: string): AIModel | undefined;
105
+ /** A typed-decision model (Jev): answers typed questions about a state. */
106
+ export declare function isDecisionModel(model: AIModel): boolean;
101
107
  /**
102
108
  * A model a chat can run on: not a typed-decision model (Jev), which
103
- * answers typed questions about a state and nothing else. A spec that
109
+ * answers typed questions about a state and nothing else, nor an
110
+ * embedding model (Titan), which turns texts into vectors. A spec that
104
111
  * states no capability is read as a chat model.
105
112
  */
106
113
  export declare function isChatModel(model: AIModel): boolean;
@@ -20,6 +20,8 @@ export const AIModels = {
20
20
  AZURE_OPENAI_GPT_4_1: 'azure-openai:gpt-4.1',
21
21
  AZURE_OPENAI_GPT_4O_MINI: 'azure-openai:gpt-4o-mini',
22
22
  AZURE_OPENAI_GPT_4O: 'azure-openai:gpt-4o',
23
+ BEDROCK_AMAZON_TITAN_EMBED_TEXT_V1: 'bedrock:amazon.titan-embed-text-v1',
24
+ BEDROCK_AMAZON_TITAN_EMBED_TEXT_V2_0: 'bedrock:amazon.titan-embed-text-v2:0',
23
25
  BEDROCK_US_ANTHROPIC_CLAUDE_FABLE_5: 'bedrock:us.anthropic.claude-fable-5',
24
26
  BEDROCK_US_ANTHROPIC_CLAUDE_OPUS_4_6_V1: 'bedrock:us.anthropic.claude-opus-4-6-v1',
25
27
  BEDROCK_US_ANTHROPIC_CLAUDE_OPUS_4_8: 'bedrock:us.anthropic.claude-opus-4-8',
@@ -233,6 +235,34 @@ export const AZURE_OPENAI_GPT_4O_0_0_1 = {
233
235
  tokensLimit: 16384,
234
236
  pricing: { inputUsdPerMillion: 2.5, outputUsdPerMillion: 10.0 },
235
237
  };
238
+ export const BEDROCK_AMAZON_TITAN_EMBED_TEXT_V1_0_0_1 = {
239
+ id: 'bedrock:amazon.titan-embed-text-v1',
240
+ version: '0.0.1',
241
+ name: 'Bedrock Titan Text Embeddings',
242
+ description: "Amazon Titan Embeddings G1 - Text via AWS Bedrock - 1536 dimensions, what an agent's memories are embedded with on a Datalayer runtime",
243
+ provider: 'bedrock',
244
+ providerUrl: 'https://aws.amazon.com/bedrock/titan/',
245
+ default: false,
246
+ available: true,
247
+ requiredEnvVars: [],
248
+ capabilities: ['embeddings'],
249
+ contextWindow: 8192,
250
+ pricing: { inputUsdPerMillion: 0.1, outputUsdPerMillion: 0.0 },
251
+ };
252
+ export const BEDROCK_AMAZON_TITAN_EMBED_TEXT_V2_0_0_0_1 = {
253
+ id: 'bedrock:amazon.titan-embed-text-v2:0',
254
+ version: '0.0.1',
255
+ name: 'Bedrock Titan Text Embeddings V2',
256
+ description: 'Amazon Titan Text Embeddings V2 via AWS Bedrock - 1024, 512 or 256 dimensions',
257
+ provider: 'bedrock',
258
+ providerUrl: 'https://aws.amazon.com/bedrock/titan/',
259
+ default: false,
260
+ available: true,
261
+ requiredEnvVars: [],
262
+ capabilities: ['embeddings'],
263
+ contextWindow: 8192,
264
+ pricing: { inputUsdPerMillion: 0.02, outputUsdPerMillion: 0.0 },
265
+ };
236
266
  export const BEDROCK_US_ANTHROPIC_CLAUDE_FABLE_5_0_0_1 = {
237
267
  id: 'bedrock:us.anthropic.claude-fable-5',
238
268
  version: '0.0.1',
@@ -667,6 +697,8 @@ export const AI_MODEL_CATALOGUE = {
667
697
  'azure-openai:gpt-4.1': AZURE_OPENAI_GPT_4_1_0_0_1,
668
698
  'azure-openai:gpt-4o-mini': AZURE_OPENAI_GPT_4O_MINI_0_0_1,
669
699
  'azure-openai:gpt-4o': AZURE_OPENAI_GPT_4O_0_0_1,
700
+ 'bedrock:amazon.titan-embed-text-v1': BEDROCK_AMAZON_TITAN_EMBED_TEXT_V1_0_0_1,
701
+ 'bedrock:amazon.titan-embed-text-v2:0': BEDROCK_AMAZON_TITAN_EMBED_TEXT_V2_0_0_0_1,
670
702
  'bedrock:us.anthropic.claude-fable-5': BEDROCK_US_ANTHROPIC_CLAUDE_FABLE_5_0_0_1,
671
703
  'bedrock:us.anthropic.claude-opus-4-6-v1': BEDROCK_US_ANTHROPIC_CLAUDE_OPUS_4_6_V1_0_0_1,
672
704
  'bedrock:us.anthropic.claude-opus-4-8': BEDROCK_US_ANTHROPIC_CLAUDE_OPUS_4_8_0_0_1,
@@ -710,13 +742,19 @@ export const AI_MODEL_ALIASES = {
710
742
  export function getModel(modelId) {
711
743
  return AI_MODEL_CATALOGUE[AI_MODEL_ALIASES[modelId] ?? modelId];
712
744
  }
745
+ /** A typed-decision model (Jev): answers typed questions about a state. */
746
+ export function isDecisionModel(model) {
747
+ return (model.capabilities ?? []).includes('decisions');
748
+ }
713
749
  /**
714
750
  * A model a chat can run on: not a typed-decision model (Jev), which
715
- * answers typed questions about a state and nothing else. A spec that
751
+ * answers typed questions about a state and nothing else, nor an
752
+ * embedding model (Titan), which turns texts into vectors. A spec that
716
753
  * states no capability is read as a chat model.
717
754
  */
718
755
  export function isChatModel(model) {
719
- return !(model.capabilities ?? []).includes('decisions');
756
+ const capabilities = model.capabilities ?? [];
757
+ return (!capabilities.includes('decisions') && !capabilities.includes('embeddings'));
720
758
  }
721
759
  /** The models a person choosing a chat model is offered from. */
722
760
  export function listChatModels() {
@@ -114,7 +114,7 @@ export const PAP_PROTOCOL_0_0_1 = {
114
114
  publisher: 'Sierra, Meta',
115
115
  layer: 'consent',
116
116
  specUrl: 'https://personalagentprotocol.org',
117
- specVersion: 'draft 0.3',
117
+ specVersion: 'draft 0.4',
118
118
  status: 'shipped',
119
119
  connects: "Companies, as a person's agent there, or being one",
120
120
  packages: {
@@ -1213,10 +1213,7 @@ export const MONTH_END_CLOSE_SCENE_0_0_1 = {
1213
1213
  actors: [],
1214
1214
  lines: [],
1215
1215
  live: '',
1216
- setup: [
1217
- "The agent 'worker-month-end-close:0.0.1' is not enabled.",
1218
- "The MCP server 'odoo-accounting:0.0.1' is not enabled.",
1219
- ],
1216
+ setup: ["The agent 'worker-month-end-close:0.0.1' is not enabled."],
1220
1217
  played: {
1221
1218
  at: '2026-10-29T14:17:04+00:00',
1222
1219
  where: 'on Datalayer',
@@ -2428,7 +2425,6 @@ export const SALES_AND_ACCOUNTING_SCENE_0_0_1 = {
2428
2425
  setup: [
2429
2426
  "The agent 'worker-sales-pipeline-board-report:0.0.1' is not enabled.",
2430
2427
  "The agent 'worker-accountant:0.0.1' is not enabled.",
2431
- "The MCP server 'odoo-accounting:0.0.1' is not enabled.",
2432
2428
  ],
2433
2429
  played: {
2434
2430
  at: '2026-10-29T14:00:28+00:00',
@@ -960,6 +960,16 @@ export interface AppPapCompanySpec {
960
960
  * platform decides at Ship (D4-06).
961
961
  */
962
962
  publishSkills: boolean;
963
+ /**
964
+ * Whether a browser signed in for the person on its website has everything
965
+ * the account can do there (PAP `web.unscoped`, draft 0.4 §6; D5-09).
966
+ */
967
+ webUnscoped: boolean;
968
+ /**
969
+ * Whether it asks personal agents to use its agent and APIs rather than its
970
+ * website (PAP `web.disabled`, draft 0.4 §6; D5-09).
971
+ */
972
+ webDisabled: boolean;
963
973
  interfaces: PapInterface[];
964
974
  /** The scopes it offers, each with what it allows and its hints. */
965
975
  scopes: AppPapCompanyScopeSpec[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/agent-runtimes",
3
- "version": "1.5.115",
3
+ "version": "1.5.121",
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.31.0",
167
+ "@datalayer/personal-agent-protocol": "^0.32.0",
168
168
  "@datalayer/reactor": "^1.3.5",
169
169
  "@datalayer/reactor-commands": "^1.0.4",
170
170
  "@datalayer/reactor-manager": "^1.0.4",
@@ -61,6 +61,8 @@ CAMEL = {
61
61
  "signed_out": "signedOut",
62
62
  "sign_in_disabled": "signInDisabled",
63
63
  "publish_skills": "publishSkills",
64
+ "web_unscoped": "webUnscoped",
65
+ "web_disabled": "webDisabled",
64
66
  "personal_agents": "personalAgents",
65
67
  "registered_agents": "registeredAgents",
66
68
  # Its company scopes' hints and excluded tasks (PAP draft 0.3).
@@ -326,12 +326,18 @@ def generate_python_code(specs: list[dict[str, Any]]) -> str:
326
326
  " return list(AI_MODEL_CATALOGUE.values())",
327
327
  "",
328
328
  "",
329
+ "def is_decision_model(model: AIModel) -> bool:",
330
+ ' """A typed-decision model (Jev): answers typed questions about a state."""',
331
+ ' return "decisions" in model.capabilities',
332
+ "",
333
+ "",
329
334
  "def is_chat_model(model: AIModel) -> bool:",
330
335
  ' """A model a chat can run on: not a typed-decision model (Jev), which',
331
- " answers typed questions about a state and nothing else. A spec that",
336
+ " answers typed questions about a state and nothing else, nor an",
337
+ " embedding model (Titan), which turns texts into vectors. A spec that",
332
338
  " states no capability is read as a chat model.",
333
339
  ' """',
334
- ' return "decisions" not in model.capabilities',
340
+ ' return "decisions" not in model.capabilities and "embeddings" not in model.capabilities',
335
341
  "",
336
342
  "",
337
343
  "def list_chat_models() -> list[AIModel]:",
@@ -503,13 +509,20 @@ def generate_typescript_code(specs: list[dict[str, Any]]) -> str:
503
509
  " return AI_MODEL_CATALOGUE[AI_MODEL_ALIASES[modelId] ?? modelId];",
504
510
  "}",
505
511
  "",
512
+ "/** A typed-decision model (Jev): answers typed questions about a state. */",
513
+ "export function isDecisionModel(model: AIModel): boolean {",
514
+ " return (model.capabilities ?? []).includes('decisions');",
515
+ "}",
516
+ "",
506
517
  "/**",
507
518
  " * A model a chat can run on: not a typed-decision model (Jev), which",
508
- " * answers typed questions about a state and nothing else. A spec that",
519
+ " * answers typed questions about a state and nothing else, nor an",
520
+ " * embedding model (Titan), which turns texts into vectors. A spec that",
509
521
  " * states no capability is read as a chat model.",
510
522
  " */",
511
523
  "export function isChatModel(model: AIModel): boolean {",
512
- " return !(model.capabilities ?? []).includes('decisions');",
524
+ " const capabilities = model.capabilities ?? [];",
525
+ " return !capabilities.includes('decisions') && !capabilities.includes('embeddings');",
513
526
  "}",
514
527
  "",
515
528
  "/** The models a person choosing a chat model is offered from. */",