@lovelybunch/core 1.0.67 → 1.0.68
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/dist/logging/index.d.ts +4 -4
- package/dist/logging/index.d.ts.map +1 -1
- package/dist/logging/index.js +4 -4
- package/dist/logging/index.js.map +1 -1
- package/dist/logging/logger.d.ts +2 -2
- package/dist/logging/logger.d.ts.map +1 -1
- package/dist/logging/logger.js +4 -4
- package/dist/logging/logger.js.map +1 -1
- package/package.json +2 -2
- package/dist/workflow-templates.d.ts +0 -6
- package/dist/workflow-templates.d.ts.map +0 -1
- package/dist/workflow-templates.js +0 -61
- package/dist/workflow-templates.js.map +0 -1
package/dist/logging/index.d.ts
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export { getLogger, resetLogger, hasLogger } from "./logger";
|
|
25
|
+
export { getLogger, resetLogger, hasLogger } from "./logger.js";
|
|
26
26
|
export type { LogEventBase, LogEvent, Logger, LoggerOptions, LogLevel, } from "./types";
|
|
27
|
-
export { EventKinds, ProposalKinds, AgentKinds, CodeKinds, KnowledgeKinds, JobKinds, ResourceKinds, AuthKinds, isValidEventKind, EventKindRegistry, } from "./kinds";
|
|
28
|
-
export { defaultRedactor, createRedactor, noRedactor, } from "./redact";
|
|
29
|
-
export { JsonlWriter } from "./jsonl-writer";
|
|
27
|
+
export { EventKinds, ProposalKinds, AgentKinds, CodeKinds, KnowledgeKinds, JobKinds, ResourceKinds, AuthKinds, isValidEventKind, EventKindRegistry, } from "./kinds.js";
|
|
28
|
+
export { defaultRedactor, createRedactor, noRedactor, } from "./redact.js";
|
|
29
|
+
export { JsonlWriter } from "./jsonl-writer.js";
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logging/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logging/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGhE,YAAY,EACV,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,aAAa,EACb,QAAQ,GACT,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,UAAU,EACV,aAAa,EACb,UAAU,EACV,SAAS,EACT,cAAc,EACd,QAAQ,EACR,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/logging/index.js
CHANGED
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
// Main logger interface
|
|
26
|
-
export { getLogger, resetLogger, hasLogger } from "./logger";
|
|
26
|
+
export { getLogger, resetLogger, hasLogger } from "./logger.js";
|
|
27
27
|
// Event kinds taxonomy
|
|
28
|
-
export { EventKinds, ProposalKinds, AgentKinds, CodeKinds, KnowledgeKinds, JobKinds, ResourceKinds, AuthKinds, isValidEventKind, EventKindRegistry, } from "./kinds";
|
|
28
|
+
export { EventKinds, ProposalKinds, AgentKinds, CodeKinds, KnowledgeKinds, JobKinds, ResourceKinds, AuthKinds, isValidEventKind, EventKindRegistry, } from "./kinds.js";
|
|
29
29
|
// Redaction utilities
|
|
30
|
-
export { defaultRedactor, createRedactor, noRedactor, } from "./redact";
|
|
30
|
+
export { defaultRedactor, createRedactor, noRedactor, } from "./redact.js";
|
|
31
31
|
// Internal writer (exported for testing and advanced use cases)
|
|
32
|
-
export { JsonlWriter } from "./jsonl-writer";
|
|
32
|
+
export { JsonlWriter } from "./jsonl-writer.js";
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/logging/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,wBAAwB;AACxB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/logging/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,wBAAwB;AACxB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWhE,uBAAuB;AACvB,OAAO,EACL,UAAU,EACV,aAAa,EACb,UAAU,EACV,SAAS,EACT,cAAc,EACd,QAAQ,EACR,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAEpB,sBAAsB;AACtB,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,aAAa,CAAC;AAErB,gEAAgE;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/logging/logger.d.ts
CHANGED
|
@@ -37,6 +37,6 @@ export declare function resetLogger(): void;
|
|
|
37
37
|
*/
|
|
38
38
|
export declare function hasLogger(): boolean;
|
|
39
39
|
export type { LogEventBase, Logger, LoggerOptions, LogLevel } from "./types";
|
|
40
|
-
export { EventKinds } from "./kinds";
|
|
41
|
-
export { defaultRedactor, createRedactor, noRedactor } from "./redact";
|
|
40
|
+
export { EventKinds } from "./kinds.js";
|
|
41
|
+
export { defaultRedactor, createRedactor, noRedactor } from "./redact.js";
|
|
42
42
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logging/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAgB,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAOnE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,MAAM,CAwC/D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAKlC;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAGD,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logging/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAgB,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAOnE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,MAAM,CAwC/D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAKlC;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAGD,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/logging/logger.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @module logging/logger
|
|
4
4
|
*/
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import { JsonlWriter } from "./jsonl-writer";
|
|
7
|
-
import { defaultRedactor } from "./redact";
|
|
6
|
+
import { JsonlWriter } from "./jsonl-writer.js";
|
|
7
|
+
import { defaultRedactor } from "./redact.js";
|
|
8
8
|
/**
|
|
9
9
|
* Singleton logger instance
|
|
10
10
|
*/
|
|
@@ -80,6 +80,6 @@ export function resetLogger() {
|
|
|
80
80
|
export function hasLogger() {
|
|
81
81
|
return singleton !== null;
|
|
82
82
|
}
|
|
83
|
-
export { EventKinds } from "./kinds";
|
|
84
|
-
export { defaultRedactor, createRedactor, noRedactor } from "./redact";
|
|
83
|
+
export { EventKinds } from "./kinds.js";
|
|
84
|
+
export { defaultRedactor, createRedactor, noRedactor } from "./redact.js";
|
|
85
85
|
//# sourceMappingURL=logger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logging/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logging/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C;;GAEG;AACH,IAAI,SAAS,GAAkB,IAAI,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,SAAS,CAAC,IAA6B;IACrD,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,sCAAsC;IACtC,MAAM,SAAS,GACb,IAAI,EAAE,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,i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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovelybunch/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.68",
|
|
4
4
|
"description": "Core Coconut functionality",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "vitest run"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@lovelybunch/types": "^1.0.
|
|
38
|
+
"@lovelybunch/types": "^1.0.68",
|
|
39
39
|
"gray-matter": "^4.0.3",
|
|
40
40
|
"fuse.js": "^7.0.0",
|
|
41
41
|
"nanoid": "^5.0.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-templates.d.ts","sourceRoot":"","sources":["../src/workflow-templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyDpD,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Built-in workflow templates
|
|
3
|
-
* These are created in .nut/agents/workflows/ during nut init
|
|
4
|
-
*/
|
|
5
|
-
export const workflowTemplates = {
|
|
6
|
-
'change-proposal.md': `---
|
|
7
|
-
name: Change Proposal Specialist
|
|
8
|
-
type: workflow
|
|
9
|
-
description: Implements approved change proposals
|
|
10
|
-
contextTypes:
|
|
11
|
-
- cp
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
Review .nut/proposals/{{proposalId}}.md and begin implementing.
|
|
15
|
-
|
|
16
|
-
Update the assignment to yourself (Coconut AI), the implementation steps (updated as you progress), and set the status upon completion to Code Complete.
|
|
17
|
-
|
|
18
|
-
Use .nut/context/project.md and .nut/context/architecture.md for reference and make any logical updates to those files upon completion of the proposal too.
|
|
19
|
-
|
|
20
|
-
{{schemaReference}}
|
|
21
|
-
|
|
22
|
-
Lastly, please add notable comments to the proposal (.nut/proposals/{{proposalId}}.md) from your chain-of-thought upon completion, particularly for ideas for future suggestions and/or improvements related to the proposal or wider project.
|
|
23
|
-
`,
|
|
24
|
-
'agent-task.md': `---
|
|
25
|
-
name: Agent Task Executor
|
|
26
|
-
type: workflow
|
|
27
|
-
description: Execute tasks using the selected agent's capabilities
|
|
28
|
-
contextTypes:
|
|
29
|
-
- ag
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
You are starting a coding session with specialized agent capabilities.
|
|
33
|
-
|
|
34
|
-
{{#if agentNames}}The following agents are configured for this session: {{agentNames}}.{{/if}}
|
|
35
|
-
|
|
36
|
-
Use .nut/context/project.md and .nut/context/architecture.md for reference.
|
|
37
|
-
|
|
38
|
-
{{schemaReference}}
|
|
39
|
-
|
|
40
|
-
Please work on the task at hand, utilizing the available MCP tools and agent configurations to complete the work effectively.
|
|
41
|
-
`,
|
|
42
|
-
'general.md': `---
|
|
43
|
-
name: General Coding Session
|
|
44
|
-
type: workflow
|
|
45
|
-
description: General purpose coding session
|
|
46
|
-
contextTypes:
|
|
47
|
-
- session
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
You are starting a general coding session.
|
|
51
|
-
|
|
52
|
-
{{#if agentNames}}The following agents are configured: {{agentNames}}.{{/if}}
|
|
53
|
-
|
|
54
|
-
Use .nut/context/project.md and .nut/context/architecture.md for reference when needed.
|
|
55
|
-
|
|
56
|
-
{{schemaReference}}
|
|
57
|
-
|
|
58
|
-
Ready to assist with your development tasks.
|
|
59
|
-
`
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=workflow-templates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-templates.js","sourceRoot":"","sources":["../src/workflow-templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,oBAAoB,EAAE;;;;;;;;;;;;;;;;;CAiBvB;IAEC,eAAe,EAAE;;;;;;;;;;;;;;;;;CAiBlB;IAEC,YAAY,EAAE;;;;;;;;;;;;;;;;;CAiBf;CACA,CAAC"}
|