@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
@@ -29,12 +29,18 @@ export type DirectReply = {
29
29
  from: 'agent' | 'human';
30
30
  name?: string;
31
31
  };
32
- /** What the company answered, and where the conversation stands. */
32
+ /**
33
+ * What the company answered, and where the conversation stands: PAP draft 0.4's four
34
+ * fields (§8.7) — whether it is working, whether it looks for a person (`handoff`), who
35
+ * answers, whether it is closed.
36
+ */
33
37
  export type DirectAnswer = {
34
38
  directConversation: string;
35
39
  replies: DirectReply[];
36
- status: string;
37
- responder: string;
40
+ working: boolean;
41
+ handoff: 'none' | 'pending';
42
+ responder: 'agent' | 'human';
43
+ closed: boolean;
38
44
  cursor: string;
39
45
  /** The `PapReplies` display, when the company wrote anything. */
40
46
  display: unknown;
@@ -40,7 +40,10 @@ export function directAnswerOf(raw, company) {
40
40
  if (!data ||
41
41
  typeof data.direct_conversation !== 'string' ||
42
42
  !Array.isArray(replies) ||
43
- typeof data.status !== 'string' ||
43
+ typeof data.working !== 'boolean' ||
44
+ typeof data.closed !== 'boolean' ||
45
+ (data.handoff !== 'none' && data.handoff !== 'pending') ||
46
+ (data.responder !== 'agent' && data.responder !== 'human') ||
44
47
  replies.some(reply => !reply ||
45
48
  typeof reply.text !== 'string' ||
46
49
  (reply.from !== 'agent' &&
@@ -56,8 +59,10 @@ export function directAnswerOf(raw, company) {
56
59
  ? { name: reply.name.trim() }
57
60
  : {}),
58
61
  })),
59
- status: data.status,
60
- responder: typeof data.responder === 'string' ? data.responder : '',
62
+ working: data.working,
63
+ handoff: data.handoff,
64
+ responder: data.responder,
65
+ closed: data.closed,
61
66
  cursor: typeof data.cursor === 'string' ? data.cursor : '',
62
67
  display: data.display ?? null,
63
68
  };
@@ -168,7 +173,7 @@ export function withDirectAnswer(open, answer, mine) {
168
173
  })),
169
174
  ],
170
175
  cursor: answer.cursor || open.cursor,
171
- closed: answer.status === 'closed',
176
+ closed: answer.closed,
172
177
  };
173
178
  }
174
179
  /** Who wrote a line, said apart: the person, the company's agent, one of its people. */
@@ -209,6 +209,18 @@ export const SERVER_ACTIONS = {
209
209
  odoo_accounting_list_untagged_tax_lines: ['read'],
210
210
  odoo_accounting_set_tax_periodicity: ['write'],
211
211
  odoo_accounting_set_tax_grids: ['write'],
212
+ odoo_accounting_find_document: ['read'],
213
+ odoo_accounting_import_ubl_bill: ['write'],
214
+ odoo_accounting_attach_document: ['write'],
215
+ odoo_accounting_list_attachments: ['read'],
216
+ odoo_accounting_reset_to_draft: ['write'],
217
+ odoo_accounting_delete_draft: ['delete'],
218
+ odoo_accounting_book_bank_line_split: ['write'],
219
+ odoo_accounting_prepare_vendor_payments: ['write'],
220
+ odoo_accounting_list_vendor_payments: ['read'],
221
+ odoo_accounting_vat_close_check: ['read'],
222
+ odoo_accounting_intervat_xml: ['read'],
223
+ odoo_accounting_record_return_submission: ['write'],
212
224
  read_benchmark: ['read'],
213
225
  read_benchmark_task: ['read'],
214
226
  read_benchmark_task_trajectory: ['read'],
@@ -710,17 +722,34 @@ export const SERVER_ACTIONS = {
710
722
  signs: {},
711
723
  },
712
724
  odoo: {
725
+ checked: '2026-11-08',
713
726
  default: [],
714
- tools: {},
727
+ tools: {
728
+ odoo_get_context: ['read'],
729
+ odoo_get_account: ['read'],
730
+ odoo_get_settings: ['read'],
731
+ odoo_list_companies: ['read'],
732
+ odoo_set_company: ['write'],
733
+ odoo_list_models: ['read'],
734
+ odoo_get_fields: ['read'],
735
+ odoo_search_records: ['read'],
736
+ odoo_read_records: ['read'],
737
+ odoo_group_records: ['read'],
738
+ odoo_create_record: ['write'],
739
+ odoo_update_records: ['write'],
740
+ odoo_delete_records: ['delete'],
741
+ },
715
742
  conditions: {},
716
743
  signs: {},
717
744
  },
718
745
  'odoo-accounting': {
719
- checked: '2026-10-05',
746
+ checked: '2026-11-08',
720
747
  default: [],
721
748
  tools: {
722
749
  odoo_accounting_list_invoices: ['read'],
723
750
  odoo_accounting_get_invoice: ['read'],
751
+ odoo_accounting_create_draft_invoice: ['write'],
752
+ odoo_accounting_post_invoice: ['write'],
724
753
  odoo_accounting_list_journal_entries: ['read'],
725
754
  odoo_accounting_list_open_balances: ['read'],
726
755
  odoo_accounting_list_accounts: ['read'],
@@ -728,8 +757,6 @@ export const SERVER_ACTIONS = {
728
757
  odoo_accounting_get_journal_entry: ['read'],
729
758
  odoo_accounting_trial_balance: ['read'],
730
759
  odoo_accounting_general_ledger: ['read'],
731
- odoo_accounting_create_draft_invoice: ['write'],
732
- odoo_accounting_post_invoice: ['write'],
733
760
  odoo_accounting_create_draft_journal_entry: ['write'],
734
761
  odoo_accounting_post_journal_entry: ['write'],
735
762
  odoo_accounting_list_partners: ['read'],
@@ -746,28 +773,40 @@ export const SERVER_ACTIONS = {
746
773
  odoo_accounting_suggest_bank_matches: ['read'],
747
774
  odoo_accounting_suggest_reconciliations: ['read'],
748
775
  odoo_accounting_explain_account_balance: ['read'],
749
- odoo_accounting_list_bank_feeds: ['read'],
750
- odoo_accounting_list_currency_rates: ['read'],
751
- odoo_accounting_get_lock_dates: ['read'],
752
776
  odoo_accounting_book_bank_line: ['write'],
777
+ odoo_accounting_book_bank_line_split: ['write'],
753
778
  odoo_accounting_match_bank_line: ['write'],
754
779
  odoo_accounting_reset_bank_line: ['write'],
755
780
  odoo_accounting_remove_duplicate_bank_lines: ['delete'],
781
+ odoo_accounting_list_bank_feeds: ['read'],
756
782
  odoo_accounting_link_bank_feed: ['write'],
757
783
  odoo_accounting_create_vendor_bill: ['write'],
758
784
  odoo_accounting_create_customer_invoice: ['write'],
785
+ odoo_accounting_list_currency_rates: ['read'],
759
786
  odoo_accounting_set_currency_rates: ['write'],
787
+ odoo_accounting_get_lock_dates: ['read'],
760
788
  odoo_accounting_set_lock_date: ['write'],
761
789
  odoo_accounting_create_matching_model: ['write'],
790
+ odoo_accounting_find_document: ['read'],
791
+ odoo_accounting_import_ubl_bill: ['write'],
792
+ odoo_accounting_attach_document: ['write'],
793
+ odoo_accounting_list_attachments: ['read'],
794
+ odoo_accounting_reset_to_draft: ['write'],
795
+ odoo_accounting_delete_draft: ['delete'],
796
+ odoo_accounting_prepare_vendor_payments: ['write'],
797
+ odoo_accounting_list_vendor_payments: ['read'],
762
798
  odoo_accounting_get_tax_settings: ['read'],
799
+ odoo_accounting_set_tax_periodicity: ['write'],
763
800
  odoo_accounting_list_tax_returns: ['read'],
764
801
  odoo_accounting_get_tax_return: ['read'],
765
802
  odoo_accounting_tax_grids: ['read'],
766
803
  odoo_accounting_list_tax_grid_lines: ['read'],
767
- odoo_accounting_check_tax_period: ['read'],
768
804
  odoo_accounting_list_untagged_tax_lines: ['read'],
769
- odoo_accounting_set_tax_periodicity: ['write'],
770
805
  odoo_accounting_set_tax_grids: ['write'],
806
+ odoo_accounting_check_tax_period: ['read'],
807
+ odoo_accounting_vat_close_check: ['read'],
808
+ odoo_accounting_intervat_xml: ['read'],
809
+ odoo_accounting_record_return_submission: ['write'],
771
810
  },
772
811
  conditions: {},
773
812
  signs: {},
@@ -887,15 +926,19 @@ export const PROTOCOL_TOOL_CLASSES = {
887
926
  export const APP_BEHAVIOURS = {
888
927
  accounting: {
889
928
  'odoo-accounting.odoo_accounting_aged_balance': 'do_it',
929
+ 'odoo-accounting.odoo_accounting_attach_document': 'leave_to_me',
890
930
  'odoo-accounting.odoo_accounting_bank_status': 'do_it',
891
931
  'odoo-accounting.odoo_accounting_book_bank_line': 'leave_to_me',
932
+ 'odoo-accounting.odoo_accounting_book_bank_line_split': 'leave_to_me',
892
933
  'odoo-accounting.odoo_accounting_check_tax_period': 'do_it',
893
934
  'odoo-accounting.odoo_accounting_create_customer_invoice': 'leave_to_me',
894
935
  'odoo-accounting.odoo_accounting_create_draft_invoice': 'leave_to_me',
895
936
  'odoo-accounting.odoo_accounting_create_draft_journal_entry': 'leave_to_me',
896
937
  'odoo-accounting.odoo_accounting_create_matching_model': 'leave_to_me',
897
938
  'odoo-accounting.odoo_accounting_create_vendor_bill': 'leave_to_me',
939
+ 'odoo-accounting.odoo_accounting_delete_draft': 'leave_to_me',
898
940
  'odoo-accounting.odoo_accounting_explain_account_balance': 'do_it',
941
+ 'odoo-accounting.odoo_accounting_find_document': 'do_it',
899
942
  'odoo-accounting.odoo_accounting_general_ledger': 'do_it',
900
943
  'odoo-accounting.odoo_accounting_get_asset': 'do_it',
901
944
  'odoo-accounting.odoo_accounting_get_bank_line': 'do_it',
@@ -904,9 +947,12 @@ export const APP_BEHAVIOURS = {
904
947
  'odoo-accounting.odoo_accounting_get_lock_dates': 'do_it',
905
948
  'odoo-accounting.odoo_accounting_get_tax_return': 'do_it',
906
949
  'odoo-accounting.odoo_accounting_get_tax_settings': 'do_it',
950
+ 'odoo-accounting.odoo_accounting_import_ubl_bill': 'leave_to_me',
951
+ 'odoo-accounting.odoo_accounting_intervat_xml': 'do_it',
907
952
  'odoo-accounting.odoo_accounting_link_bank_feed': 'leave_to_me',
908
953
  'odoo-accounting.odoo_accounting_list_accounts': 'do_it',
909
954
  'odoo-accounting.odoo_accounting_list_assets': 'do_it',
955
+ 'odoo-accounting.odoo_accounting_list_attachments': 'do_it',
910
956
  'odoo-accounting.odoo_accounting_list_bank_feeds': 'do_it',
911
957
  'odoo-accounting.odoo_accounting_list_bank_lines': 'do_it',
912
958
  'odoo-accounting.odoo_accounting_list_currency_rates': 'do_it',
@@ -919,13 +965,17 @@ export const APP_BEHAVIOURS = {
919
965
  'odoo-accounting.odoo_accounting_list_tax_returns': 'do_it',
920
966
  'odoo-accounting.odoo_accounting_list_taxes': 'do_it',
921
967
  'odoo-accounting.odoo_accounting_list_untagged_tax_lines': 'do_it',
968
+ 'odoo-accounting.odoo_accounting_list_vendor_payments': 'do_it',
922
969
  'odoo-accounting.odoo_accounting_match_bank_line': 'leave_to_me',
923
970
  'odoo-accounting.odoo_accounting_partner_ledger': 'do_it',
924
971
  'odoo-accounting.odoo_accounting_post_invoice': 'leave_to_me',
925
972
  'odoo-accounting.odoo_accounting_post_journal_entry': 'leave_to_me',
973
+ 'odoo-accounting.odoo_accounting_prepare_vendor_payments': 'leave_to_me',
926
974
  'odoo-accounting.odoo_accounting_reconcile_lines': 'leave_to_me',
975
+ 'odoo-accounting.odoo_accounting_record_return_submission': 'leave_to_me',
927
976
  'odoo-accounting.odoo_accounting_remove_duplicate_bank_lines': 'leave_to_me',
928
977
  'odoo-accounting.odoo_accounting_reset_bank_line': 'leave_to_me',
978
+ 'odoo-accounting.odoo_accounting_reset_to_draft': 'leave_to_me',
929
979
  'odoo-accounting.odoo_accounting_set_currency_rates': 'leave_to_me',
930
980
  'odoo-accounting.odoo_accounting_set_lock_date': 'leave_to_me',
931
981
  'odoo-accounting.odoo_accounting_set_tax_grids': 'leave_to_me',
@@ -935,6 +985,7 @@ export const APP_BEHAVIOURS = {
935
985
  'odoo-accounting.odoo_accounting_tax_grids': 'do_it',
936
986
  'odoo-accounting.odoo_accounting_trial_balance': 'do_it',
937
987
  'odoo-accounting.odoo_accounting_unreconcile_lines': 'leave_to_me',
988
+ 'odoo-accounting.odoo_accounting_vat_close_check': 'do_it',
938
989
  },
939
990
  'bookkeeping-desk': {},
940
991
  'change-detection': {
@@ -1213,15 +1264,19 @@ export const APP_BEHAVIOURS = {
1213
1264
  'model-choice': {},
1214
1265
  'month-end-close': {
1215
1266
  'odoo-accounting.odoo_accounting_aged_balance': 'do_it',
1267
+ 'odoo-accounting.odoo_accounting_attach_document': 'leave_to_me',
1216
1268
  'odoo-accounting.odoo_accounting_bank_status': 'do_it',
1217
1269
  'odoo-accounting.odoo_accounting_book_bank_line': 'leave_to_me',
1270
+ 'odoo-accounting.odoo_accounting_book_bank_line_split': 'leave_to_me',
1218
1271
  'odoo-accounting.odoo_accounting_check_tax_period': 'do_it',
1219
1272
  'odoo-accounting.odoo_accounting_create_customer_invoice': 'leave_to_me',
1220
1273
  'odoo-accounting.odoo_accounting_create_draft_invoice': 'leave_to_me',
1221
1274
  'odoo-accounting.odoo_accounting_create_draft_journal_entry': 'leave_to_me',
1222
1275
  'odoo-accounting.odoo_accounting_create_matching_model': 'leave_to_me',
1223
1276
  'odoo-accounting.odoo_accounting_create_vendor_bill': 'leave_to_me',
1277
+ 'odoo-accounting.odoo_accounting_delete_draft': 'leave_to_me',
1224
1278
  'odoo-accounting.odoo_accounting_explain_account_balance': 'do_it',
1279
+ 'odoo-accounting.odoo_accounting_find_document': 'do_it',
1225
1280
  'odoo-accounting.odoo_accounting_general_ledger': 'do_it',
1226
1281
  'odoo-accounting.odoo_accounting_get_asset': 'do_it',
1227
1282
  'odoo-accounting.odoo_accounting_get_bank_line': 'do_it',
@@ -1230,9 +1285,12 @@ export const APP_BEHAVIOURS = {
1230
1285
  'odoo-accounting.odoo_accounting_get_lock_dates': 'do_it',
1231
1286
  'odoo-accounting.odoo_accounting_get_tax_return': 'do_it',
1232
1287
  'odoo-accounting.odoo_accounting_get_tax_settings': 'do_it',
1288
+ 'odoo-accounting.odoo_accounting_import_ubl_bill': 'leave_to_me',
1289
+ 'odoo-accounting.odoo_accounting_intervat_xml': 'do_it',
1233
1290
  'odoo-accounting.odoo_accounting_link_bank_feed': 'leave_to_me',
1234
1291
  'odoo-accounting.odoo_accounting_list_accounts': 'do_it',
1235
1292
  'odoo-accounting.odoo_accounting_list_assets': 'do_it',
1293
+ 'odoo-accounting.odoo_accounting_list_attachments': 'do_it',
1236
1294
  'odoo-accounting.odoo_accounting_list_bank_feeds': 'do_it',
1237
1295
  'odoo-accounting.odoo_accounting_list_bank_lines': 'do_it',
1238
1296
  'odoo-accounting.odoo_accounting_list_currency_rates': 'do_it',
@@ -1245,13 +1303,17 @@ export const APP_BEHAVIOURS = {
1245
1303
  'odoo-accounting.odoo_accounting_list_tax_returns': 'do_it',
1246
1304
  'odoo-accounting.odoo_accounting_list_taxes': 'do_it',
1247
1305
  'odoo-accounting.odoo_accounting_list_untagged_tax_lines': 'do_it',
1306
+ 'odoo-accounting.odoo_accounting_list_vendor_payments': 'do_it',
1248
1307
  'odoo-accounting.odoo_accounting_match_bank_line': 'leave_to_me',
1249
1308
  'odoo-accounting.odoo_accounting_partner_ledger': 'do_it',
1250
1309
  'odoo-accounting.odoo_accounting_post_invoice': 'leave_to_me',
1251
1310
  'odoo-accounting.odoo_accounting_post_journal_entry': 'leave_to_me',
1311
+ 'odoo-accounting.odoo_accounting_prepare_vendor_payments': 'leave_to_me',
1252
1312
  'odoo-accounting.odoo_accounting_reconcile_lines': 'leave_to_me',
1313
+ 'odoo-accounting.odoo_accounting_record_return_submission': 'leave_to_me',
1253
1314
  'odoo-accounting.odoo_accounting_remove_duplicate_bank_lines': 'leave_to_me',
1254
1315
  'odoo-accounting.odoo_accounting_reset_bank_line': 'leave_to_me',
1316
+ 'odoo-accounting.odoo_accounting_reset_to_draft': 'leave_to_me',
1255
1317
  'odoo-accounting.odoo_accounting_set_currency_rates': 'leave_to_me',
1256
1318
  'odoo-accounting.odoo_accounting_set_lock_date': 'leave_to_me',
1257
1319
  'odoo-accounting.odoo_accounting_set_tax_grids': 'leave_to_me',
@@ -1261,6 +1323,7 @@ export const APP_BEHAVIOURS = {
1261
1323
  'odoo-accounting.odoo_accounting_tax_grids': 'do_it',
1262
1324
  'odoo-accounting.odoo_accounting_trial_balance': 'do_it',
1263
1325
  'odoo-accounting.odoo_accounting_unreconcile_lines': 'leave_to_me',
1326
+ 'odoo-accounting.odoo_accounting_vat_close_check': 'do_it',
1264
1327
  },
1265
1328
  'order-desk': {},
1266
1329
  'order-tracker': {},
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025-2026 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- import { ALPHAVANTAGE_MCP_SERVER_0_0_1, BLUESKY_MCP_SERVER_0_0_1, CHART_MCP_SERVER_0_0_1, DISCORD_MCP_SERVER_0_0_1, EARTHDATA_MCP_SERVER_0_0_1, EURUS_MCP_SERVER_0_0_1, FILESYSTEM_MCP_SERVER_0_0_1, GITHUB_MCP_SERVER_0_0_1, GOOGLE_WORKSPACE_MCP_SERVER_0_0_1, HUGGINGFACE_MCP_SERVER_0_0_1, KAGGLE_MCP_SERVER_0_0_1, LINKEDIN_MCP_SERVER_0_0_1, ODOO_MCP_SERVER_0_0_1, SALESFORCE_MCP_SERVER_0_0_1, SLACK_MCP_SERVER_0_0_1, TAVILY_MCP_SERVER_0_0_1, X_MCP_SERVER_0_0_1, } from '../mcpServers.js';
5
+ import { ALPHAVANTAGE_MCP_SERVER_0_0_1, BLUESKY_MCP_SERVER_0_0_1, CHART_MCP_SERVER_0_0_1, DISCORD_MCP_SERVER_0_0_1, EARTHDATA_MCP_SERVER_0_0_1, EURUS_MCP_SERVER_0_0_1, FILESYSTEM_MCP_SERVER_0_0_1, GITHUB_MCP_SERVER_0_0_1, GOOGLE_WORKSPACE_MCP_SERVER_0_0_1, HUGGINGFACE_MCP_SERVER_0_0_1, KAGGLE_MCP_SERVER_0_0_1, LINKEDIN_MCP_SERVER_0_0_1, ODOO_MCP_SERVER_0_0_1, ODOO_ACCOUNTING_MCP_SERVER_0_0_1, SALESFORCE_MCP_SERVER_0_0_1, SLACK_MCP_SERVER_0_0_1, TAVILY_MCP_SERVER_0_0_1, X_MCP_SERVER_0_0_1, } from '../mcpServers.js';
6
6
  import { ACCOUNTING_SKILL_SPEC_0_0_1, CRAWL_SKILL_SPEC_0_0_1, EVENTS_SKILL_SPEC_0_0_1, GITHUB_SKILL_SPEC_0_0_1, IMAGE_SKILL_SPEC_0_0_1, JOKES_SKILL_SPEC_0_0_1, PDF_SKILL_SPEC_0_0_1, TEXT_SUMMARIZER_SKILL_SPEC_0_0_1, VIDEO_SKILL_SPEC_0_0_1, } from '../skills.js';
7
7
  import { DECIDE_BACKEND_TOOL_SPEC_0_0_1, EXAMPLE_CREATE_PLAN_BACKEND_TOOL_SPEC_0_0_1, EXAMPLE_CURRENT_TIME_BACKEND_TOOL_SPEC_0_0_1, EXAMPLE_DISPLAY_RECIPE_BACKEND_TOOL_SPEC_0_0_1, EXAMPLE_GENERATE_HAIKU_BACKEND_TOOL_SPEC_0_0_1, EXAMPLE_GENERATE_TASK_STEPS_BACKEND_TOOL_SPEC_0_0_1, EXAMPLE_GET_WEATHER_BACKEND_TOOL_SPEC_0_0_1, EXAMPLE_RENDER_A2UI_SURFACE_BACKEND_TOOL_SPEC_0_0_1, EXAMPLE_UPDATE_PLAN_STEP_BACKEND_TOOL_SPEC_0_0_1, RUNTIME_ECHO_BACKEND_TOOL_SPEC_0_0_1, RUNTIME_SEND_MAIL_BACKEND_TOOL_SPEC_0_0_1, RUNTIME_SENSITIVE_ECHO_BACKEND_TOOL_SPEC_0_0_1, } from '../backendTools.js';
8
8
  import { ARENA_INVADERS_FRONTEND_TOOL_SPEC_0_0_1, ARENA_PONG_FRONTEND_TOOL_SPEC_0_0_1, CELLS_FRONTEND_TOOL_SPEC_0_0_1, DECKS_FRONTEND_TOOL_SPEC_0_0_1, JUPYTER_NOTEBOOK_EDIT_FRONTEND_TOOL_SPEC_0_0_1, JUPYTER_NOTEBOOK_PROPOSE_FRONTEND_TOOL_SPEC_0_0_1, JUPYTER_NOTEBOOK_READ_FRONTEND_TOOL_SPEC_0_0_1, JUPYTER_NOTEBOOK_FRONTEND_TOOL_SPEC_0_0_1, LEXICAL_DOCUMENT_FRONTEND_TOOL_SPEC_0_0_1, } from '../frontendTools.js';
@@ -36,6 +36,8 @@ const MCP_SERVER_MAP = {
36
36
  linkedin: LINKEDIN_MCP_SERVER_0_0_1,
37
37
  'odoo:0.0.1': ODOO_MCP_SERVER_0_0_1,
38
38
  odoo: ODOO_MCP_SERVER_0_0_1,
39
+ 'odoo-accounting:0.0.1': ODOO_ACCOUNTING_MCP_SERVER_0_0_1,
40
+ 'odoo-accounting': ODOO_ACCOUNTING_MCP_SERVER_0_0_1,
39
41
  'salesforce:0.0.1': SALESFORCE_MCP_SERVER_0_0_1,
40
42
  salesforce: SALESFORCE_MCP_SERVER_0_0_1,
41
43
  'slack:0.0.1': SLACK_MCP_SERVER_0_0_1,
@@ -6333,7 +6335,10 @@ export const WORKER_ACCOUNTANT_AGENTSPEC_0_0_1 = {
6333
6335
  domain: 'accounting',
6334
6336
  enabled: false,
6335
6337
  model: 'bedrock:us.anthropic.claude-sonnet-4-6',
6336
- mcpServers: [MCP_SERVER_MAP['odoo:0.0.1']],
6338
+ mcpServers: [
6339
+ MCP_SERVER_MAP['odoo:0.0.1'],
6340
+ MCP_SERVER_MAP['odoo-accounting:0.0.1'],
6341
+ ],
6337
6342
  skills: [
6338
6343
  SKILL_MAP['accounting:0.0.1']
6339
6344
  ? toAgentSkillSpec(SKILL_MAP['accounting:0.0.1'])
@@ -6367,7 +6372,7 @@ export const WORKER_ACCOUNTANT_AGENTSPEC_0_0_1 = {
6367
6372
  welcomeDocument: undefined,
6368
6373
  sandboxVariant: 'jupyter-server',
6369
6374
  harness: 'pydantic-ai',
6370
- systemPrompt: `You are a specialized assistant for this gallery workflow: Accountant. Objective: Use Odoo data to perform accounting workflows including reconciliation, aging analysis, journal checks, and close summaries. Use the Odoo MCP server for ERP operations and the notebook/runtime tools for calculations and structured outputs. Keep results concise, auditable, and action-oriented.`,
6375
+ systemPrompt: `You are a specialized assistant for this gallery workflow: Accountant. Objective: Use Odoo data to perform accounting workflows including reconciliation, aging analysis, journal checks, and close summaries. Use the Odoo Accounting MCP server for invoices, entries, ledgers, bank lines and taxes, the Odoo MCP server for any other record, and the notebook/runtime tools for calculations and structured outputs. Keep results concise, auditable, and action-oriented.`,
6371
6376
  systemPromptCodemodeAddons: `Prefer deterministic steps, preserve traceability of calculations, and present clear exceptions with recommended follow-up actions.`,
6372
6377
  goal: undefined,
6373
6378
  delegable: [
@@ -6736,7 +6741,10 @@ export const WORKER_AP_INVOICE_AGENTSPEC_0_0_1 = {
6736
6741
  domain: 'accounting',
6737
6742
  enabled: false,
6738
6743
  model: 'bedrock:us.anthropic.claude-sonnet-4-6',
6739
- mcpServers: [MCP_SERVER_MAP['odoo:0.0.1']],
6744
+ mcpServers: [
6745
+ MCP_SERVER_MAP['odoo:0.0.1'],
6746
+ MCP_SERVER_MAP['odoo-accounting:0.0.1'],
6747
+ ],
6740
6748
  skills: [
6741
6749
  SKILL_MAP['accounting:0.0.1']
6742
6750
  ? toAgentSkillSpec(SKILL_MAP['accounting:0.0.1'])
@@ -6909,7 +6917,10 @@ export const WORKER_AUDIT_PACK_BUILDER_AGENTSPEC_0_0_1 = {
6909
6917
  domain: 'accounting',
6910
6918
  enabled: false,
6911
6919
  model: 'bedrock:us.anthropic.claude-sonnet-4-6',
6912
- mcpServers: [MCP_SERVER_MAP['odoo:0.0.1']],
6920
+ mcpServers: [
6921
+ MCP_SERVER_MAP['odoo:0.0.1'],
6922
+ MCP_SERVER_MAP['odoo-accounting:0.0.1'],
6923
+ ],
6913
6924
  skills: [
6914
6925
  SKILL_MAP['accounting:0.0.1']
6915
6926
  ? toAgentSkillSpec(SKILL_MAP['accounting:0.0.1'])
@@ -7173,7 +7184,10 @@ export const WORKER_BANK_RECONCILIATION_AGENTSPEC_0_0_1 = {
7173
7184
  domain: 'accounting',
7174
7185
  enabled: false,
7175
7186
  model: 'bedrock:us.anthropic.claude-sonnet-4-6',
7176
- mcpServers: [MCP_SERVER_MAP['odoo:0.0.1']],
7187
+ mcpServers: [
7188
+ MCP_SERVER_MAP['odoo:0.0.1'],
7189
+ MCP_SERVER_MAP['odoo-accounting:0.0.1'],
7190
+ ],
7177
7191
  skills: [
7178
7192
  SKILL_MAP['accounting:0.0.1']
7179
7193
  ? toAgentSkillSpec(SKILL_MAP['accounting:0.0.1'])
@@ -7828,7 +7842,10 @@ export const WORKER_COLLECTIONS_AGENTSPEC_0_0_1 = {
7828
7842
  domain: 'accounting',
7829
7843
  enabled: false,
7830
7844
  model: 'bedrock:us.anthropic.claude-sonnet-4-6',
7831
- mcpServers: [MCP_SERVER_MAP['odoo:0.0.1']],
7845
+ mcpServers: [
7846
+ MCP_SERVER_MAP['odoo:0.0.1'],
7847
+ MCP_SERVER_MAP['odoo-accounting:0.0.1'],
7848
+ ],
7832
7849
  skills: [
7833
7850
  SKILL_MAP['accounting:0.0.1']
7834
7851
  ? toAgentSkillSpec(SKILL_MAP['accounting:0.0.1'])
@@ -9434,7 +9451,10 @@ export const WORKER_EXPENSE_AUDIT_AGENTSPEC_0_0_1 = {
9434
9451
  domain: 'accounting',
9435
9452
  enabled: false,
9436
9453
  model: 'bedrock:us.anthropic.claude-sonnet-4-6',
9437
- mcpServers: [MCP_SERVER_MAP['odoo:0.0.1']],
9454
+ mcpServers: [
9455
+ MCP_SERVER_MAP['odoo:0.0.1'],
9456
+ MCP_SERVER_MAP['odoo-accounting:0.0.1'],
9457
+ ],
9438
9458
  skills: [
9439
9459
  SKILL_MAP['accounting:0.0.1']
9440
9460
  ? toAgentSkillSpec(SKILL_MAP['accounting:0.0.1'])
@@ -11086,7 +11106,10 @@ export const WORKER_MONTH_END_CLOSE_AGENTSPEC_0_0_1 = {
11086
11106
  domain: 'accounting',
11087
11107
  enabled: false,
11088
11108
  model: 'bedrock:us.anthropic.claude-sonnet-4-6',
11089
- mcpServers: [MCP_SERVER_MAP['odoo:0.0.1']],
11109
+ mcpServers: [
11110
+ MCP_SERVER_MAP['odoo:0.0.1'],
11111
+ MCP_SERVER_MAP['odoo-accounting:0.0.1'],
11112
+ ],
11090
11113
  skills: [
11091
11114
  SKILL_MAP['accounting:0.0.1']
11092
11115
  ? toAgentSkillSpec(SKILL_MAP['accounting:0.0.1'])
package/lib/specs/apps.js CHANGED
@@ -161,10 +161,7 @@ export const ACCOUNTING_APP_0_0_2 = {
161
161
  emoji: '🧾',
162
162
  avatar: '',
163
163
  banner: '',
164
- setup: [
165
- "The agent 'worker-accountant:0.0.1' is not enabled.",
166
- "The MCP server 'odoo-accounting:0.0.1' is not enabled.",
167
- ],
164
+ setup: ["The agent 'worker-accountant:0.0.1' is not enabled."],
168
165
  };
169
166
  export const BOOKKEEPING_DESK_APP_0_0_3 = {
170
167
  schema: 'loop.app/v1',
@@ -226,6 +223,8 @@ export const BOOKKEEPING_DESK_APP_0_0_3 = {
226
223
  enabled: true,
227
224
  signedOut: false,
228
225
  signInDisabled: false,
226
+ webUnscoped: false,
227
+ webDisabled: false,
229
228
  publishSkills: false,
230
229
  interfaces: ['agent'],
231
230
  scopes: [
@@ -2030,6 +2029,8 @@ export const EXCHANGE_DESK_APP_0_0_3 = {
2030
2029
  enabled: true,
2031
2030
  signedOut: true,
2032
2031
  signInDisabled: false,
2032
+ webUnscoped: false,
2033
+ webDisabled: false,
2033
2034
  publishSkills: false,
2034
2035
  interfaces: ['agent', 'openapi'],
2035
2036
  scopes: [
@@ -2565,6 +2566,8 @@ export const LIVE_SHOP_CHAT_APP_0_0_2 = {
2565
2566
  enabled: false,
2566
2567
  signedOut: true,
2567
2568
  signInDisabled: false,
2569
+ webUnscoped: false,
2570
+ webDisabled: false,
2568
2571
  publishSkills: false,
2569
2572
  interfaces: ['agent'],
2570
2573
  scopes: [],
@@ -3310,10 +3313,7 @@ export const MONTH_END_CLOSE_APP_0_0_2 = {
3310
3313
  emoji: '🗓️',
3311
3314
  avatar: '',
3312
3315
  banner: '',
3313
- setup: [
3314
- "The agent 'worker-month-end-close:0.0.1' is not enabled.",
3315
- "The MCP server 'odoo-accounting:0.0.1' is not enabled.",
3316
- ],
3316
+ setup: ["The agent 'worker-month-end-close:0.0.1' is not enabled."],
3317
3317
  };
3318
3318
  export const ORDER_DESK_APP_0_0_2 = {
3319
3319
  schema: 'loop.app/v1',
@@ -3360,6 +3360,8 @@ export const ORDER_DESK_APP_0_0_2 = {
3360
3360
  enabled: false,
3361
3361
  signedOut: true,
3362
3362
  signInDisabled: false,
3363
+ webUnscoped: false,
3364
+ webDisabled: false,
3363
3365
  publishSkills: false,
3364
3366
  interfaces: ['agent'],
3365
3367
  scopes: [],
@@ -3541,6 +3543,8 @@ export const ORDER_TRACKER_APP_0_0_2 = {
3541
3543
  enabled: false,
3542
3544
  signedOut: true,
3543
3545
  signInDisabled: false,
3546
+ webUnscoped: false,
3547
+ webDisabled: false,
3544
3548
  publishSkills: false,
3545
3549
  interfaces: ['agent'],
3546
3550
  scopes: [],
@@ -4704,6 +4708,8 @@ export const RETURNS_DESK_APP_0_0_2 = {
4704
4708
  enabled: false,
4705
4709
  signedOut: true,
4706
4710
  signInDisabled: false,
4711
+ webUnscoped: false,
4712
+ webDisabled: false,
4707
4713
  publishSkills: false,
4708
4714
  interfaces: ['agent'],
4709
4715
  scopes: [],
@@ -5355,6 +5361,8 @@ export const SHOP_CONCIERGE_APP_0_0_2 = {
5355
5361
  enabled: false,
5356
5362
  signedOut: true,
5357
5363
  signInDisabled: false,
5364
+ webUnscoped: false,
5365
+ webDisabled: false,
5358
5366
  publishSkills: false,
5359
5367
  interfaces: ['agent'],
5360
5368
  scopes: [],
@@ -5702,6 +5710,8 @@ export const SIGN_IN_DESK_APP_0_0_2 = {
5702
5710
  enabled: false,
5703
5711
  signedOut: true,
5704
5712
  signInDisabled: false,
5713
+ webUnscoped: false,
5714
+ webDisabled: false,
5705
5715
  publishSkills: false,
5706
5716
  interfaces: ['agent'],
5707
5717
  scopes: [],
@@ -1212,7 +1212,7 @@ export const APPSPEC_SCHEMA = {
1212
1212
  },
1213
1213
  AppPapCompany: {
1214
1214
  additionalProperties: false,
1215
- description: "The application is a company personal agents work with.\n\nPublished at PAP 0.3 as published: the application's `avatar` is served to personal agents\nas the company's logo (`organization.logo_uri`), and `sign_in_disabled` turns sign-in off\nfor them (`auth.disabled`), the company then answering them signed out only.",
1215
+ description: "The application is a company personal agents work with.\n\nPublished at PAP 0.3 as published: the application's `avatar` is served to personal agents\nas the company's logo (`organization.logo_uri`), and `sign_in_disabled` turns sign-in off\nfor them (`auth.disabled`), the company then answering them signed out only. At PAP draft 0.4\nits website says two things of itself (§6): `web_unscoped`, a browser signed in for the person\nhas everything the account can do there (`web.unscoped`), and `web_disabled`, personal agents\nare asked to use its agent and APIs rather than its website (`web.disabled`). The protocol\nversions it serves are the platform's, never an Appspec's.",
1216
1216
  properties: {
1217
1217
  enabled: {
1218
1218
  default: false,
@@ -1232,6 +1232,18 @@ export const APPSPEC_SCHEMA = {
1232
1232
  title: 'Sign In Disabled',
1233
1233
  type: 'boolean',
1234
1234
  },
1235
+ web_unscoped: {
1236
+ default: false,
1237
+ description: 'Whether a browser signed in for the person on its website has everything the account can do there, not only what the person approved (`web.unscoped`, PAP draft 0.4 §6): the person is told so when they sign in. Needs the `web` interface',
1238
+ title: 'Web Unscoped',
1239
+ type: 'boolean',
1240
+ },
1241
+ web_disabled: {
1242
+ default: false,
1243
+ description: 'Whether it asks personal agents not to use its website, but its agent and APIs (`web.disabled`, PAP draft 0.4 §6): a preference, not enforced. It then lists no `web` interface, and offers `agent` or `openapi`',
1244
+ title: 'Web Disabled',
1245
+ type: 'boolean',
1246
+ },
1235
1247
  publish_skills: {
1236
1248
  default: false,
1237
1249
  description: "Whether it publishes the application's skills to personal agents as a `skill_index` (PAP 0.3 §9.4, the pinned Agent Skills revision): only the skills whose SKILL.md says it is public and that need no secret are listed, Company content granting no access",
@@ -49,7 +49,7 @@ export const DECK_RACE_BATTLE_0_0_1 = {
49
49
  eval: 'llm-judge:0.0.1',
50
50
  config: {
51
51
  threshold: 0.7,
52
- rubric: 'The contestant reports a deck with a title and at least three slides on the brief: why the newsletter helps, what goes in it, who writes what, and a closing call to sign up.',
52
+ rubric: 'The deck in the arena has a title and at least three slides on the brief: why the newsletter helps, what goes in it, who writes what, and a closing call to sign up.',
53
53
  },
54
54
  says: 'It built the deck the brief asked for.',
55
55
  },
@@ -110,7 +110,7 @@ export const INVADERS_BATTLE_0_0_1 = {
110
110
  eval: 'llm-judge:0.0.1',
111
111
  config: {
112
112
  threshold: 0.6,
113
- rubric: 'The player watched the arena, moved its cannon under the invader the arena named and fired, and moved away from a bomb it was told about.',
113
+ rubric: 'The player watched the arena (arena_watch or arena_read), moved its cannon under the invaders and fired, and its cannon was not hit by a bomb it had been warned of.',
114
114
  },
115
115
  says: 'The player played the arena, not around it.',
116
116
  },
@@ -170,7 +170,7 @@ export const INVOICE_RACE_BATTLE_0_0_1 = {
170
170
  eval: 'llm-judge:0.0.1',
171
171
  config: {
172
172
  threshold: 0.7,
173
- rubric: 'The answer lists the customer invoices still open, each named, and gives the total due as one figure; it invents no invoice.',
173
+ rubric: "The answer lists the customer invoices still open, each named, and gives the total due as one figure; each invoice comes from what the run read from the books, as its members' tool calls and answers show.",
174
174
  },
175
175
  says: 'It listed the open invoices and a total, as the goal asked.',
176
176
  },
@@ -231,7 +231,7 @@ export const PONG_BATTLE_0_0_1 = {
231
231
  eval: 'llm-judge:0.0.1',
232
232
  config: {
233
233
  threshold: 0.6,
234
- rubric: 'The player watched the arena, moved its paddle where the arena said the ball arrived, and served when the serve was its own; it did not idle while the ball came to it.',
234
+ rubric: 'The player watched the arena (arena_watch or arena_read), moved its paddle as the ball came and served when the serve was its own; its tool calls and moves show it played rather than idled.',
235
235
  },
236
236
  says: 'The player played the arena, not around it.',
237
237
  },
@@ -284,7 +284,7 @@ export const REPORT_CHALLENGE_BATTLE_0_0_1 = {
284
284
  eval: 'llm-judge:0.0.1',
285
285
  config: {
286
286
  threshold: 0.7,
287
- rubric: 'The summary covers what was asked and rests on figures the run read from the books; it says what it could not check.',
287
+ rubric: 'The summary says where the close stands, what is to book and what is still open, with figures the run read from the books, as its tool calls show; where it could not check a figure, it says so.',
288
288
  },
289
289
  says: 'The summary is complete and grounded.',
290
290
  },
@@ -347,7 +347,7 @@ export const SHEET_RACE_BATTLE_0_0_1 = {
347
347
  eval: 'llm-judge:0.0.1',
348
348
  config: {
349
349
  threshold: 0.7,
350
- rubric: 'The contestant reports a workbook with the figures the brief asked for, their totals, and a chart.',
350
+ rubric: 'The sheet in the arena holds a header row, a row per day from Monday to Sunday with the loaves and the revenue, a totals row computed by formulas, and a chart of the revenue by day.',
351
351
  },
352
352
  says: 'It filled the sheet the brief asked for, chart included.',
353
353
  },