@m14i/sith 1.9.0 → 1.9.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/index.js +3 -1
- package/dist/package.json +1 -1
- package/docker/Dockerfile +6 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43271,8 +43271,10 @@ async function runShell() {
|
|
|
43271
43271
|
`${process.cwd()}:${_config_js__WEBPACK_IMPORTED_MODULE_5__/* .DOCKER_CONFIG */ .e6.workspaceMount}`,
|
|
43272
43272
|
"-e",
|
|
43273
43273
|
`GITHUB_TOKEN=${process.env.GITHUB_TOKEN || ""}`,
|
|
43274
|
+
"--entrypoint",
|
|
43275
|
+
"nix-shell",
|
|
43274
43276
|
_config_js__WEBPACK_IMPORTED_MODULE_5__/* .DOCKER_CONFIG */ .e6.imageName,
|
|
43275
|
-
|
|
43277
|
+
_config_js__WEBPACK_IMPORTED_MODULE_5__/* .DOCKER_CONFIG */ .e6.shellEntrypoint,
|
|
43276
43278
|
];
|
|
43277
43279
|
try {
|
|
43278
43280
|
await (0,execa__WEBPACK_IMPORTED_MODULE_6__/* .execa */ .Ho)("docker", dockerArgs, {
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@m14i/sith","version":"1.9.
|
|
1
|
+
{"name":"@m14i/sith","version":"1.9.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","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
|
@@ -25,11 +25,9 @@ COPY docker/nix/ /opt/sith/nix/
|
|
|
25
25
|
# Configurer npm pour utiliser le registry public
|
|
26
26
|
RUN echo "registry=https://registry.npmjs.org/" > /root/.npmrc
|
|
27
27
|
|
|
28
|
-
#
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
nix develop --profile /opt/sith/nix-profile --command echo '✅ Flake environment cached' && \
|
|
32
|
-
nix-store --gc --print-dead
|
|
28
|
+
# Pré-charger l'environnement Nix (installe tous les packages)
|
|
29
|
+
# Cela cache les dépendances dans le layer Docker
|
|
30
|
+
RUN nix-shell /opt/sith/nix/shell.nix --run "echo '✅ Environment cached'"
|
|
33
31
|
|
|
34
32
|
# Installer OpenCode CLI via script officiel
|
|
35
33
|
RUN nix-shell /opt/sith/nix/shell.nix --run " \
|
|
@@ -60,6 +58,7 @@ COPY --from=builder /opt/sith/ /opt/sith/
|
|
|
60
58
|
|
|
61
59
|
# Copier les binaires et configuration Nix depuis builder
|
|
62
60
|
COPY --from=builder /nix/store /nix/store
|
|
61
|
+
COPY --from=builder /nix/var /nix/var
|
|
63
62
|
COPY --from=builder /root/.opencode /root/.opencode
|
|
64
63
|
COPY --from=builder /root/.npmrc /root/.npmrc
|
|
65
64
|
|
|
@@ -108,8 +107,8 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
|
108
107
|
# Répertoire de travail pour les projets
|
|
109
108
|
WORKDIR /workspace
|
|
110
109
|
|
|
111
|
-
# Point d'entrée via nix
|
|
112
|
-
ENTRYPOINT ["
|
|
110
|
+
# Point d'entrée via nix-shell
|
|
111
|
+
ENTRYPOINT ["nix-shell", "/opt/sith/nix/shell.nix", "--run"]
|
|
113
112
|
|
|
114
113
|
# Commande par défaut
|
|
115
114
|
CMD ["opencode --help"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m14i/sith",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.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": {
|