@trioforge/crucible 0.0.0-stage → 0.1.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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/client/package.json +4 -0
  3. package/emit/package.json +4 -0
  4. package/out/all.d.ts +7 -0
  5. package/out/all.luau +2 -0
  6. package/out/attribute.d.ts +7 -0
  7. package/out/attribute.luau +7 -0
  8. package/out/client/index.d.ts +3 -0
  9. package/out/client/init.luau +20 -0
  10. package/out/crucible-behaviour.d.ts +16 -0
  11. package/out/crucible-behaviour.luau +78 -0
  12. package/out/crucible-object.d.ts +10 -0
  13. package/out/crucible-object.luau +69 -0
  14. package/out/emit/index.d.ts +41 -0
  15. package/out/emit/init.luau +85 -0
  16. package/out/index.d.ts +12 -0
  17. package/out/init.luau +11 -0
  18. package/out/inject.d.ts +1 -0
  19. package/out/inject.luau +7 -0
  20. package/out/internal/binding.d.ts +1 -0
  21. package/out/internal/binding.luau +610 -0
  22. package/out/internal/boot.d.ts +1 -0
  23. package/out/internal/boot.luau +463 -0
  24. package/out/internal/construction-claim.d.ts +1 -0
  25. package/out/internal/construction-claim.luau +26 -0
  26. package/out/internal/dense-list.d.ts +1 -0
  27. package/out/internal/dense-list.luau +155 -0
  28. package/out/internal/diagnostics.d.ts +1 -0
  29. package/out/internal/diagnostics.luau +29 -0
  30. package/out/internal/hooks.d.ts +1 -0
  31. package/out/internal/hooks.luau +53 -0
  32. package/out/internal/implementers.d.ts +1 -0
  33. package/out/internal/implementers.luau +119 -0
  34. package/out/internal/lifecycle.d.ts +1 -0
  35. package/out/internal/lifecycle.luau +867 -0
  36. package/out/internal/log-output.d.ts +1 -0
  37. package/out/internal/log-output.luau +106 -0
  38. package/out/internal/port.d.ts +1 -0
  39. package/out/internal/port.luau +12 -0
  40. package/out/internal/registry.d.ts +1 -0
  41. package/out/internal/registry.luau +446 -0
  42. package/out/internal/roblox-port.d.ts +1 -0
  43. package/out/internal/roblox-port.luau +117 -0
  44. package/out/internal/runner.d.ts +1 -0
  45. package/out/internal/runner.luau +86 -0
  46. package/out/internal/scheduler.d.ts +1 -0
  47. package/out/internal/scheduler.luau +207 -0
  48. package/out/internal/state.d.ts +1 -0
  49. package/out/internal/state.luau +41 -0
  50. package/out/log-level.d.ts +7 -0
  51. package/out/log-level.luau +21 -0
  52. package/out/logging.d.ts +34 -0
  53. package/out/logging.luau +233 -0
  54. package/out/server/index.d.ts +2 -0
  55. package/out/server/init.luau +16 -0
  56. package/out/subsystem.d.ts +4 -0
  57. package/out/subsystem.luau +30 -0
  58. package/package.json +41 -5
  59. package/server/package.json +4 -0
  60. package/transformer/diagnostics.cjs +19 -0
  61. package/transformer/index.js +715 -0
  62. package/transformer/type-id.cjs +80 -0
  63. package/README.md +0 -3
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
- "name": "@trioforge/crucible",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@trioforge/crucible",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "main": "out/init.luau",
6
+ "types": "out/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./out/index.d.ts",
10
+ "default": "./out/init.luau"
11
+ },
12
+ "./server": {
13
+ "types": "./out/server/index.d.ts",
14
+ "default": "./out/server/init.luau"
15
+ },
16
+ "./emit": {
17
+ "types": "./out/emit/index.d.ts",
18
+ "default": "./out/emit/init.luau"
19
+ },
20
+ "./client": {
21
+ "types": "./out/client/index.d.ts",
22
+ "default": "./out/client/init.luau"
23
+ },
24
+ "./transformer": "./transformer/index.js"
25
+ },
26
+ "peerDependencies": {
27
+ "typescript": "5.5.3"
28
+ },
29
+ "files": [
30
+ "out",
31
+ "transformer",
32
+ "server",
33
+ "client",
34
+ "emit",
35
+ "LICENSE"
36
+ ],
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/Trio-Forge-Studio/crucible.git",
40
+ "directory": "packages/crucible"
41
+ }
42
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "main": "../out/server/init.luau",
3
+ "types": "../out/server/index.d.ts"
4
+ }
@@ -0,0 +1,19 @@
1
+ function createReporter(ts, addDiagnostic) {
2
+ const seen = new Set();
3
+ return (node, code, message) => {
4
+ const key = `${node.getSourceFile().fileName}:${node.getStart()}:${code}`;
5
+ if (seen.has(key)) return;
6
+ seen.add(key);
7
+ return addDiagnostic({
8
+ category: ts.DiagnosticCategory.Error,
9
+ code: 90000 + (/^CRU\d+$/.test(code) ? Number(code.slice(3)) : 0),
10
+ source: "crucible",
11
+ file: node.getSourceFile(),
12
+ start: node.getStart(),
13
+ length: node.getWidth(),
14
+ messageText: `${code}: ${message}`,
15
+ });
16
+ };
17
+ }
18
+
19
+ module.exports = { createReporter };