@malico/opencode-loop 0.1.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/README.md +42 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +13232 -0
- package/dist/parser.d.ts +25 -0
- package/package.json +40 -0
package/dist/parser.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type LoopCommand = {
|
|
2
|
+
type: "create";
|
|
3
|
+
intervalMs: number;
|
|
4
|
+
prompt: string;
|
|
5
|
+
intervalText: string;
|
|
6
|
+
} | {
|
|
7
|
+
type: "cancel";
|
|
8
|
+
target?: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: "status";
|
|
11
|
+
} | {
|
|
12
|
+
type: "list";
|
|
13
|
+
} | {
|
|
14
|
+
type: "resume";
|
|
15
|
+
target?: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: "unknown";
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function parseInterval(input: string): {
|
|
21
|
+
intervalMs: number;
|
|
22
|
+
intervalText: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
export declare function parseLoopCommand(input: string): LoopCommand;
|
|
25
|
+
export declare function formatDuration(ms: number): string;
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@malico/opencode-loop",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Session-tied fixed-delay loops for OpenCode",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"clean": "rm -rf dist",
|
|
19
|
+
"build": "bun run clean && bun build src/index.ts --outdir dist --target bun --format esm && tsc --emitDeclarationOnly",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
21
|
+
"test": "bun test"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"opencode",
|
|
25
|
+
"plugin",
|
|
26
|
+
"loop",
|
|
27
|
+
"automation"
|
|
28
|
+
],
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@opencode-ai/plugin": "^1.0.162"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"bun-types": "latest",
|
|
35
|
+
"typescript": "^5.7.3"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@opencode-ai/plugin": ">=1.0.0"
|
|
39
|
+
}
|
|
40
|
+
}
|