@githolon/dsl 0.70.1 → 0.70.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/package.json +1 -1
- package/src/codegen_ts.ts +1 -1
- package/src/compile_package_main.ts +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@githolon/dsl",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Nomos 2 domain-authoring DSL: aggregates + directives in TS, executed and encoded to the Rust kernel's wire shapes.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/codegen_ts.ts
CHANGED
|
@@ -950,7 +950,7 @@ export function generateTsClient(modules: readonly DomainModule[], opts: TsClien
|
|
|
950
950
|
` /** THE ONE ENCODER offer (the single v2-envelope codec lives in @githolon/client \`encodeIntentOfferBytes\`):`,
|
|
951
951
|
` * hand the holon a PLANNED directive + the verified \`actor\`; the holon encodes + offers. The generated`,
|
|
952
952
|
` * client calls THIS, never building offer bytes itself — so there is exactly ONE copy of the wire format. */`,
|
|
953
|
-
` offerDirective(domain: string, directiveId: string, payload: unknown, opts?: { domainHash?: string; actor?: string; returnCreated?: boolean }): Promise<string>;`,
|
|
953
|
+
` offerDirective(domain: string, directiveId: string, payload: unknown, opts?: { domainHash?: string; actor?: string; returnCreated?: boolean }): Promise<string | { head: string; created?: { type: string; id: string }[]; workspace?: string }>;`,
|
|
954
954
|
` /** Opaque-bytes offer — retained for carriers that already hold an encoded envelope (back-compat). */`,
|
|
955
955
|
` offer(intentBytes: string | Uint8Array): Promise<string>;`,
|
|
956
956
|
` /** The workspace this holon is bound to — the \`workspace\` of every [NomosRef] this client composes. */`,
|
|
@@ -865,11 +865,13 @@ function emitDart(
|
|
|
865
865
|
|
|
866
866
|
/** The pure-core support import generated TYPES files carry in layered-packages mode. */
|
|
867
867
|
const DART_TYPES_IMPORT = `import 'package:nomos_types/nomos_types.dart';`;
|
|
868
|
-
/** Version constraints the scaffolded pubspecs pin — move together with the Dart packages' releases.
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
//
|
|
872
|
-
const
|
|
868
|
+
/** Version constraints the scaffolded pubspecs pin — move together with the Dart packages' releases.
|
|
869
|
+
* Caret on 0.x is EXACT-MINOR (`^0.45.0` = `<0.46.0`), so these must track the CURRENT release, not
|
|
870
|
+
* just the floor generated code needs — a lagging pin forces tenants into dependency_overrides. */
|
|
871
|
+
// 0.1.4: custody-lifecycle types (CustodyBreakPolicy et al).
|
|
872
|
+
const NOMOS_TYPES_DEP = "^0.1.4";
|
|
873
|
+
// 0.46.0: custody lifecycle on NomosBridge/NomosSession (onCustodyBreak/custodyStatus/salvage lanes).
|
|
874
|
+
const NOMOS_CLIENT_DEP = "^0.46.0";
|
|
873
875
|
|
|
874
876
|
const isPubPackageName = (s: string): boolean => /^[a-z][a-z0-9_]*$/.test(s);
|
|
875
877
|
|