@mongoosejs/studio 0.5.11 → 0.5.12

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.
@@ -2385,9 +2385,10 @@ module.exports = {
2385
2385
  },
2386
2386
  getAgentModePreference() {
2387
2387
  if (typeof window === 'undefined') {
2388
- return false;
2388
+ return true;
2389
2389
  }
2390
- return window.localStorage?.getItem(AGENT_MODE_STORAGE_KEY) === 'true';
2390
+ const preference = window.localStorage?.getItem(AGENT_MODE_STORAGE_KEY);
2391
+ return preference == null ? true : preference === 'true';
2391
2392
  },
2392
2393
  persistAgentModePreference(agentMode) {
2393
2394
  if (typeof window !== 'undefined') {
@@ -15722,7 +15723,7 @@ function warn$1(msg, ...args) {
15722
15723
  }
15723
15724
  console.warn(...warnArgs);
15724
15725
  }
15725
- (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
15726
+ ;(0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
15726
15727
  isWarning = false;
15727
15728
  }
15728
15729
  function getComponentTrace() {
@@ -16229,7 +16230,7 @@ function reload(id, newComp) {
16229
16230
  });
16230
16231
  }
16231
16232
  function updateComponentDef(oldComp, newComp) {
16232
- (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(oldComp, newComp);
16233
+ ;(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(oldComp, newComp);
16233
16234
  for (const key in oldComp) {
16234
16235
  if (key !== "__file" && !(key in newComp)) {
16235
16236
  delete oldComp[key];
@@ -23973,7 +23974,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
23973
23974
  try {
23974
23975
  applyOptions(instance);
23975
23976
  } finally {
23976
- (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
23977
+ ;(0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
23977
23978
  reset();
23978
23979
  }
23979
23980
  }
@@ -25337,7 +25338,7 @@ function sanitizeEventValue(value, propName) {
25337
25338
  if ((0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__.isFunction)(value) || (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__.isArray)(value)) {
25338
25339
  return value;
25339
25340
  }
25340
- (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
25341
+ ;(0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(
25341
25342
  `Wrong type passed as event handler to ${propName} - did you forget @ or : in front of your prop?
25342
25343
  Expected function or array of functions, received type ${typeof value}.`
25343
25344
  );
@@ -65728,7 +65729,7 @@ var src_default = VueToastificationPlugin;
65728
65729
  (module) {
65729
65730
 
65730
65731
  "use strict";
65731
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@mongoosejs/studio","version":"0.5.11","description":"AI-Powered Data Workspace for MongoDB: Turn your MongoDB data into dashboards, maps, and interactive workflows - powered by your Mongoose models and AI.","homepage":"https://mongoosestudio.app/","repository":{"type":"git","url":"https://github.com/mongoosejs/studio"},"license":"Apache-2.0","dependencies":{"@ai-sdk/anthropic":"2.x","@ai-sdk/google":"2.x","@ai-sdk/openai":"2.x","ace-builds":"^1.43.6","ai":"5.x","archetype":"0.13.1","csv-stringify":"6.3.0","ejson":"^2.2.3","extrovert":"^0.2.0","marked":"15.0.12","mpath":"^0.9.0","node-inspect-extracted":"3.x","regexp.escape":"^2.0.1","tailwindcss":"3.4.0","time-commando":"1.0.1","typescript":"^6.0.2","vue":"3.x","vue-toastification":"^2.0.0-rc.5","webpack":"5.x","xss":"^1.0.15"},"peerDependencies":{"@nestjs/common":"10.x || 11.x","mongoose":"7.x || 8.x || ^9.0.0"},"peerDependenciesMeta":{"@nestjs/common":{"optional":true}},"optionalPeerDependencies":{"@mongoosejs/task":"0.5.x || 0.6.x"},"devDependencies":{"@masteringjs/eslint-config":"0.1.1","axios":"1.2.2","dedent":"^1.6.0","eslint":"9.30.0","@nestjs/common":"^11.1.9","express":"4.x","mocha":"10.2.0","mongodb-memory-server":"^11.0.1","mongoose":"9.x","sinon":"^21.0.1"},"scripts":{"lint":"eslint .","seed":"node seed/index.js","start":"node ./local.js","tailwind":"tailwindcss -o ./frontend/public/tw.css","tailwind:watch":"tailwindcss -o ./frontend/public/tw.css --watch","test":"mocha test/*.test.js","test:frontend":"mocha test/frontend/*.test.js","eval:agent":"node eval/agent/run.js"}}');
65732
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@mongoosejs/studio","version":"0.5.12","description":"AI-Powered Data Workspace for MongoDB: Turn your MongoDB data into dashboards, maps, and interactive workflows - powered by your Mongoose models and AI.","homepage":"https://mongoosestudio.app/","repository":{"type":"git","url":"https://github.com/mongoosejs/studio"},"license":"Apache-2.0","dependencies":{"@ai-sdk/anthropic":"2.x","@ai-sdk/google":"2.x","@ai-sdk/openai":"2.x","ace-builds":"^1.43.6","ai":"5.x","archetype":"0.13.1","csv-stringify":"6.3.0","ejson":"^2.2.3","extrovert":"^0.2.0","marked":"15.0.12","mpath":"^0.9.0","node-inspect-extracted":"3.x","regexp.escape":"^2.0.1","tailwindcss":"3.4.0","time-commando":"1.0.1","typescript":"^6.0.2","vue":"3.x","vue-toastification":"^2.0.0-rc.5","webpack":"5.x","xss":"^1.0.15"},"peerDependencies":{"@nestjs/common":"10.x || 11.x","mongoose":"7.x || 8.x || ^9.0.0"},"peerDependenciesMeta":{"@nestjs/common":{"optional":true}},"optionalPeerDependencies":{"@mongoosejs/task":"0.5.x || 0.6.x"},"devDependencies":{"@masteringjs/eslint-config":"0.1.1","axios":"1.2.2","dedent":"^1.6.0","eslint":"9.30.0","@nestjs/common":"^11.1.9","express":"4.x","mocha":"10.2.0","mongodb-memory-server":"^11.0.1","mongoose":"9.x","sinon":"^21.0.1"},"scripts":{"lint":"eslint .","seed":"node seed/index.js","start":"node ./local.js","tailwind":"tailwindcss -o ./frontend/public/tw.css","tailwind:watch":"tailwindcss -o ./frontend/public/tw.css --watch","test":"mocha test/*.test.js","test:frontend":"mocha test/frontend/*.test.js","eval:agent":"node eval/agent/run.js"}}');
65732
65733
 
65733
65734
  /***/ }
65734
65735
 
@@ -243,9 +243,10 @@ module.exports = {
243
243
  },
244
244
  getAgentModePreference() {
245
245
  if (typeof window === 'undefined') {
246
- return false;
246
+ return true;
247
247
  }
248
- return window.localStorage?.getItem(AGENT_MODE_STORAGE_KEY) === 'true';
248
+ const preference = window.localStorage?.getItem(AGENT_MODE_STORAGE_KEY);
249
+ return preference == null ? true : preference === 'true';
249
250
  },
250
251
  persistAgentModePreference(agentMode) {
251
252
  if (typeof window !== 'undefined') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongoosejs/studio",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "AI-Powered Data Workspace for MongoDB: Turn your MongoDB data into dashboards, maps, and interactive workflows - powered by your Mongoose models and AI.",
5
5
  "homepage": "https://mongoosestudio.app/",
6
6
  "repository": {