@dharma-ai-labs/agent-fabric 0.2.108 → 0.2.110
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 +41 -0
- package/dist/codexBoundSession.d.ts.map +1 -1
- package/dist/codexBoundSession.js +2 -0
- package/dist/codexBoundSession.js.map +1 -1
- package/dist/codexBoundSession.test.js +509 -492
- package/dist/codexBoundSession.test.js.map +1 -1
- package/dist/codexInboxSession.d.ts +1 -1
- package/dist/cooperativeInboxSession.d.ts +1 -1
- package/dist/demoEnrollment.d.ts +2 -1
- package/dist/demoEnrollment.d.ts.map +1 -1
- package/dist/demoEnrollment.js +99 -21
- package/dist/demoEnrollment.js.map +1 -1
- package/dist/demoEnrollment.test.js +288 -2
- package/dist/demoEnrollment.test.js.map +1 -1
- package/dist/demoPackage.js +1 -1
- package/dist/demoPackage.js.map +1 -1
- package/dist/demoSigningTrust.d.ts +24 -0
- package/dist/demoSigningTrust.d.ts.map +1 -0
- package/dist/demoSigningTrust.js +326 -0
- package/dist/demoSigningTrust.js.map +1 -0
- package/dist/demoSigningTrust.test.d.ts +2 -0
- package/dist/demoSigningTrust.test.d.ts.map +1 -0
- package/dist/demoSigningTrust.test.js +445 -0
- package/dist/demoSigningTrust.test.js.map +1 -0
- package/dist/demoSigningUpgradeProof.d.ts +52 -0
- package/dist/demoSigningUpgradeProof.d.ts.map +1 -0
- package/dist/demoSigningUpgradeProof.js +137 -0
- package/dist/demoSigningUpgradeProof.js.map +1 -0
- package/dist/demoSigningUpgradeProof.test.d.ts +2 -0
- package/dist/demoSigningUpgradeProof.test.d.ts.map +1 -0
- package/dist/demoSigningUpgradeProof.test.js +564 -0
- package/dist/demoSigningUpgradeProof.test.js.map +1 -0
- package/dist/demoSigningUpgradeSubmission.d.ts +21 -0
- package/dist/demoSigningUpgradeSubmission.d.ts.map +1 -0
- package/dist/demoSigningUpgradeSubmission.js +178 -0
- package/dist/demoSigningUpgradeSubmission.js.map +1 -0
- package/dist/demoSupervisor.d.ts.map +1 -1
- package/dist/demoSupervisor.js +2 -1
- package/dist/demoSupervisor.js.map +1 -1
- package/dist/demoSupervisor.test.js +35 -0
- package/dist/demoSupervisor.test.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/index.test.js +3 -2
- package/dist/index.test.js.map +1 -1
- package/dist/providerSessionReplyRecovery.d.ts +1 -1
- package/dist/schemas/demo-enrollment-approval.schema.json +19 -0
- package/dist/schemas/demo-signing-update.schema.json +18 -0
- package/dist/schemas/lifecycle-event.schema.json +178 -0
- package/dist/schemas/signing-upgrade-context.schema.json +28 -0
- package/dist/schemas/signing-upgrade-source.schema.json +32 -0
- package/dist/usage.d.ts +1 -1
- package/dist/usage.d.ts.map +1 -1
- package/dist/usage.js +1 -1
- package/dist/usage.js.map +1 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -39,13 +39,15 @@ import { connectDemoDevice, verifyDemoDevice } from './demoEnrollment.js';
|
|
|
39
39
|
import { performDemoPeerAction, withDemoDeviceLock } from './demoPeer.js';
|
|
40
40
|
import { demoRepositoryPackage } from './demoPackage.js';
|
|
41
41
|
import { demoDeviceAndPackageStatus } from './demoStatus.js';
|
|
42
|
+
import { prepareDemoSigningUpgradeProof, readDemoSigningUpgradeContext } from './demoSigningUpgradeProof.js';
|
|
43
|
+
import { submitDemoSigningUpgradeProof } from './demoSigningUpgradeSubmission.js';
|
|
42
44
|
import { runDemoWatch } from './demoWatch.js';
|
|
43
45
|
import { runDemoSupervisor } from './demoSupervisor.js';
|
|
44
46
|
import { demoWatchRegistrationKey, listDemoWatchRegistrations } from './demoWatchRegistry.js';
|
|
45
47
|
import { createDemoWatchHealthRecorder } from './demoWatchHealth.js';
|
|
46
48
|
import { demoWatchStatus, disableDemoWatch, enableDemoWatch, inspectDemoWatchSupervisor } from './demoWatchControl.js';
|
|
47
49
|
export { openCooperativeInboxSession } from './cooperativeInboxSession.js';
|
|
48
|
-
const VERSION = '0.2.
|
|
50
|
+
const VERSION = '0.2.110';
|
|
49
51
|
const USAGE = CLI_USAGE;
|
|
50
52
|
const execFileAsync = promisify(execFile);
|
|
51
53
|
const LOCAL_PROVIDER_IDS = ['codex', 'claude', 'agy', 'hermes'];
|
|
@@ -5896,7 +5898,8 @@ export async function run(argv) {
|
|
|
5896
5898
|
if (flags.has('version') || command === 'version')
|
|
5897
5899
|
return { version: VERSION };
|
|
5898
5900
|
if (command === 'demo' && ['connect', 'status', 'role', 'peers', 'ask', 'reply', 'inbox', 'ack', 'resume',
|
|
5899
|
-
'package', 'package-status', 'watch', 'watch-enable', 'watch-status', 'watch-disable'
|
|
5901
|
+
'package', 'package-status', 'watch', 'watch-enable', 'watch-status', 'watch-disable',
|
|
5902
|
+
'signing-client-proof', 'signing-owner-proof']
|
|
5900
5903
|
.includes(String(subcommand))) {
|
|
5901
5904
|
const hqUrl = normalizeHqUrl(portalUrl(flags));
|
|
5902
5905
|
const organizationId = required(flags, 'organization-id');
|
|
@@ -5911,11 +5914,16 @@ export async function run(argv) {
|
|
|
5911
5914
|
throw new Error('Local Git remote does not match the private Demo repository binding.');
|
|
5912
5915
|
}
|
|
5913
5916
|
const watchControl = ['watch-enable', 'watch-status', 'watch-disable'].includes(String(subcommand));
|
|
5917
|
+
const signingProof = ['signing-client-proof', 'signing-owner-proof'].includes(String(subcommand));
|
|
5918
|
+
if (signingProof && subcommand === 'signing-owner-proof' && flags.has('submit')) {
|
|
5919
|
+
throw new Error('Owner signing approval requires explicit browser confirmation.');
|
|
5920
|
+
}
|
|
5914
5921
|
if (watchControl && await realpath(root) !== workspace) {
|
|
5915
5922
|
throw new Error('Demo watch setup must select the exact Git repository root.');
|
|
5916
5923
|
}
|
|
5917
5924
|
if (flags.has('dry-run'))
|
|
5918
|
-
return { ok: true, stage:
|
|
5925
|
+
return { ok: true, stage: signingProof ? 'demo_signing_proof_plan'
|
|
5926
|
+
: watchControl ? 'demo_watch_plan' : 'demo_device_plan',
|
|
5919
5927
|
organizationId, repositoryId, normalizedRepository, workspaceVerified: true,
|
|
5920
5928
|
repositoryPackageState: 'not_connected' };
|
|
5921
5929
|
const grant = subcommand === 'connect' ? required(flags, 'grant') : null;
|
|
@@ -5923,6 +5931,12 @@ export async function run(argv) {
|
|
|
5923
5931
|
hqUrl, organizationId, repositoryId, normalizedRepository,
|
|
5924
5932
|
installationId: await loadOrCreateInstallationId(), stateRoot: dharmaHome(),
|
|
5925
5933
|
};
|
|
5934
|
+
if (signingProof) {
|
|
5935
|
+
const context = await readDemoSigningUpgradeContext(resolve(required(flags, 'review-context')));
|
|
5936
|
+
if (flags.has('submit'))
|
|
5937
|
+
return withDemoDeviceLock(scope, () => submitDemoSigningUpgradeProof(scope, context));
|
|
5938
|
+
return withDemoDeviceLock(scope, () => prepareDemoSigningUpgradeProof(scope, context, subcommand === 'signing-owner-proof' ? 'owner' : 'client'));
|
|
5939
|
+
}
|
|
5926
5940
|
if (watchControl) {
|
|
5927
5941
|
const existing = (await listDemoWatchRegistrations(dharmaHome()))
|
|
5928
5942
|
.find(row => row.hqUrl === hqUrl && row.organizationId === organizationId && row.repositoryId === repositoryId);
|