@ibgib/web-gib 0.0.18 → 0.0.20
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/witness/agent/gemini/gemini-constants.d.mts +17 -20
- package/dist/witness/agent/gemini/gemini-constants.d.mts.map +1 -1
- package/dist/witness/agent/gemini/gemini-constants.mjs +16 -19
- package/dist/witness/agent/gemini/gemini-constants.mjs.map +1 -1
- package/package.json +4 -1
- package/src/witness/agent/gemini/gemini-constants.mts +25 -21
- package/tools/init-agents.js +37 -0
|
@@ -6,37 +6,34 @@ export declare const GEMINI_ERROR_STATUS_RATE_QUOTA_EXCEEDED = 429;
|
|
|
6
6
|
export declare const GEMINI_ERROR_DETAILS_TYPE_QUOTA_FAILURE = "type.googleapis.com/google.rpc.QuotaFailure";
|
|
7
7
|
export declare const GEMINI_ERROR_DETAILS_TYPE_RETRY_INFO = "type.googleapis.com/google.rpc.RetryInfo";
|
|
8
8
|
export declare const GEMINI_ERROR_DETAILS_TYPE_RETRY_INFO_RETRY_DELAY_KEY = "retryDelay";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare const
|
|
13
|
-
declare const
|
|
9
|
+
declare const GEMINI_MODEL_GEMINI_3_1_PRO_PREVIEW = "gemini-3.1-pro-preview";
|
|
10
|
+
declare const GEMINI_MODEL_GEMINI_3_FLASH_PREVIEW = "gemini-3-flash-preview";
|
|
11
|
+
declare const GEMINI_MODEL_GEMINI_3_1_FLASH_LITE_PREVIEW = "gemini-3.1-flash-lite-preview";
|
|
12
|
+
declare const GEMINI_MODEL_GEMINI_3_1_FLASH_LIVE_PREVIEW = "gemini-3.1-flash-live-preview";
|
|
13
|
+
declare const GEMINI_MODEL_GEMINI_2_5_PRO = "gemini-2.5-pro";
|
|
14
14
|
declare const GEMINI_MODEL_GEMINI_2_5_FLASH = "gemini-2.5-flash";
|
|
15
15
|
declare const GEMINI_MODEL_GEMINI_2_5_FLASH_LITE = "gemini-2.5-flash-lite";
|
|
16
|
+
declare const GEMINI_MODEL_GEMINI_2_5_FLASH_PREVIEW_TTS = "gemini-2.5-flash-preview-tts";
|
|
17
|
+
declare const GEMINI_MODEL_GEMINI_2_0_FLASH = "gemini-2.0-flash";
|
|
18
|
+
declare const GEMINI_MODEL_GEMINI_2_0_FLASH_LITE = "gemini-2.0-flash-lite";
|
|
16
19
|
/**
|
|
17
20
|
* Enum of Gemini models that are available to the agent.
|
|
18
21
|
*/
|
|
19
|
-
export type GeminiModel = typeof
|
|
22
|
+
export type GeminiModel = typeof GEMINI_MODEL_GEMINI_3_1_PRO_PREVIEW | typeof GEMINI_MODEL_GEMINI_3_FLASH_PREVIEW | typeof GEMINI_MODEL_GEMINI_3_1_FLASH_LITE_PREVIEW | typeof GEMINI_MODEL_GEMINI_3_1_FLASH_LIVE_PREVIEW | typeof GEMINI_MODEL_GEMINI_2_5_PRO | typeof GEMINI_MODEL_GEMINI_2_5_FLASH | typeof GEMINI_MODEL_GEMINI_2_5_FLASH_LITE | typeof GEMINI_MODEL_GEMINI_2_5_FLASH_PREVIEW_TTS | typeof GEMINI_MODEL_GEMINI_2_0_FLASH | typeof GEMINI_MODEL_GEMINI_2_0_FLASH_LITE;
|
|
20
23
|
/**
|
|
21
24
|
* @see {@link GeminiModel}
|
|
22
25
|
*/
|
|
23
26
|
export declare const GeminiModel: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_0_FLASH_LITE}
|
|
30
|
-
*/
|
|
31
|
-
GEMINI_2_0_FLASH_LITE: GeminiModel;
|
|
32
|
-
/**
|
|
33
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_5_FLASH}
|
|
34
|
-
*/
|
|
27
|
+
GEMINI_3_1_PRO_PREVIEW: GeminiModel;
|
|
28
|
+
GEMINI_3_FLASH_PREVIEW: GeminiModel;
|
|
29
|
+
GEMINI_3_1_FLASH_LITE_PREVIEW: GeminiModel;
|
|
30
|
+
GEMINI_3_1_FLASH_LIVE_PREVIEW: GeminiModel;
|
|
31
|
+
GEMINI_2_5_PRO: GeminiModel;
|
|
35
32
|
GEMINI_2_5_FLASH: GeminiModel;
|
|
36
|
-
/**
|
|
37
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_5_FLASH_LITE}
|
|
38
|
-
*/
|
|
39
33
|
GEMINI_2_5_FLASH_LITE: GeminiModel;
|
|
34
|
+
GEMINI_2_5_FLASH_PREVIEW_TTS: GeminiModel;
|
|
35
|
+
GEMINI_2_0_FLASH: GeminiModel;
|
|
36
|
+
GEMINI_2_0_FLASH_LITE: GeminiModel;
|
|
40
37
|
};
|
|
41
38
|
export declare const GEMINI_MODEL_VALUES: readonly GeminiModel[];
|
|
42
39
|
export declare function isGeminiModel(str: string): str is GeminiModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gemini-constants.d.mts","sourceRoot":"","sources":["../../../../src/witness/agent/gemini/gemini-constants.mts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,uCAAuC,MAAM,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,uCAAuC,gDAAgD,CAAC;AACrG,eAAO,MAAM,oCAAoC,6CAA6C,CAAC;AAC/F,eAAO,MAAM,oDAAoD,eAAe,CAAC;AAIjF
|
|
1
|
+
{"version":3,"file":"gemini-constants.d.mts","sourceRoot":"","sources":["../../../../src/witness/agent/gemini/gemini-constants.mts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,uCAAuC,MAAM,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,uCAAuC,gDAAgD,CAAC;AACrG,eAAO,MAAM,oCAAoC,6CAA6C,CAAC;AAC/F,eAAO,MAAM,oDAAoD,eAAe,CAAC;AAIjF,QAAA,MAAM,mCAAmC,2BAA2B,CAAC;AACrE,QAAA,MAAM,mCAAmC,2BAA2B,CAAC;AACrE,QAAA,MAAM,0CAA0C,kCAAkC,CAAC;AACnF,QAAA,MAAM,0CAA0C,kCAAkC,CAAC;AACnF,QAAA,MAAM,2BAA2B,mBAAmB,CAAC;AACrD,QAAA,MAAM,6BAA6B,qBAAqB,CAAC;AACzD,QAAA,MAAM,kCAAkC,0BAA0B,CAAC;AACnE,QAAA,MAAM,yCAAyC,iCAAiC,CAAC;AACjF,QAAA,MAAM,6BAA6B,qBAAqB,CAAC;AACzD,QAAA,MAAM,kCAAkC,0BAA0B,CAAC;AAgBnE;;GAEG;AACH,MAAM,MAAM,WAAW,GACjB,OAAO,mCAAmC,GAC1C,OAAO,mCAAmC,GAC1C,OAAO,0CAA0C,GACjD,OAAO,0CAA0C,GACjD,OAAO,2BAA2B,GAClC,OAAO,6BAA6B,GACpC,OAAO,kCAAkC,GACzC,OAAO,yCAAyC,GAChD,OAAO,6BAA6B,GACpC,OAAO,kCAAkC,CAI1C;AAEL;;GAEG;AACH,eAAO,MAAM,WAAW;4BAC2C,WAAW;4BACX,WAAW;mCACG,WAAW;mCACX,WAAW;oBACzC,WAAW;sBACP,WAAW;2BACD,WAAW;kCACG,WAAW;sBACnC,WAAW;2BACD,WAAW;CAalC,CAAC;AAE3C,eAAO,MAAM,mBAAmB,wBAA4C,CAAC;AAC7E,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,WAAW,CAE7D;AAKD,eAAO,MAAM,wBAAwB,aAA+B,CAAC;AACrE,eAAO,MAAM,uBAAuB,aAAoC,CAAC;AACzE,eAAO,MAAM,oBAAoB,IAAI,CAAC"}
|
|
@@ -7,33 +7,30 @@ export const GEMINI_ERROR_DETAILS_TYPE_QUOTA_FAILURE = "type.googleapis.com/goog
|
|
|
7
7
|
export const GEMINI_ERROR_DETAILS_TYPE_RETRY_INFO = "type.googleapis.com/google.rpc.RetryInfo";
|
|
8
8
|
export const GEMINI_ERROR_DETAILS_TYPE_RETRY_INFO_RETRY_DELAY_KEY = 'retryDelay';
|
|
9
9
|
// #region GeminiModel enum
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const
|
|
10
|
+
const GEMINI_MODEL_GEMINI_3_1_PRO_PREVIEW = 'gemini-3.1-pro-preview';
|
|
11
|
+
const GEMINI_MODEL_GEMINI_3_FLASH_PREVIEW = 'gemini-3-flash-preview';
|
|
12
|
+
const GEMINI_MODEL_GEMINI_3_1_FLASH_LITE_PREVIEW = 'gemini-3.1-flash-lite-preview';
|
|
13
|
+
const GEMINI_MODEL_GEMINI_3_1_FLASH_LIVE_PREVIEW = 'gemini-3.1-flash-live-preview';
|
|
14
|
+
const GEMINI_MODEL_GEMINI_2_5_PRO = 'gemini-2.5-pro';
|
|
15
15
|
const GEMINI_MODEL_GEMINI_2_5_FLASH = 'gemini-2.5-flash';
|
|
16
16
|
const GEMINI_MODEL_GEMINI_2_5_FLASH_LITE = 'gemini-2.5-flash-lite';
|
|
17
|
+
const GEMINI_MODEL_GEMINI_2_5_FLASH_PREVIEW_TTS = 'gemini-2.5-flash-preview-tts';
|
|
18
|
+
const GEMINI_MODEL_GEMINI_2_0_FLASH = 'gemini-2.0-flash';
|
|
19
|
+
const GEMINI_MODEL_GEMINI_2_0_FLASH_LITE = 'gemini-2.0-flash-lite';
|
|
17
20
|
/**
|
|
18
21
|
* @see {@link GeminiModel}
|
|
19
22
|
*/
|
|
20
23
|
export const GeminiModel = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_0_FLASH_LITE}
|
|
27
|
-
*/
|
|
28
|
-
GEMINI_2_0_FLASH_LITE: GEMINI_MODEL_GEMINI_2_0_FLASH_LITE,
|
|
29
|
-
/**
|
|
30
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_5_FLASH}
|
|
31
|
-
*/
|
|
24
|
+
GEMINI_3_1_PRO_PREVIEW: GEMINI_MODEL_GEMINI_3_1_PRO_PREVIEW,
|
|
25
|
+
GEMINI_3_FLASH_PREVIEW: GEMINI_MODEL_GEMINI_3_FLASH_PREVIEW,
|
|
26
|
+
GEMINI_3_1_FLASH_LITE_PREVIEW: GEMINI_MODEL_GEMINI_3_1_FLASH_LITE_PREVIEW,
|
|
27
|
+
GEMINI_3_1_FLASH_LIVE_PREVIEW: GEMINI_MODEL_GEMINI_3_1_FLASH_LIVE_PREVIEW,
|
|
28
|
+
GEMINI_2_5_PRO: GEMINI_MODEL_GEMINI_2_5_PRO,
|
|
32
29
|
GEMINI_2_5_FLASH: GEMINI_MODEL_GEMINI_2_5_FLASH,
|
|
33
|
-
/**
|
|
34
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_5_FLASH_LITE}
|
|
35
|
-
*/
|
|
36
30
|
GEMINI_2_5_FLASH_LITE: GEMINI_MODEL_GEMINI_2_5_FLASH_LITE,
|
|
31
|
+
GEMINI_2_5_FLASH_PREVIEW_TTS: GEMINI_MODEL_GEMINI_2_5_FLASH_PREVIEW_TTS,
|
|
32
|
+
GEMINI_2_0_FLASH: GEMINI_MODEL_GEMINI_2_0_FLASH,
|
|
33
|
+
GEMINI_2_0_FLASH_LITE: GEMINI_MODEL_GEMINI_2_0_FLASH_LITE,
|
|
37
34
|
// /**
|
|
38
35
|
// * @see {@link GEMINI_MODEL_GEMINI_1_5_FLASH}
|
|
39
36
|
// */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gemini-constants.mjs","sourceRoot":"","sources":["../../../../src/witness/agent/gemini/gemini-constants.mts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,CAAC;AACxD,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAG,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,6CAA6C,CAAC;AACrG,MAAM,CAAC,MAAM,oCAAoC,GAAG,0CAA0C,CAAC;AAC/F,MAAM,CAAC,MAAM,oDAAoD,GAAG,YAAY,CAAC;AAGjF,2BAA2B;AAC3B
|
|
1
|
+
{"version":3,"file":"gemini-constants.mjs","sourceRoot":"","sources":["../../../../src/witness/agent/gemini/gemini-constants.mts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,CAAC;AACxD,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAG,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,6CAA6C,CAAC;AACrG,MAAM,CAAC,MAAM,oCAAoC,GAAG,0CAA0C,CAAC;AAC/F,MAAM,CAAC,MAAM,oDAAoD,GAAG,YAAY,CAAC;AAGjF,2BAA2B;AAC3B,MAAM,mCAAmC,GAAG,wBAAwB,CAAC;AACrE,MAAM,mCAAmC,GAAG,wBAAwB,CAAC;AACrE,MAAM,0CAA0C,GAAG,+BAA+B,CAAC;AACnF,MAAM,0CAA0C,GAAG,+BAA+B,CAAC;AACnF,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;AACrD,MAAM,6BAA6B,GAAG,kBAAkB,CAAC;AACzD,MAAM,kCAAkC,GAAG,uBAAuB,CAAC;AACnE,MAAM,yCAAyC,GAAG,8BAA8B,CAAC;AACjF,MAAM,6BAA6B,GAAG,kBAAkB,CAAC;AACzD,MAAM,kCAAkC,GAAG,uBAAuB,CAAC;AAmCnE;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,sBAAsB,EAAE,mCAAkD;IAC1E,sBAAsB,EAAE,mCAAkD;IAC1E,6BAA6B,EAAE,0CAAyD;IACxF,6BAA6B,EAAE,0CAAyD;IACxF,cAAc,EAAE,2BAA0C;IAC1D,gBAAgB,EAAE,6BAA4C;IAC9D,qBAAqB,EAAE,kCAAiD;IACxE,4BAA4B,EAAE,yCAAwD;IACtF,gBAAgB,EAAE,6BAA4C;IAC9D,qBAAqB,EAAE,kCAAiD;IACxE,MAAM;IACN,gDAAgD;IAChD,MAAM;IACN,kEAAkE;IAClE,MAAM;IACN,mDAAmD;IACnD,MAAM;IACN,wEAAwE;IACxE,MAAM;IACN,8CAA8C;IAC9C,MAAM;IACN,8DAA8D;CACxB,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AAC7E,MAAM,UAAU,aAAa,CAAC,GAAW;IACrC,OAAO,CAAC,CAAC,GAAG,IAAI,mBAAmB,CAAC,QAAQ,CAAC,GAAkB,CAAC,CAAC;AACrE,CAAC;AAED,8BAA8B;AAE9B,4EAA4E;AAC5E,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,CAAC,gBAAgB,CAAC;AACrE,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAC,qBAAqB,CAAC;AACzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibgib/web-gib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "Framework for creating agentic ibGib web apps. Contains plumbing for ibgib components, agentic framework (currently only Gemini implemented), web-based IndexedDB storage substrate, and more.",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
7
7
|
"url": "https://paypal.me/ibGib"
|
|
8
8
|
},
|
|
9
9
|
"main": "dist/index.mjs",
|
|
10
|
+
"bin": {
|
|
11
|
+
"web-gib-init-agents": "./tools/init-agents.js"
|
|
12
|
+
},
|
|
10
13
|
"scripts": {
|
|
11
14
|
"clean": "node node_modules/@ibgib/helper-gib/tools/clean.js ./dist",
|
|
12
15
|
"build": "npm run clean && tsc -b tsconfig.json --force",
|
|
@@ -10,13 +10,17 @@ export const GEMINI_ERROR_DETAILS_TYPE_RETRY_INFO_RETRY_DELAY_KEY = 'retryDelay'
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
// #region GeminiModel enum
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const
|
|
13
|
+
const GEMINI_MODEL_GEMINI_3_1_PRO_PREVIEW = 'gemini-3.1-pro-preview';
|
|
14
|
+
const GEMINI_MODEL_GEMINI_3_FLASH_PREVIEW = 'gemini-3-flash-preview';
|
|
15
|
+
const GEMINI_MODEL_GEMINI_3_1_FLASH_LITE_PREVIEW = 'gemini-3.1-flash-lite-preview';
|
|
16
|
+
const GEMINI_MODEL_GEMINI_3_1_FLASH_LIVE_PREVIEW = 'gemini-3.1-flash-live-preview';
|
|
17
|
+
const GEMINI_MODEL_GEMINI_2_5_PRO = 'gemini-2.5-pro';
|
|
18
18
|
const GEMINI_MODEL_GEMINI_2_5_FLASH = 'gemini-2.5-flash';
|
|
19
19
|
const GEMINI_MODEL_GEMINI_2_5_FLASH_LITE = 'gemini-2.5-flash-lite';
|
|
20
|
+
const GEMINI_MODEL_GEMINI_2_5_FLASH_PREVIEW_TTS = 'gemini-2.5-flash-preview-tts';
|
|
21
|
+
const GEMINI_MODEL_GEMINI_2_0_FLASH = 'gemini-2.0-flash';
|
|
22
|
+
const GEMINI_MODEL_GEMINI_2_0_FLASH_LITE = 'gemini-2.0-flash-lite';
|
|
23
|
+
|
|
20
24
|
// const GEMINI_MODEL_GEMINI_2_0_FLASH = 'gemini-2.0-flash-exp';
|
|
21
25
|
// /**
|
|
22
26
|
// * @see {@link GeminiModel.GEMINI_1_5_FLASH}
|
|
@@ -35,10 +39,16 @@ const GEMINI_MODEL_GEMINI_2_5_FLASH_LITE = 'gemini-2.5-flash-lite';
|
|
|
35
39
|
* Enum of Gemini models that are available to the agent.
|
|
36
40
|
*/
|
|
37
41
|
export type GeminiModel =
|
|
38
|
-
| typeof
|
|
39
|
-
| typeof
|
|
42
|
+
| typeof GEMINI_MODEL_GEMINI_3_1_PRO_PREVIEW
|
|
43
|
+
| typeof GEMINI_MODEL_GEMINI_3_FLASH_PREVIEW
|
|
44
|
+
| typeof GEMINI_MODEL_GEMINI_3_1_FLASH_LITE_PREVIEW
|
|
45
|
+
| typeof GEMINI_MODEL_GEMINI_3_1_FLASH_LIVE_PREVIEW
|
|
46
|
+
| typeof GEMINI_MODEL_GEMINI_2_5_PRO
|
|
40
47
|
| typeof GEMINI_MODEL_GEMINI_2_5_FLASH
|
|
41
48
|
| typeof GEMINI_MODEL_GEMINI_2_5_FLASH_LITE
|
|
49
|
+
| typeof GEMINI_MODEL_GEMINI_2_5_FLASH_PREVIEW_TTS
|
|
50
|
+
| typeof GEMINI_MODEL_GEMINI_2_0_FLASH
|
|
51
|
+
| typeof GEMINI_MODEL_GEMINI_2_0_FLASH_LITE
|
|
42
52
|
// | typeof GEMINI_MODEL_GEMINI_1_5_FLASH
|
|
43
53
|
// | typeof GEMINI_MODEL_GEMINI_1_5_FLASH_8B
|
|
44
54
|
// | typeof GEMINI_MODEL_GEMINI_1_5_PRO
|
|
@@ -48,22 +58,16 @@ export type GeminiModel =
|
|
|
48
58
|
* @see {@link GeminiModel}
|
|
49
59
|
*/
|
|
50
60
|
export const GeminiModel = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_0_FLASH_LITE}
|
|
57
|
-
*/
|
|
58
|
-
GEMINI_2_0_FLASH_LITE: GEMINI_MODEL_GEMINI_2_0_FLASH_LITE as GeminiModel,
|
|
59
|
-
/**
|
|
60
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_5_FLASH}
|
|
61
|
-
*/
|
|
61
|
+
GEMINI_3_1_PRO_PREVIEW: GEMINI_MODEL_GEMINI_3_1_PRO_PREVIEW as GeminiModel,
|
|
62
|
+
GEMINI_3_FLASH_PREVIEW: GEMINI_MODEL_GEMINI_3_FLASH_PREVIEW as GeminiModel,
|
|
63
|
+
GEMINI_3_1_FLASH_LITE_PREVIEW: GEMINI_MODEL_GEMINI_3_1_FLASH_LITE_PREVIEW as GeminiModel,
|
|
64
|
+
GEMINI_3_1_FLASH_LIVE_PREVIEW: GEMINI_MODEL_GEMINI_3_1_FLASH_LIVE_PREVIEW as GeminiModel,
|
|
65
|
+
GEMINI_2_5_PRO: GEMINI_MODEL_GEMINI_2_5_PRO as GeminiModel,
|
|
62
66
|
GEMINI_2_5_FLASH: GEMINI_MODEL_GEMINI_2_5_FLASH as GeminiModel,
|
|
63
|
-
/**
|
|
64
|
-
* @see {@link GEMINI_MODEL_GEMINI_2_5_FLASH_LITE}
|
|
65
|
-
*/
|
|
66
67
|
GEMINI_2_5_FLASH_LITE: GEMINI_MODEL_GEMINI_2_5_FLASH_LITE as GeminiModel,
|
|
68
|
+
GEMINI_2_5_FLASH_PREVIEW_TTS: GEMINI_MODEL_GEMINI_2_5_FLASH_PREVIEW_TTS as GeminiModel,
|
|
69
|
+
GEMINI_2_0_FLASH: GEMINI_MODEL_GEMINI_2_0_FLASH as GeminiModel,
|
|
70
|
+
GEMINI_2_0_FLASH_LITE: GEMINI_MODEL_GEMINI_2_0_FLASH_LITE as GeminiModel,
|
|
67
71
|
// /**
|
|
68
72
|
// * @see {@link GEMINI_MODEL_GEMINI_1_5_FLASH}
|
|
69
73
|
// */
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
const logPref = '[web-gib init-agents]';
|
|
6
|
+
|
|
7
|
+
// Assuming this file is placed at <package_root>/tools/init-agents.js
|
|
8
|
+
// so the package root is exactly one directory up.
|
|
9
|
+
const packageRoot = path.resolve(__dirname, '..');
|
|
10
|
+
const sourceAgentsDir = path.join(packageRoot, '.agents');
|
|
11
|
+
|
|
12
|
+
// The consumer's repository root (where they run npx web-gib-init-agents)
|
|
13
|
+
const targetAgentsDir = path.join(process.cwd(), '.agents');
|
|
14
|
+
|
|
15
|
+
if (!fs.existsSync(sourceAgentsDir)) {
|
|
16
|
+
console.error(`${logPref} Error: Could not locate source agent skills at ${sourceAgentsDir}`);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
console.log(`${logPref} Copying ibgib agent skills...`);
|
|
21
|
+
console.log(`${logPref} From: ${sourceAgentsDir}`);
|
|
22
|
+
console.log(`${logPref} To: ${targetAgentsDir}`);
|
|
23
|
+
|
|
24
|
+
try {
|
|
25
|
+
// cpSync is available in Node 16.7+
|
|
26
|
+
fs.cpSync(sourceAgentsDir, targetAgentsDir, {
|
|
27
|
+
recursive: true,
|
|
28
|
+
// Setting force to false ensures we DO NOT overwrite existing templates
|
|
29
|
+
// if the consumer has customized them for their own project!
|
|
30
|
+
force: false,
|
|
31
|
+
errorOnExist: false
|
|
32
|
+
});
|
|
33
|
+
console.log(`${logPref} ✅ Success! Agent skills have been initialized.`);
|
|
34
|
+
} catch (error) {
|
|
35
|
+
console.error(`${logPref} ❌ Failed to copy agent skills:`, error);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|