@rotifer/playground 0.5.0-alpha.2 → 0.7.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/CHANGELOG.md +159 -15
- package/LICENSE +1 -1
- package/README.md +51 -23
- package/README.zh.md +54 -25
- package/dist/cloud/auth.d.ts +7 -1
- package/dist/cloud/auth.d.ts.map +1 -1
- package/dist/cloud/auth.js +65 -1
- package/dist/cloud/auth.js.map +1 -1
- package/dist/cloud/client.d.ts +4 -1
- package/dist/cloud/client.d.ts.map +1 -1
- package/dist/cloud/client.js +9 -2
- package/dist/cloud/client.js.map +1 -1
- package/dist/cloud/types.d.ts +3 -1
- package/dist/cloud/types.d.ts.map +1 -1
- package/dist/cloud/types.js.map +1 -1
- package/dist/commands/agent-create.d.ts.map +1 -1
- package/dist/commands/agent-create.js +66 -3
- package/dist/commands/agent-create.js.map +1 -1
- package/dist/commands/agent-run.d.ts.map +1 -1
- package/dist/commands/agent-run.js +296 -32
- package/dist/commands/agent-run.js.map +1 -1
- package/dist/commands/arena-submit.d.ts.map +1 -1
- package/dist/commands/arena-submit.js +45 -17
- package/dist/commands/arena-submit.js.map +1 -1
- package/dist/commands/compile.d.ts.map +1 -1
- package/dist/commands/compile.js +9 -3
- package/dist/commands/compile.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +13 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +23 -16
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/network.js +4 -4
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/publish.d.ts.map +1 -1
- package/dist/commands/publish.js +162 -44
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/test.d.ts.map +1 -1
- package/dist/commands/test.js +209 -23
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/wrap.d.ts.map +1 -1
- package/dist/commands/wrap.js +17 -1
- package/dist/commands/wrap.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/runtime/network-gateway.d.ts +53 -0
- package/dist/runtime/network-gateway.d.ts.map +1 -0
- package/dist/runtime/network-gateway.js +147 -0
- package/dist/runtime/network-gateway.js.map +1 -0
- package/dist/utils/binding.d.ts +25 -0
- package/dist/utils/binding.d.ts.map +1 -1
- package/dist/utils/binding.js.map +1 -1
- package/dist/utils/open-browser.d.ts +10 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +23 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/genes/academic-writer/.cloud-manifest.json +6 -0
- package/genes/academic-writer/.gene-manifest.json +8 -0
- package/genes/academic-writer/SKILL.md +274 -0
- package/genes/academic-writer/phenotype.json +28 -0
- package/genes/ai-components/.cloud-manifest.json +6 -0
- package/genes/ai-components/.gene-manifest.json +8 -0
- package/genes/ai-components/SKILL.md +381 -0
- package/genes/ai-components/phenotype.json +28 -0
- package/genes/algorithmic-art/.cloud-manifest.json +6 -0
- package/genes/algorithmic-art/.gene-manifest.json +8 -0
- package/genes/algorithmic-art/SKILL.md +405 -0
- package/genes/algorithmic-art/phenotype.json +28 -0
- package/genes/answer-synthesizer/.cloud-manifest.json +6 -0
- package/genes/answer-synthesizer/index.ts +194 -0
- package/genes/answer-synthesizer/phenotype.json +61 -0
- package/genes/api-designer/.cloud-manifest.json +6 -0
- package/genes/api-designer/.gene-manifest.json +8 -0
- package/genes/api-designer/SKILL.md +456 -0
- package/genes/api-designer/phenotype.json +28 -0
- package/genes/auto-coder/.cloud-manifest.json +6 -0
- package/genes/auto-coder/.gene-manifest.json +8 -0
- package/genes/auto-coder/SKILL.md +400 -0
- package/genes/auto-coder/phenotype.json +28 -0
- package/genes/auto-writer/.cloud-manifest.json +6 -0
- package/genes/auto-writer/.gene-manifest.json +8 -0
- package/genes/auto-writer/SKILL.md +361 -0
- package/genes/auto-writer/phenotype.json +28 -0
- package/genes/brand-personality/.cloud-manifest.json +6 -0
- package/genes/brand-personality/.gene-manifest.json +8 -0
- package/genes/brand-personality/SKILL.md +549 -0
- package/genes/brand-personality/phenotype.json +28 -0
- package/genes/business-writer/.cloud-manifest.json +6 -0
- package/genes/business-writer/.gene-manifest.json +8 -0
- package/genes/business-writer/SKILL.md +448 -0
- package/genes/business-writer/phenotype.json +28 -0
- package/genes/citation-manager/.cloud-manifest.json +6 -0
- package/genes/citation-manager/.gene-manifest.json +8 -0
- package/genes/citation-manager/SKILL.md +279 -0
- package/genes/citation-manager/index.ts +162 -0
- package/genes/citation-manager/package.json +1 -0
- package/genes/citation-manager/phenotype.json +50 -0
- package/genes/code-complexity/.cloud-manifest.json +6 -0
- package/genes/code-complexity/README.md +35 -0
- package/genes/code-complexity/index.ts +101 -0
- package/genes/code-complexity/phenotype.json +34 -0
- package/genes/copywriter/.cloud-manifest.json +6 -0
- package/genes/copywriter/.gene-manifest.json +8 -0
- package/genes/copywriter/SKILL.md +329 -0
- package/genes/copywriter/phenotype.json +28 -0
- package/genes/creative-writer/.cloud-manifest.json +6 -0
- package/genes/creative-writer/.gene-manifest.json +8 -0
- package/genes/creative-writer/SKILL.md +356 -0
- package/genes/creative-writer/phenotype.json +28 -0
- package/genes/data-modeler/.cloud-manifest.json +6 -0
- package/genes/data-modeler/.gene-manifest.json +8 -0
- package/genes/data-modeler/SKILL.md +486 -0
- package/genes/data-modeler/phenotype.json +28 -0
- package/genes/debugger/.cloud-manifest.json +6 -0
- package/genes/debugger/.gene-manifest.json +8 -0
- package/genes/debugger/SKILL.md +416 -0
- package/genes/debugger/phenotype.json +28 -0
- package/genes/design-tokens/.cloud-manifest.json +6 -0
- package/genes/design-tokens/.gene-manifest.json +8 -0
- package/genes/design-tokens/SKILL.md +222 -0
- package/genes/design-tokens/index.ts +128 -0
- package/genes/design-tokens/package.json +1 -0
- package/genes/design-tokens/phenotype.json +1 -0
- package/genes/devops-automator/.cloud-manifest.json +6 -0
- package/genes/devops-automator/.gene-manifest.json +8 -0
- package/genes/devops-automator/SKILL.md +490 -0
- package/genes/devops-automator/phenotype.json +28 -0
- package/genes/doc-coauthoring/.cloud-manifest.json +6 -0
- package/genes/doc-coauthoring/.gene-manifest.json +8 -0
- package/genes/doc-coauthoring/SKILL.md +375 -0
- package/genes/doc-coauthoring/phenotype.json +28 -0
- package/genes/doc-retrieval/.cloud-manifest.json +6 -0
- package/genes/doc-retrieval/index.ts +134 -0
- package/genes/doc-retrieval/phenotype.json +54 -0
- package/genes/docs-writer/.cloud-manifest.json +6 -0
- package/genes/docs-writer/.gene-manifest.json +8 -0
- package/genes/docs-writer/SKILL.md +492 -0
- package/genes/docs-writer/phenotype.json +28 -0
- package/genes/evolve-life/.cloud-manifest.json +6 -0
- package/genes/evolve-life/.compile-result.json +12 -0
- package/genes/evolve-life/README.md +52 -0
- package/genes/evolve-life/gene.ir.wasm +0 -0
- package/genes/evolve-life/gene.wasm +0 -0
- package/genes/evolve-life/index.ts +255 -0
- package/genes/evolve-life/phenotype.json +129 -0
- package/genes/evolve-life-bitwise/.cloud-manifest.json +6 -0
- package/genes/evolve-life-bitwise/.compile-result.json +12 -0
- package/genes/evolve-life-bitwise/gene.ir.wasm +0 -0
- package/genes/evolve-life-bitwise/gene.wasm +0 -0
- package/genes/evolve-life-bitwise/index.ts +273 -0
- package/genes/evolve-life-bitwise/phenotype.json +129 -0
- package/genes/evolve-life-sparse/.cloud-manifest.json +6 -0
- package/genes/evolve-life-sparse/.compile-result.json +12 -0
- package/genes/evolve-life-sparse/gene.ir.wasm +0 -0
- package/genes/evolve-life-sparse/gene.wasm +0 -0
- package/genes/evolve-life-sparse/index.ts +236 -0
- package/genes/evolve-life-sparse/phenotype.json +129 -0
- package/genes/fact-checker/.cloud-manifest.json +6 -0
- package/genes/fact-checker/.gene-manifest.json +8 -0
- package/genes/fact-checker/SKILL.md +373 -0
- package/genes/fact-checker/phenotype.json +28 -0
- package/genes/genesis-code-format/.cloud-manifest.json +6 -0
- package/genes/genesis-code-format/package.json +1 -0
- package/genes/genesis-code-format/phenotype.json +1 -0
- package/genes/genesis-file-read/.cloud-manifest.json +6 -0
- package/genes/genesis-file-read/index.ts +11 -1
- package/genes/genesis-file-read/package.json +1 -0
- package/genes/genesis-file-read/phenotype.json +1 -0
- package/genes/genesis-l0-constraint/.cloud-manifest.json +6 -0
- package/genes/genesis-l0-constraint/package.json +1 -0
- package/genes/genesis-l0-constraint/phenotype.json +1 -0
- package/genes/genesis-web-search/.cloud-manifest.json +2 -2
- package/genes/genesis-web-search/package.json +1 -0
- package/genes/genesis-web-search/phenotype.json +1 -0
- package/genes/genesis-web-search-lite/.cloud-manifest.json +6 -0
- package/genes/genesis-web-search-lite/package.json +1 -0
- package/genes/genesis-web-search-lite/phenotype.json +1 -0
- package/genes/git-workflow/.cloud-manifest.json +6 -0
- package/genes/git-workflow/.gene-manifest.json +8 -0
- package/genes/git-workflow/SKILL.md +407 -0
- package/genes/git-workflow/phenotype.json +28 -0
- package/genes/grammar-checker/.cloud-manifest.json +6 -0
- package/genes/grammar-checker/.gene-manifest.json +8 -0
- package/genes/grammar-checker/SKILL.md +194 -0
- package/genes/grammar-checker/index.ts +168 -0
- package/genes/grammar-checker/package.json +1 -0
- package/genes/grammar-checker/phenotype.json +52 -0
- package/genes/json-validator/.cloud-manifest.json +6 -0
- package/genes/json-validator/README.md +42 -0
- package/genes/json-validator/index.ts +112 -0
- package/genes/json-validator/phenotype.json +42 -0
- package/genes/license-advisor/.cloud-manifest.json +6 -0
- package/genes/license-advisor/.gene-manifest.json +8 -0
- package/genes/license-advisor/SKILL.md +117 -0
- package/genes/license-advisor/phenotype.json +28 -0
- package/genes/logic-architect/.cloud-manifest.json +6 -0
- package/genes/logic-architect/.gene-manifest.json +8 -0
- package/genes/logic-architect/SKILL.md +451 -0
- package/genes/logic-architect/phenotype.json +28 -0
- package/genes/markdown-formatter/.cloud-manifest.json +6 -0
- package/genes/markdown-formatter/README.md +34 -0
- package/genes/markdown-formatter/index.ts +86 -0
- package/genes/markdown-formatter/phenotype.json +32 -0
- package/genes/orch/.cloud-manifest.json +6 -0
- package/genes/orch/.gene-manifest.json +8 -0
- package/genes/orch/SKILL.md +504 -0
- package/genes/orch/phenotype.json +28 -0
- package/genes/particle-barneshut/.cloud-manifest.json +6 -0
- package/genes/particle-barneshut/.compile-result.json +12 -0
- package/genes/particle-barneshut/README.md +55 -0
- package/genes/particle-barneshut/gene.ir.wasm +0 -0
- package/genes/particle-barneshut/gene.wasm +0 -0
- package/genes/particle-barneshut/index.ts +486 -0
- package/genes/particle-barneshut/phenotype.json +137 -0
- package/genes/particle-brute/.cloud-manifest.json +6 -0
- package/genes/particle-brute/.compile-result.json +12 -0
- package/genes/particle-brute/README.md +55 -0
- package/genes/particle-brute/gene.ir.wasm +0 -0
- package/genes/particle-brute/gene.wasm +0 -0
- package/genes/particle-brute/index.ts +277 -0
- package/genes/particle-brute/phenotype.json +137 -0
- package/genes/particle-spatial/.cloud-manifest.json +6 -0
- package/genes/particle-spatial/.compile-result.json +12 -0
- package/genes/particle-spatial/README.md +53 -0
- package/genes/particle-spatial/gene.ir.wasm +0 -0
- package/genes/particle-spatial/gene.wasm +0 -0
- package/genes/particle-spatial/index.ts +352 -0
- package/genes/particle-spatial/phenotype.json +137 -0
- package/genes/performance-optimizer/.cloud-manifest.json +6 -0
- package/genes/performance-optimizer/.gene-manifest.json +8 -0
- package/genes/performance-optimizer/SKILL.md +480 -0
- package/genes/performance-optimizer/phenotype.json +28 -0
- package/genes/plagiarism-checker/.cloud-manifest.json +6 -0
- package/genes/plagiarism-checker/.gene-manifest.json +8 -0
- package/genes/plagiarism-checker/SKILL.md +342 -0
- package/genes/plagiarism-checker/phenotype.json +28 -0
- package/genes/product-manager/.cloud-manifest.json +6 -0
- package/genes/product-manager/.gene-manifest.json +8 -0
- package/genes/product-manager/SKILL.md +249 -0
- package/genes/product-manager/phenotype.json +28 -0
- package/genes/project-reviewer/.cloud-manifest.json +6 -0
- package/genes/project-reviewer/.gene-manifest.json +8 -0
- package/genes/project-reviewer/SKILL.md +312 -0
- package/genes/project-reviewer/phenotype.json +28 -0
- package/genes/prompt-engineer/.cloud-manifest.json +6 -0
- package/genes/prompt-engineer/.gene-manifest.json +8 -0
- package/genes/prompt-engineer/SKILL.md +411 -0
- package/genes/prompt-engineer/phenotype.json +28 -0
- package/genes/readability-analyzer/.cloud-manifest.json +6 -0
- package/genes/readability-analyzer/.gene-manifest.json +8 -0
- package/genes/readability-analyzer/SKILL.md +357 -0
- package/genes/readability-analyzer/index.ts +123 -0
- package/genes/readability-analyzer/package.json +1 -0
- package/genes/readability-analyzer/phenotype.json +35 -0
- package/genes/rotifer-protocol/SKILL.md +121 -0
- package/genes/security-auditor/.cloud-manifest.json +6 -0
- package/genes/security-auditor/.gene-manifest.json +8 -0
- package/genes/security-auditor/SKILL.md +494 -0
- package/genes/security-auditor/phenotype.json +28 -0
- package/genes/seo-optimizer/.cloud-manifest.json +6 -0
- package/genes/seo-optimizer/.gene-manifest.json +8 -0
- package/genes/seo-optimizer/SKILL.md +327 -0
- package/genes/seo-optimizer/index.ts +206 -0
- package/genes/seo-optimizer/package.json +1 -0
- package/genes/seo-optimizer/phenotype.json +1 -0
- package/genes/source-linker/.cloud-manifest.json +6 -0
- package/genes/source-linker/index.ts +88 -0
- package/genes/source-linker/phenotype.json +45 -0
- package/genes/style-optimizer/.cloud-manifest.json +6 -0
- package/genes/style-optimizer/.gene-manifest.json +8 -0
- package/genes/style-optimizer/SKILL.md +285 -0
- package/genes/style-optimizer/phenotype.json +28 -0
- package/genes/tech-lead/.cloud-manifest.json +6 -0
- package/genes/tech-lead/.gene-manifest.json +8 -0
- package/genes/tech-lead/SKILL.md +451 -0
- package/genes/tech-lead/phenotype.json +28 -0
- package/genes/test-wrap/.cloud-manifest.json +6 -0
- package/genes/test-wrap/.gene-manifest.json +8 -0
- package/genes/test-wrap/phenotype.json +28 -0
- package/genes/testing-strategist/.cloud-manifest.json +6 -0
- package/genes/testing-strategist/.gene-manifest.json +8 -0
- package/genes/testing-strategist/SKILL.md +500 -0
- package/genes/testing-strategist/phenotype.json +28 -0
- package/genes/text-summarizer/.cloud-manifest.json +6 -0
- package/genes/text-summarizer/README.md +34 -0
- package/genes/text-summarizer/index.ts +122 -0
- package/genes/text-summarizer/phenotype.json +32 -0
- package/genes/tone-analyzer/.cloud-manifest.json +6 -0
- package/genes/tone-analyzer/.gene-manifest.json +8 -0
- package/genes/tone-analyzer/SKILL.md +410 -0
- package/genes/tone-analyzer/phenotype.json +28 -0
- package/genes/translator/.cloud-manifest.json +6 -0
- package/genes/translator/.gene-manifest.json +8 -0
- package/genes/translator/SKILL.md +355 -0
- package/genes/translator/phenotype.json +28 -0
- package/genes/ui-components/.cloud-manifest.json +6 -0
- package/genes/ui-components/.gene-manifest.json +8 -0
- package/genes/ui-components/SKILL.md +467 -0
- package/genes/ui-components/phenotype.json +28 -0
- package/genes/uiux-designer/.cloud-manifest.json +6 -0
- package/genes/uiux-designer/.gene-manifest.json +8 -0
- package/genes/uiux-designer/SKILL.md +353 -0
- package/genes/uiux-designer/phenotype.json +28 -0
- package/genes/url-extractor/.cloud-manifest.json +6 -0
- package/genes/url-extractor/README.md +37 -0
- package/genes/url-extractor/index.ts +86 -0
- package/genes/url-extractor/phenotype.json +48 -0
- package/genes/ux-patterns/.cloud-manifest.json +6 -0
- package/genes/ux-patterns/.gene-manifest.json +8 -0
- package/genes/ux-patterns/SKILL.md +872 -0
- package/genes/ux-patterns/phenotype.json +28 -0
- package/genes/web3-components/.cloud-manifest.json +6 -0
- package/genes/web3-components/.gene-manifest.json +8 -0
- package/genes/web3-components/SKILL.md +390 -0
- package/genes/web3-components/phenotype.json +28 -0
- package/package.json +6 -5
package/dist/utils/binding.d.ts
CHANGED
|
@@ -4,6 +4,28 @@ export interface CompileResultView {
|
|
|
4
4
|
codeSectionSize: number;
|
|
5
5
|
wasmAvailable: boolean;
|
|
6
6
|
}
|
|
7
|
+
export interface ExecutionResultView {
|
|
8
|
+
success: boolean;
|
|
9
|
+
output: unknown;
|
|
10
|
+
errorMessage: string | null;
|
|
11
|
+
fuelConsumed: number;
|
|
12
|
+
memoryPeakKb: number;
|
|
13
|
+
durationMs: number;
|
|
14
|
+
sandboxType: string;
|
|
15
|
+
}
|
|
16
|
+
export interface L0CheckResultView {
|
|
17
|
+
passed: boolean;
|
|
18
|
+
violations: string[];
|
|
19
|
+
checksPerformed: number;
|
|
20
|
+
}
|
|
21
|
+
export interface AlgebraResultView {
|
|
22
|
+
success: boolean;
|
|
23
|
+
output: unknown;
|
|
24
|
+
errorMessage: string | null;
|
|
25
|
+
stepsExecuted: number;
|
|
26
|
+
totalFuelConsumed: number;
|
|
27
|
+
totalDurationMs: number;
|
|
28
|
+
}
|
|
7
29
|
export interface NativeBinding {
|
|
8
30
|
compileGeneToFile(wasmBytes: Buffer, phenotypeJson: string, outputPath: string): CompileResultView;
|
|
9
31
|
verifyIrModule(wasmBytes: Buffer): string;
|
|
@@ -11,6 +33,9 @@ export interface NativeBinding {
|
|
|
11
33
|
buildSearchGeneWasm(): Buffer;
|
|
12
34
|
buildSummarizeGeneWasm(): Buffer;
|
|
13
35
|
buildTranslateGeneWasm(): Buffer;
|
|
36
|
+
executeGene(wasmBytes: Buffer, inputJson: string, phenotypeJson: string, constraintsJson?: string): ExecutionResultView;
|
|
37
|
+
l0Check(phenotypeJson: string, permissionsJson?: string, constraintsJson?: string): L0CheckResultView;
|
|
38
|
+
executeAlgebra(algebraJson: string, geneEntriesJson: string, inputJson: string): AlgebraResultView;
|
|
14
39
|
}
|
|
15
40
|
/**
|
|
16
41
|
* Try to load the napi native addon.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../src/utils/binding.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,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AM,EACrB,UAAU,EAAE,MAAM,GACjB,iBAAiB,CAAC;IACrB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1C,iBAAiB,IAAI,MAAM,CAAC;IAC5B,mBAAmB,IAAI,MAAM,CAAC;IAC9B,sBAAsB,IAAI,MAAM,CAAC;IACjC,sBAAsB,IAAI,MAAM,CAAC;IACjC,WAAW,CACT,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,GACvB,mBAAmB,CAAC;IACvB,OAAO,CACL,aAAa,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,EACxB,eAAe,CAAC,EAAE,MAAM,GACvB,iBAAiB,CAAC;IACrB,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,SAAS,EAAE,MAAM,GAChB,iBAAiB,CAAC;CACtB;AAKD;;;GAGG;AACH,wBAAgB,cAAc,IAAI,aAAa,GAAG,IAAI,CAkCrD;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../../src/utils/binding.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../../src/utils/binding.ts"],"names":[],"mappings":";;AAuEA,wCAkCC;AAED,8CAEC;AA7GD,yCAAiC;AACjC,qCAAqC;AA+DrC,IAAI,QAAQ,GAAyB,IAAI,CAAC;AAC1C,IAAI,cAAc,GAAG,KAAK,CAAC;AAE3B;;;GAGG;AACH,SAAgB,cAAc;IAC5B,IAAI,cAAc;QAAE,OAAO,QAAQ,CAAC;IACpC,cAAc,GAAG,IAAI,CAAC;IAEtB,MAAM,UAAU,GAAG;QACjB,IAAA,gBAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAyB,CAAC;QACtD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2
|
+
* Build the shell command to open a URL in the default browser.
|
|
3
|
+
* Exported separately for testability.
|
|
4
|
+
*/
|
|
5
|
+
export declare function buildOpenCommand(url: string, platform: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Open a URL in the user's default browser, cross-platform.
|
|
8
|
+
*/
|
|
9
|
+
export declare function openBrowser(url: string): void;
|
|
10
|
+
//# sourceMappingURL=open-browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-browser.d.ts","sourceRoot":"","sources":["../../src/utils/open-browser.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMtE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE7C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildOpenCommand = buildOpenCommand;
|
|
4
|
+
exports.openBrowser = openBrowser;
|
|
5
|
+
const node_child_process_1 = require("node:child_process");
|
|
6
|
+
/**
|
|
7
|
+
* Build the shell command to open a URL in the default browser.
|
|
8
|
+
* Exported separately for testability.
|
|
9
|
+
*/
|
|
10
|
+
function buildOpenCommand(url, platform) {
|
|
11
|
+
if (platform === "win32") {
|
|
12
|
+
return `start "" "${url}"`;
|
|
13
|
+
}
|
|
14
|
+
const bin = platform === "darwin" ? "open" : "xdg-open";
|
|
15
|
+
return `${bin} "${url}"`;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Open a URL in the user's default browser, cross-platform.
|
|
19
|
+
*/
|
|
20
|
+
function openBrowser(url) {
|
|
21
|
+
(0, node_child_process_1.exec)(buildOpenCommand(url, process.platform));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=open-browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-browser.js","sourceRoot":"","sources":["../../src/utils/open-browser.ts"],"names":[],"mappings":";;AAMA,4CAMC;AAKD,kCAEC;AAnBD,2DAA0C;AAE1C;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,GAAW,EAAE,QAAgB;IAC5D,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;QACzB,OAAO,aAAa,GAAG,GAAG,CAAC;IAC7B,CAAC;IACD,MAAM,GAAG,GAAG,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC;IACxD,OAAO,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC;AAC3B,CAAC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,IAAA,yBAAI,EAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"geneId": "f3f7ed9e0099a055c841c1573024a89b853e17772201a7183ae49760bb2db0a0",
|
|
3
|
+
"name": "academic-writer",
|
|
4
|
+
"domain": "content.academic",
|
|
5
|
+
"fidelity": "Wrapped",
|
|
6
|
+
"wrappedAt": "2026-02-24T13:23:10.543Z",
|
|
7
|
+
"fromSkill": "../.cursor/skills/academic-writer/SKILL.md"
|
|
8
|
+
}
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: academic-writer
|
|
3
|
+
description: Write academic papers, research reports, and scholarly content. Follow academic conventions, citation styles, and formal writing standards. Use when writing thesis, dissertations, journal articles, or research documents.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Academic Writer (学术写作师)
|
|
7
|
+
|
|
8
|
+
**Goal**: 撰写符合学术规范的论文、研究报告和学术内容。
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 1. 论文结构
|
|
13
|
+
|
|
14
|
+
### 标准学术论文结构
|
|
15
|
+
|
|
16
|
+
```markdown
|
|
17
|
+
1. 标题 (Title)
|
|
18
|
+
- 简洁、准确、信息丰富
|
|
19
|
+
- 包含关键词
|
|
20
|
+
- 避免缩写(首次使用)
|
|
21
|
+
|
|
22
|
+
2. 摘要 (Abstract)
|
|
23
|
+
- 200-300 字(中文)/ 150-250 词(英文)
|
|
24
|
+
- 包含:背景、目的、方法、结果、结论
|
|
25
|
+
- 独立成段,不分小节
|
|
26
|
+
|
|
27
|
+
3. 关键词 (Keywords)
|
|
28
|
+
- 3-5 个
|
|
29
|
+
- 涵盖研究主题
|
|
30
|
+
|
|
31
|
+
4. 引言 (Introduction)
|
|
32
|
+
- 研究背景
|
|
33
|
+
- 文献回顾
|
|
34
|
+
- 研究问题/假设
|
|
35
|
+
- 研究目的
|
|
36
|
+
|
|
37
|
+
5. 方法 (Methodology)
|
|
38
|
+
- 研究设计
|
|
39
|
+
- 样本/数据
|
|
40
|
+
- 分析方法
|
|
41
|
+
- 可重复性
|
|
42
|
+
|
|
43
|
+
6. 结果 (Results)
|
|
44
|
+
- 客观呈现数据
|
|
45
|
+
- 图表辅助
|
|
46
|
+
- 统计显著性
|
|
47
|
+
|
|
48
|
+
7. 讨论 (Discussion)
|
|
49
|
+
- 结果解释
|
|
50
|
+
- 与现有研究比较
|
|
51
|
+
- 局限性
|
|
52
|
+
- 未来研究方向
|
|
53
|
+
|
|
54
|
+
8. 结论 (Conclusion)
|
|
55
|
+
- 主要发现总结
|
|
56
|
+
- 研究贡献
|
|
57
|
+
- 实践意义
|
|
58
|
+
|
|
59
|
+
9. 参考文献 (References)
|
|
60
|
+
- 按引用格式排列
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 2. 引用格式
|
|
66
|
+
|
|
67
|
+
### APA 格式 (第7版)
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
## 期刊文章
|
|
71
|
+
Author, A. A., & Author, B. B. (Year). Title of article. Title of Periodical, volume(issue), page–page. https://doi.org/xxxxx
|
|
72
|
+
|
|
73
|
+
## 书籍
|
|
74
|
+
Author, A. A. (Year). Title of work: Capital letter also for subtitle. Publisher.
|
|
75
|
+
|
|
76
|
+
## 网页
|
|
77
|
+
Author, A. A. (Year, Month Day). Title of page. Site Name. URL
|
|
78
|
+
|
|
79
|
+
## 文内引用
|
|
80
|
+
- 单作者: (Smith, 2020)
|
|
81
|
+
- 双作者: (Smith & Jones, 2020)
|
|
82
|
+
- 三作者及以上: (Smith et al., 2020)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### MLA 格式 (第9版)
|
|
86
|
+
|
|
87
|
+
```markdown
|
|
88
|
+
## 期刊文章
|
|
89
|
+
Last name, First name. "Title of Article." Journal Name, vol. #, no. #, Year, pp. #-#.
|
|
90
|
+
|
|
91
|
+
## 书籍
|
|
92
|
+
Last name, First name. Title of Book. Publisher, Year.
|
|
93
|
+
|
|
94
|
+
## 文内引用
|
|
95
|
+
- (Smith 45)
|
|
96
|
+
- (Smith and Jones 45)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### GB/T 7714 格式
|
|
100
|
+
|
|
101
|
+
```markdown
|
|
102
|
+
## 期刊文章
|
|
103
|
+
[序号] 作者. 题名[J]. 刊名, 年, 卷(期): 起止页码.
|
|
104
|
+
|
|
105
|
+
## 书籍
|
|
106
|
+
[序号] 作者. 书名[M]. 出版地: 出版社, 年份.
|
|
107
|
+
|
|
108
|
+
## 示例
|
|
109
|
+
[1] 张三, 李四. 人工智能研究进展[J]. 计算机学报, 2024, 47(3): 512-528.
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 3. 学术语言规范
|
|
115
|
+
|
|
116
|
+
### 应该使用
|
|
117
|
+
|
|
118
|
+
| 场景 | 推荐表达 |
|
|
119
|
+
|------|----------|
|
|
120
|
+
| 陈述发现 | 研究表明、结果显示、数据揭示 |
|
|
121
|
+
| 表达观点 | 可以认为、本研究认为 |
|
|
122
|
+
| 推测 | 可能、或许、似乎表明 |
|
|
123
|
+
| 比较 | 相比于、与...相比、区别于 |
|
|
124
|
+
| 结论 | 综上所述、基于上述分析 |
|
|
125
|
+
|
|
126
|
+
### 应该避免
|
|
127
|
+
|
|
128
|
+
```markdown
|
|
129
|
+
❌ 我觉得、我认为(主观)
|
|
130
|
+
❌ 很多、非常(模糊)
|
|
131
|
+
❌ 口语化表达
|
|
132
|
+
❌ 绝对化表述(一定、肯定)
|
|
133
|
+
❌ 感叹句、疑问句过多
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### 学术常用句型
|
|
137
|
+
|
|
138
|
+
```markdown
|
|
139
|
+
## 引言
|
|
140
|
+
- 近年来,...领域受到广泛关注
|
|
141
|
+
- 然而,现有研究存在...局限性
|
|
142
|
+
- 本研究旨在...
|
|
143
|
+
|
|
144
|
+
## 方法
|
|
145
|
+
- 本研究采用...方法
|
|
146
|
+
- 数据来源于...
|
|
147
|
+
- 研究对象包括...
|
|
148
|
+
|
|
149
|
+
## 结果
|
|
150
|
+
- 结果表明...
|
|
151
|
+
- 如表/图X所示...
|
|
152
|
+
- 数据显示...
|
|
153
|
+
|
|
154
|
+
## 讨论
|
|
155
|
+
- 这一发现与...一致/不一致
|
|
156
|
+
- 可能的解释是...
|
|
157
|
+
- 值得注意的是...
|
|
158
|
+
|
|
159
|
+
## 结论
|
|
160
|
+
- 综上所述,本研究发现...
|
|
161
|
+
- 本研究的贡献在于...
|
|
162
|
+
- 未来研究可以...
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## 4. 图表规范
|
|
168
|
+
|
|
169
|
+
### 表格格式
|
|
170
|
+
|
|
171
|
+
```markdown
|
|
172
|
+
表 X. 表格标题(位于表格上方)
|
|
173
|
+
|
|
174
|
+
| 变量 | 均值 | 标准差 | p值 |
|
|
175
|
+
|------|------|--------|-----|
|
|
176
|
+
| A | 3.45 | 0.82 | <.001 |
|
|
177
|
+
| B | 2.89 | 0.91 | .023 |
|
|
178
|
+
|
|
179
|
+
注:* p < .05, ** p < .01, *** p < .001
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### 图片格式
|
|
183
|
+
|
|
184
|
+
```markdown
|
|
185
|
+
[图片]
|
|
186
|
+
|
|
187
|
+
图 X. 图片标题(位于图片下方)
|
|
188
|
+
注:数据来源于...;N = 样本量
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## 5. 摘要写作模板
|
|
194
|
+
|
|
195
|
+
### 中文摘要
|
|
196
|
+
|
|
197
|
+
```markdown
|
|
198
|
+
[背景] 随着...的发展,...问题日益突出。
|
|
199
|
+
[目的] 本研究旨在探讨/分析/验证...
|
|
200
|
+
[方法] 采用...方法,对...进行研究。
|
|
201
|
+
[结果] 研究发现:(1)...;(2)...;(3)...
|
|
202
|
+
[结论] 研究表明...,对...具有重要意义。
|
|
203
|
+
|
|
204
|
+
关键词:关键词1;关键词2;关键词3
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### 英文摘要
|
|
208
|
+
|
|
209
|
+
```markdown
|
|
210
|
+
[Background] With the development of..., ... has become increasingly important.
|
|
211
|
+
[Purpose] This study aims to investigate/examine/explore...
|
|
212
|
+
[Methods] Using ... approach, we analyzed...
|
|
213
|
+
[Results] The findings indicate that: (1)...; (2)...; (3)...
|
|
214
|
+
[Conclusion] The study suggests that..., which has implications for...
|
|
215
|
+
|
|
216
|
+
Keywords: keyword1; keyword2; keyword3
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## 6. 检查清单
|
|
222
|
+
|
|
223
|
+
```markdown
|
|
224
|
+
## Academic Writing Checklist
|
|
225
|
+
|
|
226
|
+
### 结构
|
|
227
|
+
- [ ] 标题准确反映内容
|
|
228
|
+
- [ ] 摘要包含所有要素
|
|
229
|
+
- [ ] 各章节结构完整
|
|
230
|
+
- [ ] 逻辑流畅
|
|
231
|
+
|
|
232
|
+
### 引用
|
|
233
|
+
- [ ] 引用格式统一
|
|
234
|
+
- [ ] 所有引用都有出处
|
|
235
|
+
- [ ] 参考文献列表完整
|
|
236
|
+
- [ ] 无格式错误
|
|
237
|
+
|
|
238
|
+
### 语言
|
|
239
|
+
- [ ] 学术语气
|
|
240
|
+
- [ ] 客观表述
|
|
241
|
+
- [ ] 无口语化
|
|
242
|
+
- [ ] 术语准确
|
|
243
|
+
|
|
244
|
+
### 规范
|
|
245
|
+
- [ ] 图表编号正确
|
|
246
|
+
- [ ] 图表标题完整
|
|
247
|
+
- [ ] 数据来源标注
|
|
248
|
+
- [ ] 页码格式正确
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## Quick Reference
|
|
254
|
+
|
|
255
|
+
### 学术写作原则
|
|
256
|
+
|
|
257
|
+
```markdown
|
|
258
|
+
1. 客观性 - 避免主观判断
|
|
259
|
+
2. 准确性 - 数据和引用准确
|
|
260
|
+
3. 简洁性 - 避免冗余表达
|
|
261
|
+
4. 逻辑性 - 论证严密
|
|
262
|
+
5. 规范性 - 遵循格式要求
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### 论文各部分字数参考(中文)
|
|
266
|
+
|
|
267
|
+
| 部分 | 占比 | 万字论文 |
|
|
268
|
+
|------|------|----------|
|
|
269
|
+
| 摘要 | 2-3% | 200-300字 |
|
|
270
|
+
| 引言 | 10-15% | 1000-1500字 |
|
|
271
|
+
| 方法 | 15-20% | 1500-2000字 |
|
|
272
|
+
| 结果 | 20-25% | 2000-2500字 |
|
|
273
|
+
| 讨论 | 25-30% | 2500-3000字 |
|
|
274
|
+
| 结论 | 5-10% | 500-1000字 |
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "content.academic",
|
|
3
|
+
"description": "Write academic papers, research reports, and scholarly content. Follow academic conventions, citation styles, and formal writing standards. Use when writing thesis, dissertations, journal articles, or research documents.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"prompt": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"required": []
|
|
12
|
+
},
|
|
13
|
+
"outputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"result": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"dependencies": [],
|
|
22
|
+
"version": "0.1.0",
|
|
23
|
+
"author": "rotifer-team",
|
|
24
|
+
"createdAt": 1771939390540,
|
|
25
|
+
"fidelity": "Wrapped",
|
|
26
|
+
"transparency": "Open",
|
|
27
|
+
"source": "skill"
|
|
28
|
+
}
|