@datalayer/agent-runtimes 1.3.46 → 1.3.48
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.
- package/lib/loop/plugins/chat/ChatView.js +12 -2
- package/lib/specs/actions.js +147 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import { computed, signal } from '@datalayer/reactor';
|
|
|
8
8
|
const NO_STANCE = signal(undefined);
|
|
9
9
|
import { useContributions, useSignalValue, useGate, useReactorPlatform, ReactorLazy, ReactorSlot, useSlotComponents, } from '@datalayer/reactor/react';
|
|
10
10
|
import { ChatBase } from '../../../chat/base/ChatBase';
|
|
11
|
+
import { useChatAvailability } from '../../../chat/base/ChatAvailability';
|
|
11
12
|
import { offeredModels as offeredModelsFor, readServerCatalogue, readServerDecisions, } from '../../../chat/base/modelChoice';
|
|
12
13
|
import { SUGGESTION_CHIP_WIDTH } from '../../../chat/display/EmptyState';
|
|
13
14
|
import { AnonymousKeyExpired } from '@datalayer/core/lib/components/anonymous/AnonymousKeyExpired';
|
|
@@ -997,12 +998,21 @@ export default function ChatView({ workspace }) {
|
|
|
997
998
|
* for something that was never theirs.
|
|
998
999
|
*/
|
|
999
1000
|
const expiredKeyIsTemporary = !signedInUser;
|
|
1000
|
-
|
|
1001
|
+
/*
|
|
1002
|
+
* What its host said of whether there is anything to talk to
|
|
1003
|
+
* (`ChatAvailabilityProvider`): an application whose model is not offered
|
|
1004
|
+
* or not served (LOOP R-27) is switched off with the reason, by the
|
|
1005
|
+
* Studio's Preview and the hosted page, rather than left unanswered.
|
|
1006
|
+
*/
|
|
1007
|
+
const ambient = useChatAvailability();
|
|
1008
|
+
const chatDisabled = gateBlocked || keyExpired || Boolean(inPageRefusal) || ambient.disabled;
|
|
1001
1009
|
const disabledReason = keyExpired
|
|
1002
1010
|
? expiredKeyIsTemporary
|
|
1003
1011
|
? 'This demo runs on a shared key, and its time is up. Sign in to keep going.'
|
|
1004
1012
|
: 'Your key has expired. Sign in to keep going.'
|
|
1005
|
-
: (inPageRefusal ??
|
|
1013
|
+
: (inPageRefusal ??
|
|
1014
|
+
gateReason ??
|
|
1015
|
+
(ambient.disabled ? ambient.disableReason : undefined));
|
|
1006
1016
|
/*
|
|
1007
1017
|
* The prompt's text, held here rather than inside `InputPrompt`.
|
|
1008
1018
|
*
|
package/lib/specs/actions.js
CHANGED
|
@@ -78,8 +78,154 @@ export const SERVER_ACTIONS = {
|
|
|
78
78
|
conditions: {},
|
|
79
79
|
},
|
|
80
80
|
datalayer: {
|
|
81
|
+
checked: '2026-10-05',
|
|
81
82
|
default: [],
|
|
82
|
-
tools: {
|
|
83
|
+
tools: {
|
|
84
|
+
read_notebook: ['read'],
|
|
85
|
+
read_cell: ['read'],
|
|
86
|
+
download_notebook: ['read'],
|
|
87
|
+
list_notebooks: ['read'],
|
|
88
|
+
list_spaces: ['read'],
|
|
89
|
+
list_space_notebooks: ['read'],
|
|
90
|
+
find_notebook: ['read'],
|
|
91
|
+
list_notebook_versions: ['read'],
|
|
92
|
+
list_kernels: ['read'],
|
|
93
|
+
list_files: ['read'],
|
|
94
|
+
list_sandboxes: ['read'],
|
|
95
|
+
list_toolsets: ['read'],
|
|
96
|
+
search_library: ['read'],
|
|
97
|
+
get_library_artifact: ['read'],
|
|
98
|
+
read_library_artifact: ['read'],
|
|
99
|
+
search_earth_datasets: ['read'],
|
|
100
|
+
search_earth_datagranules: ['read'],
|
|
101
|
+
download_earth_data_granules: ['read'],
|
|
102
|
+
odoo_get_context: ['read'],
|
|
103
|
+
odoo_get_account: ['read'],
|
|
104
|
+
odoo_get_settings: ['read'],
|
|
105
|
+
odoo_list_companies: ['read'],
|
|
106
|
+
odoo_set_company: ['write'],
|
|
107
|
+
odoo_list_models: ['read'],
|
|
108
|
+
odoo_get_fields: ['read'],
|
|
109
|
+
odoo_search_records: ['read'],
|
|
110
|
+
odoo_read_records: ['read'],
|
|
111
|
+
odoo_group_records: ['read'],
|
|
112
|
+
odoo_create_record: ['write'],
|
|
113
|
+
odoo_update_records: ['write'],
|
|
114
|
+
odoo_delete_records: ['delete'],
|
|
115
|
+
odoo_accounting_list_invoices: ['read'],
|
|
116
|
+
odoo_accounting_get_invoice: ['read'],
|
|
117
|
+
odoo_accounting_list_journal_entries: ['read'],
|
|
118
|
+
odoo_accounting_list_open_balances: ['read'],
|
|
119
|
+
odoo_accounting_list_accounts: ['read'],
|
|
120
|
+
odoo_accounting_list_journals: ['read'],
|
|
121
|
+
odoo_accounting_get_journal_entry: ['read'],
|
|
122
|
+
odoo_accounting_trial_balance: ['read'],
|
|
123
|
+
odoo_accounting_general_ledger: ['read'],
|
|
124
|
+
odoo_winauditor_preview_balance: ['read'],
|
|
125
|
+
odoo_winauditor_preview_general_journal: ['read'],
|
|
126
|
+
odoo_winauditor_preview_general_ledger: ['read'],
|
|
127
|
+
odoo_accounting_create_draft_invoice: ['write'],
|
|
128
|
+
odoo_accounting_post_invoice: ['write'],
|
|
129
|
+
odoo_accounting_create_draft_journal_entry: ['write'],
|
|
130
|
+
odoo_accounting_post_journal_entry: ['write'],
|
|
131
|
+
odoo_winauditor_import_balance: ['write'],
|
|
132
|
+
odoo_winauditor_import_general_journal: ['write'],
|
|
133
|
+
odoo_winauditor_import_general_ledger: ['write'],
|
|
134
|
+
odoo_winauditor_preview_import_file: ['read'],
|
|
135
|
+
odoo_winauditor_migration_status: ['read'],
|
|
136
|
+
odoo_winauditor_import_partners: ['write'],
|
|
137
|
+
odoo_winauditor_import_chart_of_accounts: ['write'],
|
|
138
|
+
odoo_winauditor_ensure_journals: ['write'],
|
|
139
|
+
odoo_winauditor_import_journal_items: ['write'],
|
|
140
|
+
odoo_winauditor_post_migration_entries: ['write'],
|
|
141
|
+
odoo_winauditor_reconcile_journal_items: ['write'],
|
|
142
|
+
odoo_winauditor_import_assets: ['write'],
|
|
143
|
+
odoo_winauditor_validate_assets: ['write'],
|
|
144
|
+
odoo_winauditor_rollback_migration: ['delete'],
|
|
145
|
+
odoo_winauditor_attach_document: ['write'],
|
|
146
|
+
odoo_winauditor_list_attachments: ['read'],
|
|
147
|
+
odoo_winauditor_validate_migration: ['read'],
|
|
148
|
+
odoo_accounting_list_partners: ['read'],
|
|
149
|
+
odoo_accounting_partner_ledger: ['read'],
|
|
150
|
+
odoo_accounting_aged_balance: ['read'],
|
|
151
|
+
odoo_accounting_list_taxes: ['read'],
|
|
152
|
+
odoo_accounting_list_assets: ['read'],
|
|
153
|
+
odoo_accounting_get_asset: ['read'],
|
|
154
|
+
odoo_accounting_reconcile_lines: ['write'],
|
|
155
|
+
odoo_accounting_unreconcile_lines: ['write'],
|
|
156
|
+
odoo_accounting_bank_status: ['read'],
|
|
157
|
+
odoo_accounting_list_bank_lines: ['read'],
|
|
158
|
+
odoo_accounting_get_bank_line: ['read'],
|
|
159
|
+
odoo_accounting_suggest_bank_matches: ['read'],
|
|
160
|
+
odoo_accounting_suggest_reconciliations: ['read'],
|
|
161
|
+
odoo_accounting_explain_account_balance: ['read'],
|
|
162
|
+
odoo_accounting_list_bank_feeds: ['read'],
|
|
163
|
+
odoo_accounting_list_currency_rates: ['read'],
|
|
164
|
+
odoo_accounting_get_lock_dates: ['read'],
|
|
165
|
+
odoo_accounting_book_bank_line: ['write'],
|
|
166
|
+
odoo_accounting_match_bank_line: ['write'],
|
|
167
|
+
odoo_accounting_reset_bank_line: ['write'],
|
|
168
|
+
odoo_accounting_remove_duplicate_bank_lines: ['delete'],
|
|
169
|
+
odoo_accounting_link_bank_feed: ['write'],
|
|
170
|
+
odoo_accounting_create_vendor_bill: ['write'],
|
|
171
|
+
odoo_accounting_create_customer_invoice: ['write'],
|
|
172
|
+
odoo_accounting_set_currency_rates: ['write'],
|
|
173
|
+
odoo_accounting_set_lock_date: ['write'],
|
|
174
|
+
odoo_accounting_create_matching_model: ['write'],
|
|
175
|
+
odoo_accounting_get_tax_settings: ['read'],
|
|
176
|
+
odoo_accounting_list_tax_returns: ['read'],
|
|
177
|
+
odoo_accounting_get_tax_return: ['read'],
|
|
178
|
+
odoo_accounting_tax_grids: ['read'],
|
|
179
|
+
odoo_accounting_list_tax_grid_lines: ['read'],
|
|
180
|
+
odoo_accounting_check_tax_period: ['read'],
|
|
181
|
+
odoo_accounting_list_untagged_tax_lines: ['read'],
|
|
182
|
+
odoo_accounting_set_tax_periodicity: ['write'],
|
|
183
|
+
odoo_accounting_set_tax_grids: ['write'],
|
|
184
|
+
read_benchmark: ['read'],
|
|
185
|
+
read_benchmark_task: ['read'],
|
|
186
|
+
read_benchmark_task_trajectory: ['read'],
|
|
187
|
+
list_benchmark_task_files: ['read'],
|
|
188
|
+
list_content_sources: ['read'],
|
|
189
|
+
describe_content_source: ['read'],
|
|
190
|
+
list_content_attachments: ['read'],
|
|
191
|
+
list_dataset_revisions: ['read'],
|
|
192
|
+
query_status: ['read'],
|
|
193
|
+
list_secrets: ['read'],
|
|
194
|
+
use_notebook: ['read'],
|
|
195
|
+
unuse_notebook: ['read'],
|
|
196
|
+
connect_to_jupyter: ['read'],
|
|
197
|
+
insert_cell: ['write'],
|
|
198
|
+
delete_cell: ['delete'],
|
|
199
|
+
move_cell: ['write'],
|
|
200
|
+
edit_cell_source: ['write'],
|
|
201
|
+
snapshot_notebook: ['write'],
|
|
202
|
+
restore_notebook: ['write'],
|
|
203
|
+
overwrite_cell_source: ['write'],
|
|
204
|
+
clear_cell_output: ['write'],
|
|
205
|
+
execute_cell: ['write'],
|
|
206
|
+
execute_code: ['write'],
|
|
207
|
+
restart_notebook: ['write'],
|
|
208
|
+
insert_execute_code_cell: ['write'],
|
|
209
|
+
launch_sandbox: ['buy'],
|
|
210
|
+
use_sandbox: ['write'],
|
|
211
|
+
terminate_sandbox: ['delete'],
|
|
212
|
+
snapshot_sandbox: ['write', 'buy'],
|
|
213
|
+
share_sandbox: ['publish'],
|
|
214
|
+
unshare_sandbox: ['write'],
|
|
215
|
+
marimo_run_cell: ['write'],
|
|
216
|
+
marimo_run_code: ['write'],
|
|
217
|
+
marimo_remove_cell: ['delete'],
|
|
218
|
+
marimo_plan: ['read'],
|
|
219
|
+
marimo_graph: ['read'],
|
|
220
|
+
enable_toolset: ['write'],
|
|
221
|
+
disable_toolset: ['write'],
|
|
222
|
+
attach_content: ['write'],
|
|
223
|
+
detach_content: ['write'],
|
|
224
|
+
query_source: ['read'],
|
|
225
|
+
cancel_query: ['write'],
|
|
226
|
+
save_query_as_revision: ['write'],
|
|
227
|
+
mount_local_folder: ['read'],
|
|
228
|
+
},
|
|
83
229
|
conditions: {},
|
|
84
230
|
},
|
|
85
231
|
earthdata: {
|