@intentic/extension-manifest 1.319.0 → 1.321.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentic/extension-manifest",
3
- "version": "1.319.0",
3
+ "version": "1.321.0",
4
4
  "description": "What an intentic extension DECLARES, the intentic-extension.json schema and the sandbox-route allowlist rule",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@intentic/base": "1.319.0",
35
+ "@intentic/base": "1.321.0",
36
36
  "tslib": "2.8.1",
37
37
  "zod": "4.6.5"
38
38
  },
@@ -7,7 +7,7 @@ const CASES: readonly (readonly [string, string, readonly string[]])[] = [
7
7
  ["a default import beside named ones", `import x,{y}from"z";`, ["z"]],
8
8
  ["a namespace import", `import*as n from"z";`, ["z"]],
9
9
  ["a default and a namespace import", `import d,*as n from"z";`, ["z"]],
10
- ["a multi-line import", `import {\n a,\n b as c,\n} from "@intentic/sandbox";\n`, ["@intentic/sandbox"]],
10
+ ["a multi-line import", `import {\n a,\n b as c,\n} from "@example/server";\n`, ["@example/server"]],
11
11
  ["a statement after a closing brace", `function f(){}import{a}from"b";`, ["b"]],
12
12
  ["export * from", `export * from "./chunk.js";`, ["./chunk.js"]],
13
13
  ["export * as from", `export*as ns from"ns-lib";`, ["ns-lib"]],
@@ -26,9 +26,9 @@ const CASES: readonly (readonly [string, string, readonly string[]])[] = [
26
26
  ["a specifier named twice counts once", `import a from"vue";import{b}from"vue";export*from"vue"`, ["vue"]],
27
27
  ["the word inside a string", `const s = "import x from 'fake'";const t = 'export * from "fake"';`, []],
28
28
  ["the word inside a template", "const s = `import x from 'fake';\nimport('fake')`;", []],
29
- ["the word inside a template's hole's string", "const s = `a${\"import 'fake'\"}b`;import \"real\";", ["real"]],
30
- ["an import inside a template's hole", "const s = `a${await import(\"inner\")}b`;", ["inner"]],
31
- ["nested template holes", "const s=`a${`b${c}d`}e${{f:1}.f}g`;import\"after\";", ["after"]],
29
+ ["the word inside a template's hole's string", 'const s = `a${"import \'fake\'"}b`;import "real";', ["real"]],
30
+ ["an import inside a template's hole", 'const s = `a${await import("inner")}b`;', ["inner"]],
31
+ ["nested template holes", 'const s=`a${`b${c}d`}e${{f:1}.f}g`;import"after";', ["after"]],
32
32
  ["the word inside a line comment", `// import x from "fake"\nimport "real";`, ["real"]],
33
33
  ["the word inside a block comment", `/* import x from "fake";\n export * from "fake2" */import "real";`, ["real"]],
34
34
  ["a regex holding the word and a quote", `const r=/import x from "fake"/g;import "real";`, ["real"]],
@@ -76,6 +76,7 @@ const ROWS: readonly Row[] = [
76
76
  {
77
77
  power: "files:${path}",
78
78
  without: contributes({ files: [] }),
79
+ // path-literals: content, the extension manifest fixture declares a contributed file path.
79
80
  with: contributes({ files: [{ path: ".intentic/config/acme.json", invalidates: ["acme"] }] }),
80
81
  adds: ["files:.intentic/config/acme.json", "is told when .intentic/config/acme.json changes"],
81
82
  },
@@ -139,14 +140,12 @@ const ROWS: readonly Row[] = [
139
140
  with: contributes({ environment: { fragment: "environment/Dockerfile" } }),
140
141
  adds: ["environment", "bakes an environment fragment into the sandbox image"],
141
142
  },
142
- ...CARDS.map(
143
- (card): Row => ({
144
- power: "capability:${id}",
145
- without: contributes({ capabilities: [] }),
146
- with: contributes({ capabilities: [card] }),
147
- adds: [`capability:${card.id}`, `a ${card.kind} capability card "Acme"`],
148
- }),
149
- ),
143
+ ...CARDS.map((card): Row => ({
144
+ power: "capability:${id}",
145
+ without: contributes({ capabilities: [] }),
146
+ with: contributes({ capabilities: [card] }),
147
+ adds: [`capability:${card.id}`, `a ${card.kind} capability card "Acme"`],
148
+ })),
150
149
  {
151
150
  power: "capability-tools:${id}",
152
151
  without: contributes({ capabilities: [CLI_CARD] }, SERVER),