@duckcodeailabs/dql-cli 1.4.0 → 1.4.3
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 +21 -28
- package/LICENSE +0 -123
- package/README.md +0 -71
- package/dist/apps-api.d.ts +0 -16
- package/dist/apps-api.d.ts.map +0 -1
- package/dist/apps-api.js +0 -249
- package/dist/apps-api.js.map +0 -1
- package/dist/args.d.ts +0 -30
- package/dist/args.d.ts.map +0 -1
- package/dist/args.js +0 -105
- package/dist/args.js.map +0 -1
- package/dist/args.test.d.ts +0 -2
- package/dist/args.test.d.ts.map +0 -1
- package/dist/args.test.js +0 -33
- package/dist/args.test.js.map +0 -1
- package/dist/assets/dql-notebook/assets/codemirror-DJYUkPr1.js +0 -11
- package/dist/assets/dql-notebook/assets/index-BJ7MV8Gv.js +0 -847
- package/dist/assets/dql-notebook/assets/index-DrhoZmtv.css +0 -1
- package/dist/assets/dql-notebook/assets/react-CRB3T2We.js +0 -32
- package/dist/assets/dql-notebook/index.html +0 -18
- package/dist/assets/notebook-browser/app.js +0 -548
- package/dist/assets/notebook-browser/index.html +0 -83
- package/dist/assets/notebook-browser/styles.css +0 -336
- package/dist/block-templates.d.ts +0 -8
- package/dist/block-templates.d.ts.map +0 -1
- package/dist/block-templates.js +0 -60
- package/dist/block-templates.js.map +0 -1
- package/dist/commands/agent.d.ts +0 -19
- package/dist/commands/agent.d.ts.map +0 -1
- package/dist/commands/agent.js +0 -117
- package/dist/commands/agent.js.map +0 -1
- package/dist/commands/app.d.ts +0 -32
- package/dist/commands/app.d.ts.map +0 -1
- package/dist/commands/app.js +0 -296
- package/dist/commands/app.js.map +0 -1
- package/dist/commands/build.d.ts +0 -3
- package/dist/commands/build.d.ts.map +0 -1
- package/dist/commands/build.js +0 -69
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/build.test.d.ts +0 -2
- package/dist/commands/build.test.d.ts.map +0 -1
- package/dist/commands/build.test.js +0 -44
- package/dist/commands/build.test.js.map +0 -1
- package/dist/commands/certify.d.ts +0 -3
- package/dist/commands/certify.d.ts.map +0 -1
- package/dist/commands/certify.js +0 -228
- package/dist/commands/certify.js.map +0 -1
- package/dist/commands/compile.d.ts +0 -21
- package/dist/commands/compile.d.ts.map +0 -1
- package/dist/commands/compile.js +0 -198
- package/dist/commands/compile.js.map +0 -1
- package/dist/commands/compile.test.d.ts +0 -2
- package/dist/commands/compile.test.d.ts.map +0 -1
- package/dist/commands/compile.test.js +0 -115
- package/dist/commands/compile.test.js.map +0 -1
- package/dist/commands/diff.d.ts +0 -3
- package/dist/commands/diff.d.ts.map +0 -1
- package/dist/commands/diff.js +0 -52
- package/dist/commands/diff.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -3
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -191
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/doctor.test.d.ts +0 -2
- package/dist/commands/doctor.test.d.ts.map +0 -1
- package/dist/commands/doctor.test.js +0 -43
- package/dist/commands/doctor.test.js.map +0 -1
- package/dist/commands/fmt.d.ts +0 -3
- package/dist/commands/fmt.d.ts.map +0 -1
- package/dist/commands/fmt.js +0 -53
- package/dist/commands/fmt.js.map +0 -1
- package/dist/commands/info.d.ts +0 -3
- package/dist/commands/info.d.ts.map +0 -1
- package/dist/commands/info.js +0 -56
- package/dist/commands/info.js.map +0 -1
- package/dist/commands/init.d.ts +0 -3
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -250
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/init.test.d.ts +0 -2
- package/dist/commands/init.test.d.ts.map +0 -1
- package/dist/commands/init.test.js +0 -118
- package/dist/commands/init.test.js.map +0 -1
- package/dist/commands/lineage.d.ts +0 -24
- package/dist/commands/lineage.d.ts.map +0 -1
- package/dist/commands/lineage.js +0 -634
- package/dist/commands/lineage.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -7
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -16
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/migrate.d.ts +0 -12
- package/dist/commands/migrate.d.ts.map +0 -1
- package/dist/commands/migrate.js +0 -192
- package/dist/commands/migrate.js.map +0 -1
- package/dist/commands/new.d.ts +0 -3
- package/dist/commands/new.d.ts.map +0 -1
- package/dist/commands/new.js +0 -490
- package/dist/commands/new.js.map +0 -1
- package/dist/commands/new.test.d.ts +0 -2
- package/dist/commands/new.test.d.ts.map +0 -1
- package/dist/commands/new.test.js +0 -191
- package/dist/commands/new.test.js.map +0 -1
- package/dist/commands/notebook.d.ts +0 -3
- package/dist/commands/notebook.d.ts.map +0 -1
- package/dist/commands/notebook.js +0 -46
- package/dist/commands/notebook.js.map +0 -1
- package/dist/commands/parse.d.ts +0 -3
- package/dist/commands/parse.d.ts.map +0 -1
- package/dist/commands/parse.js +0 -63
- package/dist/commands/parse.js.map +0 -1
- package/dist/commands/preview.d.ts +0 -3
- package/dist/commands/preview.d.ts.map +0 -1
- package/dist/commands/preview.js +0 -42
- package/dist/commands/preview.js.map +0 -1
- package/dist/commands/schedule.d.ts +0 -3
- package/dist/commands/schedule.d.ts.map +0 -1
- package/dist/commands/schedule.js +0 -215
- package/dist/commands/schedule.js.map +0 -1
- package/dist/commands/semantic.d.ts +0 -12
- package/dist/commands/semantic.d.ts.map +0 -1
- package/dist/commands/semantic.js +0 -356
- package/dist/commands/semantic.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -3
- package/dist/commands/serve.d.ts.map +0 -1
- package/dist/commands/serve.js +0 -30
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/slack.d.ts +0 -13
- package/dist/commands/slack.d.ts.map +0 -1
- package/dist/commands/slack.js +0 -53
- package/dist/commands/slack.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -3
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js +0 -192
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/sync.test.d.ts +0 -2
- package/dist/commands/sync.test.d.ts.map +0 -1
- package/dist/commands/sync.test.js +0 -147
- package/dist/commands/sync.test.js.map +0 -1
- package/dist/commands/test.d.ts +0 -3
- package/dist/commands/test.d.ts.map +0 -1
- package/dist/commands/test.js +0 -167
- package/dist/commands/test.js.map +0 -1
- package/dist/commands/validate.d.ts +0 -3
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/validate.js +0 -116
- package/dist/commands/validate.js.map +0 -1
- package/dist/commands/verify.d.ts +0 -11
- package/dist/commands/verify.d.ts.map +0 -1
- package/dist/commands/verify.js +0 -74
- package/dist/commands/verify.js.map +0 -1
- package/dist/digest.d.ts +0 -10
- package/dist/digest.d.ts.map +0 -1
- package/dist/digest.js +0 -83
- package/dist/digest.js.map +0 -1
- package/dist/git-service.d.ts +0 -17
- package/dist/git-service.d.ts.map +0 -1
- package/dist/git-service.js +0 -54
- package/dist/git-service.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/llm/index.d.ts +0 -4
- package/dist/llm/index.d.ts.map +0 -1
- package/dist/llm/index.js +0 -16
- package/dist/llm/index.js.map +0 -1
- package/dist/llm/providers/claude-agent-sdk.d.ts +0 -3
- package/dist/llm/providers/claude-agent-sdk.d.ts.map +0 -1
- package/dist/llm/providers/claude-agent-sdk.js +0 -174
- package/dist/llm/providers/claude-agent-sdk.js.map +0 -1
- package/dist/llm/providers/claude-code.d.ts +0 -8
- package/dist/llm/providers/claude-code.d.ts.map +0 -1
- package/dist/llm/providers/claude-code.js +0 -171
- package/dist/llm/providers/claude-code.js.map +0 -1
- package/dist/llm/tools.d.ts +0 -9
- package/dist/llm/tools.d.ts.map +0 -1
- package/dist/llm/tools.js +0 -112
- package/dist/llm/tools.js.map +0 -1
- package/dist/llm/types.d.ts +0 -70
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/llm/types.js +0 -2
- package/dist/llm/types.js.map +0 -1
- package/dist/local-runtime.d.ts +0 -142
- package/dist/local-runtime.d.ts.map +0 -1
- package/dist/local-runtime.js +0 -3836
- package/dist/local-runtime.js.map +0 -1
- package/dist/local-runtime.test.d.ts +0 -2
- package/dist/local-runtime.test.d.ts.map +0 -1
- package/dist/local-runtime.test.js +0 -241
- package/dist/local-runtime.test.js.map +0 -1
- package/dist/open-browser.d.ts +0 -2
- package/dist/open-browser.d.ts.map +0 -1
- package/dist/open-browser.js +0 -29
- package/dist/open-browser.js.map +0 -1
- package/dist/schedule/alerts.d.ts +0 -5
- package/dist/schedule/alerts.d.ts.map +0 -1
- package/dist/schedule/alerts.js +0 -54
- package/dist/schedule/alerts.js.map +0 -1
- package/dist/schedule/discovery.d.ts +0 -4
- package/dist/schedule/discovery.d.ts.map +0 -1
- package/dist/schedule/discovery.js +0 -36
- package/dist/schedule/discovery.js.map +0 -1
- package/dist/schedule/notifiers/email.d.ts +0 -3
- package/dist/schedule/notifiers/email.d.ts.map +0 -1
- package/dist/schedule/notifiers/email.js +0 -76
- package/dist/schedule/notifiers/email.js.map +0 -1
- package/dist/schedule/notifiers/file.d.ts +0 -3
- package/dist/schedule/notifiers/file.d.ts.map +0 -1
- package/dist/schedule/notifiers/file.js +0 -50
- package/dist/schedule/notifiers/file.js.map +0 -1
- package/dist/schedule/notifiers/index.d.ts +0 -10
- package/dist/schedule/notifiers/index.d.ts.map +0 -1
- package/dist/schedule/notifiers/index.js +0 -33
- package/dist/schedule/notifiers/index.js.map +0 -1
- package/dist/schedule/notifiers/slack.d.ts +0 -3
- package/dist/schedule/notifiers/slack.d.ts.map +0 -1
- package/dist/schedule/notifiers/slack.js +0 -58
- package/dist/schedule/notifiers/slack.js.map +0 -1
- package/dist/schedule/runner.d.ts +0 -11
- package/dist/schedule/runner.d.ts.map +0 -1
- package/dist/schedule/runner.js +0 -109
- package/dist/schedule/runner.js.map +0 -1
- package/dist/schedule/runs.d.ts +0 -5
- package/dist/schedule/runs.d.ts.map +0 -1
- package/dist/schedule/runs.js +0 -41
- package/dist/schedule/runs.js.map +0 -1
- package/dist/schedule/service.d.ts +0 -12
- package/dist/schedule/service.d.ts.map +0 -1
- package/dist/schedule/service.js +0 -49
- package/dist/schedule/service.js.map +0 -1
- package/dist/schedule/types.d.ts +0 -64
- package/dist/schedule/types.d.ts.map +0 -1
- package/dist/schedule/types.js +0 -2
- package/dist/schedule/types.js.map +0 -1
- package/dist/semantic-import.d.ts +0 -127
- package/dist/semantic-import.d.ts.map +0 -1
- package/dist/semantic-import.js +0 -713
- package/dist/semantic-import.js.map +0 -1
- package/dist/semantic-import.test.d.ts +0 -2
- package/dist/semantic-import.test.d.ts.map +0 -1
- package/dist/semantic-import.test.js +0 -95
- package/dist/semantic-import.test.js.map +0 -1
- /package/{dist/index.js → index.js} +0 -0
package/package.json
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckcodeailabs/dql-cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Public CLI for parsing, formatting, testing, and certifying DQL blocks",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"dql": "./
|
|
8
|
+
"dql": "./index.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc -b && node ./scripts/copy-runtime-assets.mjs",
|
|
12
|
+
"dev": "tsx src/index.ts",
|
|
13
|
+
"test": "vitest run --passWithNoTests",
|
|
14
|
+
"bench:manifest": "tsx bench/manifest-bench.ts",
|
|
15
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
16
|
+
"prepublishOnly": "pnpm run build"
|
|
9
17
|
},
|
|
10
18
|
"publishConfig": {
|
|
11
19
|
"access": "public"
|
|
12
20
|
},
|
|
13
21
|
"files": [
|
|
14
|
-
"
|
|
22
|
+
"."
|
|
15
23
|
],
|
|
16
24
|
"repository": {
|
|
17
25
|
"type": "git",
|
|
@@ -19,36 +27,21 @@
|
|
|
19
27
|
"directory": "apps/cli"
|
|
20
28
|
},
|
|
21
29
|
"dependencies": {
|
|
22
|
-
"@duckcodeailabs/dql-agent": "^1.4.
|
|
23
|
-
"@duckcodeailabs/dql-slack": "^1.4.
|
|
24
|
-
"@duckcodeailabs/dql-compiler": "^1.4.
|
|
25
|
-
"@duckcodeailabs/dql-connectors": "^1.4.
|
|
26
|
-
"@duckcodeailabs/dql-core": "^1.4.
|
|
27
|
-
"@duckcodeailabs/dql-governance": "^1.4.
|
|
28
|
-
"@duckcodeailabs/dql-mcp": "^1.4.
|
|
29
|
-
"@duckcodeailabs/dql-notebook": "^1.4.
|
|
30
|
-
"@duckcodeailabs/dql-project": "^1.4.
|
|
30
|
+
"@duckcodeailabs/dql-agent": "^1.4.3",
|
|
31
|
+
"@duckcodeailabs/dql-slack": "^1.4.3",
|
|
32
|
+
"@duckcodeailabs/dql-compiler": "^1.4.3",
|
|
33
|
+
"@duckcodeailabs/dql-connectors": "^1.4.3",
|
|
34
|
+
"@duckcodeailabs/dql-core": "^1.4.3",
|
|
35
|
+
"@duckcodeailabs/dql-governance": "^1.4.3",
|
|
36
|
+
"@duckcodeailabs/dql-mcp": "^1.4.3",
|
|
37
|
+
"@duckcodeailabs/dql-notebook": "^1.4.3",
|
|
38
|
+
"@duckcodeailabs/dql-project": "^1.4.3",
|
|
31
39
|
"isomorphic-git": "^1.27.0",
|
|
32
40
|
"js-yaml": "^4.1.0",
|
|
33
41
|
"node-cron": "^3.0.3",
|
|
34
42
|
"nodemailer": "^6.9.16"
|
|
35
43
|
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@types/js-yaml": "^4.0.9",
|
|
38
|
-
"@types/node-cron": "^3.0.11",
|
|
39
|
-
"@types/nodemailer": "^6.4.17",
|
|
40
|
-
"tsx": "^4.19.0",
|
|
41
|
-
"typescript": "^5.7.0",
|
|
42
|
-
"vitest": "^3.0.0"
|
|
43
|
-
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=18.0.0"
|
|
46
|
-
},
|
|
47
|
-
"scripts": {
|
|
48
|
-
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc -b && node ./scripts/copy-runtime-assets.mjs",
|
|
49
|
-
"dev": "tsx src/index.ts",
|
|
50
|
-
"test": "vitest run --passWithNoTests",
|
|
51
|
-
"bench:manifest": "tsx bench/manifest-bench.ts",
|
|
52
|
-
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
53
46
|
}
|
|
54
|
-
}
|
|
47
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction, and
|
|
10
|
-
distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by the copyright
|
|
13
|
-
owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all other entities
|
|
16
|
-
that control, are controlled by, or are under common control with that entity.
|
|
17
|
-
For the purposes of this definition, "control" means (i) the power, direct or
|
|
18
|
-
indirect, to cause the direction or management of such entity, whether by
|
|
19
|
-
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
20
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
21
|
-
|
|
22
|
-
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
23
|
-
permissions granted by this License.
|
|
24
|
-
|
|
25
|
-
"Source" form shall mean the preferred form for making modifications, including
|
|
26
|
-
but not limited to software source code, documentation source, and configuration
|
|
27
|
-
files.
|
|
28
|
-
|
|
29
|
-
"Object" form shall mean any form resulting from mechanical transformation or
|
|
30
|
-
translation of a Source form, including but not limited to compiled object code,
|
|
31
|
-
generated documentation, and conversions to other media types.
|
|
32
|
-
|
|
33
|
-
"Work" shall mean the work of authorship, whether in Source or Object form, made
|
|
34
|
-
available under the License, as indicated by a copyright notice that is included
|
|
35
|
-
in or attached to the work.
|
|
36
|
-
|
|
37
|
-
"Derivative Works" shall mean any work, whether in Source or Object form, that
|
|
38
|
-
is based on (or derived from) the Work and for which the editorial revisions,
|
|
39
|
-
annotations, elaborations, or other modifications represent, as a whole, an
|
|
40
|
-
original work of authorship.
|
|
41
|
-
|
|
42
|
-
"Contribution" shall mean any work of authorship, including the original version
|
|
43
|
-
of the Work and any modifications or additions to that Work or Derivative Works
|
|
44
|
-
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
|
45
|
-
by the copyright owner or by an individual or Legal Entity authorized to submit
|
|
46
|
-
on behalf of the copyright owner.
|
|
47
|
-
|
|
48
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
|
49
|
-
of whom a Contribution has been received by Licensor and subsequently
|
|
50
|
-
incorporated within the Work.
|
|
51
|
-
|
|
52
|
-
2. Grant of Copyright License.
|
|
53
|
-
|
|
54
|
-
Subject to the terms and conditions of this License, each Contributor hereby
|
|
55
|
-
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
56
|
-
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
|
57
|
-
publicly display, publicly perform, sublicense, and distribute the Work and such
|
|
58
|
-
Derivative Works in Source or Object form.
|
|
59
|
-
|
|
60
|
-
3. Grant of Patent License.
|
|
61
|
-
|
|
62
|
-
Subject to the terms and conditions of this License, each Contributor hereby
|
|
63
|
-
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
64
|
-
irrevocable patent license to make, have made, use, offer to sell, sell, import,
|
|
65
|
-
and otherwise transfer the Work.
|
|
66
|
-
|
|
67
|
-
4. Redistribution.
|
|
68
|
-
|
|
69
|
-
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
|
70
|
-
in any medium, with or without modifications, and in Source or Object form,
|
|
71
|
-
provided that You meet the following conditions:
|
|
72
|
-
|
|
73
|
-
(a) You must give any other recipients of the Work or Derivative Works a copy of
|
|
74
|
-
this License; and
|
|
75
|
-
|
|
76
|
-
(b) You must cause any modified files to carry prominent notices stating that
|
|
77
|
-
You changed the files; and
|
|
78
|
-
|
|
79
|
-
(c) You must retain, in the Source form of any Derivative Works that You
|
|
80
|
-
distribute, all copyright, patent, trademark, and attribution notices from the
|
|
81
|
-
Source form of the Work, excluding those notices that do not pertain to any part
|
|
82
|
-
of the Derivative Works; and
|
|
83
|
-
|
|
84
|
-
(d) If the Work includes a "NOTICE" text file as part of its distribution, then
|
|
85
|
-
any Derivative Works that You distribute must include a readable copy of the
|
|
86
|
-
attribution notices contained within such NOTICE file, excluding those notices
|
|
87
|
-
that do not pertain to any part of the Derivative Works.
|
|
88
|
-
|
|
89
|
-
5. Submission of Contributions.
|
|
90
|
-
|
|
91
|
-
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
|
92
|
-
for inclusion in the Work by You to the Licensor shall be under the terms and
|
|
93
|
-
conditions of this License, without any additional terms or conditions.
|
|
94
|
-
|
|
95
|
-
6. Trademarks.
|
|
96
|
-
|
|
97
|
-
This License does not grant permission to use the trade names, trademarks,
|
|
98
|
-
service marks, or product names of the Licensor, except as required for
|
|
99
|
-
reasonable and customary use in describing the origin of the Work.
|
|
100
|
-
|
|
101
|
-
7. Disclaimer of Warranty.
|
|
102
|
-
|
|
103
|
-
Unless required by applicable law or agreed to in writing, Licensor provides the
|
|
104
|
-
Work on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
105
|
-
express or implied, including, without limitation, any warranties or conditions
|
|
106
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
|
|
107
|
-
PURPOSE.
|
|
108
|
-
|
|
109
|
-
8. Limitation of Liability.
|
|
110
|
-
|
|
111
|
-
In no event and under no legal theory, whether in tort (including negligence),
|
|
112
|
-
contract, or otherwise, unless required by applicable law, shall any Contributor
|
|
113
|
-
be liable to You for damages, including any direct, indirect, special,
|
|
114
|
-
incidental, or consequential damages of any character arising as a result of this
|
|
115
|
-
License or out of the use or inability to use the Work.
|
|
116
|
-
|
|
117
|
-
9. Accepting Warranty or Additional Liability.
|
|
118
|
-
|
|
119
|
-
While redistributing the Work or Derivative Works thereof, You may choose to
|
|
120
|
-
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
|
121
|
-
other liability obligations and/or rights consistent with this License.
|
|
122
|
-
|
|
123
|
-
END OF TERMS AND CONDITIONS
|
package/README.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# `@duckcodeailabs/dql-cli`
|
|
2
|
-
|
|
3
|
-
Official command-line interface for DQL.
|
|
4
|
-
|
|
5
|
-
Use the CLI to scaffold projects, validate blocks, preview charts locally, and build static bundles without DuckCode Studio.
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
For local preview with file/DuckDB-backed starter data, use Node 18, 20, or 22 LTS. If you change Node versions after installing dependencies, rerun `pnpm install` so native modules are rebuilt for the active runtime.
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npm install -g @duckcodeailabs/dql-cli
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Or run it without a global install:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npx @duckcodeailabs/dql-cli --help
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
From this repo, you can also run:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
pnpm exec dql --help
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Quick Start
|
|
28
|
-
|
|
29
|
-
These commands assume `dql` is installed globally. From a source checkout, use `pnpm exec dql` from the repo root or `../node_modules/.bin/dql` from the generated project.
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
dql init my-dql-project
|
|
33
|
-
cd my-dql-project
|
|
34
|
-
dql doctor
|
|
35
|
-
dql notebook
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
If you want the dbt-integrated starter instead, use the Jaffle Shop semantic-layer course repo:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
git clone https://github.com/dbt-labs/Semantic-Layer-Online-Course.git jaffle-shop
|
|
42
|
-
cd jaffle-shop
|
|
43
|
-
pip install dbt-duckdb && dbt deps && dbt build --profiles-dir .
|
|
44
|
-
npm install -g @duckcodeailabs/dql-cli
|
|
45
|
-
dql init .
|
|
46
|
-
dql semantic import dbt .
|
|
47
|
-
dql notebook
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Core Commands
|
|
51
|
-
|
|
52
|
-
- `dql init [directory]` — create a starter DQL project
|
|
53
|
-
- `dql new block <name>` — scaffold a new DQL block in the current project
|
|
54
|
-
- `dql new semantic-block <name>` — scaffold a semantic block plus companion YAML files
|
|
55
|
-
- `dql new dashboard <name>` — scaffold a new dashboard in `dashboards/`
|
|
56
|
-
- `dql new workbook <name>` — scaffold a new workbook in `workbooks/`
|
|
57
|
-
- `dql doctor [path]` — check local setup, config, and starter folders
|
|
58
|
-
- `dql parse <file.dql>` — parse and validate a DQL block
|
|
59
|
-
- `dql fmt <file.dql>` — format a DQL file
|
|
60
|
-
- `dql test <file.dql>` — run DQL assertions
|
|
61
|
-
- `dql certify <file.dql>` — run certification checks
|
|
62
|
-
- `dql preview <file.dql>` — preview a block in the browser
|
|
63
|
-
- `dql build <file.dql>` — build a static bundle in `dist/`
|
|
64
|
-
- `dql serve [directory]` — serve a built bundle locally
|
|
65
|
-
|
|
66
|
-
## Learn More
|
|
67
|
-
|
|
68
|
-
- Root docs: [`../../README.md`](../../README.md)
|
|
69
|
-
- Getting started: [`../../docs/getting-started.md`](../../docs/getting-started.md)
|
|
70
|
-
- CLI reference: [`../../docs/cli-reference.md`](../../docs/cli-reference.md)
|
|
71
|
-
- Project config: [`../../docs/project-config.md`](../../docs/project-config.md)
|
package/dist/apps-api.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP handlers for `/api/apps`, `/api/apps/:id`, `/api/apps/:id/dashboards/:did`,
|
|
3
|
-
* `/api/persona`. Designed to be invoked from `local-runtime.ts`'s request
|
|
4
|
-
* dispatcher — returns `true` if the request was handled, `false` otherwise.
|
|
5
|
-
*/
|
|
6
|
-
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
7
|
-
interface Ctx {
|
|
8
|
-
req: IncomingMessage;
|
|
9
|
-
res: ServerResponse;
|
|
10
|
-
url: URL;
|
|
11
|
-
path: string;
|
|
12
|
-
projectRoot: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function handleAppsApi(ctx: Ctx): Promise<boolean>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=apps-api.d.ts.map
|
package/dist/apps-api.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apps-api.d.ts","sourceRoot":"","sources":["../src/apps-api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAiBjE,UAAU,GAAG;IACX,GAAG,EAAE,eAAe,CAAC;IACrB,GAAG,EAAE,cAAc,CAAC;IACpB,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,CAsG9D"}
|
package/dist/apps-api.js
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP handlers for `/api/apps`, `/api/apps/:id`, `/api/apps/:id/dashboards/:did`,
|
|
3
|
-
* `/api/persona`. Designed to be invoked from `local-runtime.ts`'s request
|
|
4
|
-
* dispatcher — returns `true` if the request was handled, `false` otherwise.
|
|
5
|
-
*/
|
|
6
|
-
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
7
|
-
import { join, dirname } from 'node:path';
|
|
8
|
-
import { loadAppDocument, findAppDocuments, loadDashboardDocument, findDashboardsForApp, parseAppDocument, parseDashboardDocument, } from '@duckcodeailabs/dql-core';
|
|
9
|
-
import { defaultPersonaRegistry, personaFromMember, } from '@duckcodeailabs/dql-project';
|
|
10
|
-
export async function handleAppsApi(ctx) {
|
|
11
|
-
const { req, res, path, projectRoot } = ctx;
|
|
12
|
-
// ── Apps ────────────────────────────────────────────────────────────────
|
|
13
|
-
if (req.method === 'GET' && path === '/api/apps') {
|
|
14
|
-
const apps = collectAppsList(projectRoot);
|
|
15
|
-
sendJson(res, 200, { apps });
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
// /api/apps/:id — single App with dashboards summary
|
|
19
|
-
let m = path.match(/^\/api\/apps\/([^/]+)$/);
|
|
20
|
-
if (m && req.method === 'GET') {
|
|
21
|
-
const id = m[1];
|
|
22
|
-
const result = loadAppById(projectRoot, id);
|
|
23
|
-
if (!result) {
|
|
24
|
-
sendJson(res, 404, { error: `App "${id}" not found` });
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
sendJson(res, 200, result);
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
// /api/apps/:id/dashboards
|
|
31
|
-
m = path.match(/^\/api\/apps\/([^/]+)\/dashboards$/);
|
|
32
|
-
if (m && req.method === 'GET') {
|
|
33
|
-
const id = m[1];
|
|
34
|
-
const dashboards = listDashboardsFor(projectRoot, id);
|
|
35
|
-
if (dashboards === null) {
|
|
36
|
-
sendJson(res, 404, { error: `App "${id}" not found` });
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
sendJson(res, 200, { dashboards });
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
// /api/apps/:id/dashboards/:did
|
|
43
|
-
m = path.match(/^\/api\/apps\/([^/]+)\/dashboards\/([^/]+)$/);
|
|
44
|
-
if (m) {
|
|
45
|
-
const id = m[1];
|
|
46
|
-
const did = m[2];
|
|
47
|
-
if (req.method === 'GET') {
|
|
48
|
-
const result = loadDashboardForApp(projectRoot, id, did);
|
|
49
|
-
if (!result) {
|
|
50
|
-
sendJson(res, 404, { error: `Dashboard "${did}" not found in app "${id}"` });
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
sendJson(res, 200, result);
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
if (req.method === 'PUT' || req.method === 'POST') {
|
|
57
|
-
try {
|
|
58
|
-
const body = await readJson(req);
|
|
59
|
-
const written = await writeDashboard(projectRoot, id, did, body);
|
|
60
|
-
if (!written.ok) {
|
|
61
|
-
sendJson(res, 400, { error: written.error });
|
|
62
|
-
return true;
|
|
63
|
-
}
|
|
64
|
-
sendJson(res, 200, { ok: true, path: written.path });
|
|
65
|
-
}
|
|
66
|
-
catch (err) {
|
|
67
|
-
sendJson(res, 500, { error: err.message });
|
|
68
|
-
}
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
// ── Persona ────────────────────────────────────────────────────────────
|
|
73
|
-
if (path === '/api/persona') {
|
|
74
|
-
if (req.method === 'GET') {
|
|
75
|
-
sendJson(res, 200, { persona: defaultPersonaRegistry.active });
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
if (req.method === 'DELETE') {
|
|
79
|
-
defaultPersonaRegistry.clear();
|
|
80
|
-
sendJson(res, 200, { persona: null });
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
83
|
-
if (req.method === 'POST') {
|
|
84
|
-
try {
|
|
85
|
-
const body = await readJson(req);
|
|
86
|
-
const userId = typeof body.userId === 'string' ? body.userId : null;
|
|
87
|
-
const appId = typeof body.appId === 'string' ? body.appId : null;
|
|
88
|
-
if (!userId) {
|
|
89
|
-
sendJson(res, 400, { error: 'userId is required' });
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
const persona = activatePersona(projectRoot, userId, appId);
|
|
93
|
-
if (!persona) {
|
|
94
|
-
sendJson(res, 404, { error: 'No App member matches this userId' });
|
|
95
|
-
return true;
|
|
96
|
-
}
|
|
97
|
-
sendJson(res, 200, { persona });
|
|
98
|
-
}
|
|
99
|
-
catch (err) {
|
|
100
|
-
sendJson(res, 500, { error: err.message });
|
|
101
|
-
}
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
// ---- Helpers ----
|
|
108
|
-
function collectAppsList(projectRoot) {
|
|
109
|
-
const out = [];
|
|
110
|
-
for (const p of findAppDocuments(projectRoot)) {
|
|
111
|
-
const { document } = loadAppDocument(p);
|
|
112
|
-
if (!document)
|
|
113
|
-
continue;
|
|
114
|
-
const appDir = p.slice(0, -'/dql.app.json'.length);
|
|
115
|
-
const dashboards = [];
|
|
116
|
-
for (const d of findDashboardsForApp(appDir)) {
|
|
117
|
-
const { document: dd } = loadDashboardDocument(d);
|
|
118
|
-
if (dd)
|
|
119
|
-
dashboards.push({ id: dd.id, title: dd.metadata.title });
|
|
120
|
-
}
|
|
121
|
-
out.push({
|
|
122
|
-
id: document.id,
|
|
123
|
-
name: document.name,
|
|
124
|
-
domain: document.domain,
|
|
125
|
-
description: document.description,
|
|
126
|
-
owners: document.owners,
|
|
127
|
-
tags: document.tags ?? [],
|
|
128
|
-
members: document.members.length,
|
|
129
|
-
roles: document.roles.length,
|
|
130
|
-
policies: document.policies.length,
|
|
131
|
-
schedules: (document.schedules ?? []).length,
|
|
132
|
-
dashboards,
|
|
133
|
-
homepage: document.homepage,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
return out.sort((a, b) => a.name.localeCompare(b.name));
|
|
137
|
-
}
|
|
138
|
-
function loadAppById(projectRoot, id) {
|
|
139
|
-
for (const p of findAppDocuments(projectRoot)) {
|
|
140
|
-
const { document } = loadAppDocument(p);
|
|
141
|
-
if (!document || document.id !== id)
|
|
142
|
-
continue;
|
|
143
|
-
const appDir = p.slice(0, -'/dql.app.json'.length);
|
|
144
|
-
const dashboards = [];
|
|
145
|
-
for (const d of findDashboardsForApp(appDir)) {
|
|
146
|
-
const { document: dd } = loadDashboardDocument(d);
|
|
147
|
-
if (dd) {
|
|
148
|
-
dashboards.push({
|
|
149
|
-
id: dd.id,
|
|
150
|
-
title: dd.metadata.title,
|
|
151
|
-
description: dd.metadata.description,
|
|
152
|
-
itemCount: dd.layout.items.length,
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return { app: document, dashboards };
|
|
157
|
-
}
|
|
158
|
-
return null;
|
|
159
|
-
}
|
|
160
|
-
function listDashboardsFor(projectRoot, id) {
|
|
161
|
-
const result = loadAppById(projectRoot, id);
|
|
162
|
-
return result?.dashboards ?? null;
|
|
163
|
-
}
|
|
164
|
-
function loadDashboardForApp(projectRoot, appId, dashboardId) {
|
|
165
|
-
for (const p of findAppDocuments(projectRoot)) {
|
|
166
|
-
const { document } = loadAppDocument(p);
|
|
167
|
-
if (!document || document.id !== appId)
|
|
168
|
-
continue;
|
|
169
|
-
const appDir = p.slice(0, -'/dql.app.json'.length);
|
|
170
|
-
for (const d of findDashboardsForApp(appDir)) {
|
|
171
|
-
const { document: dd } = loadDashboardDocument(d);
|
|
172
|
-
if (dd && dd.id === dashboardId) {
|
|
173
|
-
return { app: document, dashboard: dd };
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return null;
|
|
178
|
-
}
|
|
179
|
-
async function writeDashboard(projectRoot, appId, dashboardId, payload) {
|
|
180
|
-
// Validate against the dashboard schema before touching disk.
|
|
181
|
-
const { document, errors } = parseDashboardDocument(JSON.stringify(payload), '<incoming>');
|
|
182
|
-
if (!document) {
|
|
183
|
-
return { ok: false, error: errors.map((e) => e.message).join('; ') };
|
|
184
|
-
}
|
|
185
|
-
if (document.id !== dashboardId) {
|
|
186
|
-
return { ok: false, error: `dashboard.id (${document.id}) does not match URL :did (${dashboardId})` };
|
|
187
|
-
}
|
|
188
|
-
// Confirm the App exists.
|
|
189
|
-
const appDir = join(projectRoot, 'apps', appId);
|
|
190
|
-
if (!existsSync(join(appDir, 'dql.app.json'))) {
|
|
191
|
-
return { ok: false, error: `App "${appId}" not found at ${appDir}` };
|
|
192
|
-
}
|
|
193
|
-
const dashboardPath = join(appDir, 'dashboards', `${dashboardId}.dqld`);
|
|
194
|
-
mkdirSync(dirname(dashboardPath), { recursive: true });
|
|
195
|
-
writeFileSync(dashboardPath, JSON.stringify(document, null, 2) + '\n', 'utf-8');
|
|
196
|
-
return { ok: true, path: dashboardPath };
|
|
197
|
-
}
|
|
198
|
-
function activatePersona(projectRoot, userId, appId) {
|
|
199
|
-
// If an App id is provided, scope the persona to it.
|
|
200
|
-
if (appId) {
|
|
201
|
-
for (const p of findAppDocuments(projectRoot)) {
|
|
202
|
-
const { document } = loadAppDocument(p);
|
|
203
|
-
if (!document || document.id !== appId)
|
|
204
|
-
continue;
|
|
205
|
-
return defaultPersonaRegistry.setFromApp(document, userId);
|
|
206
|
-
}
|
|
207
|
-
return null;
|
|
208
|
-
}
|
|
209
|
-
// Otherwise pick the first App that contains the user.
|
|
210
|
-
for (const p of findAppDocuments(projectRoot)) {
|
|
211
|
-
const { document } = loadAppDocument(p);
|
|
212
|
-
if (!document)
|
|
213
|
-
continue;
|
|
214
|
-
const member = document.members.find((m) => m.userId === userId);
|
|
215
|
-
if (member) {
|
|
216
|
-
const persona = personaFromMember(document, member);
|
|
217
|
-
defaultPersonaRegistry.set(persona);
|
|
218
|
-
return persona;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return null;
|
|
222
|
-
}
|
|
223
|
-
// ---- IO utilities ----
|
|
224
|
-
function sendJson(res, status, body) {
|
|
225
|
-
res.writeHead(status, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
226
|
-
res.end(JSON.stringify(body));
|
|
227
|
-
}
|
|
228
|
-
async function readJson(req) {
|
|
229
|
-
return new Promise((resolve, reject) => {
|
|
230
|
-
const chunks = [];
|
|
231
|
-
req.on('data', (c) => chunks.push(c));
|
|
232
|
-
req.on('end', () => {
|
|
233
|
-
const raw = Buffer.concat(chunks).toString('utf-8');
|
|
234
|
-
if (!raw)
|
|
235
|
-
return resolve({});
|
|
236
|
-
try {
|
|
237
|
-
resolve(JSON.parse(raw));
|
|
238
|
-
}
|
|
239
|
-
catch (err) {
|
|
240
|
-
reject(err);
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
req.on('error', reject);
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
// reference unused parseAppDocument/readFileSync to keep import stable for forward use
|
|
247
|
-
void parseAppDocument;
|
|
248
|
-
void readFileSync;
|
|
249
|
-
//# sourceMappingURL=apps-api.js.map
|
package/dist/apps-api.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apps-api.js","sourceRoot":"","sources":["../src/apps-api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,GAGvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,iBAAiB,GAElB,MAAM,6BAA6B,CAAC;AAUrC,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,GAAQ;IAC1C,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,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
|
-
verbose: boolean;
|
|
4
|
-
help: boolean;
|
|
5
|
-
version: boolean;
|
|
6
|
-
check: boolean;
|
|
7
|
-
open: boolean | null;
|
|
8
|
-
input: string;
|
|
9
|
-
outDir: string;
|
|
10
|
-
port: number | null;
|
|
11
|
-
/** HTTP bind host. Defaults to 127.0.0.1; set to 0.0.0.0 inside containers. */
|
|
12
|
-
host?: string | null;
|
|
13
|
-
chart: string;
|
|
14
|
-
domain: string;
|
|
15
|
-
owner: string;
|
|
16
|
-
queryOnly: boolean;
|
|
17
|
-
template: string;
|
|
18
|
-
connection: string;
|
|
19
|
-
skipTests: boolean;
|
|
20
|
-
force?: boolean;
|
|
21
|
-
http?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface ParsedArgs {
|
|
24
|
-
command: string | null;
|
|
25
|
-
file: string | null;
|
|
26
|
-
rest: string[];
|
|
27
|
-
flags: CLIFlags;
|
|
28
|
-
}
|
|
29
|
-
export declare function parseArgs(argv: string[]): ParsedArgs;
|
|
30
|
-
//# sourceMappingURL=args.d.ts.map
|
package/dist/args.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAmFpD"}
|