@jay-framework/gemini-agent-plugin 0.22.2 → 0.23.1

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.
@@ -11,8 +11,7 @@ var Role = /* @__PURE__ */ ((Role2) => {
11
11
  const MAX_ARRAY_ITEMS = 3;
12
12
  const MAX_STRING_LENGTH = 200;
13
13
  function compactPageState(value) {
14
- if (value === null || value === void 0)
15
- return value;
14
+ if (value === null || value === void 0) return value;
16
15
  if (typeof value === "string") {
17
16
  if (value.length > MAX_STRING_LENGTH) {
18
17
  return value.slice(0, MAX_STRING_LENGTH) + "...";
package/dist/index.js CHANGED
@@ -1,9 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
4
  import { createJayService, makeJayInit, makeJayAction, makeJayStackComponent, RenderPipeline } from "@jay-framework/fullstack-component";
8
5
  import { registerService, actionRegistry } from "@jay-framework/stack-server-runtime";
9
6
  import * as fs from "fs";
@@ -283,8 +280,7 @@ function resolveToolCallTarget(toolName, clientToolNames) {
283
280
  const MAX_ARRAY_ITEMS = 3;
284
281
  const MAX_STRING_LENGTH = 200;
285
282
  function compactPageState(value) {
286
- if (value === null || value === void 0)
287
- return value;
283
+ if (value === null || value === void 0) return value;
288
284
  if (typeof value === "string") {
289
285
  if (value.length > MAX_STRING_LENGTH) {
290
286
  return value.slice(0, MAX_STRING_LENGTH) + "...";
@@ -525,21 +521,15 @@ async function handleConversation(service, history, toolDefinitions, pageState)
525
521
  }
526
522
  const INTERACTIVE_TYPE = "interactive";
527
523
  function isInteractive(tag) {
528
- if (!tag.type)
529
- return false;
530
- if (typeof tag.type === "string")
531
- return tag.type === INTERACTIVE_TYPE;
532
- if (Array.isArray(tag.type))
533
- return tag.type.includes(INTERACTIVE_TYPE);
524
+ if (!tag.type) return false;
525
+ if (typeof tag.type === "string") return tag.type === INTERACTIVE_TYPE;
526
+ if (Array.isArray(tag.type)) return tag.type.includes(INTERACTIVE_TYPE);
534
527
  return false;
535
528
  }
536
529
  function extractDescription(desc) {
537
- if (!desc)
538
- return void 0;
539
- if (typeof desc === "string")
540
- return desc;
541
- if (Array.isArray(desc))
542
- return desc.join(" ");
530
+ if (!desc) return void 0;
531
+ if (typeof desc === "string") return desc;
532
+ if (Array.isArray(desc)) return desc.join(" ");
543
533
  return void 0;
544
534
  }
545
535
  function collectInteractiveDescriptions(tags) {
@@ -559,8 +549,7 @@ function collectInteractiveDescriptions(tags) {
559
549
  }
560
550
  let cachedDescriptions = null;
561
551
  function loadToolDescriptions(projectRoot) {
562
- if (cachedDescriptions)
563
- return cachedDescriptions;
552
+ if (cachedDescriptions) return cachedDescriptions;
564
553
  const log = getLogger();
565
554
  const descriptions = [];
566
555
  const indexPath = path$1.join(projectRoot, "agent-kit", "plugins-index.yaml");
@@ -645,7 +634,7 @@ async function fastRender() {
645
634
  carryForward: {}
646
635
  }));
647
636
  }
648
- const geminiChat = makeJayStackComponent().withProps().withFastRender(fastRender);
637
+ const geminiChat = makeJayStackComponent().withProps().withFastRender(fastRender).withInteractiveMark();
649
638
  export {
650
639
  DISCOVERY_TOOL,
651
640
  GEMINI_SERVICE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/gemini-agent-plugin",
3
- "version": "0.22.2",
3
+ "version": "0.23.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Gemini AI agent plugin for jay-stack — embedded chat agent with page automation and server action calling",
@@ -33,19 +33,19 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@google/genai": "^0.14.0",
36
- "@jay-framework/component": "^0.22.2",
37
- "@jay-framework/fullstack-component": "^0.22.2",
38
- "@jay-framework/logger": "^0.22.2",
39
- "@jay-framework/runtime": "^0.22.2",
40
- "@jay-framework/runtime-automation": "^0.22.2",
41
- "@jay-framework/stack-client-runtime": "^0.22.2",
42
- "@jay-framework/stack-server-runtime": "^0.22.2",
36
+ "@jay-framework/component": "^0.23.1",
37
+ "@jay-framework/fullstack-component": "^0.23.1",
38
+ "@jay-framework/logger": "^0.23.1",
39
+ "@jay-framework/runtime": "^0.23.1",
40
+ "@jay-framework/runtime-automation": "^0.23.1",
41
+ "@jay-framework/stack-client-runtime": "^0.23.1",
42
+ "@jay-framework/stack-server-runtime": "^0.23.1",
43
43
  "js-yaml": "^4.1.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@jay-framework/compiler-jay-stack": "^0.22.2",
47
- "@jay-framework/dev-environment": "^0.22.2",
48
- "@jay-framework/jay-cli": "^0.22.2",
46
+ "@jay-framework/compiler-jay-stack": "^0.23.1",
47
+ "@jay-framework/dev-environment": "^0.23.1",
48
+ "@jay-framework/jay-cli": "^0.23.1",
49
49
  "@types/js-yaml": "^4.0.9",
50
50
  "@types/node": "^22.15.21",
51
51
  "rimraf": "^5.0.5",