@opengeni/config 1.0.0-canary.0 → 1.0.0-canary.2
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/dist/index.d.ts +6 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
148
148
|
artifacts_create: "artifacts_create";
|
|
149
149
|
artifacts_get_source: "artifacts_get_source";
|
|
150
150
|
artifacts_list: "artifacts_list";
|
|
151
|
+
artifacts_prepare_upload: "artifacts_prepare_upload";
|
|
151
152
|
artifacts_publish: "artifacts_publish";
|
|
152
153
|
artifacts_restore: "artifacts_restore";
|
|
153
154
|
artifacts_rollback: "artifacts_rollback";
|
|
@@ -166,6 +167,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
166
167
|
browser_tabs: "browser_tabs";
|
|
167
168
|
capability_authorization_request: "capability_authorization_request";
|
|
168
169
|
capability_catalog_search: "capability_catalog_search";
|
|
170
|
+
command_read: "command_read";
|
|
169
171
|
command_wait: "command_wait";
|
|
170
172
|
company_profile_confirm: "company_profile_confirm";
|
|
171
173
|
company_profile_propose: "company_profile_propose";
|
|
@@ -201,6 +203,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
201
203
|
goal_complete: "goal_complete";
|
|
202
204
|
goal_pause: "goal_pause";
|
|
203
205
|
goal_progress: "goal_progress";
|
|
206
|
+
goal_resume: "goal_resume";
|
|
204
207
|
goal_set: "goal_set";
|
|
205
208
|
goal_update: "goal_update";
|
|
206
209
|
instruction_policy_propose: "instruction_policy_propose";
|
|
@@ -297,6 +300,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
297
300
|
artifacts_create: "artifacts_create";
|
|
298
301
|
artifacts_get_source: "artifacts_get_source";
|
|
299
302
|
artifacts_list: "artifacts_list";
|
|
303
|
+
artifacts_prepare_upload: "artifacts_prepare_upload";
|
|
300
304
|
artifacts_publish: "artifacts_publish";
|
|
301
305
|
artifacts_restore: "artifacts_restore";
|
|
302
306
|
artifacts_rollback: "artifacts_rollback";
|
|
@@ -315,6 +319,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
315
319
|
browser_tabs: "browser_tabs";
|
|
316
320
|
capability_authorization_request: "capability_authorization_request";
|
|
317
321
|
capability_catalog_search: "capability_catalog_search";
|
|
322
|
+
command_read: "command_read";
|
|
318
323
|
command_wait: "command_wait";
|
|
319
324
|
company_profile_confirm: "company_profile_confirm";
|
|
320
325
|
company_profile_propose: "company_profile_propose";
|
|
@@ -350,6 +355,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
350
355
|
goal_complete: "goal_complete";
|
|
351
356
|
goal_pause: "goal_pause";
|
|
352
357
|
goal_progress: "goal_progress";
|
|
358
|
+
goal_resume: "goal_resume";
|
|
353
359
|
goal_set: "goal_set";
|
|
354
360
|
goal_update: "goal_update";
|
|
355
361
|
instruction_policy_propose: "instruction_policy_propose";
|
package/dist/index.js
CHANGED
|
@@ -2606,7 +2606,9 @@ function resolveFirstPartyMcpToolPolicy(settings) {
|
|
|
2606
2606
|
function allowedFirstPartyMcpToolsForSession(settings, selected) {
|
|
2607
2607
|
const policy = resolveFirstPartyMcpToolPolicy(settings);
|
|
2608
2608
|
const allowed = new Set(policy.allowed);
|
|
2609
|
-
|
|
2609
|
+
const tools = new Set(selected ?? policy.default);
|
|
2610
|
+
if (tools.has("goal_pause")) tools.add("goal_resume");
|
|
2611
|
+
return [...tools].filter((tool) => allowed.has(tool));
|
|
2610
2612
|
}
|
|
2611
2613
|
function effectiveModalIdleTimeoutSeconds(settings) {
|
|
2612
2614
|
return settings.modalIdleTimeoutSeconds ?? settings.modalTimeoutSeconds;
|