@stacksjs/path 0.43.1 → 0.44.7

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/index.d.ts CHANGED
@@ -1,4 +1,20 @@
1
1
  import { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath } from 'pathe';
2
+ /**
3
+ * Returns the path to the `ai` directory. The AI directory
4
+ * contains the core Stacks' AI logic which currently
5
+ * is a wrapper of the OpenAI API.
6
+ *
7
+ * @param path - relative path to the file or directory
8
+ * @returns string - absolute path to the file or directory
9
+ * @example
10
+ * ```ts
11
+ * import { aiPath } from '@stacks/paths'
12
+ *
13
+ * console.log('path is', aiPath())
14
+ * // path is /Users/chrisbreuer/Code/stacks/.stacks/core/ai
15
+ * ```
16
+ */
17
+ export declare function aiPath(path?: string): any;
2
18
  /**
3
19
  * Returns the path to the `actions` directory. The actions directory
4
20
  * contains the core Stacks' actions. An action
@@ -37,11 +53,12 @@ export declare function cachePath(path?: string): any;
37
53
  export declare function cliPath(path?: string): any;
38
54
  export declare function collectionsPath(path?: string): any;
39
55
  export declare function componentsPath(path?: string): any;
40
- export declare function configPath(): any;
56
+ export declare function configPath(path?: string): any;
41
57
  export declare function corePath(path?: string): any;
42
58
  export declare function dashboardPath(path?: string): any;
43
59
  export declare function desktopPath(path?: string): any;
44
60
  export declare function docsPath(path?: string): any;
61
+ export declare function domainsPath(path?: string): any;
45
62
  export declare function driversPath(path?: string): any;
46
63
  export declare function customElementsDataPath(): any;
47
64
  export declare function errorHandlingPath(path?: string): any;
@@ -53,6 +70,7 @@ export declare function gitPath(path?: string): any;
53
70
  export declare function langPath(path?: string): any;
54
71
  export declare function libraryEntryPath(type: 'vue-components' | 'web-components' | 'functions'): any;
55
72
  export declare function lintPath(path?: string): any;
73
+ export declare function loggingPath(path?: string): any;
56
74
  export declare function xRayPath(path?: string): any;
57
75
  export declare function modulesPath(path?: string): any;
58
76
  export declare function notificationsPath(path?: string): any;
@@ -76,6 +94,7 @@ export declare function scriptsPath(path?: string): any;
76
94
  export declare function uiPath(path?: string): any;
77
95
  export declare function utilsPath(path?: string): any;
78
96
  export declare const path: {
97
+ aiPath: typeof aiPath;
79
98
  actionsPath: typeof actionsPath;
80
99
  aliasPath: typeof aliasPath;
81
100
  arraysPath: typeof arraysPath;
@@ -93,6 +112,7 @@ export declare const path: {
93
112
  dashboardPath: typeof dashboardPath;
94
113
  desktopPath: typeof desktopPath;
95
114
  docsPath: typeof docsPath;
115
+ domainsPath: typeof domainsPath;
96
116
  driversPath: typeof driversPath;
97
117
  errorHandlingPath: typeof errorHandlingPath;
98
118
  examplesPath: typeof examplesPath;
@@ -103,6 +123,7 @@ export declare const path: {
103
123
  langPath: typeof langPath;
104
124
  libraryEntryPath: typeof libraryEntryPath;
105
125
  lintPath: typeof lintPath;
126
+ loggingPath: typeof loggingPath;
106
127
  xRayPath: typeof xRayPath;
107
128
  modulesPath: typeof modulesPath;
108
129
  objectsPath: typeof objectsPath;
package/dist/index.mjs CHANGED
@@ -1,9 +1,12 @@
1
1
  import { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath } from "pathe";
2
+ export function aiPath(path2) {
3
+ return corePath(`ai/${path2 || ""}`);
4
+ }
2
5
  export function actionsPath(path2) {
3
- return corePath(`actions/${path2 || ""}`);
6
+ return corePath(`actions/src/${path2 || ""}`);
4
7
  }
5
8
  export function aliasPath() {
6
- return runtimePath("alias.ts");
9
+ return corePath("alias/src/index.ts");
7
10
  }
8
11
  export function runtimePath(path2) {
9
12
  return frameworkPath(`buddy/${path2 || ""}`);
@@ -35,8 +38,8 @@ export function collectionsPath(path2) {
35
38
  export function componentsPath(path2) {
36
39
  return projectPath(`components/${path2 || ""}`);
37
40
  }
38
- export function configPath() {
39
- return frameworkPath("config.ts");
41
+ export function configPath(path2) {
42
+ return corePath(`config/${path2 || ""}`);
40
43
  }
41
44
  export function corePath(path2) {
42
45
  return frameworkPath(`core/${path2 || ""}`);
@@ -50,6 +53,9 @@ export function desktopPath(path2) {
50
53
  export function docsPath(path2) {
51
54
  return corePath(`docs/${path2 || ""}`);
52
55
  }
56
+ export function domainsPath(path2) {
57
+ return corePath(`domains/${path2 || ""}`);
58
+ }
53
59
  export function driversPath(path2) {
54
60
  return corePath(`drivers/${path2 || ""}`);
55
61
  }
@@ -66,7 +72,7 @@ export function frameworkPath(path2) {
66
72
  return projectPath(`.stacks/${path2 || ""}`);
67
73
  }
68
74
  export function fsPath(path2) {
69
- return corePath(`fs/${path2 || ""}`);
75
+ return corePath(`storage/${path2 || ""}`);
70
76
  }
71
77
  export function functionsPath(path2) {
72
78
  return projectPath(`functions/${path2 || ""}`);
@@ -83,6 +89,9 @@ export function libraryEntryPath(type) {
83
89
  export function lintPath(path2) {
84
90
  return corePath(`lint/${path2 || ""}`);
85
91
  }
92
+ export function loggingPath(path2) {
93
+ return corePath(`logging/${path2 || ""}`);
94
+ }
86
95
  export function xRayPath(path2) {
87
96
  return corePath(`x-ray/${path2 || ""}`);
88
97
  }
@@ -165,6 +174,7 @@ export function utilsPath(path2) {
165
174
  return corePath(`utils/${path2 || ""}`);
166
175
  }
167
176
  export const path = {
177
+ aiPath,
168
178
  actionsPath,
169
179
  aliasPath,
170
180
  arraysPath,
@@ -182,6 +192,7 @@ export const path = {
182
192
  dashboardPath,
183
193
  desktopPath,
184
194
  docsPath,
195
+ domainsPath,
185
196
  driversPath,
186
197
  errorHandlingPath,
187
198
  examplesPath,
@@ -192,6 +203,7 @@ export const path = {
192
203
  langPath,
193
204
  libraryEntryPath,
194
205
  lintPath,
206
+ loggingPath,
195
207
  xRayPath,
196
208
  modulesPath,
197
209
  objectsPath,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.43.1",
5
- "packageManager": "pnpm@7.17.1",
4
+ "version": "0.44.7",
5
+ "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks path.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,15 +36,15 @@
36
36
  ],
37
37
  "engines": {
38
38
  "node": ">=v18.12.1",
39
- "pnpm": ">=7.17.1"
39
+ "pnpm": ">=7.18.2"
40
40
  },
41
41
  "dependencies": {
42
42
  "pathe": "^1.0.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "mkdist": "^1.0.0",
46
- "typescript": "^4.9.3",
47
- "@stacksjs/testing": "0.43.1"
46
+ "typescript": "^4.9.4",
47
+ "@stacksjs/testing": "0.44.7"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "mkdist -d",