@contractspec/example.lifecycle-cli 1.46.1 → 1.48.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.
@@ -1,5 +1,5 @@
1
1
  $ tsdown
2
- ℹ tsdown v0.18.3 powered by rolldown v1.0.0-beta.57
2
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
3
3
  ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/lifecycle-cli/tsdown.config.js
4
4
  ℹ entry: src/demo.ts, src/example.ts, src/index.ts, src/docs/index.ts, src/docs/lifecycle-cli.docblock.ts
5
5
  ℹ target: esnext
@@ -8,18 +8,18 @@ $ tsdown
8
8
  ℹ Cleaning 16 files
9
9
  ℹ dist/demo.js 1.54 kB │ gzip: 0.77 kB
10
10
  ℹ dist/docs/lifecycle-cli.docblock.js 1.44 kB │ gzip: 0.72 kB
11
- ℹ dist/example.js 0.89 kB │ gzip: 0.48 kB
11
+ ℹ dist/example.js 0.97 kB │ gzip: 0.51 kB
12
12
  ℹ dist/index.js 0.18 kB │ gzip: 0.12 kB
13
13
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
14
  ℹ dist/demo.js.map 2.79 kB │ gzip: 1.18 kB
15
15
  ℹ dist/docs/lifecycle-cli.docblock.js.map 1.93 kB │ gzip: 0.90 kB
16
- ℹ dist/example.js.map 1.41 kB │ gzip: 0.69 kB
16
+ ℹ dist/example.js.map 1.40 kB │ gzip: 0.70 kB
17
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
17
18
  ℹ dist/demo.d.ts.map 0.13 kB │ gzip: 0.13 kB
18
- ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
19
- ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
19
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 kB
20
20
  ℹ dist/demo.d.ts 0.16 kB │ gzip: 0.14 kB
21
21
  ℹ dist/index.d.ts 0.13 kB │ gzip: 0.10 kB
22
22
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
23
23
  ℹ dist/docs/lifecycle-cli.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
24
- ℹ 15 files, total: 10.99 kB
25
- ✔ Build complete in 14201ms
24
+ ℹ 15 files, total: 11.11 kB
25
+ ✔ Build complete in 21443ms
@@ -1,7 +1,7 @@
1
1
  $ bun build:types && bun build:bundle
2
2
  $ tsc --noEmit
3
3
  $ tsdown
4
- ℹ tsdown v0.18.3 powered by rolldown v1.0.0-beta.57
4
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
5
5
  ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/lifecycle-cli/tsdown.config.js
6
6
  ℹ entry: src/demo.ts, src/example.ts, src/index.ts, src/docs/index.ts, src/docs/lifecycle-cli.docblock.ts
7
7
  ℹ target: esnext
@@ -9,18 +9,18 @@ $ tsdown
9
9
  ℹ Build start
10
10
  ℹ dist/demo.js 1.54 kB │ gzip: 0.77 kB
11
11
  ℹ dist/docs/lifecycle-cli.docblock.js 1.44 kB │ gzip: 0.72 kB
12
- ℹ dist/example.js 0.89 kB │ gzip: 0.48 kB
12
+ ℹ dist/example.js 0.97 kB │ gzip: 0.51 kB
13
13
  ℹ dist/index.js 0.18 kB │ gzip: 0.12 kB
14
14
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
15
15
  ℹ dist/demo.js.map 2.79 kB │ gzip: 1.18 kB
16
16
  ℹ dist/docs/lifecycle-cli.docblock.js.map 1.93 kB │ gzip: 0.90 kB
17
- ℹ dist/example.js.map 1.41 kB │ gzip: 0.69 kB
17
+ ℹ dist/example.js.map 1.40 kB │ gzip: 0.70 kB
18
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
18
19
  ℹ dist/demo.d.ts.map 0.13 kB │ gzip: 0.13 kB
19
- ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
20
- ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
20
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 kB
21
21
  ℹ dist/demo.d.ts 0.16 kB │ gzip: 0.14 kB
22
22
  ℹ dist/index.d.ts 0.13 kB │ gzip: 0.10 kB
23
23
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
24
24
  ℹ dist/docs/lifecycle-cli.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
25
- ℹ 15 files, total: 10.99 kB
26
- ✔ Build complete in 12690ms
25
+ ℹ 15 files, total: 11.11 kB
26
+ ✔ Build complete in 22973ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @contractspec/example.lifecycle-cli
2
2
 
3
+ ## 1.48.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b0444a4: feat: reduce adoption's friction by allowing generation of contracts from an analyse of the codebase
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b0444a4]
12
+ - @contractspec/bundle.lifecycle-managed@1.48.0
13
+ - @contractspec/lib.contracts@1.48.0
14
+ - @contractspec/lib.lifecycle@1.48.0
15
+ - @contractspec/lib.logger@1.48.0
16
+
17
+ ## 1.47.0
18
+
19
+ ### Minor Changes
20
+
21
+ - caf8701: feat: add cli vibe command to run workflow
22
+ - c69b849: feat: add api web services (mcp & website)
23
+ - 42b8d78: feat: add cli `contractspec vibe` workflow to simplify usage
24
+ - fd38e85: feat: auto-fix contractspec issues
25
+
26
+ ### Patch Changes
27
+
28
+ - e7ded36: feat: improve stability (adding ts-morph)
29
+ - c231a8b: test: improve workspace stability
30
+ - Updated dependencies [e7ded36]
31
+ - Updated dependencies [caf8701]
32
+ - Updated dependencies [c69b849]
33
+ - Updated dependencies [c231a8b]
34
+ - Updated dependencies [42b8d78]
35
+ - Updated dependencies [fd38e85]
36
+ - @contractspec/bundle.lifecycle-managed@1.47.0
37
+ - @contractspec/lib.contracts@1.47.0
38
+ - @contractspec/lib.lifecycle@1.47.0
39
+ - @contractspec/lib.logger@1.47.0
40
+
41
+ ## 1.46.2
42
+
43
+ ### Patch Changes
44
+
45
+ - 7e21625: feat: library services (landing page & api)
46
+ - Updated dependencies [7e21625]
47
+ - @contractspec/bundle.lifecycle-managed@1.46.2
48
+ - @contractspec/lib.contracts@1.46.2
49
+ - @contractspec/lib.lifecycle@1.46.2
50
+ - @contractspec/lib.logger@1.46.2
51
+
3
52
  ## 1.46.1
4
53
 
5
54
  ### Patch Changes
package/dist/example.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ExampleSpec } from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/example.d.ts
4
- declare const example: ExampleSpec;
4
+ declare const example: _contractspec_lib_contracts0.ExampleSpec;
5
5
  //#endregion
6
6
  export { example as default };
7
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SA2BJ,4BAAA,CA3BW"}
package/dist/example.js CHANGED
@@ -1,5 +1,7 @@
1
+ import { defineExample } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.ts
2
- const example = {
4
+ const example = defineExample({
3
5
  meta: {
4
6
  key: "lifecycle-cli",
5
7
  version: "1.0.0",
@@ -35,7 +37,7 @@ const example = {
35
37
  },
36
38
  mcp: { enabled: true }
37
39
  }
38
- };
40
+ });
39
41
  var example_default = example;
40
42
 
41
43
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'lifecycle-cli',\n version: '1.0.0',\n title: 'Lifecycle CLI',\n description:\n 'Tiny script showing how to run the lifecycle managed service from a CLI (no HTTP server required).',\n kind: 'script',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['lifecycle', 'cli', 'demo'],\n },\n docs: {\n rootDocId: 'docs.examples.lifecycle-cli',\n usageDocId: 'docs.examples.lifecycle-cli.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.lifecycle-cli',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAa;GAAO;GAAO;EACnC;CACD,MAAM;EACJ,WAAW;EACX,YAAY;EACb;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,WAAW;GAAE;EAC/C,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
1
+ {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["import { defineExample } from '@contractspec/lib.contracts';\n\nconst example = defineExample({\n meta: {\n key: 'lifecycle-cli',\n version: '1.0.0',\n title: 'Lifecycle CLI',\n description:\n 'Tiny script showing how to run the lifecycle managed service from a CLI (no HTTP server required).',\n kind: 'script',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['lifecycle', 'cli', 'demo'],\n },\n docs: {\n rootDocId: 'docs.examples.lifecycle-cli',\n usageDocId: 'docs.examples.lifecycle-cli.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.lifecycle-cli',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n});\n\nexport default example;\n"],"mappings":";;;AAEA,MAAM,UAAU,cAAc;CAC5B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAa;GAAO;GAAO;EACnC;CACD,MAAM;EACJ,WAAW;EACX,YAAY;EACb;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,WAAW;GAAE;EAC/C,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF,CAAC;AAEF,sBAAe"}
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@contractspec/example.lifecycle-cli",
3
- "version": "1.46.1",
3
+ "version": "1.48.0",
4
4
  "description": "Lifecycle CLI demo (example): run lifecycle assessment without an HTTP server.",
5
5
  "type": "module",
6
- "main": "./dist/index.js",
7
6
  "types": "./dist/index.d.ts",
8
7
  "exports": {
9
8
  ".": "./dist/index.js",
@@ -27,15 +26,15 @@
27
26
  "test": "bun test"
28
27
  },
29
28
  "dependencies": {
30
- "@contractspec/bundle.lifecycle-managed": "1.46.1",
31
- "@contractspec/lib.lifecycle": "1.46.1",
32
- "@contractspec/lib.contracts": "1.46.1",
33
- "@contractspec/lib.logger": "1.46.1"
29
+ "@contractspec/bundle.lifecycle-managed": "1.48.0",
30
+ "@contractspec/lib.lifecycle": "1.48.0",
31
+ "@contractspec/lib.contracts": "1.48.0",
32
+ "@contractspec/lib.logger": "1.48.0"
34
33
  },
35
34
  "devDependencies": {
36
- "@contractspec/tool.tsdown": "1.46.1",
37
- "@contractspec/tool.typescript": "1.46.1",
38
- "tsdown": "^0.18.3",
35
+ "@contractspec/tool.tsdown": "1.48.0",
36
+ "@contractspec/tool.typescript": "1.48.0",
37
+ "tsdown": "^0.19.0",
39
38
  "typescript": "^5.9.3"
40
39
  },
41
40
  "publishConfig": {
@@ -50,7 +49,6 @@
50
49
  },
51
50
  "registry": "https://registry.npmjs.org/"
52
51
  },
53
- "module": "./dist/index.js",
54
52
  "license": "MIT",
55
53
  "repository": {
56
54
  "type": "git",
package/src/example.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { ExampleSpec } from '@contractspec/lib.contracts';
1
+ import { defineExample } from '@contractspec/lib.contracts';
2
2
 
3
- const example: ExampleSpec = {
3
+ const example = defineExample({
4
4
  meta: {
5
5
  key: 'lifecycle-cli',
6
6
  version: '1.0.0',
@@ -27,6 +27,6 @@ const example: ExampleSpec = {
27
27
  studio: { enabled: true, installable: true },
28
28
  mcp: { enabled: true },
29
29
  },
30
- };
30
+ });
31
31
 
32
32
  export default example;