Configuration keys and precedence

Generated Caller packages use this priority order; lower numeric priority wins. .NET and Node.js are fully covered; other runtimes follow the same conceptual levels—confirm field names and helpers in the installed package:

PrioritySourceGenerated source name
1Runtime/graft-specific environment<graft-name>-config
2Global environmentgraftcode-config
3Runtime/graft-specific file<graft-name>-config.json, .yaml, .txt
4Global filegraftcode-config.json, .yaml, .txt
5Programmatic user configSetConfig(...) / setConfig(...)
6Generated library defaultregistered by GraftConfig

At equal name and priority, the first added configuration is kept. Relative files resolve from the application's current working directory.

Keys

Generated defaults include:

  • name;
  • runtime;
  • modules;
  • host (inmemory by default);
  • stateless (false by default).

JSON and YAML require a top-level configurations object. Text accepts semicolon-delimited connection-string data and requires at least name and runtime.

Set generated static fields before the first call. The runtime context is cached and no supported reset/re-resolve operation is exposed by generated packages.

Programmatic remote host example (copy imports and names from Vision):

GraftConfig.Host = "ws://localhost/ws";
GraftConfig.Stateless = true;
Naming and resolver behavior is not identical for every generated runtime. .NET and Node.js are fully covered; confirm the installed package for other runtimes.

Next steps