@karmaniverous/jeeves-meta 0.13.1 → 0.13.2

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.
@@ -18,9 +18,9 @@ import { fileURLToPath } from 'node:url';
18
18
  import { readFile, unlink, mkdir, writeFile, copyFile } from 'node:fs/promises';
19
19
  import pino from 'pino';
20
20
  import Handlebars from 'handlebars';
21
+ import process$1 from 'node:process';
21
22
  import { Cron } from 'croner';
22
23
  import Fastify from 'fastify';
23
- import process$1 from 'node:process';
24
24
 
25
25
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
26
26
 
@@ -9590,7 +9590,10 @@ function createLogger(config) {
9590
9590
  *
9591
9591
  * @module prompts
9592
9592
  */
9593
- const promptDir = dirname(fileURLToPath(import.meta.url));
9593
+ const packageRoot = packageDirectorySync({
9594
+ cwd: fileURLToPath(import.meta.url),
9595
+ });
9596
+ const promptDir = join(packageRoot, 'dist', 'prompts');
9594
9597
  /** Built-in default architect prompt. */
9595
9598
  const DEFAULT_ARCHITECT_PROMPT = readFileSync(join(promptDir, 'architect.md'), 'utf8');
9596
9599
  /** Built-in default critic prompt. */
package/dist/index.js CHANGED
@@ -9309,7 +9309,10 @@ function createLogger(config) {
9309
9309
  *
9310
9310
  * @module prompts
9311
9311
  */
9312
- const promptDir = dirname(fileURLToPath(import.meta.url));
9312
+ const packageRoot = packageDirectorySync({
9313
+ cwd: fileURLToPath(import.meta.url),
9314
+ });
9315
+ const promptDir = join(packageRoot, 'dist', 'prompts');
9313
9316
  /** Built-in default architect prompt. */
9314
9317
  const DEFAULT_ARCHITECT_PROMPT = readFileSync(join(promptDir, 'architect.md'), 'utf8');
9315
9318
  /** Built-in default critic prompt. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-meta",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "Fastify HTTP service for the Jeeves Meta synthesis engine",
6
6
  "license": "BSD-3-Clause",