@stacksjs/path 0.58.60 → 0.58.63

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.js CHANGED
@@ -8,6 +8,9 @@ function actionsPath(path) {
8
8
  function relativeActionsPath(path) {
9
9
  return relative(projectPath(), actionsPath(path));
10
10
  }
11
+ function userActionsPath(path) {
12
+ return appPath(`Actions/${path || ""}`);
13
+ }
11
14
  function aiPath(path) {
12
15
  return corePath(`ai/${path || ""}`);
13
16
  }
@@ -62,6 +65,9 @@ function cliPath(path) {
62
65
  function cloudPath(path) {
63
66
  return corePath(`cloud/${path || ""}`);
64
67
  }
68
+ function frameworkCloudPath(path) {
69
+ return frameworkPath(`cloud/${path || ""}`);
70
+ }
65
71
  function collectionsPath(path) {
66
72
  return corePath(`collections/${path || ""}`);
67
73
  }
@@ -308,6 +314,7 @@ function xRayPath(path) {
308
314
  }
309
315
  var path = {
310
316
  actionsPath,
317
+ userActionsPath,
311
318
  aiPath,
312
319
  assetsPath,
313
320
  relativeActionsPath,
@@ -324,6 +331,7 @@ var path = {
324
331
  chatPath,
325
332
  cliPath,
326
333
  cloudPath,
334
+ frameworkCloudPath,
327
335
  collectionsPath,
328
336
  commandsPath,
329
337
  componentsPath,
@@ -421,6 +429,7 @@ export {
421
429
  viewsPath,
422
430
  validationPath,
423
431
  utilsPath,
432
+ userActionsPath,
424
433
  uiPath,
425
434
  typesPath,
426
435
  toNamespacedPath,
@@ -487,6 +496,7 @@ export {
487
496
  gitPath,
488
497
  functionsPath,
489
498
  frameworkPath,
499
+ frameworkCloudPath,
490
500
  format,
491
501
  fakerPath,
492
502
  extname,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.58.60",
4
+ "version": "0.58.63",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -23,6 +23,10 @@ export function relativeActionsPath(path?: string) {
23
23
  return relative(projectPath(), actionsPath(path))
24
24
  }
25
25
 
26
+ export function userActionsPath(path?: string) {
27
+ return appPath(`Actions/${path || ''}`)
28
+ }
29
+
26
30
  /**
27
31
  * Returns the path to the `ai` directory. The AI directory
28
32
  * contains the core Stacks' AI logic which currently
@@ -124,6 +128,10 @@ export function cloudPath(path?: string) {
124
128
  return corePath(`cloud/${path || ''}`)
125
129
  }
126
130
 
131
+ export function frameworkCloudPath(path?: string) {
132
+ return frameworkPath(`cloud/${path || ''}`)
133
+ }
134
+
127
135
  export function collectionsPath(path?: string) {
128
136
  return corePath(`collections/${path || ''}`)
129
137
  }
@@ -456,6 +464,7 @@ export function xRayPath(path?: string) {
456
464
 
457
465
  export const path = {
458
466
  actionsPath,
467
+ userActionsPath,
459
468
  aiPath,
460
469
  assetsPath,
461
470
  relativeActionsPath,
@@ -472,6 +481,7 @@ export const path = {
472
481
  chatPath,
473
482
  cliPath,
474
483
  cloudPath,
484
+ frameworkCloudPath,
475
485
  collectionsPath,
476
486
  commandsPath,
477
487
  componentsPath,