@m14i/sith 1.13.1 → 1.14.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.
- package/dist/config.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/docker/Dockerfile +5 -2
- package/docker/nix/flake.nix +1 -1
- package/docker/nix/nix-scripts/07-ready.sh +8 -3
- package/docker/nix/shell.nix +1 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -43724,7 +43724,7 @@ __webpack_async_result__();
|
|
|
43724
43724
|
/* harmony export */ });
|
|
43725
43725
|
// Docker configuration
|
|
43726
43726
|
const DOCKER_CONFIG = {
|
|
43727
|
-
imageName: "
|
|
43727
|
+
imageName: "sith:latest",
|
|
43728
43728
|
prebuiltImage: "ghcr.io/merzoukemansouri/sith:latest",
|
|
43729
43729
|
folderName: "docker",
|
|
43730
43730
|
dockerfileName: "Dockerfile",
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@m14i/sith","version":"1.
|
|
1
|
+
{"name":"@m14i/sith","version":"1.14.1","description":"Turn your context to the dark side. Standardize and share your OpenCode setup with a fully dockerized environment, designed for seamless collaboration and CI integration.","type":"module","repository":{"type":"git","url":"https://github.com/MerzoukeMansouri/sith.git"},"bin":{"sith":"./dist/index.js"},"scripts":{"build":"ncc build src/index.ts -o dist && rm -rf dist/assets && cp -r assets dist/","dev":"tsx src/index.ts","dev:build":"pnpm build && node dist/index.js","dev:shell":"pnpm build && node dist/index.js shell","typecheck":"tsc --noEmit","clean":"rm -rf dist","prepublishOnly":"pnpm build"},"files":["dist","assets","docker"],"keywords":["opencode","docker","ci","automation","cli","nix"],"author":"","license":"MIT","dependencies":{"@inquirer/prompts":"^5.0.0","chalk":"^5.3.0","commander":"^12.1.0","execa":"^9.0.0","ink":"^7.0.3","ink-text-input":"^6.0.0","react":"^19.2.6","update-notifier":"^7.3.1"},"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^11.0.1","@semantic-release/npm":"^12.0.1","@types/node":"^20.12.7","@types/react":"^19.2.14","@types/update-notifier":"^6.0.8","@vercel/ncc":"^0.38.1","semantic-release":"^24.2.0","tsx":"^4.7.2","typescript":"^5.4.5"},"engines":{"node":">=18"}}
|
package/docker/Dockerfile
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# OpenCode Docker - Nix-based Image with Token Optimization Skills
|
|
2
2
|
# Version 2.3.0 - Multi-stage build with non-root user and improved security
|
|
3
3
|
#
|
|
4
|
-
# Build: docker build -t
|
|
5
|
-
# Run: docker run -v $(pwd):/workspace -e GITHUB_TOKEN=$GITHUB_TOKEN
|
|
4
|
+
# Build: docker build -t sith:latest .
|
|
5
|
+
# Run: docker run -v $(pwd):/workspace -e GITHUB_TOKEN=$GITHUB_TOKEN sith:latest analyze
|
|
6
6
|
|
|
7
7
|
# ============================================================================
|
|
8
8
|
# Stage 1: Builder - Setup environment and install dependencies
|
|
@@ -19,6 +19,9 @@ RUN echo "sandbox = false" >> /etc/nix/nix.conf && \
|
|
|
19
19
|
COPY docker/skills/rtk-config.toml /opt/sith/skills/rtk-config.toml
|
|
20
20
|
COPY docker/skills/opencode-skills-config.json /opt/sith/skills/opencode-skills-config.json
|
|
21
21
|
|
|
22
|
+
# Copier les assets (logo, etc.)
|
|
23
|
+
COPY assets/ /opt/sith/assets/
|
|
24
|
+
|
|
22
25
|
# Copier les fichiers Nix (scripts, config, shell.nix)
|
|
23
26
|
COPY docker/nix/ /opt/sith/nix/
|
|
24
27
|
|
package/docker/nix/flake.nix
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
# Ready message
|
|
3
3
|
|
|
4
|
-
if command -v catimg &> /dev/null
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
if command -v catimg &> /dev/null; then
|
|
5
|
+
if [ -f /opt/sith/assets/images/logo.png ]; then
|
|
6
|
+
catimg -w 80 /opt/sith/assets/images/logo.png 2>/dev/null
|
|
7
|
+
echo ""
|
|
8
|
+
elif [ -f /workspace/assets/images/logo.png ]; then
|
|
9
|
+
catimg -w 80 /workspace/assets/images/logo.png 2>/dev/null
|
|
10
|
+
echo ""
|
|
11
|
+
fi
|
|
7
12
|
fi
|
|
8
13
|
|
|
9
14
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
package/docker/nix/shell.nix
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m14i/sith",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "Turn your context to the dark side. Standardize and share your OpenCode setup with a fully dockerized environment, designed for seamless collaboration and CI integration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|