gipity 1.1.15 → 1.1.16
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/agents/opencode.js +13 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/agents/opencode.js
CHANGED
|
@@ -46,7 +46,7 @@ export const opencodeAdapter = {
|
|
|
46
46
|
providerName: 'Anomaly',
|
|
47
47
|
binary: 'opencode',
|
|
48
48
|
buildInteractiveArgs({ resume, model }) {
|
|
49
|
-
const args = [];
|
|
49
|
+
const args = ['--dir', process.cwd()];
|
|
50
50
|
if (model)
|
|
51
51
|
args.push('--model', toOpencodeModel(model));
|
|
52
52
|
if (resume)
|
|
@@ -54,7 +54,18 @@ export const opencodeAdapter = {
|
|
|
54
54
|
return args;
|
|
55
55
|
},
|
|
56
56
|
buildHeadlessArgs({ message, resume, model, bypassApprovals, jsonStream }) {
|
|
57
|
-
|
|
57
|
+
// `--dir` is REQUIRED, not a nicety: opencode resolves its own working
|
|
58
|
+
// directory rather than inheriting the spawn cwd, and lands on $HOME when
|
|
59
|
+
// nothing tells it otherwise. On a cloud devbox that meant every file the
|
|
60
|
+
// agent wrote went to /home/relay instead of the project - so nothing
|
|
61
|
+
// synced back to Gipity and the user saw an agent that "didn't write any
|
|
62
|
+
// files" (observed live 2026-08-14: `← Write /home/relay/foo.txt` while
|
|
63
|
+
// the daemon's own sync ran in .../GipityProjects/project-394).
|
|
64
|
+
//
|
|
65
|
+
// process.cwd() is the right value: `gipity build` is spawned by the relay
|
|
66
|
+
// daemon with cwd set to the resolved project dir, and launches the agent
|
|
67
|
+
// from that same cwd.
|
|
68
|
+
const args = ['run', '--dir', process.cwd(), message];
|
|
58
69
|
if (model)
|
|
59
70
|
args.push('--model', toOpencodeModel(model));
|
|
60
71
|
if (resume)
|
package/dist/index.js
CHANGED
|
@@ -8863,13 +8863,13 @@ var init_opencode2 = __esm({
|
|
|
8863
8863
|
providerName: "Anomaly",
|
|
8864
8864
|
binary: "opencode",
|
|
8865
8865
|
buildInteractiveArgs({ resume, model }) {
|
|
8866
|
-
const args = [];
|
|
8866
|
+
const args = ["--dir", process.cwd()];
|
|
8867
8867
|
if (model) args.push("--model", toOpencodeModel(model));
|
|
8868
8868
|
if (resume) args.push("--session", resume);
|
|
8869
8869
|
return args;
|
|
8870
8870
|
},
|
|
8871
8871
|
buildHeadlessArgs({ message, resume, model, bypassApprovals, jsonStream }) {
|
|
8872
|
-
const args = ["run", message];
|
|
8872
|
+
const args = ["run", "--dir", process.cwd(), message];
|
|
8873
8873
|
if (model) args.push("--model", toOpencodeModel(model));
|
|
8874
8874
|
if (resume) args.push("--session", resume);
|
|
8875
8875
|
if (bypassApprovals) args.push("--auto");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gipity",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "The full-stack platform tuned for AI agents. Database, storage, auth, functions, deploy, and drop-in kits - all agent-tuned. Pair with Claude Code or use standalone.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"gipity": "dist/updater/shim.js",
|