snow-flow 10.0.103 → 10.0.104

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "10.0.103",
3
+ "version": "10.0.104",
4
4
  "name": "snow-flow",
5
5
  "description": "Snow-Flow - ServiceNow Multi-Agent Development Framework powered by AI",
6
6
  "license": "Elastic-2.0",
package/src/flag/flag.ts CHANGED
@@ -40,6 +40,7 @@ export namespace Flag {
40
40
  export const OPENCODE_CLIENT = envBoth("CLIENT") ?? "cli"
41
41
  export const OPENCODE_SERVER_PASSWORD = envBoth("SERVER_PASSWORD")
42
42
  export const OPENCODE_SERVER_USERNAME = envBoth("SERVER_USERNAME")
43
+ export const OPENCODE_DEFAULT_DIRECTORY = envBoth("DEFAULT_DIRECTORY")
43
44
 
44
45
  // Experimental
45
46
  export const OPENCODE_EXPERIMENTAL = truthyBoth("EXPERIMENTAL")
@@ -128,7 +128,8 @@ export namespace Server {
128
128
  .route("/tui-ws", TuiWsRoutes())
129
129
  .route("/tui", TuiClientRoutes())
130
130
  .use(async (c, next) => {
131
- let directory = c.req.query("directory") || c.req.header("x-opencode-directory") || process.cwd()
131
+ let directory =
132
+ c.req.query("directory") || c.req.header("x-opencode-directory") || Flag.OPENCODE_DEFAULT_DIRECTORY || process.cwd()
132
133
  try {
133
134
  directory = decodeURIComponent(directory)
134
135
  } catch {