@teispace/next-maker 3.0.0 → 3.0.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/commands/component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,eAAO,MAAM,wBAAwB,GAAI,SAAS,OAAO,SAiGxD,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/commands/component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,eAAO,MAAM,wBAAwB,GAAI,SAAS,OAAO,SAqGxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../src/commands/feature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAezC,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,SAoEtD,CAAC"}
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../src/commands/feature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,SAuEtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/commands/hook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAezC,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,SAmEnD,CAAC"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/commands/hook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,SAqEnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/commands/locale.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYzC,eAAO,MAAM,qBAAqB,GAAI,SAAS,OAAO,SAuErD,CAAC"}
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/commands/locale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAazC,eAAO,MAAM,qBAAqB,GAAI,SAAS,OAAO,SA0ErD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/commands/page.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAezC,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,SAwFnD,CAAC"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/commands/page.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,SA2FnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/commands/service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,SAkGtD,CAAC"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/commands/service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,SAqGtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../src/commands/slice.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,SA0FpD,CAAC"}
1
+ {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../src/commands/slice.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkBzC,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,SAqFpD,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Assert a name is a single safe segment. Rejects empty, path separators,
3
+ * `..`, absolute paths, Windows reserved names, and anything outside
4
+ * kebab/camel-case word characters.
5
+ *
6
+ * @throws Error with an actionable message when invalid.
7
+ */
8
+ export declare function assertSafeSegment(name: string, label?: string): string;
9
+ /**
10
+ * Assert a relative path is a safe, slash-separated list of segments. Used for
11
+ * `--path` / `--feature`. Rejects absolute paths, drive letters, and any
12
+ * segment that isn't a valid `SEGMENT_RE` (which inherently rules out `..`,
13
+ * dots, backslashes, and non-ASCII — so there is no need for a separate,
14
+ * over-broad `includes('..')` check that would also reject legitimate names
15
+ * like `foo..bar`).
16
+ *
17
+ * @throws Error with an actionable message when invalid.
18
+ */
19
+ export declare function assertSafeRelativePath(relPath: string, label?: string): string;
20
+ /**
21
+ * Resolve `relativePath` against `root` and guarantee the result stays inside
22
+ * `root`. This is the last line of defense even after segment validation —
23
+ * symlinks or unusual inputs can still escape, so callers that build a final
24
+ * write path should resolve through here.
25
+ *
26
+ * @throws Error if the resolved path escapes `root`.
27
+ */
28
+ export declare function resolveInside(root: string, ...relativeParts: string[]): string;
29
+ //# sourceMappingURL=path-safety.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-safety.d.ts","sourceRoot":"","sources":["../../../src/config/path-safety.ts"],"names":[],"mappings":"AA4BA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,SAAS,GAAG,MAAM,CAetE;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,GAAG,MAAM,CAyB9E;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,MAAM,EAAE,GAAG,MAAM,CAW9E"}
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Validate a git remote URL/spec before use. Even though argv form already
3
+ * neutralizes injection, we reject obviously malformed values (and a leading
4
+ * `-` that git would treat as an option) for clear, early errors.
5
+ */
6
+ export declare function assertValidRemote(remote: string): void;
1
7
  export declare const initializeGit: (cwd: string, gitRemote?: string, pushToRemote?: boolean) => Promise<void>;
2
8
  export declare const addRemote: (cwd: string, url: string) => Promise<void>;
3
9
  export declare const isGitInstalled: () => Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../src/core/git.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,GACxB,KAAK,MAAM,EACX,YAAY,MAAM,EAClB,eAAe,OAAO,KACrB,OAAO,CAAC,IAAI,CAoCd,CAAC;AAEF,eAAO,MAAM,SAAS,GAAU,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,IAAI,CAMtE,CAAC;AAEF,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,OAAO,CAOtD,CAAC"}
1
+ {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../src/core/git.ts"],"names":[],"mappings":"AAcA;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAatD;AAED,eAAO,MAAM,aAAa,GACxB,KAAK,MAAM,EACX,YAAY,MAAM,EAClB,eAAe,OAAO,KACrB,OAAO,CAAC,IAAI,CAoCd,CAAC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AE,OAAO,CAAC;IACd,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,OAAO,CAAC;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,uBAAuB,GAAU,cAAc,MAAM,KAAG,OAAO,CAAC,cAAc,CAqT1F,CAAC"}
@@ -2,5 +2,5 @@ export interface SliceOptions {
2
2
  sliceName: string;
3
3
  persistSlice: boolean;
4
4
  }
5
- export declare const promptForSliceDetails: (sliceName?: string, persist?: boolean, noPersist?: boolean) => Promise<SliceOptions>;
5
+ export declare const promptForSliceDetails: (sliceName?: string, persist?: boolean) => Promise<SliceOptions>;
6
6
  //# sourceMappingURL=slice.prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slice.prompt.d.ts","sourceRoot":"","sources":["../../../src/prompts/slice.prompt.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,GAChC,YAAY,MAAM,EAClB,UAAU,OAAO,EACjB,YAAY,OAAO,KAClB,OAAO,CAAC,YAAY,CAwCtB,CAAC"}
1
+ {"version":3,"file":"slice.prompt.d.ts","sourceRoot":"","sources":["../../../src/prompts/slice.prompt.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,GAChC,YAAY,MAAM,EAGlB,UAAU,OAAO,KAChB,OAAO,CAAC,YAAY,CAmCtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teispace/next-maker",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Create a new Teispace Next.js application with interactive setup.",
5
5
  "keywords": [
6
6
  "nextjs",