@rasputin-ai/sveltekit 0.12.1 → 0.13.0
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/runtime/node.js
CHANGED
package/dist/sdk-meta.d.ts
CHANGED
package/dist/vite/index.js
CHANGED
|
@@ -4621,7 +4621,6 @@ var snapshotClientBuildArtifact = (state, debugImages) => {
|
|
|
4621
4621
|
const indexed = new Map(state.identities.map((item) => [item.functionId, item]));
|
|
4622
4622
|
const functions = [];
|
|
4623
4623
|
const callSites = [];
|
|
4624
|
-
const destructures = [];
|
|
4625
4624
|
for (const delta of state.deltas.values()) {
|
|
4626
4625
|
for (const fn of delta.functions) {
|
|
4627
4626
|
const match = classified.get(fn.functionId);
|
|
@@ -4636,90 +4635,45 @@ var snapshotClientBuildArtifact = (state, debugImages) => {
|
|
|
4636
4635
|
endLine: nullableCount(fn.endLine),
|
|
4637
4636
|
endColumn: fn.endColumn >= 0 ? fn.endColumn : null,
|
|
4638
4637
|
params: fn.params,
|
|
4639
|
-
filePath: fn.filePath,
|
|
4640
4638
|
captureClass: match?.captureClass ?? "full",
|
|
4641
4639
|
captureReason: match?.captureReason || "unclassified-default",
|
|
4642
4640
|
...index ? { moduleIndex: index.moduleIndex, planIndex: index.planIndex } : {}
|
|
4643
4641
|
});
|
|
4644
4642
|
}
|
|
4645
4643
|
for (const site of delta.callSites) {
|
|
4646
|
-
const caller = functions.find((fn) => fn.functionId === site.callerFunctionId);
|
|
4647
4644
|
callSites.push({
|
|
4648
4645
|
callerFunctionId: site.callerFunctionId,
|
|
4649
4646
|
calleeName: site.calleeName,
|
|
4650
4647
|
calleeText: site.calleeText,
|
|
4651
|
-
packageName: caller?.packageName ?? null,
|
|
4652
|
-
packageRelativePath: caller?.packageRelativePath ?? null,
|
|
4653
4648
|
line: site.line,
|
|
4654
4649
|
column: site.column,
|
|
4655
4650
|
endLine: site.endLine,
|
|
4656
4651
|
endColumn: site.endColumn,
|
|
4657
|
-
resultBinding: site.resultBinding
|
|
4658
|
-
argIdentifiers: site.argIdentifiers
|
|
4659
|
-
});
|
|
4660
|
-
}
|
|
4661
|
-
for (const destructure of delta.destructures) {
|
|
4662
|
-
const caller = functions.find((fn) => fn.functionId === destructure.callerFunctionId);
|
|
4663
|
-
destructures.push({
|
|
4664
|
-
callerFunctionId: destructure.callerFunctionId,
|
|
4665
|
-
sourceParam: destructure.sourceParam,
|
|
4666
|
-
packageName: caller?.packageName ?? null,
|
|
4667
|
-
packageRelativePath: caller?.packageRelativePath ?? null,
|
|
4668
|
-
line: destructure.line,
|
|
4669
|
-
column: destructure.column,
|
|
4670
|
-
binding: destructure.binding
|
|
4652
|
+
resultBinding: site.resultBinding
|
|
4671
4653
|
});
|
|
4672
4654
|
}
|
|
4673
4655
|
}
|
|
4674
|
-
const expressionSites = [...state.expressionSites.values()];
|
|
4675
|
-
const classification = {
|
|
4676
|
-
full: 0,
|
|
4677
|
-
structure: 0,
|
|
4678
|
-
skip: 0,
|
|
4679
|
-
reactiveSparse: 0,
|
|
4680
|
-
expressionSites: expressionSites.length
|
|
4681
|
-
};
|
|
4682
|
-
for (const fn of functions) {
|
|
4683
|
-
if (fn.captureClass === "structure") classification.structure += 1;
|
|
4684
|
-
else if (fn.captureClass === "skip") classification.skip += 1;
|
|
4685
|
-
else if (fn.captureClass === "reactive-sparse") classification.reactiveSparse += 1;
|
|
4686
|
-
else classification.full += 1;
|
|
4687
|
-
}
|
|
4688
|
-
const byId = new Map(functions.map((fn) => [fn.functionId, fn]));
|
|
4689
4656
|
return {
|
|
4690
4657
|
schema_version: 1,
|
|
4691
4658
|
buildId: state.buildId,
|
|
4692
4659
|
functions,
|
|
4693
|
-
identities: state.identities.map((item) => {
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
captureClass: match?.captureClass ?? "full",
|
|
4700
|
-
packageRelativePath: match?.packageRelativePath ?? null,
|
|
4701
|
-
line: match?.line ?? null,
|
|
4702
|
-
column: match?.column ?? null,
|
|
4703
|
-
moduleIndex: item.moduleIndex,
|
|
4704
|
-
planIndex: item.planIndex
|
|
4705
|
-
};
|
|
4706
|
-
}),
|
|
4660
|
+
identities: state.identities.map((item) => ({
|
|
4661
|
+
compactId: item.compactId,
|
|
4662
|
+
functionId: item.functionId,
|
|
4663
|
+
moduleIndex: item.moduleIndex,
|
|
4664
|
+
planIndex: item.planIndex
|
|
4665
|
+
})),
|
|
4707
4666
|
callSites,
|
|
4708
|
-
destructures,
|
|
4709
|
-
expressionSites,
|
|
4710
|
-
classification,
|
|
4711
4667
|
debugImages: debugImages.map((image) => ({
|
|
4712
4668
|
...image,
|
|
4713
4669
|
map: omitSourceMapSourcesContent(image.map)
|
|
4714
|
-
}))
|
|
4715
|
-
verificationFailed: [...state.verificationFailed]
|
|
4670
|
+
}))
|
|
4716
4671
|
};
|
|
4717
4672
|
};
|
|
4718
4673
|
var stableCallSiteId = (callerFunctionId, packageName, packageRelativePath, line, column) => `cs_${createHash2("sha256").update(["cs", callerFunctionId, packageName, packageRelativePath, line, column].join("\0")).digest("base64url").slice(0, 24)}`;
|
|
4719
4674
|
var snapshotServerInstrumentationManifest = (state) => {
|
|
4720
4675
|
const functions = [];
|
|
4721
4676
|
const callSites = [];
|
|
4722
|
-
const destructures = [];
|
|
4723
4677
|
const sourceByFunctionId = /* @__PURE__ */ new Map();
|
|
4724
4678
|
for (const delta of state.deltas.values()) {
|
|
4725
4679
|
for (const fn of delta.functions) {
|
|
@@ -4731,16 +4685,13 @@ var snapshotServerInstrumentationManifest = (state) => {
|
|
|
4731
4685
|
functionId: fn.functionId,
|
|
4732
4686
|
source: {
|
|
4733
4687
|
...packageName ? { packageName } : {},
|
|
4734
|
-
packageRelativePath
|
|
4735
|
-
...fn.startLine > 0 ? { line: fn.startLine } : {},
|
|
4736
|
-
...fn.startColumn > 0 ? { column: fn.startColumn } : {}
|
|
4688
|
+
packageRelativePath
|
|
4737
4689
|
},
|
|
4738
4690
|
name: fn.name,
|
|
4739
4691
|
startLine: fn.startLine,
|
|
4740
4692
|
startColumn: fn.startColumn,
|
|
4741
4693
|
endLine: fn.endLine,
|
|
4742
4694
|
endColumn: fn.endColumn,
|
|
4743
|
-
params: fn.params,
|
|
4744
4695
|
...fn.instrumented === false ? { instrumented: false, ...fn.skipReason ? { skipReason: fn.skipReason } : {} } : {}
|
|
4745
4696
|
});
|
|
4746
4697
|
}
|
|
@@ -4760,43 +4711,18 @@ var snapshotServerInstrumentationManifest = (state) => {
|
|
|
4760
4711
|
callerFunctionId: site.callerFunctionId,
|
|
4761
4712
|
calleeName: site.calleeName,
|
|
4762
4713
|
calleeText: site.calleeText,
|
|
4763
|
-
source: {
|
|
4764
|
-
...source.packageName ? { packageName: source.packageName } : {},
|
|
4765
|
-
packageRelativePath: source.packageRelativePath,
|
|
4766
|
-
...site.line > 0 ? { line: site.line } : {},
|
|
4767
|
-
...site.column > 0 ? { column: site.column } : {}
|
|
4768
|
-
},
|
|
4769
4714
|
line: site.line,
|
|
4770
4715
|
column: site.column,
|
|
4771
4716
|
endLine: site.endLine,
|
|
4772
4717
|
endColumn: site.endColumn,
|
|
4773
|
-
resultBinding: site.resultBinding
|
|
4774
|
-
argIdentifiers: site.argIdentifiers
|
|
4775
|
-
});
|
|
4776
|
-
}
|
|
4777
|
-
for (const destructure of delta.destructures) {
|
|
4778
|
-
const source = sourceByFunctionId.get(destructure.callerFunctionId);
|
|
4779
|
-
if (!source) continue;
|
|
4780
|
-
destructures.push({
|
|
4781
|
-
callerFunctionId: destructure.callerFunctionId,
|
|
4782
|
-
sourceParam: destructure.sourceParam,
|
|
4783
|
-
source: {
|
|
4784
|
-
...source.packageName ? { packageName: source.packageName } : {},
|
|
4785
|
-
packageRelativePath: source.packageRelativePath,
|
|
4786
|
-
...destructure.line > 0 ? { line: destructure.line } : {},
|
|
4787
|
-
...destructure.column > 0 ? { column: destructure.column } : {}
|
|
4788
|
-
},
|
|
4789
|
-
line: destructure.line,
|
|
4790
|
-
column: destructure.column,
|
|
4791
|
-
binding: destructure.binding
|
|
4718
|
+
resultBinding: site.resultBinding
|
|
4792
4719
|
});
|
|
4793
4720
|
}
|
|
4794
4721
|
}
|
|
4795
4722
|
return {
|
|
4796
4723
|
schema_version: INSTRUMENTATION_MANIFEST_SCHEMA_VERSION,
|
|
4797
4724
|
functions,
|
|
4798
|
-
callSites
|
|
4799
|
-
destructures
|
|
4725
|
+
callSites
|
|
4800
4726
|
};
|
|
4801
4727
|
};
|
|
4802
4728
|
var uploadClientBuildArtifact = async (input) => {
|
|
@@ -16,7 +16,6 @@ type ClientArtifactFunction = {
|
|
|
16
16
|
endLine: number | null;
|
|
17
17
|
endColumn: number | null;
|
|
18
18
|
params: unknown[];
|
|
19
|
-
filePath: string;
|
|
20
19
|
captureClass: CaptureClass;
|
|
21
20
|
captureReason: string;
|
|
22
21
|
moduleIndex?: number;
|
|
@@ -29,26 +28,11 @@ type ClientBuildArtifact = {
|
|
|
29
28
|
identities: Array<{
|
|
30
29
|
compactId: string;
|
|
31
30
|
functionId: string;
|
|
32
|
-
name: string;
|
|
33
|
-
captureClass: CaptureClass;
|
|
34
|
-
packageRelativePath: string | null;
|
|
35
|
-
line: number | null;
|
|
36
|
-
column: number | null;
|
|
37
31
|
moduleIndex: number;
|
|
38
32
|
planIndex: number;
|
|
39
33
|
}>;
|
|
40
34
|
callSites: unknown[];
|
|
41
|
-
destructures: unknown[];
|
|
42
|
-
expressionSites: unknown[];
|
|
43
|
-
classification: {
|
|
44
|
-
full: number;
|
|
45
|
-
structure: number;
|
|
46
|
-
skip: number;
|
|
47
|
-
reactiveSparse: number;
|
|
48
|
-
expressionSites: number;
|
|
49
|
-
};
|
|
50
35
|
debugImages: ClientDebugImage[];
|
|
51
|
-
verificationFailed: string[];
|
|
52
36
|
};
|
|
53
37
|
export declare const snapshotClientBuildArtifact: (state: TargetState, debugImages: ClientDebugImage[]) => ClientBuildArtifact;
|
|
54
38
|
export declare const snapshotServerInstrumentationManifest: (state: TargetState) => InstrumentationManifestContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-build-artifacts.d.ts","sourceRoot":"","sources":["../../src/vite/upload-build-artifacts.ts"],"names":[],"mappings":"AACA,OAAO,EAGN,KAAK,8BAA8B,EAGnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,KAAK,gBAAgB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5E,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,iBAAiB,CAAC;AAEtE,KAAK,sBAAsB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"upload-build-artifacts.d.ts","sourceRoot":"","sources":["../../src/vite/upload-build-artifacts.ts"],"names":[],"mappings":"AACA,OAAO,EAGN,KAAK,8BAA8B,EAGnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,KAAK,gBAAgB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5E,KAAK,YAAY,G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a,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,KAAG,OAAO,CAAC,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAwCvE,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAU,OAAO;IACtD,QAAQ,EAAE,8BAA8B,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,KAAG,OAAO,CAAC,UAAU,GAAG,SAAS,GAAG,QAAQ,CAgB5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasputin-ai/sveltekit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Official Rasputin AI SDK for SvelteKit.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@rasputin-ai/browser": "0.
|
|
46
|
-
"@rasputin-ai/core": "0.
|
|
47
|
-
"@rasputin-ai/node": "0.
|
|
45
|
+
"@rasputin-ai/browser": "0.13.0",
|
|
46
|
+
"@rasputin-ai/core": "0.13.0",
|
|
47
|
+
"@rasputin-ai/node": "0.13.0",
|
|
48
48
|
"typescript": "5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|