@yigemo/choosefire 0.2.1 → 0.2.2
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/README.md +1 -1
- package/dist/config.js +10 -6
- package/dist/config.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ choosefire asset remove --plan <plan-id> --account-id asset-bank --reason "dupli
|
|
|
74
74
|
choosefire visual dataset --plan <plan-id> --kind overview --json
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
The `workspace`, `household`, and `wealth` operations use the workspace bearer only, validate every request and response against the checked-in contract, never retry mutations, and never fall back to the legacy token or local files. Holding commands are available only for detailed accounts. `--quantity` and `--quantity-as-of` must be supplied together so scripts and audit replays remain deterministic. Give every wealth mutation an explicit `--command-id`; when an outcome is unknown, first read the latest projection and then explicitly retry the exact serialized body with the original command ID and idempotency key to recover the receipt-first outcome. Never generate a new ID or key for that recovery attempt. The JSON error includes this exact recovery material and action.
|
|
77
|
+
The `workspace`, `household`, and `wealth` operations use the workspace bearer only, validate every request and response against the checked-in contract, never retry mutations, and never fall back to the legacy token or local files. Workspace and family-wealth v2 are enabled by default now that the production capability is public; set `CHOOSEFIRE_ACCOUNT_WORKSPACE_ENABLED=false` or `CHOOSEFIRE_FAMILY_WEALTH_V2_ENABLED=false` for an explicit rollback/compatibility run. Holding commands are available only for detailed accounts. `--quantity` and `--quantity-as-of` must be supplied together so scripts and audit replays remain deterministic. Give every wealth mutation an explicit `--command-id`; when an outcome is unknown, first read the latest projection and then explicitly retry the exact serialized body with the original command ID and idempotency key to recover the receipt-first outcome. Never generate a new ID or key for that recovery attempt. The JSON error includes this exact recovery material and action.
|
|
78
78
|
|
|
79
79
|
Existing legacy plan write commands still default to dry-run unless `--apply` is passed. For CLI and MCP sources, `--expected-updated-at` should be provided to avoid overwriting newer data.
|
|
80
80
|
|
package/dist/config.js
CHANGED
|
@@ -32,17 +32,21 @@ export function loadConfig(options = {}) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export function parseWorkspaceEnabled(value) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (value === 'true')
|
|
35
|
+
// The workspace/R3 transport is now publicly enabled. Keep an explicit
|
|
36
|
+
// false escape hatch for local rollback and compatibility testing.
|
|
37
|
+
if (value === undefined || value === 'true')
|
|
38
38
|
return true;
|
|
39
|
+
if (value === 'false')
|
|
40
|
+
return false;
|
|
39
41
|
throw new Error('CHOOSEFIRE_ACCOUNT_WORKSPACE_ENABLED must be true or false');
|
|
40
42
|
}
|
|
41
43
|
export function parseFamilyWealthV2Enabled(value) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (value === 'true')
|
|
44
|
+
// Family wealth v2 is enabled alongside the account workspace by default;
|
|
45
|
+
// an explicit false still provides a safe, reversible rollback switch.
|
|
46
|
+
if (value === undefined || value === 'true')
|
|
45
47
|
return true;
|
|
48
|
+
if (value === 'false')
|
|
49
|
+
return false;
|
|
46
50
|
throw new Error('CHOOSEFIRE_FAMILY_WEALTH_V2_ENABLED must be true or false');
|
|
47
51
|
}
|
|
48
52
|
export function normalizeOrigin(value, nodeEnv = process.env.NODE_ENV) {
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOlD,MAAM,UAAU,UAAU,CAAC,UAAyB,EAAE;IACpD,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;IACvC,MAAM,UAAU,GAAG,eAAe,CAChC,GAAG,CAAC,uBAAuB,IAAI,2BAA2B,EAC1D,GAAG,CAAC,QAAQ,CACb,CAAC;IACF,MAAM,cAAc,GAAG,eAAe,CACpC,GAAG,CA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