@promptbook/remote-client 0.112.0-65 → 0.112.0-66
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/esm/index.es.js +50 -2
- package/esm/index.es.js.map +1 -1
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/esm/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/esm/src/config.d.ts +3 -3
- package/esm/src/utils/files/getPromptbookTempPath.d.ts +24 -0
- package/esm/src/utils/files/getPromptbookTempPath.test.d.ts +1 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +53 -5
- package/umd/index.umd.js.map +1 -1
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/umd/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/umd/src/config.d.ts +3 -3
- package/umd/src/utils/files/getPromptbookTempPath.d.ts +24 -0
- package/umd/src/utils/files/getPromptbookTempPath.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -6,7 +6,7 @@ import type { AvatarDefinition } from './AvatarDefinition';
|
|
|
6
6
|
*
|
|
7
7
|
* @private shared contract for the avatar rendering system
|
|
8
8
|
*/
|
|
9
|
-
export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'ascii-octopus' | 'minecraft' | 'fractal' | 'orb';
|
|
9
|
+
export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
|
|
10
10
|
/**
|
|
11
11
|
* Derived color palette used by avatar visuals.
|
|
12
12
|
*
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { AvatarPalette } from '../types/AvatarVisualDefinition';
|
|
2
|
+
/**
|
|
3
|
+
* One Minecraft-style pixel texture sampled on a cuboid face.
|
|
4
|
+
*
|
|
5
|
+
* @private helper of the Minecraft avatar visuals
|
|
6
|
+
*/
|
|
7
|
+
export type MinecraftTexture = ReadonlyArray<ReadonlyArray<string>>;
|
|
8
|
+
/**
|
|
9
|
+
* Full six-face texture pack for one rendered cuboid.
|
|
10
|
+
*
|
|
11
|
+
* @private helper of the Minecraft avatar visuals
|
|
12
|
+
*/
|
|
13
|
+
export type MinecraftCuboidTextures = {
|
|
14
|
+
readonly front: MinecraftTexture;
|
|
15
|
+
readonly back: MinecraftTexture;
|
|
16
|
+
readonly left: MinecraftTexture;
|
|
17
|
+
readonly right: MinecraftTexture;
|
|
18
|
+
readonly top: MinecraftTexture;
|
|
19
|
+
readonly bottom: MinecraftTexture;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Shared subset of avatar colors used by the Minecraft avatar helpers.
|
|
23
|
+
*
|
|
24
|
+
* @private helper of the Minecraft avatar visuals
|
|
25
|
+
*/
|
|
26
|
+
type MinecraftTexturePalette = Pick<AvatarPalette, 'primary' | 'secondary' | 'accent' | 'highlight' | 'ink' | 'shadow'>;
|
|
27
|
+
/**
|
|
28
|
+
* Builds the seeded six-face texture pack used by the Minecraft-style head cuboid.
|
|
29
|
+
*
|
|
30
|
+
* @param random Seeded random generator.
|
|
31
|
+
* @param palette Derived avatar palette.
|
|
32
|
+
* @param hasHeadband Whether the generated avatar should include a colored headband.
|
|
33
|
+
* @returns Head cuboid textures.
|
|
34
|
+
*
|
|
35
|
+
* @private helper of the Minecraft avatar visuals
|
|
36
|
+
*/
|
|
37
|
+
export declare function createMinecraftHeadTextures(random: () => number, palette: MinecraftTexturePalette, hasHeadband: boolean): MinecraftCuboidTextures;
|
|
38
|
+
/**
|
|
39
|
+
* Builds the seeded six-face texture pack used by the Minecraft-style torso cuboid.
|
|
40
|
+
*
|
|
41
|
+
* @param random Seeded random generator.
|
|
42
|
+
* @param palette Derived avatar palette.
|
|
43
|
+
* @returns Torso cuboid textures.
|
|
44
|
+
*
|
|
45
|
+
* @private helper of the Minecraft avatar visuals
|
|
46
|
+
*/
|
|
47
|
+
export declare function createMinecraftTorsoTextures(random: () => number, palette: MinecraftTexturePalette): MinecraftCuboidTextures;
|
|
48
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
2
|
/**
|
|
3
|
-
* Ensures `.gitignore` contains the
|
|
3
|
+
* Ensures `.gitignore` contains the shared Promptbook working-directory entry.
|
|
4
4
|
*
|
|
5
5
|
* @private function of `initializeCoderProjectConfiguration`
|
|
6
6
|
*/
|
package/esm/src/config.d.ts
CHANGED
|
@@ -270,7 +270,7 @@ export declare const DEFAULT_AGENTS_DIRNAME = "./agents";
|
|
|
270
270
|
*
|
|
271
271
|
* @public exported from `@promptbook/core`
|
|
272
272
|
*/
|
|
273
|
-
export declare const DEFAULT_DOWNLOAD_CACHE_DIRNAME
|
|
273
|
+
export declare const DEFAULT_DOWNLOAD_CACHE_DIRNAME: string;
|
|
274
274
|
/**
|
|
275
275
|
* Where to store the cache of executions for promptbook CLI
|
|
276
276
|
*
|
|
@@ -278,7 +278,7 @@ export declare const DEFAULT_DOWNLOAD_CACHE_DIRNAME = "./.promptbook/download-ca
|
|
|
278
278
|
*
|
|
279
279
|
* @public exported from `@promptbook/core`
|
|
280
280
|
*/
|
|
281
|
-
export declare const DEFAULT_EXECUTION_CACHE_DIRNAME
|
|
281
|
+
export declare const DEFAULT_EXECUTION_CACHE_DIRNAME: string;
|
|
282
282
|
/**
|
|
283
283
|
* Where to store the scrape cache
|
|
284
284
|
*
|
|
@@ -286,7 +286,7 @@ export declare const DEFAULT_EXECUTION_CACHE_DIRNAME = "./.promptbook/execution-
|
|
|
286
286
|
*
|
|
287
287
|
* @public exported from `@promptbook/core`
|
|
288
288
|
*/
|
|
289
|
-
export declare const DEFAULT_SCRAPE_CACHE_DIRNAME
|
|
289
|
+
export declare const DEFAULT_SCRAPE_CACHE_DIRNAME: string;
|
|
290
290
|
/**
|
|
291
291
|
* Id of application for the CLI when using remote server
|
|
292
292
|
*
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds one project-relative path inside the shared Promptbook working directory.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility for Promptbook-owned temp files
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPromptbookTempPath(...pathSegments: ReadonlyArray<string>): string;
|
|
7
|
+
/**
|
|
8
|
+
* Builds one absolute filesystem path inside the shared Promptbook working directory for a project root.
|
|
9
|
+
*
|
|
10
|
+
* @private internal utility for Promptbook-owned temp files
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolvePromptbookTempPath(projectPath: string, ...pathSegments: ReadonlyArray<string>): string;
|
|
13
|
+
/**
|
|
14
|
+
* Builds one POSIX path fragment inside the shared Promptbook working directory for globs and generated text files.
|
|
15
|
+
*
|
|
16
|
+
* @private internal utility for Promptbook-owned temp files
|
|
17
|
+
*/
|
|
18
|
+
export declare function getPromptbookTempPosixPath(...pathSegments: ReadonlyArray<string>): string;
|
|
19
|
+
/**
|
|
20
|
+
* Builds one rooted `.gitignore` rule targeting a path inside the shared Promptbook working directory.
|
|
21
|
+
*
|
|
22
|
+
* @private internal utility for Promptbook-owned temp files
|
|
23
|
+
*/
|
|
24
|
+
export declare function getPromptbookTempGitignoreRule(...pathSegments: ReadonlyArray<string>): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-65`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-client",
|
|
3
|
-
"version": "0.112.0-
|
|
3
|
+
"version": "0.112.0-66",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"types": "./esm/src/_packages/remote-client.index.d.ts",
|
|
105
105
|
"typings": "./esm/src/_packages/remote-client.index.d.ts",
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@promptbook/core": "0.112.0-
|
|
107
|
+
"@promptbook/core": "0.112.0-66"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
110
|
"crypto": "1.0.1",
|
package/umd/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('spacetrim'), require('crypto'), require('socket.io-client'), require('crypto-js'), require('crypto-js/enc-hex'), require('papaparse')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'spacetrim', 'crypto', 'socket.io-client', 'crypto-js', 'crypto-js/enc-hex', 'papaparse'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-remote-client"] = {}, global.spacetrim, global.crypto, global.socket_ioClient, global.cryptoJs, global.hexEncoder, global.papaparse
|
|
5
|
-
})(this, (function (exports, spacetrim, crypto, socket_ioClient, cryptoJs, hexEncoder, papaparse
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('spacetrim'), require('crypto'), require('path'), require('socket.io-client'), require('crypto-js'), require('crypto-js/enc-hex'), require('papaparse')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'spacetrim', 'crypto', 'path', 'socket.io-client', 'crypto-js', 'crypto-js/enc-hex', 'papaparse'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-remote-client"] = {}, global.spacetrim, global.crypto, global.path, global.socket_ioClient, global.cryptoJs, global.hexEncoder, global.papaparse));
|
|
5
|
+
})(this, (function (exports, spacetrim, crypto, path, socket_ioClient, cryptoJs, hexEncoder, papaparse) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @generated
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
25
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-66';
|
|
26
26
|
/**
|
|
27
27
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
28
28
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1233,6 +1233,29 @@
|
|
|
1233
1233
|
}
|
|
1234
1234
|
// TODO: Maybe implement by mix+hsl
|
|
1235
1235
|
|
|
1236
|
+
/**
|
|
1237
|
+
* Relative directory name without the `./` prefix for Git ignore rules and glob patterns.
|
|
1238
|
+
*
|
|
1239
|
+
* @private internal utility for Promptbook-owned temp files
|
|
1240
|
+
*/
|
|
1241
|
+
const PROMPTBOOK_TEMP_DIRECTORY_NAME = '.promptbook';
|
|
1242
|
+
/**
|
|
1243
|
+
* Builds one project-relative path inside the shared Promptbook working directory.
|
|
1244
|
+
*
|
|
1245
|
+
* @private internal utility for Promptbook-owned temp files
|
|
1246
|
+
*/
|
|
1247
|
+
function getPromptbookTempPath(...pathSegments) {
|
|
1248
|
+
return `./${getPromptbookTempPosixPath(...pathSegments)}`;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Builds one POSIX path fragment inside the shared Promptbook working directory for globs and generated text files.
|
|
1252
|
+
*
|
|
1253
|
+
* @private internal utility for Promptbook-owned temp files
|
|
1254
|
+
*/
|
|
1255
|
+
function getPromptbookTempPosixPath(...pathSegments) {
|
|
1256
|
+
return path.posix.join(PROMPTBOOK_TEMP_DIRECTORY_NAME, ...pathSegments);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1236
1259
|
/**
|
|
1237
1260
|
* Returns the same value that is passed as argument.
|
|
1238
1261
|
* No side effects.
|
|
@@ -1359,6 +1382,31 @@
|
|
|
1359
1382
|
* @private within the repository - too low-level in comparison with other `MAX_...`
|
|
1360
1383
|
*/
|
|
1361
1384
|
const CONNECTION_RETRIES_LIMIT = 5;
|
|
1385
|
+
// <- TODO: [🕝] Make also `AGENTS_DIRNAME_ALTERNATIVES`
|
|
1386
|
+
/**
|
|
1387
|
+
* Where to store the temporary downloads
|
|
1388
|
+
*
|
|
1389
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1390
|
+
*
|
|
1391
|
+
* @public exported from `@promptbook/core`
|
|
1392
|
+
*/
|
|
1393
|
+
getPromptbookTempPath('download-cache');
|
|
1394
|
+
/**
|
|
1395
|
+
* Where to store the cache of executions for promptbook CLI
|
|
1396
|
+
*
|
|
1397
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1398
|
+
*
|
|
1399
|
+
* @public exported from `@promptbook/core`
|
|
1400
|
+
*/
|
|
1401
|
+
getPromptbookTempPath('execution-cache');
|
|
1402
|
+
/**
|
|
1403
|
+
* Where to store the scrape cache
|
|
1404
|
+
*
|
|
1405
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1406
|
+
*
|
|
1407
|
+
* @public exported from `@promptbook/core`
|
|
1408
|
+
*/
|
|
1409
|
+
getPromptbookTempPath('scrape-cache');
|
|
1362
1410
|
// <- TODO: [🧜♂️]
|
|
1363
1411
|
/**
|
|
1364
1412
|
* Default settings for parsing and generating CSV files in Promptbook.
|