@lumifai/harness 0.0.1 → 0.2.1
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 +14 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -219,7 +219,16 @@ import { createPostgresToolPack } from '@lumifai/harness-tool-pack-postgres';
|
|
|
219
219
|
|
|
220
220
|
createHarnessSessionManager({
|
|
221
221
|
bootConfig: {
|
|
222
|
-
toolPacks: [
|
|
222
|
+
toolPacks: [
|
|
223
|
+
createPostgresToolPack({
|
|
224
|
+
connectionString: process.env.DATABASE_URL!,
|
|
225
|
+
allowedTables: ['public.campaign_briefs'],
|
|
226
|
+
allowedColumns: {
|
|
227
|
+
'public.campaign_briefs': ['id', 'name', 'metadata', 'tenant_id'],
|
|
228
|
+
},
|
|
229
|
+
jsonColumns: { 'public.campaign_briefs': ['metadata'] },
|
|
230
|
+
}),
|
|
231
|
+
],
|
|
223
232
|
permissionRules: {
|
|
224
233
|
tools: { my_custom_tool: 'ask' },
|
|
225
234
|
categories: { execute: 'deny' },
|
|
@@ -288,11 +297,12 @@ Import configurable presets from `@lumifai/harness-presets`:
|
|
|
288
297
|
Import opt-in capability bundles from `@lumifai/harness-tool-pack-*` packages. Shared types and merge helpers live in `@lumifai/harness-tool-packs`:
|
|
289
298
|
|
|
290
299
|
- `ToolPack` — named bundle of related tools (and optional skills) that flattens into `tools` at harness init
|
|
291
|
-
- `createPostgresToolPack()` —
|
|
300
|
+
- `createPostgresToolPack()` — PostgreSQL schema inspection, query, and optional allowlisted write tools (`@lumifai/harness-tool-pack-postgres`)
|
|
292
301
|
- `createWorkspaceDataToolPack()` — workspace JSON, CSV, and jq query tools (`@lumifai/harness-tool-pack-workspace-data`)
|
|
293
302
|
- `createServerlessWorkflowToolPack()` — serverless runtime tool pack (`@lumifai/harness-tool-pack-serverless-workflow`)
|
|
294
303
|
- `createWebSearchToolPack()` — provider-native web search with structured output (`@lumifai/harness-tool-pack-web-search`)
|
|
295
304
|
- `createFileProcessingToolPack()` — PDF text extraction to `/processed/` (`@lumifai/harness-tool-pack-file-processing`)
|
|
305
|
+
- `createOfficeEditingToolPack()` — headless revision-checked DOCX, XLSX, PPTX, and PDF editing (`@lumifai/harness-tool-pack-office-editing`)
|
|
296
306
|
|
|
297
307
|
Override any preset or pack via the options objects on each factory.
|
|
298
308
|
|
|
@@ -304,6 +314,7 @@ import { createPostgresToolPack } from '@lumifai/harness-tool-pack-postgres';
|
|
|
304
314
|
import { createServerlessWorkflowToolPack } from '@lumifai/harness-tool-pack-serverless-workflow';
|
|
305
315
|
import { createWebSearchToolPack } from '@lumifai/harness-tool-pack-web-search';
|
|
306
316
|
import { createFileProcessingToolPack } from '@lumifai/harness-tool-pack-file-processing';
|
|
317
|
+
import { createOfficeEditingToolPack } from '@lumifai/harness-tool-pack-office-editing';
|
|
307
318
|
import { createWorkspaceDataToolPack } from '@lumifai/harness-tool-pack-workspace-data';
|
|
308
319
|
import { Agent } from '@mastra/core/agent';
|
|
309
320
|
|
|
@@ -348,6 +359,7 @@ const presets = createPresetHarnessConfig({
|
|
|
348
359
|
defaultProvider: 'openai',
|
|
349
360
|
}),
|
|
350
361
|
createFileProcessingToolPack(),
|
|
362
|
+
createOfficeEditingToolPack(),
|
|
351
363
|
],
|
|
352
364
|
toolPackToggles: {
|
|
353
365
|
postgres: true,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export { createLumifHarness } from './create-lumif-harness';
|
|
2
2
|
export type { LumifHarnessOptions, LumifWorkspace, LumifWorkspaceFactory } from './types';
|
|
3
|
-
export {
|
|
3
|
+
export type { ToolsInput } from '@mastra/core/agent';
|
|
4
|
+
export { Agent } from '@mastra/core/agent';
|
|
5
|
+
export { createTool } from '@mastra/core/tools';
|
|
6
|
+
export type { ToolExecutionContext } from '@mastra/core/tools';
|
|
7
|
+
export { Session } from '@mastra/core/agent-controller';
|
|
4
8
|
/** Lumif's stable Harness export, backed by Mastra's AgentController runtime. */
|
|
5
9
|
export { AgentController as Harness } from '@mastra/core/agent-controller';
|
|
6
10
|
export type { AgentControllerConfig, AgentControllerDisplayState, AgentControllerEvent, AgentControllerMode, AgentControllerSubagent, AgentControllerThread, AgentControllerConfig as HarnessConfig, AgentControllerDisplayState as HarnessDisplayState, AgentControllerEvent as HarnessEvent, AgentControllerMode as HarnessMode, AgentControllerSubagent as HarnessSubagent, AgentControllerThread as HarnessThread, } from '@mastra/core/agent-controller';
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Harness = exports.Session = exports.
|
|
3
|
+
exports.Harness = exports.Session = exports.createTool = exports.Agent = exports.createLumifHarness = void 0;
|
|
4
4
|
var create_lumif_harness_1 = require("./create-lumif-harness");
|
|
5
5
|
Object.defineProperty(exports, "createLumifHarness", { enumerable: true, get: function () { return create_lumif_harness_1.createLumifHarness; } });
|
|
6
|
+
var agent_1 = require("@mastra/core/agent");
|
|
7
|
+
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
8
|
+
var tools_1 = require("@mastra/core/tools");
|
|
9
|
+
Object.defineProperty(exports, "createTool", { enumerable: true, get: function () { return tools_1.createTool; } });
|
|
6
10
|
var agent_controller_1 = require("@mastra/core/agent-controller");
|
|
7
|
-
Object.defineProperty(exports, "AgentController", { enumerable: true, get: function () { return agent_controller_1.AgentController; } });
|
|
8
11
|
Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return agent_controller_1.Session; } });
|
|
9
12
|
/** Lumif's stable Harness export, backed by Mastra's AgentController runtime. */
|
|
10
13
|
var agent_controller_2 = require("@mastra/core/agent-controller");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAG3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAG3B,4CAA2C;AAAlC,8FAAA,KAAK,OAAA;AAEd,4CAAgD;AAAvC,mGAAA,UAAU,OAAA;AAGnB,kEAAwD;AAA/C,2GAAA,OAAO,OAAA;AAChB,iFAAiF;AACjF,kEAA2E;AAAlE,2GAAA,eAAe,OAAW"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumifai/harness",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/Lumif-ai/lumif-harness.git",
|
|
8
|
+
"directory": "packages/harness"
|
|
9
|
+
},
|
|
5
10
|
"engines": {
|
|
6
11
|
"node": ">=22.13.0"
|
|
7
12
|
},
|
|
@@ -22,7 +27,7 @@
|
|
|
22
27
|
"README.md"
|
|
23
28
|
],
|
|
24
29
|
"dependencies": {
|
|
25
|
-
"@mastra/core": "1.
|
|
30
|
+
"@mastra/core": "1.67.0"
|
|
26
31
|
},
|
|
27
32
|
"publishConfig": {
|
|
28
33
|
"access": "public",
|