@promptbook/website-crawler 0.114.0-39 → 0.114.0-40

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 CHANGED
@@ -24,7 +24,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
24
24
  * @generated
25
25
  * @see https://github.com/webgptorg/promptbook
26
26
  */
27
- const PROMPTBOOK_ENGINE_VERSION = '0.114.0-39';
27
+ const PROMPTBOOK_ENGINE_VERSION = '0.114.0-40';
28
28
  /**
29
29
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
30
30
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -0,0 +1,28 @@
1
+ import { type GlobOptionsWithFileTypesUnset } from 'glob';
2
+ import type { string_filename } from '../../types/string_filename';
3
+ /**
4
+ * Options of `findFilesByGlob`
5
+ *
6
+ * Note: These are the options of `glob` itself, only `ignore` also accepts a readonly array
7
+ * @see https://www.npmjs.com/package/glob#options
8
+ *
9
+ * @private internal type of `findFilesByGlob`
10
+ */
11
+ export type FindFilesByGlobOptions = Omit<GlobOptionsWithFileTypesUnset, 'ignore'> & {
12
+ /**
13
+ * Glob patterns which are excluded from the result
14
+ */
15
+ readonly ignore?: string | ReadonlyArray<string>;
16
+ };
17
+ /**
18
+ * Finds all filenames matching a glob pattern
19
+ *
20
+ * Note: This is the single place where `glob` is used, so that every caller gets the same shape of results
21
+ * on every operating system - POSIX separators and a stable order - which `glob` itself does not guarantee
22
+ *
23
+ * @param pattern Glob pattern to match, for example `./src/**\/*.ts`
24
+ * @param options Options passed to `glob`
25
+ * @returns Matching filenames with `/` separators, sorted alphabetically
26
+ * @private within the repository
27
+ */
28
+ export declare function findFilesByGlob(pattern: string, options?: FindFilesByGlobOptions): Promise<Array<string_filename>>;
@@ -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.114.0-38`).
18
+ * It follows semantic versioning (e.g., `0.114.0-39`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/website-crawler",
3
- "version": "0.114.0-39",
3
+ "version": "0.114.0-40",
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,
@@ -96,7 +96,7 @@
96
96
  "types": "./esm/src/_packages/website-crawler.index.d.ts",
97
97
  "typings": "./esm/src/_packages/website-crawler.index.d.ts",
98
98
  "peerDependencies": {
99
- "@promptbook/core": "0.114.0-39"
99
+ "@promptbook/core": "0.114.0-40"
100
100
  },
101
101
  "dependencies": {
102
102
  "@mozilla/readability": "0.6.0",
package/umd/index.umd.js CHANGED
@@ -26,7 +26,7 @@
26
26
  * @generated
27
27
  * @see https://github.com/webgptorg/promptbook
28
28
  */
29
- const PROMPTBOOK_ENGINE_VERSION = '0.114.0-39';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.114.0-40';
30
30
  /**
31
31
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
32
32
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -0,0 +1,28 @@
1
+ import { type GlobOptionsWithFileTypesUnset } from 'glob';
2
+ import type { string_filename } from '../../types/string_filename';
3
+ /**
4
+ * Options of `findFilesByGlob`
5
+ *
6
+ * Note: These are the options of `glob` itself, only `ignore` also accepts a readonly array
7
+ * @see https://www.npmjs.com/package/glob#options
8
+ *
9
+ * @private internal type of `findFilesByGlob`
10
+ */
11
+ export type FindFilesByGlobOptions = Omit<GlobOptionsWithFileTypesUnset, 'ignore'> & {
12
+ /**
13
+ * Glob patterns which are excluded from the result
14
+ */
15
+ readonly ignore?: string | ReadonlyArray<string>;
16
+ };
17
+ /**
18
+ * Finds all filenames matching a glob pattern
19
+ *
20
+ * Note: This is the single place where `glob` is used, so that every caller gets the same shape of results
21
+ * on every operating system - POSIX separators and a stable order - which `glob` itself does not guarantee
22
+ *
23
+ * @param pattern Glob pattern to match, for example `./src/**\/*.ts`
24
+ * @param options Options passed to `glob`
25
+ * @returns Matching filenames with `/` separators, sorted alphabetically
26
+ * @private within the repository
27
+ */
28
+ export declare function findFilesByGlob(pattern: string, options?: FindFilesByGlobOptions): Promise<Array<string_filename>>;
@@ -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.114.0-38`).
18
+ * It follows semantic versioning (e.g., `0.114.0-39`).
19
19
  *
20
20
  * @generated
21
21
  */