@warmdrift/kgauto-compiler 2.0.0-alpha.25 → 2.0.0-alpha.27

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/profiles.js CHANGED
@@ -859,12 +859,23 @@ var PROFILES_RAW = [
859
859
  // Each entry's pricing/context/cliffs/lowering reflects the template, NOT
860
860
  // provider docs. Verify before promoting status to 'current' (L-049/L-081).
861
861
  {
862
+ // s37 (2026-05-21): UNVERIFIED-AUTO-ONBOARD → verified against
863
+ // ai.google.dev/gemini-api/docs/models/gemini-3-flash-preview +
864
+ // ai.google.dev/gemini-api/docs/pricing. L-081 catches:
865
+ // maxOutputTokens 65_535 → 65_536 (off-by-one)
866
+ // costInputPer1m 0.30 → 0.50 (template-cloned from 2.5-flash; actual is 1.67× more expensive)
867
+ // costOutputPer1m 2.50 → 3.00 (template-cloned; actual 1.2× more expensive)
868
+ // cache discount default 0.25 → 0.10 (10× discount, $0.05/$0.50 per docs)
869
+ // Cliffs inherited from 2.5-flash conservatively. The 8K-context-quality
870
+ // cliff was a 2.5-Flash observation — Google positions Gemini 3 as
871
+ // sustained-frontier-on-long-context; brain evidence will validate/relax.
872
+ // Kept as guard for now.
862
873
  id: "gemini-3-flash-preview",
863
- verifiedAgainstDocs: "UNVERIFIED-AUTO-ONBOARD",
874
+ verifiedAgainstDocs: "2026-05-21",
864
875
  provider: "google",
865
876
  status: "preview",
866
877
  maxContextTokens: 1048576,
867
- maxOutputTokens: 65535,
878
+ maxOutputTokens: 65536,
868
879
  maxTools: 128,
869
880
  parallelToolCalls: true,
870
881
  structuredOutput: "native",
@@ -875,13 +886,13 @@ var PROFILES_RAW = [
875
886
  metric: "input_tokens",
876
887
  threshold: 8e3,
877
888
  action: "downgrade_quality_warning",
878
- reason: "Quality degrades significantly above ~8K context tokens"
889
+ reason: "Inherited from 2.5-flash guard; brain evidence on Gemini 3 long-context quality will validate/relax"
879
890
  },
880
891
  {
881
892
  metric: "tool_count",
882
893
  threshold: 20,
883
894
  action: "drop_to_top_relevant",
884
- reason: "Tool reliability drops above ~20 tools (despite 128 hard limit)"
895
+ reason: "Tool reliability drops above ~20 tools (despite 128 hard limit) \u2014 inherited from Flash family"
885
896
  },
886
897
  {
887
898
  metric: "thinking_with_short_output",
@@ -890,24 +901,22 @@ var PROFILES_RAW = [
890
901
  reason: "Thinking tokens consume maxOutputTokens \u2014 empty response if drained"
891
902
  },
892
903
  {
893
- // s11 trust artifact (2026-05-02): brain showed 5/5 empty rate on
894
- // tt-intelligence/summarize/gemini-2.5-flash with tools offered.
895
- // v1's disable_thinking_for_short_output already fired and didn't
896
- // help — disabling thinking is necessary but not sufficient. Tools
897
- // present + summarize intent confuses Flash into a no-output state
898
- // (likely tool-decision purgatory). Strip tools entirely for this
899
- // archetype on this model.
904
+ // Inherited from gemini-2.5-flash s11 trust artifact. Family-likely
905
+ // failure mode for Flash architecture. Keep preemptively until brain
906
+ // evidence on Gemini 3 specifically.
900
907
  metric: "tool_count",
901
908
  threshold: 1,
902
909
  whenIntent: "summarize",
903
910
  action: "strip_tools",
904
- reason: "Gemini Flash returns empty when summarize intent has tools offered (5/5 empty rate observed in v1 prod 2026-04-19, replayed into v2 brain 2026-04-29)"
911
+ reason: "Inherited from 2.5-flash s11 cliff: summarize+tools \u2192 empty response. Preemptive guard until brain evidence on 3-flash-preview specifically."
905
912
  }
906
913
  ],
907
- costInputPer1m: 0.3,
908
- costOutputPer1m: 2.5,
914
+ costInputPer1m: 0.5,
915
+ costOutputPer1m: 3,
909
916
  lowering: {
910
917
  ...GOOGLE_LOWERING_BASE,
918
+ // 10× cache discount per Google pricing: $0.05/M cached vs $0.50/M input.
919
+ cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
911
920
  thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
912
921
  },
913
922
  recovery: [
@@ -933,40 +942,45 @@ var PROFILES_RAW = [
933
942
  ],
934
943
  strengths: ["speed", "volume", "classification", "1m_context", "cost"],
935
944
  weaknesses: ["complex_schemas", "large_tool_sets", "high_context_quality"],
936
- notes: "AUTO-ONBOARDED 2026-05-16 from `gemini-2.5-flash`. Pricing, context, cliffs are template-cloned and UNVERIFIED \u2014 confirm against provider docs before promoting status to 'current'.",
937
- // Master plan §6.2 anchor. Tier 0 for hunt (parallel tool throughput
938
- // 15-75 calls/step beats Sonnet L-040), summarize, classify.
945
+ notes: "Verified s37 (2026-05-21) against Google docs. Step-change positioning vs 2.5-flash on agentic loops per Google's release notes (Dec 2025). Pricing 1.67\xD7/1.2\xD7 higher than 2.5-flash; cache discount 10\xD7 (vs 4\xD7 for 2.5). Status=preview until brain evidence accumulates.",
946
+ // Anchored to 2.5-flash archetypePerf as starter, with judgment adjustments
947
+ // for Google's "step-change on agentic" positioning. Brain evidence (zero
948
+ // rows today) will replace these starter values.
939
949
  archetypePerf: {
940
950
  hunt: 9,
941
- // L-040: parallel tool throughput 15-75/step
951
+ // Inherits 2.5-flash L-040 parallel-tool tier; Google positions 3 as agentic-loop upgrade
942
952
  classify: 7,
943
- // brain-validated, 218 rows
953
+ // Inherits 2.5-flash brain-validated tier (218 rows on 2.5)
944
954
  summarize: 7,
945
- // brain-validated; cliff strips tools when present
955
+ // Inherits 2.5-flash; cliff strips tools when present
946
956
  transform: 7,
947
- ask: 7,
948
- generate: 6,
949
- plan: 5,
957
+ ask: 8,
958
+ // +1 vs 2.5-flash — sustained-frontier positioning
959
+ generate: 7,
960
+ // +1 vs 2.5-flash — agentic coding upgrade per Google
961
+ plan: 6,
962
+ // +1 vs 2.5-flash — complex iterations per positioning
950
963
  extract: 6,
951
- // alpha.8 MAX_TOKENS history on structured output
952
- critique: 4
953
- // reasoning shallower than Sonnet/Opus
964
+ critique: 5
965
+ // +1 vs 2.5-flash — but still below Sonnet/Opus reasoning floor
954
966
  }
955
967
  },
956
968
  {
957
- // ── Gemini 2.5 Flash-Lite ──
958
- // Onboarded 2026-05-13 (s22) after the model-release watcher surfaced
959
- // it as a UNREGISTERED + NEW candidate. Released by Google July 2025,
960
- // stable. Positioned BELOW Flash on the cost/perf frontier:
961
- // input $0.10/M (Flash $0.30/M) —cheaper
962
- // output $0.40/M (Flash $2.50/M) — 6× cheaper
963
- // cache $0.01/M — 1/10 of input (vs Flash 0.25 discount)
964
- // Cliffs are HYPOTHESIZED from Flash's known failure modes — Flash-Lite
965
- // is a smaller sibling, so we inherit Flash's cliffs at equal-or-tighter
966
- // thresholds. The brain will validate/relax these as evidence accumulates
967
- // per (archetype, model) tuple. Currently ZERO brain rows for this model.
969
+ // ── Gemini 3.1 Flash-Lite ──
970
+ // Onboarded 2026-05-16 by auto-onboarder; s37 (2026-05-21) verified
971
+ // against ai.google.dev/gemini-api/docs/pricing.
972
+ //
973
+ // L-081 CATCHES (template clone from 2.5-flash-lite was 2.5-3.75× too cheap):
974
+ // costInputPer1m 0.10 0.25 (template clone undervalued by 2.)
975
+ // costOutputPer1m 0.40 1.50 (template clone undervalued by 3.75×)
976
+ //
977
+ // Real 3.1-flash-lite is NOT a cost-equivalent successor to 2.5-flash-lite —
978
+ // it sits between 2.5-flash-lite ($0.10/$0.40) and 2.5-flash ($0.30/$2.50).
979
+ // Cache discount 10× verified ($0.025/M cached vs $0.25/M input).
980
+ //
981
+ // Cliffs are HYPOTHESIZED from 2.5-flash family; brain evidence pending.
968
982
  id: "gemini-3.1-flash-lite",
969
- verifiedAgainstDocs: "UNVERIFIED-AUTO-ONBOARD",
983
+ verifiedAgainstDocs: "2026-05-21",
970
984
  provider: "google",
971
985
  status: "preview",
972
986
  maxContextTokens: 1048576,
@@ -1007,12 +1021,12 @@ var PROFILES_RAW = [
1007
1021
  reason: "Inherited from Flash s11 cliff: summarize+tools \u2192 empty response. Preemptive guard until brain evidence on Flash-Lite specifically."
1008
1022
  }
1009
1023
  ],
1010
- costInputPer1m: 0.1,
1011
- costOutputPer1m: 0.4,
1024
+ costInputPer1m: 0.25,
1025
+ costOutputPer1m: 1.5,
1012
1026
  lowering: {
1013
1027
  ...GOOGLE_LOWERING_BASE,
1014
- // Cache discount 10× (vs Flash 4×) — Google's spec is $0.01/M cache vs
1015
- // $0.10/M input. Material for repeat-prompt workloads (classify shape).
1028
+ // Cache discount 10× (vs Flash 4×) — Google docs s37: $0.025/M cached vs
1029
+ // $0.25/M input. Material for repeat-prompt workloads (classify shape).
1016
1030
  cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
1017
1031
  thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
1018
1032
  },
@@ -1037,13 +1051,13 @@ var PROFILES_RAW = [
1037
1051
  reason: "MALFORMED_FUNCTION_CALL maps to stop \u2014 escalate to next target."
1038
1052
  }
1039
1053
  ],
1040
- strengths: ["lowest_cost", "speed", "volume", "classification", "summarize", "1m_context", "cache_friendly"],
1054
+ strengths: ["low_cost", "speed", "volume", "classification", "summarize", "1m_context", "cache_friendly"],
1041
1055
  weaknesses: ["complex_reasoning", "large_tool_sets", "complex_schemas", "structured_output_unproven", "long_context_quality"],
1042
- notes: "AUTO-ONBOARDED 2026-05-16 from `gemini-2.5-flash-lite`. Pricing, context, cliffs are template-cloned and UNVERIFIED \u2014 confirm against provider docs before promoting status to 'current'.",
1043
- // Tier 3 emergency floor for summarize/classify chains. ZERO brain
1044
- // rows — all values are starter hypotheses anchored to "smaller
1045
- // sibling of Flash, at-or-below Flash perf on every archetype." The
1046
- // first 50 brain rows per archetype will validate or relax these.
1056
+ notes: "Verified s37 (2026-05-21) against Google docs. Sits between 2.5-flash-lite (cheaper) and 2.5-flash (more expensive) on cost frontier; 2.5\xD7 more expensive than initial template-clone. Cliffs hypothesized from Flash family \u2014 brain evidence pending.",
1057
+ // Tier 2-3 floor for summarize/classify chains at the new (verified) price
1058
+ // point. ZERO brain rows — values are starter hypotheses anchored to
1059
+ // "smaller sibling of Flash at higher cost than 2.5-flash-lite." The first
1060
+ // 50 brain rows per archetype will validate or relax these.
1047
1061
  archetypePerf: {
1048
1062
  classify: 6,
1049
1063
  // starter hypothesis — verify (Flash is 7, lite likely ≤)
@@ -1058,6 +1072,125 @@ var PROFILES_RAW = [
1058
1072
  plan: 3,
1059
1073
  critique: 3
1060
1074
  }
1075
+ },
1076
+ // ─────────────────────────────────────────────────────────────────────────
1077
+ // Gemini 3.5 Flash — hand-onboarded s37 (2026-05-21)
1078
+ //
1079
+ // Google positioning ("Most intelligent for sustained frontier performance
1080
+ // on agentic and coding tasks" / "particularly effective for rapid agentic
1081
+ // loops involving complex coding cycles and iterations") suggests this is
1082
+ // the Flash-family upgrade specifically aimed at hunt-shape workloads.
1083
+ // Pricing 5× input / 3.6× output vs 2.5-flash — material cost premium.
1084
+ // archetypePerf adjusted +1 vs 2.5-flash on ask/generate/plan/critique
1085
+ // (sustained-frontier positioning); hunt held at 9 inherited from L-040
1086
+ // family parallel-tool tier; brain evidence will validate within 50 rows.
1087
+ //
1088
+ // Cliffs inherited conservatively from 2.5-flash. Google's "sustained
1089
+ // frontier on long-context" positioning suggests the 8K cliff may not
1090
+ // apply to 3.5 — keep as guard until brain evidence shows otherwise.
1091
+ //
1092
+ // Specs verified against:
1093
+ // ai.google.dev/gemini-api/docs/models/gemini-3.5-flash
1094
+ // ai.google.dev/gemini-api/docs/pricing (Standard tier)
1095
+ // ─────────────────────────────────────────────────────────────────────────
1096
+ {
1097
+ id: "gemini-3.5-flash",
1098
+ verifiedAgainstDocs: "2026-05-21",
1099
+ provider: "google",
1100
+ status: "current",
1101
+ maxContextTokens: 1048576,
1102
+ maxOutputTokens: 65536,
1103
+ maxTools: 128,
1104
+ parallelToolCalls: true,
1105
+ structuredOutput: "native",
1106
+ systemPromptMode: "separate",
1107
+ streaming: true,
1108
+ cliffs: [
1109
+ {
1110
+ metric: "input_tokens",
1111
+ threshold: 8e3,
1112
+ action: "downgrade_quality_warning",
1113
+ reason: "Inherited from 2.5-flash guard; Google positions 3.5 as sustained-frontier-on-long-context but brain evidence pending"
1114
+ },
1115
+ {
1116
+ metric: "tool_count",
1117
+ threshold: 20,
1118
+ action: "drop_to_top_relevant",
1119
+ reason: "Inherited from Flash family: tool reliability drops above ~20 (despite 128 hard limit). Validate per (archetype, model) after n\u226520."
1120
+ },
1121
+ {
1122
+ metric: "thinking_with_short_output",
1123
+ threshold: 1,
1124
+ action: "force_thinking_budget_zero",
1125
+ reason: "Thinking mode supported per Google docs; same drain risk as 2.5-flash \u2014 thinking tokens consume maxOutputTokens"
1126
+ },
1127
+ {
1128
+ // Inherited from 2.5-flash s11 trust artifact (5/5 empty rate on
1129
+ // tt-intelligence/summarize/gemini-2.5-flash with tools offered).
1130
+ // Family-likely failure mode for Flash architecture across versions.
1131
+ // Keep preemptively until brain evidence on 3.5-flash specifically.
1132
+ metric: "tool_count",
1133
+ threshold: 1,
1134
+ whenIntent: "summarize",
1135
+ action: "strip_tools",
1136
+ reason: "Inherited from 2.5-flash s11 cliff (kgauto commit 3872832): summarize+tools \u2192 empty response. Preemptive guard until brain evidence on 3.5-flash specifically."
1137
+ }
1138
+ ],
1139
+ costInputPer1m: 1.5,
1140
+ costOutputPer1m: 9,
1141
+ lowering: {
1142
+ ...GOOGLE_LOWERING_BASE,
1143
+ // 10× cache discount per Google pricing: $0.15/M cached vs $1.50/M input.
1144
+ cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
1145
+ thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
1146
+ },
1147
+ recovery: [
1148
+ {
1149
+ signal: "empty_response_after_tool",
1150
+ action: "retry_with_params",
1151
+ retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
1152
+ maxRetries: 1,
1153
+ reason: "Inherited Flash-family pattern: empty after tool result \u2014 retry with thinking off"
1154
+ },
1155
+ {
1156
+ signal: "empty_response",
1157
+ action: "retry_with_params",
1158
+ retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
1159
+ maxRetries: 1,
1160
+ reason: "Empty response \u2014 try with thinking off"
1161
+ },
1162
+ {
1163
+ signal: "malformed_function_call",
1164
+ action: "escalate",
1165
+ reason: "MALFORMED_FUNCTION_CALL maps to stop \u2014 escalate to next target"
1166
+ }
1167
+ ],
1168
+ strengths: ["agentic_loops", "coding", "1m_context", "parallel_tools", "thinking_mode", "sustained_frontier"],
1169
+ weaknesses: ["cost_vs_2_5_flash", "no_brain_evidence_yet"],
1170
+ notes: "Hand-onboarded s37 (2026-05-21) verified against Google docs. Stable status; positioned as Flash-family upgrade for agentic loops and coding. 5\xD7/3.6\xD7 more expensive than 2.5-flash but Google claims step-change on sustained frontier work. archetypePerf adjustments are judgment-grounded starter hypotheses \u2014 brain evidence will validate within ~50 rows per archetype.",
1171
+ // Starter hypothesis: anchored to 2.5-flash archetypePerf with +1
1172
+ // adjustments where Google's positioning explicitly supports
1173
+ // (agentic/coding/sustained). Hunt held at 9 inherited from L-040 family
1174
+ // parallel-tool tier. Brain evidence will replace.
1175
+ archetypePerf: {
1176
+ hunt: 9,
1177
+ // Inherited from 2.5-flash L-040 parallel-tool tier; Google positions 3.5 as agentic-loop champion
1178
+ classify: 7,
1179
+ // Inherited from 2.5-flash brain-validated tier (218 rows on 2.5)
1180
+ summarize: 7,
1181
+ // Inherited from 2.5-flash; cliff strips tools when present
1182
+ transform: 7,
1183
+ ask: 8,
1184
+ // +1 vs 2.5-flash — sustained-frontier positioning
1185
+ generate: 8,
1186
+ // +1 vs 2.5-flash (6→8) — Google: "complex coding cycles and iterations"
1187
+ plan: 7,
1188
+ // +1 vs 2.5-flash (5→7) — "complex iterations" positioning
1189
+ extract: 7,
1190
+ // +1 vs 2.5-flash — sustained-frontier on structured tasks
1191
+ critique: 5
1192
+ // +1 vs 2.5-flash — but still below Sonnet/Opus reasoning floor
1193
+ }
1061
1194
  }
1062
1195
  ];
1063
1196
  var ALIASES = {
package/dist/profiles.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  getProfile,
7
7
  profilesByProvider,
8
8
  tryGetProfile
9
- } from "./chunk-7MTHFSNY.mjs";
9
+ } from "./chunk-JQGRWJZO.mjs";
10
10
  export {
11
11
  ALIASES,
12
12
  _setProfileBrainHook,
@@ -92,20 +92,29 @@ interface FallbackWalkedData {
92
92
  */
93
93
  interface GlassboxPubSub {
94
94
  /**
95
- * Publish a single event for a traceId. Returns a promise that resolves
96
- * after the event is durably appended (or rejects on adapter failure —
97
- * callers in emit.ts always swallow rejections).
95
+ * Publish a single event to a channel key. The channel is an opaque
96
+ * namespaced string callers build it via `traceChannel(traceId)` or
97
+ * `appChannel(appId)` (see pubsub-upstash.ts). Returns a promise that
98
+ * resolves after the event is durably appended (or rejects on adapter
99
+ * failure — callers in emit.ts always swallow rejections).
100
+ *
101
+ * Pre-alpha.26 the parameter was named `traceId` because there was only
102
+ * one channel namespace; alpha.26 added per-app channels for the
103
+ * "tail-all" Live tab subscription. Behavior identical to the adapters —
104
+ * they treat the value as an opaque key — but the rename surfaces the
105
+ * generalization at the type level.
98
106
  */
99
- publish(traceId: string, event: GlassboxEvent): Promise<void>;
107
+ publish(channelKey: string, event: GlassboxEvent): Promise<void>;
100
108
  /**
101
- * Subscribe to events for a traceId. Returns a ReadableStream that emits
102
- * GlassboxEvent objects as they're published. The stream closes cleanly
103
- * after the per-trace TTL elapses since the LAST event (rolling 60s).
109
+ * Subscribe to events on a channel key. Returns a ReadableStream that
110
+ * emits GlassboxEvent objects as they're published. The stream closes
111
+ * cleanly after the channel-level TTL elapses since the LAST event
112
+ * (rolling 60s).
104
113
  *
105
- * If the traceId has no publisher within 60s of subscription, the stream
106
- * closes empty.
114
+ * If no publisher writes to the channel within 60s of subscription, the
115
+ * stream closes empty.
107
116
  */
108
- subscribe(traceId: string): ReadableStream<GlassboxEvent>;
117
+ subscribe(channelKey: string): ReadableStream<GlassboxEvent>;
109
118
  /**
110
119
  * Test-only escape hatch. Clears any in-memory state. Upstash adapter
111
120
  * no-ops (server-side state isn't accessible from here). Tests reach for
@@ -92,20 +92,29 @@ interface FallbackWalkedData {
92
92
  */
93
93
  interface GlassboxPubSub {
94
94
  /**
95
- * Publish a single event for a traceId. Returns a promise that resolves
96
- * after the event is durably appended (or rejects on adapter failure —
97
- * callers in emit.ts always swallow rejections).
95
+ * Publish a single event to a channel key. The channel is an opaque
96
+ * namespaced string callers build it via `traceChannel(traceId)` or
97
+ * `appChannel(appId)` (see pubsub-upstash.ts). Returns a promise that
98
+ * resolves after the event is durably appended (or rejects on adapter
99
+ * failure — callers in emit.ts always swallow rejections).
100
+ *
101
+ * Pre-alpha.26 the parameter was named `traceId` because there was only
102
+ * one channel namespace; alpha.26 added per-app channels for the
103
+ * "tail-all" Live tab subscription. Behavior identical to the adapters —
104
+ * they treat the value as an opaque key — but the rename surfaces the
105
+ * generalization at the type level.
98
106
  */
99
- publish(traceId: string, event: GlassboxEvent): Promise<void>;
107
+ publish(channelKey: string, event: GlassboxEvent): Promise<void>;
100
108
  /**
101
- * Subscribe to events for a traceId. Returns a ReadableStream that emits
102
- * GlassboxEvent objects as they're published. The stream closes cleanly
103
- * after the per-trace TTL elapses since the LAST event (rolling 60s).
109
+ * Subscribe to events on a channel key. Returns a ReadableStream that
110
+ * emits GlassboxEvent objects as they're published. The stream closes
111
+ * cleanly after the channel-level TTL elapses since the LAST event
112
+ * (rolling 60s).
104
113
  *
105
- * If the traceId has no publisher within 60s of subscription, the stream
106
- * closes empty.
114
+ * If no publisher writes to the channel within 60s of subscription, the
115
+ * stream closes empty.
107
116
  */
108
- subscribe(traceId: string): ReadableStream<GlassboxEvent>;
117
+ subscribe(channelKey: string): ReadableStream<GlassboxEvent>;
109
118
  /**
110
119
  * Test-only escape hatch. Clears any in-memory state. Upstash adapter
111
120
  * no-ops (server-side state isn't accessible from here). Tests reach for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmdrift/kgauto-compiler",
3
- "version": "2.0.0-alpha.25",
3
+ "version": "2.0.0-alpha.27",
4
4
  "description": "Prompt compiler + central learning brain for multi-model AI apps. Swap models without rewriting prompts.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -1,19 +0,0 @@
1
- import {
2
- getPubSub
3
- } from "./chunk-NUTC7NUC.mjs";
4
-
5
- // src/glassbox/subscribe.ts
6
- function subscribe(traceId) {
7
- if (!traceId) {
8
- return new ReadableStream({
9
- start(controller) {
10
- controller.close();
11
- }
12
- });
13
- }
14
- return getPubSub().subscribe(traceId);
15
- }
16
-
17
- export {
18
- subscribe
19
- };