@intentius/chant-lexicon-render 0.124.31 → 0.124.33
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/catalog.js +221 -0
- package/dist/codegen/docs-cli.js +6 -0
- package/dist/codegen/docs.js +110 -0
- package/dist/codegen/generate-cli.js +26 -0
- package/dist/codegen/generate-lexicon.js +38 -0
- package/dist/codegen/generate-typescript.js +46 -0
- package/dist/codegen/generate.js +82 -0
- package/dist/codegen/naming.js +43 -0
- package/dist/codegen/package.js +27 -0
- package/dist/composites/render-deploy.js +71 -0
- package/dist/coverage.js +29 -0
- package/dist/describe-resources.js +325 -0
- package/dist/detect.js +27 -0
- package/dist/generated/index.js +40 -0
- package/dist/generated/runtime.js +4 -0
- package/dist/index.js +21 -0
- package/dist/integrity.json +2 -2
- package/dist/lint/audit-catalog.js +23 -0
- package/dist/lint/audit-lineage.js +8 -0
- package/dist/lint/post-synth/index.js +8 -0
- package/dist/lint/post-synth/ren010-native-runtime-requires-commands.js +43 -0
- package/dist/lint/post-synth/ren011-service-requires-source.js +45 -0
- package/dist/lint/post-synth/ren012-free-plan-cannot-scale.js +41 -0
- package/dist/lint/post-synth/render-helpers.js +34 -0
- package/dist/lint/rules/index.js +8 -0
- package/dist/lint/rules/no-secret-literals.js +68 -0
- package/dist/lint/rules/valid-cron-schedule.js +44 -0
- package/dist/lint/rules/valid-region.js +43 -0
- package/dist/lsp/completions.d.ts.map +1 -1
- package/dist/lsp/completions.js +20 -0
- package/dist/lsp/hover.d.ts.map +1 -1
- package/dist/lsp/hover.js +49 -0
- package/dist/manifest.json +1 -1
- package/dist/op/activities/fake-render.js +271 -0
- package/dist/op/activities/index.js +8 -0
- package/dist/op/activities/render-apply.js +873 -0
- package/dist/ownership.js +38 -0
- package/dist/package-cli.js +17 -0
- package/dist/plugin.js +229 -0
- package/dist/pseudo.js +23 -0
- package/dist/serializer.js +238 -0
- package/dist/spec/fetch.js +30 -0
- package/dist/spec/parse.js +600 -0
- package/dist/validate-cli.js +4 -0
- package/dist/validate.js +41 -0
- package/package.json +7 -7
- package/src/codegen/package.ts +2 -2
- package/src/lsp/completions.ts +2 -1
- package/src/lsp/hover.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-render",
|
|
3
|
-
"version": "0.124.
|
|
3
|
+
"version": "0.124.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src/",
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"development": "./src/index.ts",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
|
-
"default": "./
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
17
|
},
|
|
18
18
|
"./*": {
|
|
19
19
|
"development": "./src/*.ts",
|
|
20
20
|
"types": "./dist/*.d.ts",
|
|
21
|
-
"default": "./
|
|
21
|
+
"default": "./dist/*.js"
|
|
22
22
|
},
|
|
23
23
|
"./op/activities": {
|
|
24
24
|
"development": "./src/op/activities/index.ts",
|
|
25
25
|
"types": "./dist/op/activities/index.d.ts",
|
|
26
|
-
"default": "./
|
|
26
|
+
"default": "./dist/op/activities/index.js"
|
|
27
27
|
},
|
|
28
28
|
"./lint/post-synth": {
|
|
29
29
|
"development": "./src/lint/post-synth/index.ts",
|
|
30
30
|
"types": "./dist/lint/post-synth/index.d.ts",
|
|
31
|
-
"default": "./
|
|
31
|
+
"default": "./dist/lint/post-synth/index.js"
|
|
32
32
|
},
|
|
33
33
|
"./manifest": "./dist/manifest.json",
|
|
34
34
|
"./meta": "./dist/meta.json",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"validate": "tsx src/validate-cli.ts",
|
|
41
41
|
"docs": "tsx src/codegen/docs-cli.ts",
|
|
42
42
|
"prepack": "npm run generate && npm run bundle && npm run validate && npm run build",
|
|
43
|
-
"build": "../../scripts/tsc7.sh -p tsconfig.build.json && tsc-alias -p tsconfig.build.json
|
|
43
|
+
"build": "../../scripts/tsc7.sh -p tsconfig.build.json --sourceMap false && tsc-alias -p tsconfig.build.json"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@intentius/chant": "*",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@intentius/chant": "^0.124.
|
|
51
|
+
"@intentius/chant": "^0.124.33"
|
|
52
52
|
},
|
|
53
53
|
"description": "Render (render.com) lexicon for chant — services, datastores, env groups, projects as TypeScript, applied straight to the Render API",
|
|
54
54
|
"license": "Apache-2.0",
|
package/src/codegen/package.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { generate } from "./generate";
|
|
|
3
3
|
import { renderPlugin } from "../plugin";
|
|
4
4
|
import { readFileSync } from "fs";
|
|
5
5
|
import { dirname, join } from "path";
|
|
6
|
-
import {
|
|
6
|
+
import { moduleSourceDir } from "@intentius/chant/module-source";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Package the render lexicon for distribution.
|
|
@@ -11,7 +11,7 @@ import { fileURLToPath } from "url";
|
|
|
11
11
|
export async function packageLexicon(options?: { verbose?: boolean; force?: boolean }) {
|
|
12
12
|
// This file is src/codegen/package.ts — rules and skills are collected
|
|
13
13
|
// relative to src/, so srcDir must be the parent of this directory.
|
|
14
|
-
const srcDir = dirname(
|
|
14
|
+
const srcDir = dirname(moduleSourceDir(import.meta.url));
|
|
15
15
|
const pkgJson = JSON.parse(readFileSync(join(srcDir, "..", "package.json"), "utf-8"));
|
|
16
16
|
|
|
17
17
|
const { spec, stats } = await packagePipeline({
|
package/src/lsp/completions.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createRequire } from "module";
|
|
2
|
+
import { moduleSourceUrl } from "@intentius/chant/module-source";
|
|
2
3
|
import type { CompletionContext, CompletionItem } from "@intentius/chant/lsp/types";
|
|
3
4
|
import { LexiconIndex, lexiconCompletions, type LexiconEntry } from "@intentius/chant/lsp/lexicon-providers";
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
5
|
+
const require = createRequire(moduleSourceUrl(import.meta.url));
|
|
5
6
|
|
|
6
7
|
let cachedIndex: LexiconIndex | null = null;
|
|
7
8
|
|
package/src/lsp/hover.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createRequire } from "module";
|
|
2
|
+
import { moduleSourceUrl } from "@intentius/chant/module-source";
|
|
2
3
|
import type { HoverContext, HoverInfo } from "@intentius/chant/lsp/types";
|
|
3
4
|
import { LexiconIndex, lexiconHover, type LexiconEntry } from "@intentius/chant/lsp/lexicon-providers";
|
|
4
5
|
import { CATALOG } from "../catalog";
|
|
5
|
-
const require = createRequire(import.meta.url);
|
|
6
|
+
const require = createRequire(moduleSourceUrl(import.meta.url));
|
|
6
7
|
|
|
7
8
|
let cachedIndex: LexiconIndex | null = null;
|
|
8
9
|
|