@coze-arch/cli 0.1.4-alpha.7fcfb3 → 0.1.4-alpha.99c367

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/lib/cli.js CHANGED
@@ -2114,7 +2114,7 @@ const EventBuilder = {
2114
2114
  };
2115
2115
 
2116
2116
  var name = "@coze-arch/cli";
2117
- var version = "0.1.4-alpha.7fcfb3";
2117
+ var version = "0.1.4-alpha.99c367";
2118
2118
  var description = "coze coding devtools cli";
2119
2119
  var license = "MIT";
2120
2120
  var author = "fanwenjie.fe@bytedance.com";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coze-arch/cli",
3
- "version": "0.1.4-alpha.7fcfb3",
3
+ "version": "0.1.4-alpha.99c367",
4
4
  "private": false,
5
5
  "description": "coze coding devtools cli",
6
6
  "license": "MIT",
@@ -1,44 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Keep Next.js compiler output off Coze Drive while leaving source files in place.
3
- set -euo pipefail
4
-
5
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
6
- PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
7
-
8
- DRIVE_ROOT="${COZE_DRIVE_ROOT:-/Coze/Drive}"
9
- if [ -d "$DRIVE_ROOT" ]; then
10
- DRIVE_ROOT="$(cd "$DRIVE_ROOT" && pwd -P)"
11
- else
12
- DRIVE_ROOT="${DRIVE_ROOT%/}"
13
- fi
14
- case "$PROJECT_ROOT" in
15
- "$DRIVE_ROOT"|"$DRIVE_ROOT"/*) ;;
16
- *) exit 0 ;;
17
- esac
18
-
19
- NM_ROOT="/tmp/nm"
20
- PROJECT_ID="$(basename "$PROJECT_ROOT")-$(printf '%s' "$PROJECT_ROOT" | cksum | awk '{print $1}')"
21
- NEXT_DIR="$NM_ROOT/next/$PROJECT_ID"
22
- mkdir -p "$NEXT_DIR"
23
-
24
- if [ -L "$PROJECT_ROOT/.next" ]; then
25
- current="$(readlink "$PROJECT_ROOT/.next")"
26
- if [ "$current" = "$NEXT_DIR" ]; then
27
- exit 0
28
- fi
29
- echo "[next] refusing to replace unmanaged symlink: $PROJECT_ROOT/.next" >&2
30
- exit 1
31
- fi
32
-
33
- if [ -e "$PROJECT_ROOT/.next" ]; then
34
- rm -rf "$PROJECT_ROOT/.next"
35
- fi
36
-
37
- if ! ln -s "$NEXT_DIR" "$PROJECT_ROOT/.next"; then
38
- if [ ! -L "$PROJECT_ROOT/.next" ] || [ "$(readlink "$PROJECT_ROOT/.next")" != "$NEXT_DIR" ]; then
39
- echo "[next] failed to link $PROJECT_ROOT/.next to $NEXT_DIR" >&2
40
- exit 1
41
- fi
42
- fi
43
-
44
- echo "[next] Compiler output ready at $NEXT_DIR"