@opentabs-dev/opentabs-plugin-notebooklm 0.0.109 → 0.0.110
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/adapter.iife.js +35 -10
- package/dist/adapter.iife.js.map +3 -3
- package/dist/tools.json +1 -1
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -563,6 +563,7 @@
|
|
|
563
563
|
ZodOptional: () => ZodOptional,
|
|
564
564
|
ZodPipe: () => ZodPipe,
|
|
565
565
|
ZodPrefault: () => ZodPrefault,
|
|
566
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
566
567
|
ZodPromise: () => ZodPromise,
|
|
567
568
|
ZodReadonly: () => ZodReadonly,
|
|
568
569
|
ZodRealError: () => ZodRealError,
|
|
@@ -823,6 +824,7 @@
|
|
|
823
824
|
$ZodOptional: () => $ZodOptional,
|
|
824
825
|
$ZodPipe: () => $ZodPipe,
|
|
825
826
|
$ZodPrefault: () => $ZodPrefault,
|
|
827
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
826
828
|
$ZodPromise: () => $ZodPromise,
|
|
827
829
|
$ZodReadonly: () => $ZodReadonly,
|
|
828
830
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -2768,7 +2770,7 @@
|
|
|
2768
2770
|
var version = {
|
|
2769
2771
|
major: 4,
|
|
2770
2772
|
minor: 4,
|
|
2771
|
-
patch:
|
|
2773
|
+
patch: 3
|
|
2772
2774
|
};
|
|
2773
2775
|
|
|
2774
2776
|
// node_modules/zod/v4/core/schemas.js
|
|
@@ -4367,6 +4369,7 @@
|
|
|
4367
4369
|
});
|
|
4368
4370
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
4369
4371
|
$ZodType.init(inst, def);
|
|
4372
|
+
inst._zod.optin = "optional";
|
|
4370
4373
|
inst._zod.parse = (payload, ctx) => {
|
|
4371
4374
|
if (ctx.direction === "backward") {
|
|
4372
4375
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -4376,6 +4379,7 @@
|
|
|
4376
4379
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
4377
4380
|
return output.then((output2) => {
|
|
4378
4381
|
payload.value = output2;
|
|
4382
|
+
payload.fallback = true;
|
|
4379
4383
|
return payload;
|
|
4380
4384
|
});
|
|
4381
4385
|
}
|
|
@@ -4383,11 +4387,12 @@
|
|
|
4383
4387
|
throw new $ZodAsyncError();
|
|
4384
4388
|
}
|
|
4385
4389
|
payload.value = _out;
|
|
4390
|
+
payload.fallback = true;
|
|
4386
4391
|
return payload;
|
|
4387
4392
|
};
|
|
4388
4393
|
});
|
|
4389
4394
|
function handleOptionalResult(result, input) {
|
|
4390
|
-
if (result.issues.length
|
|
4395
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
4391
4396
|
return { issues: [], value: void 0 };
|
|
4392
4397
|
}
|
|
4393
4398
|
return result;
|
|
@@ -4405,10 +4410,11 @@
|
|
|
4405
4410
|
});
|
|
4406
4411
|
inst._zod.parse = (payload, ctx) => {
|
|
4407
4412
|
if (def.innerType._zod.optin === "optional") {
|
|
4413
|
+
const input = payload.value;
|
|
4408
4414
|
const result = def.innerType._zod.run(payload, ctx);
|
|
4409
4415
|
if (result instanceof Promise)
|
|
4410
|
-
return result.then((r) => handleOptionalResult(r,
|
|
4411
|
-
return handleOptionalResult(result,
|
|
4416
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
4417
|
+
return handleOptionalResult(result, input);
|
|
4412
4418
|
}
|
|
4413
4419
|
if (payload.value === void 0) {
|
|
4414
4420
|
return payload;
|
|
@@ -4524,7 +4530,7 @@
|
|
|
4524
4530
|
});
|
|
4525
4531
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
4526
4532
|
$ZodType.init(inst, def);
|
|
4527
|
-
|
|
4533
|
+
inst._zod.optin = "optional";
|
|
4528
4534
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
4529
4535
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4530
4536
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -4544,6 +4550,7 @@
|
|
|
4544
4550
|
input: payload.value
|
|
4545
4551
|
});
|
|
4546
4552
|
payload.issues = [];
|
|
4553
|
+
payload.fallback = true;
|
|
4547
4554
|
}
|
|
4548
4555
|
return payload;
|
|
4549
4556
|
});
|
|
@@ -4558,6 +4565,7 @@
|
|
|
4558
4565
|
input: payload.value
|
|
4559
4566
|
});
|
|
4560
4567
|
payload.issues = [];
|
|
4568
|
+
payload.fallback = true;
|
|
4561
4569
|
}
|
|
4562
4570
|
return payload;
|
|
4563
4571
|
};
|
|
@@ -4603,7 +4611,7 @@
|
|
|
4603
4611
|
left.aborted = true;
|
|
4604
4612
|
return left;
|
|
4605
4613
|
}
|
|
4606
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4614
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
4607
4615
|
}
|
|
4608
4616
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4609
4617
|
$ZodType.init(inst, def);
|
|
@@ -4655,6 +4663,9 @@
|
|
|
4655
4663
|
}
|
|
4656
4664
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4657
4665
|
}
|
|
4666
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4667
|
+
$ZodPipe.init(inst, def);
|
|
4668
|
+
});
|
|
4658
4669
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4659
4670
|
$ZodType.init(inst, def);
|
|
4660
4671
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -12215,6 +12226,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12215
12226
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
12216
12227
|
}
|
|
12217
12228
|
if (def.type === "pipe") {
|
|
12229
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
12230
|
+
return true;
|
|
12218
12231
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
12219
12232
|
}
|
|
12220
12233
|
if (def.type === "object") {
|
|
@@ -12693,7 +12706,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12693
12706
|
};
|
|
12694
12707
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
12695
12708
|
const def = schema._zod.def;
|
|
12696
|
-
const
|
|
12709
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12710
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
12697
12711
|
process2(innerType, ctx, params);
|
|
12698
12712
|
const seen = ctx.seen.get(schema);
|
|
12699
12713
|
seen.ref = innerType;
|
|
@@ -12927,6 +12941,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12927
12941
|
ZodOptional: () => ZodOptional,
|
|
12928
12942
|
ZodPipe: () => ZodPipe,
|
|
12929
12943
|
ZodPrefault: () => ZodPrefault,
|
|
12944
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
12930
12945
|
ZodPromise: () => ZodPromise,
|
|
12931
12946
|
ZodReadonly: () => ZodReadonly,
|
|
12932
12947
|
ZodRecord: () => ZodRecord,
|
|
@@ -14167,10 +14182,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14167
14182
|
if (output instanceof Promise) {
|
|
14168
14183
|
return output.then((output2) => {
|
|
14169
14184
|
payload.value = output2;
|
|
14185
|
+
payload.fallback = true;
|
|
14170
14186
|
return payload;
|
|
14171
14187
|
});
|
|
14172
14188
|
}
|
|
14173
14189
|
payload.value = output;
|
|
14190
|
+
payload.fallback = true;
|
|
14174
14191
|
return payload;
|
|
14175
14192
|
};
|
|
14176
14193
|
});
|
|
@@ -14335,6 +14352,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14335
14352
|
reverseTransform: def.transform
|
|
14336
14353
|
});
|
|
14337
14354
|
}
|
|
14355
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
14356
|
+
ZodPipe.init(inst, def);
|
|
14357
|
+
$ZodPreprocess.init(inst, def);
|
|
14358
|
+
});
|
|
14338
14359
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
14339
14360
|
$ZodReadonly.init(inst, def);
|
|
14340
14361
|
ZodType.init(inst, def);
|
|
@@ -14453,7 +14474,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14453
14474
|
return jsonSchema;
|
|
14454
14475
|
}
|
|
14455
14476
|
function preprocess(fn, schema) {
|
|
14456
|
-
return
|
|
14477
|
+
return new ZodPreprocess({
|
|
14478
|
+
type: "pipe",
|
|
14479
|
+
in: transform(fn),
|
|
14480
|
+
out: schema
|
|
14481
|
+
});
|
|
14457
14482
|
}
|
|
14458
14483
|
|
|
14459
14484
|
// node_modules/zod/v4/classic/compat.js
|
|
@@ -15584,7 +15609,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15584
15609
|
};
|
|
15585
15610
|
var src_default = new NotebookLMPlugin();
|
|
15586
15611
|
|
|
15587
|
-
// dist/
|
|
15612
|
+
// dist/_adapter_entry_bdcddca4-34bc-445e-a8ba-b8e26729c598.ts
|
|
15588
15613
|
if (!globalThis.__openTabs) {
|
|
15589
15614
|
globalThis.__openTabs = {};
|
|
15590
15615
|
} else {
|
|
@@ -15802,5 +15827,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15802
15827
|
};
|
|
15803
15828
|
delete src_default.onDeactivate;
|
|
15804
15829
|
}
|
|
15805
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["notebooklm"]){var a=o.adapters["notebooklm"];a.__adapterHash="
|
|
15830
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["notebooklm"]){var a=o.adapters["notebooklm"];a.__adapterHash="004f8087cf7f176e035370ce4b54343c6ed7b1e34caa9274b8d828113893cbe6";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"notebooklm",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15806
15831
|
//# sourceMappingURL=adapter.iife.js.map
|