@almadar/agent 1.6.4 → 2.0.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/LICENSE +21 -72
- package/README.md +25 -0
- package/dist/agent/event-budget.d.ts +28 -0
- package/dist/agent/experimental/hitl-v2.d.ts +161 -0
- package/dist/agent/experimental/hitl-workflow-integration.d.ts +182 -0
- package/dist/agent/index.d.ts +14 -13
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/interrupt-config.d.ts +51 -0
- package/dist/agent/session-manager.d.ts +204 -0
- package/dist/agent/skill-agent.d.ts +182 -0
- package/dist/agent/workflow-middleware.d.ts +63 -0
- package/dist/agent/workflow-tool-wrapper.d.ts +87 -0
- package/dist/{api-types-CXrq-fts.d.ts → api-types.d.ts} +85 -51
- package/dist/context/compaction.d.ts +191 -0
- package/dist/context-compaction.d.ts +55 -0
- package/dist/evals/online-sampling.d.ts +114 -0
- package/dist/evals/utils/compact-orbital.d.ts +100 -0
- package/dist/event-transformer/event-transformer.d.ts +120 -0
- package/dist/event-transformer/index.d.ts +4 -122
- package/dist/events.d.ts +85 -0
- package/dist/index.d.ts +58 -1678
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -1
- package/dist/memory/MemoryManager.d.ts +243 -0
- package/dist/memory/PreferenceLearner.d.ts +59 -0
- package/dist/memory/agentic-search.d.ts +116 -0
- package/dist/memory/index.d.ts +14 -0
- package/dist/memory/memory-orbital.d.ts +66 -0
- package/dist/memory/types.d.ts +143 -0
- package/dist/metrics.d.ts +77 -0
- package/dist/multi-user.d.ts +155 -0
- package/dist/observability/index.d.ts +14 -0
- package/dist/observability/langsmith-integration.d.ts +203 -0
- package/dist/observability.d.ts +196 -0
- package/dist/orbitals/archive/sanitize.d.ts +24 -0
- package/dist/orbitals/batch/batch-generator.d.ts +41 -0
- package/dist/orbitals/batch/concurrency.d.ts +54 -0
- package/dist/orbitals/batch/index.d.ts +14 -0
- package/dist/orbitals/batch/prompt-assembler.d.ts +92 -0
- package/dist/orbitals/batch/types.d.ts +103 -0
- package/dist/orbitals/cache/index.d.ts +11 -0
- package/dist/orbitals/cache/orbital-fingerprint.d.ts +37 -0
- package/dist/orbitals/cache/prompt-assembler.d.ts +65 -0
- package/dist/orbitals/cache/structural-templates.d.ts +33 -0
- package/dist/orbitals/combiner/index.d.ts +102 -0
- package/dist/orbitals/domain-language/index.d.ts +9 -0
- package/dist/orbitals/domain-language/prompts/index.d.ts +11 -0
- package/dist/orbitals/domain-language/prompts/odl-examples.d.ts +8 -0
- package/dist/orbitals/domain-language/prompts/odl-patterns.d.ts +8 -0
- package/dist/orbitals/domain-language/prompts/odl-syntax.d.ts +8 -0
- package/dist/orbitals/domain-language/prompts/odl-to-schema.d.ts +8 -0
- package/dist/orbitals/generation/index.d.ts +10 -0
- package/dist/orbitals/generation/orbital-generator.d.ts +120 -0
- package/dist/orbitals/shared/constants.d.ts +65 -0
- package/dist/orbitals/shared/index.d.ts +11 -0
- package/dist/orbitals/shared/types.d.ts +187 -0
- package/dist/orbitals/shared/utils.d.ts +97 -0
- package/dist/orchestration/complexity-classifier.d.ts +38 -0
- package/dist/orchestration/fixing-orchestrator.d.ts +53 -0
- package/dist/orchestration/index.d.ts +31 -0
- package/dist/orchestration/provider-router.d.ts +45 -0
- package/dist/{firestore-checkpointer-CkNKXoun.d.ts → persistence/firestore-checkpointer.d.ts} +13 -58
- package/dist/persistence/firestore-session-store.d.ts +75 -0
- package/dist/persistence/firestore-store.d.ts +86 -0
- package/dist/persistence/index.d.ts +7 -198
- package/dist/persistence/memory-backend.d.ts +33 -0
- package/dist/persistence/types.d.ts +40 -0
- package/dist/security/audit-log.d.ts +44 -0
- package/dist/state-sync.d.ts +171 -0
- package/dist/subagents.d.ts +38 -0
- package/dist/tools/combine-schemas.d.ts +154 -0
- package/dist/tools/composition.d.ts +119 -0
- package/dist/{orbital-subagent-BdFuf77p.d.ts → tools/domain-orbital.d.ts} +22 -461
- package/dist/tools/execute.d.ts +38 -0
- package/dist/tools/finish-task.d.ts +56 -0
- package/dist/tools/generate-schema.d.ts +53 -0
- package/dist/tools/github.d.ts +297 -0
- package/dist/tools/index.d.ts +1318 -8
- package/dist/tools/orbital-batch-subagent.d.ts +85 -0
- package/dist/tools/orbital-subagent.d.ts +454 -0
- package/dist/tools/orchestrated-fixing.d.ts +74 -0
- package/dist/tools/orchestrated-generation.d.ts +75 -0
- package/dist/tools/sandbox-executor.d.ts +31 -0
- package/dist/tools/schema-chunking.d.ts +117 -0
- package/dist/tools/trait-subagent.d.ts +179 -0
- package/dist/tools/validate-schema.d.ts +17 -0
- package/dist/types.d.ts +14 -17
- package/dist/utils/safety/capability-token.d.ts +50 -0
- package/dist/utils/safety/circuit-breaker.d.ts +71 -0
- package/dist/utils/safety/index.d.ts +19 -0
- package/dist/utils/safety/rate-limiter.d.ts +39 -0
- package/dist/utils/safety/threshold-auth.d.ts +70 -0
- package/dist/workspace/git-client.d.ts +51 -0
- package/dist/workspace/index.d.ts +29 -346
- package/dist/workspace/index.js +39 -0
- package/dist/workspace/index.js.map +1 -1
- package/dist/workspace/memory-files.d.ts +31 -0
- package/dist/workspace/sink-manager.d.ts +26 -0
- package/dist/workspace/sinks/firestore-sink.d.ts +41 -0
- package/dist/workspace/sinks/git-sink.d.ts +47 -0
- package/dist/workspace/sinks/index.d.ts +9 -0
- package/dist/workspace/templates.d.ts +32 -0
- package/dist/workspace/types.d.ts +86 -0
- package/dist/workspace/workspace-manager.d.ts +57 -0
- package/package.json +12 -10
- package/dist/index-DW3F-Ihx.d.ts +0 -2501
- package/dist/index-DZn69no8.d.ts +0 -1014
package/dist/index.js
CHANGED
|
@@ -10149,6 +10149,10 @@ var GitClient = class {
|
|
|
10149
10149
|
constructor(cwd) {
|
|
10150
10150
|
this.cwd = cwd;
|
|
10151
10151
|
}
|
|
10152
|
+
/** Get the working directory path. */
|
|
10153
|
+
getCwd() {
|
|
10154
|
+
return this.cwd;
|
|
10155
|
+
}
|
|
10152
10156
|
/** Check if git is available on the system. */
|
|
10153
10157
|
static async isAvailable() {
|
|
10154
10158
|
try {
|
|
@@ -10279,6 +10283,7 @@ var GitSink = class {
|
|
|
10279
10283
|
this.name = "git";
|
|
10280
10284
|
this.commitQueue = Promise.resolve();
|
|
10281
10285
|
this.available = null;
|
|
10286
|
+
this.pushConfig = null;
|
|
10282
10287
|
this.client = new GitClient(workspaceRoot);
|
|
10283
10288
|
}
|
|
10284
10289
|
/** Initialize the git repo. Must be called before onFileWritten. */
|
|
@@ -10290,6 +10295,17 @@ var GitSink = class {
|
|
|
10290
10295
|
}
|
|
10291
10296
|
await this.client.init();
|
|
10292
10297
|
}
|
|
10298
|
+
/**
|
|
10299
|
+
* Enable pushing to a remote GitHub repo on session end.
|
|
10300
|
+
* Push failures are non-fatal — local commits are always preserved.
|
|
10301
|
+
*/
|
|
10302
|
+
enablePush(config) {
|
|
10303
|
+
this.pushConfig = config;
|
|
10304
|
+
}
|
|
10305
|
+
/** Get the working directory path. */
|
|
10306
|
+
getCwd() {
|
|
10307
|
+
return this.client.getCwd();
|
|
10308
|
+
}
|
|
10293
10309
|
async onFileWritten(path11, _content, meta) {
|
|
10294
10310
|
if (!this.available) return;
|
|
10295
10311
|
this.commitQueue = this.commitQueue.then(async () => {
|
|
@@ -10311,6 +10327,29 @@ var GitSink = class {
|
|
|
10311
10327
|
`session/${sessionId}`,
|
|
10312
10328
|
`Session ${sessionId} complete`
|
|
10313
10329
|
);
|
|
10330
|
+
if (this.pushConfig) {
|
|
10331
|
+
await this.pushToRemote();
|
|
10332
|
+
}
|
|
10333
|
+
}
|
|
10334
|
+
/**
|
|
10335
|
+
* Push local commits to the remote GitHub repository.
|
|
10336
|
+
* Non-fatal — failures are logged but do not throw.
|
|
10337
|
+
*/
|
|
10338
|
+
async pushToRemote() {
|
|
10339
|
+
if (!this.pushConfig) return;
|
|
10340
|
+
const { token, branch, repoUrl } = this.pushConfig;
|
|
10341
|
+
const cwd = this.client.getCwd();
|
|
10342
|
+
try {
|
|
10343
|
+
console.log(`[GitSink] Pushing to ${repoUrl} branch ${branch}...`);
|
|
10344
|
+
const { push } = await import('@almadar/integrations/github');
|
|
10345
|
+
await push({ branchName: branch, workDir: cwd }, cwd, token);
|
|
10346
|
+
console.log(`[GitSink] Push successful`);
|
|
10347
|
+
} catch (error) {
|
|
10348
|
+
console.error(
|
|
10349
|
+
`[GitSink] Push failed (local commits preserved):`,
|
|
10350
|
+
error instanceof Error ? error.message : error
|
|
10351
|
+
);
|
|
10352
|
+
}
|
|
10314
10353
|
}
|
|
10315
10354
|
};
|
|
10316
10355
|
function formatCommitMessage(path11, meta) {
|